Skip to content

Commit 9b4122c

Browse files
committed
chore(clients): do not call filterSensitiveLog on exceptions
1 parent 01031d6 commit 9b4122c

File tree

3 files changed

+27
-53
lines changed

3 files changed

+27
-53
lines changed

clients/client-kinesis/src/models/models_0.ts

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,23 +2859,15 @@ export namespace SubscribeToShardEventStream {
28592859
if (obj.SubscribeToShardEvent !== undefined)
28602860
return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) };
28612861
if (obj.ResourceNotFoundException !== undefined)
2862-
return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
2863-
if (obj.ResourceInUseException !== undefined)
2864-
return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) };
2865-
if (obj.KMSDisabledException !== undefined)
2866-
return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) };
2867-
if (obj.KMSInvalidStateException !== undefined)
2868-
return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) };
2869-
if (obj.KMSAccessDeniedException !== undefined)
2870-
return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) };
2871-
if (obj.KMSNotFoundException !== undefined)
2872-
return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) };
2873-
if (obj.KMSOptInRequired !== undefined)
2874-
return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) };
2875-
if (obj.KMSThrottlingException !== undefined)
2876-
return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) };
2877-
if (obj.InternalFailureException !== undefined)
2878-
return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
2862+
return { ResourceNotFoundException: obj.ResourceNotFoundException };
2863+
if (obj.ResourceInUseException !== undefined) return { ResourceInUseException: obj.ResourceInUseException };
2864+
if (obj.KMSDisabledException !== undefined) return { KMSDisabledException: obj.KMSDisabledException };
2865+
if (obj.KMSInvalidStateException !== undefined) return { KMSInvalidStateException: obj.KMSInvalidStateException };
2866+
if (obj.KMSAccessDeniedException !== undefined) return { KMSAccessDeniedException: obj.KMSAccessDeniedException };
2867+
if (obj.KMSNotFoundException !== undefined) return { KMSNotFoundException: obj.KMSNotFoundException };
2868+
if (obj.KMSOptInRequired !== undefined) return { KMSOptInRequired: obj.KMSOptInRequired };
2869+
if (obj.KMSThrottlingException !== undefined) return { KMSThrottlingException: obj.KMSThrottlingException };
2870+
if (obj.InternalFailureException !== undefined) return { InternalFailureException: obj.InternalFailureException };
28792871
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
28802872
};
28812873
}

clients/client-lex-runtime-v2/src/models/models_0.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,22 +2377,16 @@ export namespace StartConversationResponseEventStream {
23772377
return { AudioResponseEvent: AudioResponseEvent.filterSensitiveLog(obj.AudioResponseEvent) };
23782378
if (obj.HeartbeatEvent !== undefined)
23792379
return { HeartbeatEvent: HeartbeatEvent.filterSensitiveLog(obj.HeartbeatEvent) };
2380-
if (obj.AccessDeniedException !== undefined)
2381-
return { AccessDeniedException: AccessDeniedException.filterSensitiveLog(obj.AccessDeniedException) };
2380+
if (obj.AccessDeniedException !== undefined) return { AccessDeniedException: obj.AccessDeniedException };
23822381
if (obj.ResourceNotFoundException !== undefined)
2383-
return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
2384-
if (obj.ValidationException !== undefined)
2385-
return { ValidationException: ValidationException.filterSensitiveLog(obj.ValidationException) };
2386-
if (obj.ThrottlingException !== undefined)
2387-
return { ThrottlingException: ThrottlingException.filterSensitiveLog(obj.ThrottlingException) };
2388-
if (obj.InternalServerException !== undefined)
2389-
return { InternalServerException: InternalServerException.filterSensitiveLog(obj.InternalServerException) };
2390-
if (obj.ConflictException !== undefined)
2391-
return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
2382+
return { ResourceNotFoundException: obj.ResourceNotFoundException };
2383+
if (obj.ValidationException !== undefined) return { ValidationException: obj.ValidationException };
2384+
if (obj.ThrottlingException !== undefined) return { ThrottlingException: obj.ThrottlingException };
2385+
if (obj.InternalServerException !== undefined) return { InternalServerException: obj.InternalServerException };
2386+
if (obj.ConflictException !== undefined) return { ConflictException: obj.ConflictException };
23922387
if (obj.DependencyFailedException !== undefined)
2393-
return { DependencyFailedException: DependencyFailedException.filterSensitiveLog(obj.DependencyFailedException) };
2394-
if (obj.BadGatewayException !== undefined)
2395-
return { BadGatewayException: BadGatewayException.filterSensitiveLog(obj.BadGatewayException) };
2388+
return { DependencyFailedException: obj.DependencyFailedException };
2389+
if (obj.BadGatewayException !== undefined) return { BadGatewayException: obj.BadGatewayException };
23962390
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
23972391
};
23982392
}

