Skip to content

Commit 7c6af32

Browse files
authored
chore: codegen for fixing xml map deser (#972)
1 parent 03da9c4 commit 7c6af32

File tree

8 files changed

+45
-43
lines changed

8 files changed

+45
-43
lines changed

clients/client-cloudsearch/protocols/Aws_query.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4539,8 +4539,8 @@ const deserializeAws_queryDomainNameMap = (
45394539
context: __SerdeContext
45404540
): { [key: string]: string } => {
45414541
const mapParams: any = {};
4542-
Object.keys(output).forEach(key => {
4543-
mapParams[key] = output[key];
4542+
output.forEach((pair: any) => {
4543+
mapParams[pair["key"]] = pair["value"];
45444544
});
45454545
return mapParams;
45464546
};

clients/client-cloudwatch/protocols/Aws_query.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4403,8 +4403,8 @@ const deserializeAws_queryDatapointValueMap = (
44034403
context: __SerdeContext
44044404
): { [key: string]: number } => {
44054405
const mapParams: any = {};
4406-
Object.keys(output).forEach(key => {
4407-
mapParams[key] = parseFloat(output[key]);
4406+
output.forEach((pair: any) => {
4407+
mapParams[pair["key"]] = parseFloat(pair["value"]);
44084408
});
44094409
return mapParams;
44104410
};

clients/client-elastic-load-balancing-v2/protocols/Aws_query.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -6133,8 +6133,8 @@ const deserializeAws_queryAuthenticateCognitoActionAuthenticationRequestExtraPar
61336133
context: __SerdeContext
61346134
): { [key: string]: string } => {
61356135
const mapParams: any = {};
6136-
Object.keys(output).forEach(key => {
6137-
mapParams[key] = output[key];
6136+
output.forEach((pair: any) => {
6137+
mapParams[pair["key"]] = pair["value"];
61386138
});
61396139
return mapParams;
61406140
};
@@ -6199,8 +6199,8 @@ const deserializeAws_queryAuthenticateOidcActionAuthenticationRequestExtraParams
61996199
context: __SerdeContext
62006200
): { [key: string]: string } => {
62016201
const mapParams: any = {};
6202-
Object.keys(output).forEach(key => {
6203-
mapParams[key] = output[key];
6202+
output.forEach((pair: any) => {
6203+
mapParams[pair["key"]] = pair["value"];
62046204
});
62056205
return mapParams;
62066206
};

clients/client-iam/protocols/Aws_query.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -16649,8 +16649,8 @@ const deserializeAws_queryEvalDecisionDetailsType = (
1664916649
context: __SerdeContext
1665016650
): { [key: string]: PolicyEvaluationDecisionType | string } => {
1665116651
const mapParams: any = {};
16652-
Object.keys(output).forEach(key => {
16653-
mapParams[key] = output[key];
16652+
output.forEach((pair: any) => {
16653+
mapParams[pair["key"]] = pair["value"];
1665416654
});
1665516655
return mapParams;
1665616656
};
@@ -20514,8 +20514,8 @@ const deserializeAws_querysummaryMapType = (
2051420514
context: __SerdeContext
2051520515
): { [key: string]: number } => {
2051620516
const mapParams: any = {};
20517-
Object.keys(output).forEach(key => {
20518-
mapParams[key] = parseInt(output[key]);
20517+
output.forEach((pair: any) => {
20518+
mapParams[pair["key"]] = parseInt(pair["value"]);
2051920519
});
2052020520
return mapParams;
2052120521
};

clients/client-s3-control/protocols/Aws_restXml.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3335,8 +3335,8 @@ const deserializeAws_restXmlS3UserMetadata = (
33353335
context: __SerdeContext
33363336
): { [key: string]: string } => {
33373337
const mapParams: any = {};
3338-
Object.keys(output).forEach(key => {
3339-
mapParams[key] = output[key];
3338+
output.forEach((pair: any) => {
3339+
mapParams[pair["key"]] = pair["value"];
33403340
});
33413341
return mapParams;
33423342
};

clients/client-ses/protocols/Aws_query.ts

+16-14
Original file line numberDiff line numberDiff line change
@@ -9548,9 +9548,9 @@ const deserializeAws_queryDkimAttributes = (
95489548
context: __SerdeContext
95499549
): { [key: string]: IdentityDkimAttributes } => {
95509550
const mapParams: any = {};
9551-
Object.keys(output).forEach(key => {
9552-
mapParams[key] = deserializeAws_queryIdentityDkimAttributes(
9553-
output[key],
9551+
output.forEach((pair: any) => {
9552+
mapParams[pair["key"]] = deserializeAws_queryIdentityDkimAttributes(
9553+
pair["value"],
95549554
context
95559555
);
95569556
});
@@ -10567,9 +10567,11 @@ const deserializeAws_queryMailFromDomainAttributes = (
1056710567
context: __SerdeContext
1056810568
): { [key: string]: IdentityMailFromDomainAttributes } => {
1056910569
const mapParams: any = {};
10570-
Object.keys(output).forEach(key => {
10571-
mapParams[key] = deserializeAws_queryIdentityMailFromDomainAttributes(
10572-
output[key],
10570+
output.forEach((pair: any) => {
10571+
mapParams[
10572+
pair["key"]
10573+
] = deserializeAws_queryIdentityMailFromDomainAttributes(
10574+
pair["value"],
1057310575
context
1057410576
);
1057510577
});
@@ -10627,9 +10629,9 @@ const deserializeAws_queryNotificationAttributes = (
1062710629
context: __SerdeContext
1062810630
): { [key: string]: IdentityNotificationAttributes } => {
1062910631
const mapParams: any = {};
10630-
Object.keys(output).forEach(key => {
10631-
mapParams[key] = deserializeAws_queryIdentityNotificationAttributes(
10632-
output[key],
10632+
output.forEach((pair: any) => {
10633+
mapParams[pair["key"]] = deserializeAws_queryIdentityNotificationAttributes(
10634+
pair["value"],
1063310635
context
1063410636
);
1063510637
});
@@ -10641,8 +10643,8 @@ const deserializeAws_queryPolicyMap = (
1064110643
context: __SerdeContext
1064210644
): { [key: string]: string } => {
1064310645
const mapParams: any = {};
10644-
Object.keys(output).forEach(key => {
10645-
mapParams[key] = output[key];
10646+
output.forEach((pair: any) => {
10647+
mapParams[pair["key"]] = pair["value"];
1064610648
});
1064710649
return mapParams;
1064810650
};
@@ -11438,9 +11440,9 @@ const deserializeAws_queryVerificationAttributes = (
1143811440
context: __SerdeContext
1143911441
): { [key: string]: IdentityVerificationAttributes } => {
1144011442
const mapParams: any = {};
11441-
Object.keys(output).forEach(key => {
11442-
mapParams[key] = deserializeAws_queryIdentityVerificationAttributes(
11443-
output[key],
11443+
output.forEach((pair: any) => {
11444+
mapParams[pair["key"]] = deserializeAws_queryIdentityVerificationAttributes(
11445+
pair["value"],
1144411446
context
1144511447
);
1144611448
});

clients/client-sns/protocols/Aws_query.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -5349,8 +5349,8 @@ const deserializeAws_queryMapStringToString = (
53495349
context: __SerdeContext
53505350
): { [key: string]: string } => {
53515351
const mapParams: any = {};
5352-
Object.keys(output).forEach(key => {
5353-
mapParams[key] = output[key];
5352+
output.forEach((pair: any) => {
5353+
mapParams[pair["key"]] = pair["value"];
53545354
});
53555355
return mapParams;
53565356
};
@@ -5532,8 +5532,8 @@ const deserializeAws_querySubscriptionAttributesMap = (
55325532
context: __SerdeContext
55335533
): { [key: string]: string } => {
55345534
const mapParams: any = {};
5535-
Object.keys(output).forEach(key => {
5536-
mapParams[key] = output[key];
5535+
output.forEach((pair: any) => {
5536+
mapParams[pair["key"]] = pair["value"];
55375537
});
55385538
return mapParams;
55395539
};
@@ -5656,8 +5656,8 @@ const deserializeAws_queryTopicAttributesMap = (
56565656
context: __SerdeContext
56575657
): { [key: string]: string } => {
56585658
const mapParams: any = {};
5659-
Object.keys(output).forEach(key => {
5660-
mapParams[key] = output[key];
5659+
output.forEach((pair: any) => {
5660+
mapParams[pair["key"]] = pair["value"];
56615661
});
56625662
return mapParams;
56635663
};

clients/client-sqs/protocols/Aws_query.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -3182,9 +3182,9 @@ const deserializeAws_queryMessageBodyAttributeMap = (
31823182
context: __SerdeContext
31833183
): { [key: string]: MessageAttributeValue } => {
31843184
const mapParams: any = {};
3185-
Object.keys(output).forEach(key => {
3186-
mapParams[key] = deserializeAws_queryMessageAttributeValue(
3187-
output[key],
3185+
output.forEach((pair: any) => {
3186+
mapParams[pair["Name"]] = deserializeAws_queryMessageAttributeValue(
3187+
pair["Value"],
31883188
context
31893189
);
31903190
});
@@ -3215,8 +3215,8 @@ const deserializeAws_queryMessageSystemAttributeMap = (
32153215
context: __SerdeContext
32163216
): { [key: string]: string } => {
32173217
const mapParams: any = {};
3218-
Object.keys(output).forEach(key => {
3219-
mapParams[key] = output[key];
3218+
output.forEach((pair: any) => {
3219+
mapParams[pair["Name"]] = pair["Value"];
32203220
});
32213221
return mapParams;
32223222
};
@@ -3246,8 +3246,8 @@ const deserializeAws_queryQueueAttributeMap = (
32463246
context: __SerdeContext
32473247
): { [key: string]: string } => {
32483248
const mapParams: any = {};
3249-
Object.keys(output).forEach(key => {
3250-
mapParams[key] = output[key];
3249+
output.forEach((pair: any) => {
3250+
mapParams[pair["Name"]] = pair["Value"];
32513251
});
32523252
return mapParams;
32533253
};
@@ -3445,8 +3445,8 @@ const deserializeAws_queryTagMap = (
34453445
context: __SerdeContext
34463446
): { [key: string]: string } => {
34473447
const mapParams: any = {};
3448-
Object.keys(output).forEach(key => {
3449-
mapParams[key] = output[key];
3448+
output.forEach((pair: any) => {
3449+
mapParams[pair["Key"]] = pair["Value"];
34503450
});
34513451
return mapParams;
34523452
};

0 commit comments

Comments
 (0)