Skip to content

Commit 9460699

Browse files
committed
chore(clients): update LazyJsonString ctor call
1 parent 173a626 commit 9460699

File tree

14 files changed

+23
-28
lines changed

14 files changed

+23
-28
lines changed

clients/client-braket/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export const de_GetDeviceCommand = async (
460460
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
461461
const doc = take(data, {
462462
deviceArn: __expectString,
463-
deviceCapabilities: (_) => new __LazyJsonString(_),
463+
deviceCapabilities: __LazyJsonString.from,
464464
deviceName: __expectString,
465465
deviceQueueInfo: _json,
466466
deviceStatus: __expectString,
@@ -530,7 +530,7 @@ export const de_GetQuantumTaskCommand = async (
530530
associations: _json,
531531
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
532532
deviceArn: __expectString,
533-
deviceParameters: (_) => new __LazyJsonString(_),
533+
deviceParameters: __LazyJsonString.from,
534534
endedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
535535
failureReason: __expectString,
536536
jobArn: __expectString,

clients/client-evidently/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ export const de_EvaluateFeatureCommand = async (
12281228
});
12291229
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
12301230
const doc = take(data, {
1231-
details: (_) => new __LazyJsonString(_),
1231+
details: __LazyJsonString.from,
12321232
reason: __expectString,
12331233
value: (_) => de_VariableValue(__expectUnion(_), context),
12341234
variation: __expectString,
@@ -2217,7 +2217,7 @@ const de_DoubleValueList = (output: any, context: __SerdeContext): number[] => {
22172217
*/
22182218
const de_EvaluationResult = (output: any, context: __SerdeContext): EvaluationResult => {
22192219
return take(output, {
2220-
details: (_: any) => new __LazyJsonString(_),
2220+
details: __LazyJsonString.from,
22212221
entityId: __expectString,
22222222
feature: __expectString,
22232223
project: __expectString,
@@ -2296,7 +2296,7 @@ const de_ExperimentList = (output: any, context: __SerdeContext): Experiment[] =
22962296
*/
22972297
const de_ExperimentReport = (output: any, context: __SerdeContext): ExperimentReport => {
22982298
return take(output, {
2299-
content: (_: any) => new __LazyJsonString(_),
2299+
content: __LazyJsonString.from,
23002300
metricName: __expectString,
23012301
reportName: __expectString,
23022302
treatmentName: __expectString,
@@ -2459,7 +2459,7 @@ const de_LaunchExecution = (output: any, context: __SerdeContext): LaunchExecuti
24592459
const de_MetricDefinition = (output: any, context: __SerdeContext): MetricDefinition => {
24602460
return take(output, {
24612461
entityIdKey: __expectString,
2462-
eventPattern: (_: any) => new __LazyJsonString(_),
2462+
eventPattern: __LazyJsonString.from,
24632463
name: __expectString,
24642464
unitLabel: __expectString,
24652465
valueKey: __expectString,
@@ -2623,7 +2623,7 @@ const de_Segment = (output: any, context: __SerdeContext): Segment => {
26232623
lastUpdatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
26242624
launchCount: __expectLong,
26252625
name: __expectString,
2626-
pattern: (_: any) => new __LazyJsonString(_),
2626+
pattern: __LazyJsonString.from,
26272627
tags: _json,
26282628
}) as any;
26292629
};

clients/client-grafana/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ export const de_DescribeWorkspaceConfigurationCommand = async (
909909
});
910910
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
911911
const doc = take(data, {
912-
configuration: (_) => new __LazyJsonString(_),
912+
configuration: __LazyJsonString.from,
913913
grafanaVersion: __expectString,
914914
});
915915
Object.assign(contents, doc);

clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,7 +2410,7 @@ const de_DescribeDatasetResponse = (output: any, context: __SerdeContext): Descr
24102410
IngestionInputConfiguration: _json,
24112411
LastUpdatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
24122412
RoleArn: __expectString,
2413-
Schema: (_: any) => new __LazyJsonString(_),
2413+
Schema: __LazyJsonString.from,
24142414
ServerSideKmsKeyId: __expectString,
24152415
SourceDatasetArn: __expectString,
24162416
Status: __expectString,
@@ -2500,7 +2500,7 @@ const de_DescribeModelResponse = (output: any, context: __SerdeContext): Describ
25002500
LatestScheduledRetrainingStatus: __expectString,
25012501
ModelArn: __expectString,
25022502
ModelDiagnosticsOutputConfiguration: _json,
2503-
ModelMetrics: (_: any) => new __LazyJsonString(_),
2503+
ModelMetrics: __LazyJsonString.from,
25042504
ModelName: __expectString,
25052505
ModelQuality: __expectString,
25062506
ModelVersionActivatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2509,10 +2509,10 @@ const de_DescribeModelResponse = (output: any, context: __SerdeContext): Describ
25092509
PreviousActiveModelVersion: __expectLong,
25102510
PreviousActiveModelVersionArn: __expectString,
25112511
PreviousModelVersionActivatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2512-
PriorModelMetrics: (_: any) => new __LazyJsonString(_),
2512+
PriorModelMetrics: __LazyJsonString.from,
25132513
RetrainingSchedulerStatus: __expectString,
25142514
RoleArn: __expectString,
2515-
Schema: (_: any) => new __LazyJsonString(_),
2515+
Schema: __LazyJsonString.from,
25162516
ServerSideKmsKeyId: __expectString,
25172517
SourceModelVersionArn: __expectString,
25182518
Status: __expectString,

clients/client-networkmanager/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,7 +3345,7 @@ export const de_GetResourcePolicyCommand = async (
33453345
});
33463346
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
33473347
const doc = take(data, {
3348-
PolicyDocument: (_) => new __LazyJsonString(_),
3348+
PolicyDocument: __LazyJsonString.from,
33493349
});
33503350
Object.assign(contents, doc);
33513351
return contents;
@@ -4531,7 +4531,7 @@ const de_CoreNetworkPolicy = (output: any, context: __SerdeContext): CoreNetwork
45314531
CoreNetworkId: __expectString,
45324532
CreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
45334533
Description: __expectString,
4534-
PolicyDocument: (_: any) => new __LazyJsonString(_),
4534+
PolicyDocument: __LazyJsonString.from,
45354535
PolicyErrors: _json,
45364536
PolicyVersionId: __expectInt32,
45374537
}) as any;

clients/client-omics/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4182,7 +4182,7 @@ export const de_GetS3AccessPolicyCommand = async (
41824182
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
41834183
const doc = take(data, {
41844184
s3AccessPointArn: __expectString,
4185-
s3AccessPolicy: (_) => new __LazyJsonString(_),
4185+
s3AccessPolicy: __LazyJsonString.from,
41864186
storeId: __expectString,
41874187
storeType: __expectString,
41884188
updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),

clients/client-pricing/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ const de_PriceListJsonItems = (output: any, context: __SerdeContext): (__Automat
450450
const retVal = (output || [])
451451
.filter((e: any) => e != null)
452452
.map((entry: any) => {
453-
return new __LazyJsonString(entry);
453+
return __LazyJsonString.from(entry);
454454
});
455455
return retVal;
456456
};

clients/client-rekognition/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5250,7 +5250,7 @@ const de_GetTextDetectionResponse = (output: any, context: __SerdeContext): GetT
52505250
*/
52515251
const de_HumanLoopActivationOutput = (output: any, context: __SerdeContext): HumanLoopActivationOutput => {
52525252
return take(output, {
5253-
HumanLoopActivationConditionsEvaluationResults: (_: any) => new __LazyJsonString(_),
5253+
HumanLoopActivationConditionsEvaluationResults: __LazyJsonString.from,
52545254
HumanLoopActivationReasons: _json,
52555255
HumanLoopArn: __expectString,
52565256
}) as any;

clients/client-sagemaker/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24025,7 +24025,7 @@ const de_HumanLoopActivationConditionsConfig = (
2402524025
context: __SerdeContext
2402624026
): HumanLoopActivationConditionsConfig => {
2402724027
return take(output, {
24028-
HumanLoopActivationConditions: (_: any) => new __LazyJsonString(_),
24028+
HumanLoopActivationConditions: __LazyJsonString.from,
2402924029
}) as any;
2403024030
};
2403124031

clients/client-schemas/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ export const de_GetResourcePolicyCommand = async (
10741074
});
10751075
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
10761076
const doc = take(data, {
1077-
Policy: (_) => new __LazyJsonString(_),
1077+
Policy: __LazyJsonString.from,
10781078
RevisionId: __expectString,
10791079
});
10801080
Object.assign(contents, doc);
@@ -1229,7 +1229,7 @@ export const de_PutResourcePolicyCommand = async (
12291229
});
12301230
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
12311231
const doc = take(data, {
1232-
Policy: (_) => new __LazyJsonString(_),
1232+
Policy: __LazyJsonString.from,
12331233
RevisionId: __expectString,
12341234
});
12351235
Object.assign(contents, doc);

0 commit comments

Comments
 (0)