Skip to content

Commit c1eee3e

Browse files
committed
chore: return $undefined if no value matched in filterSensitiveLog
1 parent ce71530 commit c1eee3e

File tree

6 files changed

+48
-20
lines changed

6 files changed

+48
-20
lines changed

clients/client-app-mesh/models/index.ts

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export namespace AccessLog {
3333
if (value.file !== undefined) return visitor.file(value.file);
3434
return visitor._(value.$unknown[0], value.$unknown[1]);
3535
};
36-
export const filterSensitiveLog = (obj: AccessLog): any => ({});
36+
export const filterSensitiveLog = (obj: AccessLog): any => {
37+
return Object.fromEntries([obj.$unknown]);
38+
};
3739
}
3840

3941
/**
@@ -129,7 +131,9 @@ export namespace Backend {
129131
return visitor.virtualService(value.virtualService);
130132
return visitor._(value.$unknown[0], value.$unknown[1]);
131133
};
132-
export const filterSensitiveLog = (obj: Backend): any => ({});
134+
export const filterSensitiveLog = (obj: Backend): any => {
135+
return Object.fromEntries([obj.$unknown]);
136+
};
133137
}
134138

135139
/**
@@ -1509,7 +1513,9 @@ export namespace GrpcRouteMetadataMatchMethod {
15091513
};
15101514
export const filterSensitiveLog = (
15111515
obj: GrpcRouteMetadataMatchMethod
1512-
): any => ({});
1516+
): any => {
1517+
return Object.fromEntries([obj.$unknown]);
1518+
};
15131519
}
15141520

15151521
export interface GrpcTimeout {
@@ -1630,7 +1636,9 @@ export namespace HeaderMatchMethod {
16301636
if (value.suffix !== undefined) return visitor.suffix(value.suffix);
16311637
return visitor._(value.$unknown[0], value.$unknown[1]);
16321638
};
1633-
export const filterSensitiveLog = (obj: HeaderMatchMethod): any => ({});
1639+
export const filterSensitiveLog = (obj: HeaderMatchMethod): any => {
1640+
return Object.fromEntries([obj.$unknown]);
1641+
};
16341642
}
16351643

16361644
/**
@@ -2862,7 +2870,9 @@ export namespace SdsSource {
28622870
return visitor.unixDomainSocket(value.unixDomainSocket);
28632871
return visitor._(value.$unknown[0], value.$unknown[1]);
28642872
};
2865-
export const filterSensitiveLog = (obj: SdsSource): any => ({});
2873+
export const filterSensitiveLog = (obj: SdsSource): any => {
2874+
return Object.fromEntries([obj.$unknown]);
2875+
};
28662876
}
28672877

28682878
export interface SdsUnixDomainSocketSource {
@@ -2922,7 +2932,9 @@ export namespace ServiceDiscovery {
29222932
if (value.dns !== undefined) return visitor.dns(value.dns);
29232933
return visitor._(value.$unknown[0], value.$unknown[1]);
29242934
};
2925-
export const filterSensitiveLog = (obj: ServiceDiscovery): any => ({});
2935+
export const filterSensitiveLog = (obj: ServiceDiscovery): any => {
2936+
return Object.fromEntries([obj.$unknown]);
2937+
};
29262938
}
29272939

29282940
/**
@@ -3212,9 +3224,9 @@ export namespace TlsValidationContextTrust {
32123224
if (value.sds !== undefined) return visitor.sds(value.sds);
32133225
return visitor._(value.$unknown[0], value.$unknown[1]);
32143226
};
3215-
export const filterSensitiveLog = (
3216-
obj: TlsValidationContextTrust
3217-
): any => ({});
3227+
export const filterSensitiveLog = (obj: TlsValidationContextTrust): any => {
3228+
return Object.fromEntries([obj.$unknown]);
3229+
};
32183230
}
32193231

32203232
/**
@@ -4035,7 +4047,9 @@ export namespace VirtualServiceProvider {
40354047
return visitor.virtualRouter(value.virtualRouter);
40364048
return visitor._(value.$unknown[0], value.$unknown[1]);
40374049
};
4038-
export const filterSensitiveLog = (obj: VirtualServiceProvider): any => ({});
4050+
export const filterSensitiveLog = (obj: VirtualServiceProvider): any => {
4051+
return Object.fromEntries([obj.$unknown]);
4052+
};
40394053
}
40404054

40414055
/**

clients/client-groundstation/models/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ export namespace ConfigTypeData {
311311
return visitor.uplinkEchoConfig(value.uplinkEchoConfig);
312312
return visitor._(value.$unknown[0], value.$unknown[1]);
313313
};
314-
export const filterSensitiveLog = (obj: ConfigTypeData): any => ({});
314+
export const filterSensitiveLog = (obj: ConfigTypeData): any => {
315+
return Object.fromEntries([obj.$unknown]);
316+
};
315317
}
316318

317319
/**

clients/client-kinesis/models/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,9 +2605,9 @@ export namespace SubscribeToShardEventStream {
26052605
return visitor.SubscribeToShardEvent(value.SubscribeToShardEvent);
26062606
return visitor._(value.$unknown[0], value.$unknown[1]);
26072607
};
2608-
export const filterSensitiveLog = (
2609-
obj: SubscribeToShardEventStream
2610-
): any => ({});
2608+
export const filterSensitiveLog = (obj: SubscribeToShardEventStream): any => {
2609+
return Object.fromEntries([obj.$unknown]);
2610+
};
26112611
}
26122612

26132613
export interface SubscribeToShardInput {

clients/client-rds-data/models/index.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export namespace ArrayValue {
104104
return visitor.stringValues(value.stringValues);
105105
return visitor._(value.$unknown[0], value.$unknown[1]);
106106
};
107-
export const filterSensitiveLog = (obj: ArrayValue): any => ({});
107+
export const filterSensitiveLog = (obj: ArrayValue): any => {
108+
return Object.fromEntries([obj.$unknown]);
109+
};
108110
}
109111

110112
/**
@@ -742,7 +744,9 @@ export namespace Field {
742744
return visitor.stringValue(value.stringValue);
743745
return visitor._(value.$unknown[0], value.$unknown[1]);
744746
};
745-
export const filterSensitiveLog = (obj: Field): any => ({});
747+
export const filterSensitiveLog = (obj: Field): any => {
748+
return Object.fromEntries([obj.$unknown]);
749+
};
746750
}
747751

748752
/**
@@ -1349,5 +1353,7 @@ export namespace Value {
13491353
return visitor.structValue(value.structValue);
13501354
return visitor._(value.$unknown[0], value.$unknown[1]);
13511355
};
1352-
export const filterSensitiveLog = (obj: Value): any => ({});
1356+
export const filterSensitiveLog = (obj: Value): any => {
1357+
return Object.fromEntries([obj.$unknown]);
1358+
};
13531359
}

clients/client-s3/models/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10022,7 +10022,9 @@ export namespace SelectObjectContentEventStream {
1002210022
};
1002310023
export const filterSensitiveLog = (
1002410024
obj: SelectObjectContentEventStream
10025-
): any => ({});
10025+
): any => {
10026+
return Object.fromEntries([obj.$unknown]);
10027+
};
1002610028
}
1002710029

1002810030
export interface SelectObjectContentOutput {

clients/client-transcribe-streaming/models/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ export namespace AudioStream {
7878
return visitor.AudioEvent(value.AudioEvent);
7979
return visitor._(value.$unknown[0], value.$unknown[1]);
8080
};
81-
export const filterSensitiveLog = (obj: AudioStream): any => ({});
81+
export const filterSensitiveLog = (obj: AudioStream): any => {
82+
return Object.fromEntries([obj.$unknown]);
83+
};
8284
}
8385

8486
/**
@@ -508,5 +510,7 @@ export namespace TranscriptResultStream {
508510
return visitor.TranscriptEvent(value.TranscriptEvent);
509511
return visitor._(value.$unknown[0], value.$unknown[1]);
510512
};
511-
export const filterSensitiveLog = (obj: TranscriptResultStream): any => ({});
513+
export const filterSensitiveLog = (obj: TranscriptResultStream): any => {
514+
return Object.fromEntries([obj.$unknown]);
515+
};
512516
}

0 commit comments

Comments
 (0)