Skip to content

Commit f33bee5

Browse files
committed
chore: codegen to check sensitive trait in shape members
1 parent af4b039 commit f33bee5

File tree

7 files changed

+36
-21
lines changed

7 files changed

+36
-21
lines changed

clients/client-chime/models/index.ts

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ export namespace AssociatePhoneNumbersWithVoiceConnectorGroupRequest {
213213
export const filterSensitiveLog = (
214214
obj: AssociatePhoneNumbersWithVoiceConnectorGroupRequest
215215
): any => ({
216-
...obj
216+
...obj,
217+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
217218
});
218219
export const isa = (
219220
o: any
@@ -268,7 +269,8 @@ export namespace AssociatePhoneNumbersWithVoiceConnectorRequest {
268269
export const filterSensitiveLog = (
269270
obj: AssociatePhoneNumbersWithVoiceConnectorRequest
270271
): any => ({
271-
...obj
272+
...obj,
273+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
272274
});
273275
export const isa = (
274276
o: any
@@ -1078,7 +1080,8 @@ export namespace CreatePhoneNumberOrderRequest {
10781080
export const filterSensitiveLog = (
10791081
obj: CreatePhoneNumberOrderRequest
10801082
): any => ({
1081-
...obj
1083+
...obj,
1084+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
10821085
});
10831086
export const isa = (o: any): o is CreatePhoneNumberOrderRequest =>
10841087
__isa(o, "CreatePhoneNumberOrderRequest");
@@ -1625,7 +1628,8 @@ export namespace DeleteVoiceConnectorTerminationCredentialsRequest {
16251628
export const filterSensitiveLog = (
16261629
obj: DeleteVoiceConnectorTerminationCredentialsRequest
16271630
): any => ({
1628-
...obj
1631+
...obj,
1632+
...(obj.Usernames && { Usernames: SENSITIVE_STRING })
16291633
});
16301634
export const isa = (
16311635
o: any
@@ -1705,7 +1709,8 @@ export namespace DisassociatePhoneNumbersFromVoiceConnectorGroupRequest {
17051709
export const filterSensitiveLog = (
17061710
obj: DisassociatePhoneNumbersFromVoiceConnectorGroupRequest
17071711
): any => ({
1708-
...obj
1712+
...obj,
1713+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
17091714
});
17101715
export const isa = (
17111716
o: any
@@ -1755,7 +1760,8 @@ export namespace DisassociatePhoneNumbersFromVoiceConnectorRequest {
17551760
export const filterSensitiveLog = (
17561761
obj: DisassociatePhoneNumbersFromVoiceConnectorRequest
17571762
): any => ({
1758-
...obj
1763+
...obj,
1764+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
17591765
});
17601766
export const isa = (
17611767
o: any
@@ -2719,7 +2725,8 @@ export interface InviteUsersRequest {
27192725

27202726
export namespace InviteUsersRequest {
27212727
export const filterSensitiveLog = (obj: InviteUsersRequest): any => ({
2722-
...obj
2728+
...obj,
2729+
...(obj.UserEmailList && { UserEmailList: SENSITIVE_STRING })
27232730
});
27242731
export const isa = (o: any): o is InviteUsersRequest =>
27252732
__isa(o, "InviteUsersRequest");
@@ -3328,7 +3335,8 @@ export namespace ListVoiceConnectorTerminationCredentialsResponse {
33283335
export const filterSensitiveLog = (
33293336
obj: ListVoiceConnectorTerminationCredentialsResponse
33303337
): any => ({
3331-
...obj
3338+
...obj,
3339+
...(obj.Usernames && { Usernames: SENSITIVE_STRING })
33323340
});
33333341
export const isa = (
33343342
o: any
@@ -4625,7 +4633,8 @@ export namespace SearchAvailablePhoneNumbersResponse {
46254633
export const filterSensitiveLog = (
46264634
obj: SearchAvailablePhoneNumbersResponse
46274635
): any => ({
4628-
...obj
4636+
...obj,
4637+
...(obj.E164PhoneNumbers && { E164PhoneNumbers: SENSITIVE_STRING })
46294638
});
46304639
export const isa = (o: any): o is SearchAvailablePhoneNumbersResponse =>
46314640
__isa(o, "SearchAvailablePhoneNumbersResponse");

clients/client-codestar/models/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,8 @@ export namespace Toolchain {
13091309
...obj,
13101310
...(obj.source && {
13111311
source: ToolchainSource.filterSensitiveLog(obj.source)
1312-
})
1312+
}),
1313+
...(obj.stackParameters && { stackParameters: SENSITIVE_STRING })
13131314
});
13141315
export const isa = (o: any): o is Toolchain => __isa(o, "Toolchain");
13151316
}

clients/client-frauddetector/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ export interface GetPredictionRequest {
11161116
export namespace GetPredictionRequest {
11171117
export const filterSensitiveLog = (obj: GetPredictionRequest): any => ({
11181118
...obj,
1119+
...(obj.eventAttributes && { eventAttributes: SENSITIVE_STRING }),
11191120
...(obj.externalModelEndpointDataBlobs && {
11201121
externalModelEndpointDataBlobs: SENSITIVE_STRING
11211122
})

clients/client-personalize-runtime/models/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export namespace GetPersonalizedRankingRequest {
3737
export const filterSensitiveLog = (
3838
obj: GetPersonalizedRankingRequest
3939
): any => ({
40-
...obj
40+
...obj,
41+
...(obj.context && { context: SENSITIVE_STRING })
4142
});
4243
export const isa = (o: any): o is GetPersonalizedRankingRequest =>
4344
__isa(o, "GetPersonalizedRankingRequest");
@@ -101,7 +102,8 @@ export interface GetRecommendationsRequest {
101102

102103
export namespace GetRecommendationsRequest {
103104
export const filterSensitiveLog = (obj: GetRecommendationsRequest): any => ({
104-
...obj
105+
...obj,
106+
...(obj.context && { context: SENSITIVE_STRING })
105107
});
106108
export const isa = (o: any): o is GetRecommendationsRequest =>
107109
__isa(o, "GetRecommendationsRequest");

clients/client-polly/models/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ export namespace StartSpeechSynthesisTaskInput {
915915
export const filterSensitiveLog = (
916916
obj: StartSpeechSynthesisTaskInput
917917
): any => ({
918-
...obj
918+
...obj,
919+
...(obj.LexiconNames && { LexiconNames: SENSITIVE_STRING })
919920
});
920921
export const isa = (o: any): o is StartSpeechSynthesisTaskInput =>
921922
__isa(o, "StartSpeechSynthesisTaskInput");
@@ -1039,7 +1040,8 @@ export interface SynthesisTask {
10391040

10401041
export namespace SynthesisTask {
10411042
export const filterSensitiveLog = (obj: SynthesisTask): any => ({
1042-
...obj
1043+
...obj,
1044+
...(obj.LexiconNames && { LexiconNames: SENSITIVE_STRING })
10431045
});
10441046
export const isa = (o: any): o is SynthesisTask => __isa(o, "SynthesisTask");
10451047
}
@@ -1139,7 +1141,8 @@ export interface SynthesizeSpeechInput {
11391141

11401142
export namespace SynthesizeSpeechInput {
11411143
export const filterSensitiveLog = (obj: SynthesizeSpeechInput): any => ({
1142-
...obj
1144+
...obj,
1145+
...(obj.LexiconNames && { LexiconNames: SENSITIVE_STRING })
11431146
});
11441147
export const isa = (o: any): o is SynthesizeSpeechInput =>
11451148
__isa(o, "SynthesizeSpeechInput");

clients/client-transcribe-streaming/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@
1313
"remove-js": "rimraf *.js && rimraf ./commands/*.js && rimraf ./models/*.js && rimraf ./protocols/*.js",
1414
"remove-maps": "rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./models/*.js.map && rimraf ./protocols/*.js.map",
1515
"test": "jest --coverage --passWithNoTests",
16-
"test:integration": "jest --config jest.integ.config.js",
17-
"build:cjs": "tsc",
1816
"build:es": "tsc -p tsconfig.es.json",
19-
"build": "yarn build:cjs && yarn build:es",
20-
"postbuild": "cp test/speech.wav dist/cjs/test"
17+
"build": "yarn build:cjs && yarn build:es"
2118
},
2219
"main": "./dist/cjs/index.js",
2320
"types": "./types/index.d.ts",
@@ -82,4 +79,4 @@
8279
"url": "https://aws.amazon.com/javascript/"
8380
},
8481
"license": "Apache-2.0"
85-
}
82+
}

clients/client-workdocs/models/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,9 @@ export interface DocumentVersionMetadata {
19351935

19361936
export namespace DocumentVersionMetadata {
19371937
export const filterSensitiveLog = (obj: DocumentVersionMetadata): any => ({
1938-
...obj
1938+
...obj,
1939+
...(obj.Source && { Source: SENSITIVE_STRING }),
1940+
...(obj.Thumbnail && { Thumbnail: SENSITIVE_STRING })
19391941
});
19401942
export const isa = (o: any): o is DocumentVersionMetadata =>
19411943
__isa(o, "DocumentVersionMetadata");

0 commit comments

Comments
 (0)