Skip to content

Commit 2c1b131

Browse files
committed
chore: call writeStructureFilterSensitiveLog from Union
1 parent 92b9368 commit 2c1b131

File tree

6 files changed

+182
-0
lines changed

6 files changed

+182
-0
lines changed

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export namespace AccessLog {
3434
return visitor._(value.$unknown[0], value.$unknown[1]);
3535
};
3636
export const filterSensitiveLog = (obj: AccessLog): any => {
37+
if (obj.file !== undefined)
38+
return { file: FileAccessLog.filterSensitiveLog(obj.file) };
3739
if (obj.$unknown !== undefined)
3840
return { [obj.$unknown[0]]: obj.$unknown[1] };
3941
};
@@ -133,6 +135,12 @@ export namespace Backend {
133135
return visitor._(value.$unknown[0], value.$unknown[1]);
134136
};
135137
export const filterSensitiveLog = (obj: Backend): any => {
138+
if (obj.virtualService !== undefined)
139+
return {
140+
virtualService: VirtualServiceBackend.filterSensitiveLog(
141+
obj.virtualService
142+
)
143+
};
136144
if (obj.$unknown !== undefined)
137145
return { [obj.$unknown[0]]: obj.$unknown[1] };
138146
};
@@ -1518,6 +1526,8 @@ export namespace GrpcRouteMetadataMatchMethod {
15181526
): any => {
15191527
if (obj.exact !== undefined) return { exact: obj.exact };
15201528
if (obj.prefix !== undefined) return { prefix: obj.prefix };
1529+
if (obj.range !== undefined)
1530+
return { range: MatchRange.filterSensitiveLog(obj.range) };
15211531
if (obj.regex !== undefined) return { regex: obj.regex };
15221532
if (obj.suffix !== undefined) return { suffix: obj.suffix };
15231533
if (obj.$unknown !== undefined)
@@ -1646,6 +1656,8 @@ export namespace HeaderMatchMethod {
16461656
export const filterSensitiveLog = (obj: HeaderMatchMethod): any => {
16471657
if (obj.exact !== undefined) return { exact: obj.exact };
16481658
if (obj.prefix !== undefined) return { prefix: obj.prefix };
1659+
if (obj.range !== undefined)
1660+
return { range: MatchRange.filterSensitiveLog(obj.range) };
16491661
if (obj.regex !== undefined) return { regex: obj.regex };
16501662
if (obj.suffix !== undefined) return { suffix: obj.suffix };
16511663
if (obj.$unknown !== undefined)
@@ -2883,6 +2895,12 @@ export namespace SdsSource {
28832895
return visitor._(value.$unknown[0], value.$unknown[1]);
28842896
};
28852897
export const filterSensitiveLog = (obj: SdsSource): any => {
2898+
if (obj.unixDomainSocket !== undefined)
2899+
return {
2900+
unixDomainSocket: SdsUnixDomainSocketSource.filterSensitiveLog(
2901+
obj.unixDomainSocket
2902+
)
2903+
};
28862904
if (obj.$unknown !== undefined)
28872905
return { [obj.$unknown[0]]: obj.$unknown[1] };
28882906
};
@@ -2946,6 +2964,14 @@ export namespace ServiceDiscovery {
29462964
return visitor._(value.$unknown[0], value.$unknown[1]);
29472965
};
29482966
export const filterSensitiveLog = (obj: ServiceDiscovery): any => {
2967+
if (obj.awsCloudMap !== undefined)
2968+
return {
2969+
awsCloudMap: AwsCloudMapServiceDiscovery.filterSensitiveLog(
2970+
obj.awsCloudMap
2971+
)
2972+
};
2973+
if (obj.dns !== undefined)
2974+
return { dns: DnsServiceDiscovery.filterSensitiveLog(obj.dns) };
29492975
if (obj.$unknown !== undefined)
29502976
return { [obj.$unknown[0]]: obj.$unknown[1] };
29512977
};
@@ -3239,6 +3265,14 @@ export namespace TlsValidationContextTrust {
32393265
return visitor._(value.$unknown[0], value.$unknown[1]);
32403266
};
32413267
export const filterSensitiveLog = (obj: TlsValidationContextTrust): any => {
3268+
if (obj.acm !== undefined)
3269+
return { acm: TlsValidationContextAcmTrust.filterSensitiveLog(obj.acm) };
3270+
if (obj.file !== undefined)
3271+
return {
3272+
file: TlsValidationContextFileTrust.filterSensitiveLog(obj.file)
3273+
};
3274+
if (obj.sds !== undefined)
3275+
return { sds: TlsValidationContextSdsTrust.filterSensitiveLog(obj.sds) };
32423276
if (obj.$unknown !== undefined)
32433277
return { [obj.$unknown[0]]: obj.$unknown[1] };
32443278
};
@@ -4063,6 +4097,18 @@ export namespace VirtualServiceProvider {
40634097
return visitor._(value.$unknown[0], value.$unknown[1]);
40644098
};
40654099
export const filterSensitiveLog = (obj: VirtualServiceProvider): any => {
4100+
if (obj.virtualNode !== undefined)
4101+
return {
4102+
virtualNode: VirtualNodeServiceProvider.filterSensitiveLog(
4103+
obj.virtualNode
4104+
)
4105+
};
4106+
if (obj.virtualRouter !== undefined)
4107+
return {
4108+
virtualRouter: VirtualRouterServiceProvider.filterSensitiveLog(
4109+
obj.virtualRouter
4110+
)
4111+
};
40664112
if (obj.$unknown !== undefined)
40674113
return { [obj.$unknown[0]]: obj.$unknown[1] };
40684114
};

clients/client-groundstation/models/index.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,40 @@ export namespace ConfigTypeData {
312312
return visitor._(value.$unknown[0], value.$unknown[1]);
313313
};
314314
export const filterSensitiveLog = (obj: ConfigTypeData): any => {
315+
if (obj.antennaDownlinkConfig !== undefined)
316+
return {
317+
antennaDownlinkConfig: AntennaDownlinkConfig.filterSensitiveLog(
318+
obj.antennaDownlinkConfig
319+
)
320+
};
321+
if (obj.antennaDownlinkDemodDecodeConfig !== undefined)
322+
return {
323+
antennaDownlinkDemodDecodeConfig: AntennaDownlinkDemodDecodeConfig.filterSensitiveLog(
324+
obj.antennaDownlinkDemodDecodeConfig
325+
)
326+
};
327+
if (obj.antennaUplinkConfig !== undefined)
328+
return {
329+
antennaUplinkConfig: AntennaUplinkConfig.filterSensitiveLog(
330+
obj.antennaUplinkConfig
331+
)
332+
};
333+
if (obj.dataflowEndpointConfig !== undefined)
334+
return {
335+
dataflowEndpointConfig: DataflowEndpointConfig.filterSensitiveLog(
336+
obj.dataflowEndpointConfig
337+
)
338+
};
339+
if (obj.trackingConfig !== undefined)
340+
return {
341+
trackingConfig: TrackingConfig.filterSensitiveLog(obj.trackingConfig)
342+
};
343+
if (obj.uplinkEchoConfig !== undefined)
344+
return {
345+
uplinkEchoConfig: UplinkEchoConfig.filterSensitiveLog(
346+
obj.uplinkEchoConfig
347+
)
348+
};
315349
if (obj.$unknown !== undefined)
316350
return { [obj.$unknown[0]]: obj.$unknown[1] };
317351
};

clients/client-kinesis/models/index.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,6 +2606,66 @@ export namespace SubscribeToShardEventStream {
26062606
return visitor._(value.$unknown[0], value.$unknown[1]);
26072607
};
26082608
export const filterSensitiveLog = (obj: SubscribeToShardEventStream): any => {
2609+
if (obj.InternalFailureException !== undefined)
2610+
return {
2611+
InternalFailureException: InternalFailureException.filterSensitiveLog(
2612+
obj.InternalFailureException
2613+
)
2614+
};
2615+
if (obj.KMSAccessDeniedException !== undefined)
2616+
return {
2617+
KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(
2618+
obj.KMSAccessDeniedException
2619+
)
2620+
};
2621+
if (obj.KMSDisabledException !== undefined)
2622+
return {
2623+
KMSDisabledException: KMSDisabledException.filterSensitiveLog(
2624+
obj.KMSDisabledException
2625+
)
2626+
};
2627+
if (obj.KMSInvalidStateException !== undefined)
2628+
return {
2629+
KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(
2630+
obj.KMSInvalidStateException
2631+
)
2632+
};
2633+
if (obj.KMSNotFoundException !== undefined)
2634+
return {
2635+
KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(
2636+
obj.KMSNotFoundException
2637+
)
2638+
};
2639+
if (obj.KMSOptInRequired !== undefined)
2640+
return {
2641+
KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(
2642+
obj.KMSOptInRequired
2643+
)
2644+
};
2645+
if (obj.KMSThrottlingException !== undefined)
2646+
return {
2647+
KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(
2648+
obj.KMSThrottlingException
2649+
)
2650+
};
2651+
if (obj.ResourceInUseException !== undefined)
2652+
return {
2653+
ResourceInUseException: ResourceInUseException.filterSensitiveLog(
2654+
obj.ResourceInUseException
2655+
)
2656+
};
2657+
if (obj.ResourceNotFoundException !== undefined)
2658+
return {
2659+
ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(
2660+
obj.ResourceNotFoundException
2661+
)
2662+
};
2663+
if (obj.SubscribeToShardEvent !== undefined)
2664+
return {
2665+
SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(
2666+
obj.SubscribeToShardEvent
2667+
)
2668+
};
26092669
if (obj.$unknown !== undefined)
26102670
return { [obj.$unknown[0]]: obj.$unknown[1] };
26112671
};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,8 @@ export namespace Value {
13711371
if (obj.isNull !== undefined) return { isNull: obj.isNull };
13721372
if (obj.realValue !== undefined) return { realValue: obj.realValue };
13731373
if (obj.stringValue !== undefined) return { stringValue: obj.stringValue };
1374+
if (obj.structValue !== undefined)
1375+
return { structValue: StructValue.filterSensitiveLog(obj.structValue) };
13741376
if (obj.$unknown !== undefined)
13751377
return { [obj.$unknown[0]]: obj.$unknown[1] };
13761378
};

clients/client-s3/models/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10023,6 +10023,16 @@ export namespace SelectObjectContentEventStream {
1002310023
export const filterSensitiveLog = (
1002410024
obj: SelectObjectContentEventStream
1002510025
): any => {
10026+
if (obj.Cont !== undefined)
10027+
return { Cont: ContinuationEvent.filterSensitiveLog(obj.Cont) };
10028+
if (obj.End !== undefined)
10029+
return { End: EndEvent.filterSensitiveLog(obj.End) };
10030+
if (obj.Progress !== undefined)
10031+
return { Progress: ProgressEvent.filterSensitiveLog(obj.Progress) };
10032+
if (obj.Records !== undefined)
10033+
return { Records: RecordsEvent.filterSensitiveLog(obj.Records) };
10034+
if (obj.Stats !== undefined)
10035+
return { Stats: StatsEvent.filterSensitiveLog(obj.Stats) };
1002610036
if (obj.$unknown !== undefined)
1002710037
return { [obj.$unknown[0]]: obj.$unknown[1] };
1002810038
};

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export namespace AudioStream {
7979
return visitor._(value.$unknown[0], value.$unknown[1]);
8080
};
8181
export const filterSensitiveLog = (obj: AudioStream): any => {
82+
if (obj.AudioEvent !== undefined)
83+
return { AudioEvent: AudioEvent.filterSensitiveLog(obj.AudioEvent) };
8284
if (obj.$unknown !== undefined)
8385
return { [obj.$unknown[0]]: obj.$unknown[1] };
8486
};
@@ -512,6 +514,34 @@ export namespace TranscriptResultStream {
512514
return visitor._(value.$unknown[0], value.$unknown[1]);
513515
};
514516
export const filterSensitiveLog = (obj: TranscriptResultStream): any => {
517+
if (obj.BadRequestException !== undefined)
518+
return {
519+
BadRequestException: BadRequestException.filterSensitiveLog(
520+
obj.BadRequestException
521+
)
522+
};
523+
if (obj.ConflictException !== undefined)
524+
return {
525+
ConflictException: ConflictException.filterSensitiveLog(
526+
obj.ConflictException
527+
)
528+
};
529+
if (obj.InternalFailureException !== undefined)
530+
return {
531+
InternalFailureException: InternalFailureException.filterSensitiveLog(
532+
obj.InternalFailureException
533+
)
534+
};
535+
if (obj.LimitExceededException !== undefined)
536+
return {
537+
LimitExceededException: LimitExceededException.filterSensitiveLog(
538+
obj.LimitExceededException
539+
)
540+
};
541+
if (obj.TranscriptEvent !== undefined)
542+
return {
543+
TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent)
544+
};
515545
if (obj.$unknown !== undefined)
516546
return { [obj.$unknown[0]]: obj.$unknown[1] };
517547
};

0 commit comments

Comments
 (0)