Skip to content

Commit db5d702

Browse files
committed
chore: codegen filterSensitiveLog for Map inside Map
1 parent 3d64c3f commit db5d702

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

clients/client-api-gateway/models/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,14 @@ export namespace Deployment {
20402040
acc: any,
20412041
[key, value]: [string, { [key: string]: MethodSnapshot }]
20422042
) => {
2043-
acc[key] = value;
2043+
(acc[key] = Object.entries(value).reduce(
2044+
(acc: any, [key, value]: [string, MethodSnapshot]) => {
2045+
acc[key] = MethodSnapshot.filterSensitiveLog(value);
2046+
return acc;
2047+
},
2048+
{}
2049+
)),
2050+
{};
20442051
return acc;
20452052
},
20462053
{}

clients/client-pinpoint/models/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10260,7 +10260,14 @@ export namespace SendUsersMessageResponse {
1026010260
acc: any,
1026110261
[key, value]: [string, { [key: string]: EndpointMessageResult }]
1026210262
) => {
10263-
acc[key] = value;
10263+
(acc[key] = Object.entries(value).reduce(
10264+
(acc: any, [key, value]: [string, EndpointMessageResult]) => {
10265+
acc[key] = EndpointMessageResult.filterSensitiveLog(value);
10266+
return acc;
10267+
},
10268+
{}
10269+
)),
10270+
{};
1026410271
return acc;
1026510272
},
1026610273
{}

0 commit comments

Comments
 (0)