clients/client-transcribe-streaming/src/models/models_0.ts

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -686,18 +686,12 @@ export namespace MedicalTranscriptResultStream {
686686
export const filterSensitiveLog = (obj: MedicalTranscriptResultStream): any => {
687687
if (obj.TranscriptEvent !== undefined)
688688
return { TranscriptEvent: MedicalTranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
689-
if (obj.BadRequestException !== undefined)
690-
return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
691-
if (obj.LimitExceededException !== undefined)
692-
return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
693-
if (obj.InternalFailureException !== undefined)
694-
return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
695-
if (obj.ConflictException !== undefined)
696-
return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
689+
if (obj.BadRequestException !== undefined) return { BadRequestException: obj.BadRequestException };
690+
if (obj.LimitExceededException !== undefined) return { LimitExceededException: obj.LimitExceededException };
691+
if (obj.InternalFailureException !== undefined) return { InternalFailureException: obj.InternalFailureException };
692+
if (obj.ConflictException !== undefined) return { ConflictException: obj.ConflictException };
697693
if (obj.ServiceUnavailableException !== undefined)
698-
return {
699-
ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
700-
};
694+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
701695
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
702696
};
703697
}
@@ -1299,18 +1293,12 @@ export namespace TranscriptResultStream {
12991293
export const filterSensitiveLog = (obj: TranscriptResultStream): any => {
13001294
if (obj.TranscriptEvent !== undefined)
13011295
return { TranscriptEvent: TranscriptEvent.filterSensitiveLog(obj.TranscriptEvent) };
1302-
if (obj.BadRequestException !== undefined)
1303-
return { BadRequestException: BadRequestException.filterSensitiveLog(obj.BadRequestException) };
1304-
if (obj.LimitExceededException !== undefined)
1305-
return { LimitExceededException: LimitExceededException.filterSensitiveLog(obj.LimitExceededException) };
1306-
if (obj.InternalFailureException !== undefined)
1307-
return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
1308-
if (obj.ConflictException !== undefined)
1309-
return { ConflictException: ConflictException.filterSensitiveLog(obj.ConflictException) };
1296+
if (obj.BadRequestException !== undefined) return { BadRequestException: obj.BadRequestException };
1297+
if (obj.LimitExceededException !== undefined) return { LimitExceededException: obj.LimitExceededException };
1298+
if (obj.InternalFailureException !== undefined) return { InternalFailureException: obj.InternalFailureException };
1299+
if (obj.ConflictException !== undefined) return { ConflictException: obj.ConflictException };
13101300
if (obj.ServiceUnavailableException !== undefined)
1311-
return {
1312-
ServiceUnavailableException: ServiceUnavailableException.filterSensitiveLog(obj.ServiceUnavailableException),
1313-
};
1301+
return { ServiceUnavailableException: obj.ServiceUnavailableException };
13141302
if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
13151303
};
13161304
}

0 commit comments

Comments
 (0)