Skip to content

Commit 3d64c3f

Browse files
committed
chore: codegen filterSensitiveLog for Collection inside Map
1 parent 9e6b2b0 commit 3d64c3f

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
lines changed

clients/client-device-farm/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4853,7 +4853,7 @@ export namespace ListUniqueProblemsResult {
48534853
...(obj.uniqueProblems && {
48544854
uniqueProblems: Object.entries(obj.uniqueProblems).reduce(
48554855
(acc: any, [key, value]: [string, Array<UniqueProblem>]) => {
4856-
acc[key] = value;
4856+
acc[key] = value.map(UniqueProblem.filterSensitiveLog);
48574857
return acc;
48584858
},
48594859
{}

clients/client-dynamodb/models/index.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,15 @@ export namespace BatchGetItemOutput {
10871087
acc: any,
10881088
[key, value]: [string, Array<{ [key: string]: AttributeValue }>]
10891089
) => {
1090-
acc[key] = value;
1090+
acc[key] = value.map(item =>
1091+
Object.entries(item).reduce(
1092+
(acc: any, [key, value]: [string, AttributeValue]) => {
1093+
acc[key] = AttributeValue.filterSensitiveLog(value);
1094+
return acc;
1095+
},
1096+
{}
1097+
)
1098+
);
10911099
return acc;
10921100
},
10931101
{}
@@ -1186,7 +1194,7 @@ export namespace BatchWriteItemInput {
11861194
...(obj.RequestItems && {
11871195
RequestItems: Object.entries(obj.RequestItems).reduce(
11881196
(acc: any, [key, value]: [string, Array<WriteRequest>]) => {
1189-
acc[key] = value;
1197+
acc[key] = value.map(WriteRequest.filterSensitiveLog);
11901198
return acc;
11911199
},
11921200
{}
@@ -1296,7 +1304,7 @@ export namespace BatchWriteItemOutput {
12961304
...(obj.ItemCollectionMetrics && {
12971305
ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce(
12981306
(acc: any, [key, value]: [string, Array<ItemCollectionMetrics>]) => {
1299-
acc[key] = value;
1307+
acc[key] = value.map(ItemCollectionMetrics.filterSensitiveLog);
13001308
return acc;
13011309
},
13021310
{}
@@ -1305,7 +1313,7 @@ export namespace BatchWriteItemOutput {
13051313
...(obj.UnprocessedItems && {
13061314
UnprocessedItems: Object.entries(obj.UnprocessedItems).reduce(
13071315
(acc: any, [key, value]: [string, Array<WriteRequest>]) => {
1308-
acc[key] = value;
1316+
acc[key] = value.map(WriteRequest.filterSensitiveLog);
13091317
return acc;
13101318
},
13111319
{}
@@ -9014,7 +9022,7 @@ export namespace TransactWriteItemsOutput {
90149022
...(obj.ItemCollectionMetrics && {
90159023
ItemCollectionMetrics: Object.entries(obj.ItemCollectionMetrics).reduce(
90169024
(acc: any, [key, value]: [string, Array<ItemCollectionMetrics>]) => {
9017-
acc[key] = value;
9025+
acc[key] = value.map(ItemCollectionMetrics.filterSensitiveLog);
90189026
return acc;
90199027
},
90209028
{}

clients/client-forecastquery/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export namespace Forecast {
5959
...(obj.Predictions && {
6060
Predictions: Object.entries(obj.Predictions).reduce(
6161
(acc: any, [key, value]: [string, Array<DataPoint>]) => {
62-
acc[key] = value;
62+
acc[key] = value.map(DataPoint.filterSensitiveLog);
6363
return acc;
6464
},
6565
{}

clients/client-lightsail/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ export namespace CreateInstancesFromSnapshotRequest {
15391539
...(obj.attachedDiskMapping && {
15401540
attachedDiskMapping: Object.entries(obj.attachedDiskMapping).reduce(
15411541
(acc: any, [key, value]: [string, Array<DiskMap>]) => {
1542-
acc[key] = value;
1542+
acc[key] = value.map(DiskMap.filterSensitiveLog);
15431543
return acc;
15441544
},
15451545
{}

clients/client-pinpoint-email/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1658,7 +1658,7 @@ export namespace GetBlacklistReportsResponse {
16581658
...(obj.BlacklistReport && {
16591659
BlacklistReport: Object.entries(obj.BlacklistReport).reduce(
16601660
(acc: any, [key, value]: [string, Array<BlacklistEntry>]) => {
1661-
acc[key] = value;
1661+
acc[key] = value.map(BlacklistEntry.filterSensitiveLog);
16621662
return acc;
16631663
},
16641664
{}

clients/client-service-catalog/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7141,7 +7141,7 @@ export namespace SearchProductsOutput {
71417141
acc: any,
71427142
[key, value]: [string, Array<ProductViewAggregationValue>]
71437143
) => {
7144-
acc[key] = value;
7144+
acc[key] = value.map(ProductViewAggregationValue.filterSensitiveLog);
71457145
return acc;
71467146
},
71477147
{}

clients/client-sesv2/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ export namespace GetBlacklistReportsResponse {
18771877
...(obj.BlacklistReport && {
18781878
BlacklistReport: Object.entries(obj.BlacklistReport).reduce(
18791879
(acc: any, [key, value]: [string, Array<BlacklistEntry>]) => {
1880-
acc[key] = value;
1880+
acc[key] = value.map(BlacklistEntry.filterSensitiveLog);
18811881
return acc;
18821882
},
18831883
{}

clients/client-xray/models/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2615,7 +2615,7 @@ export namespace TraceSummary {
26152615
...(obj.Annotations && {
26162616
Annotations: Object.entries(obj.Annotations).reduce(
26172617
(acc: any, [key, value]: [string, Array<ValueWithServiceIds>]) => {
2618-
acc[key] = value;
2618+
acc[key] = value.map(ValueWithServiceIds.filterSensitiveLog);
26192619
return acc;
26202620
},
26212621
{}

0 commit comments

Comments
 (0)