Skip to content

Commit 4881c96

Browse files
authored
chore(codegen): update codegen after merging PR 3371 (#3799)
1 parent c2d8522 commit 4881c96

File tree

11 files changed

+44
-11
lines changed

11 files changed

+44
-11
lines changed

clients/client-billingconductor/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3789,8 +3789,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
37893789
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
37903790
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
37913791

3792-
const sanitizeErrorCode = (rawValue: string): string => {
3792+
const sanitizeErrorCode = (rawValue: string | number): string => {
37933793
let cleanValue = rawValue;
3794+
if (typeof cleanValue === "number") {
3795+
cleanValue = cleanValue.toString();
3796+
}
37943797
if (cleanValue.indexOf(":") >= 0) {
37953798
cleanValue = cleanValue.split(":")[0];
37963799
}

clients/client-chime-sdk-media-pipelines/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
12031203
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
12041204
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
12051205

1206-
const sanitizeErrorCode = (rawValue: string): string => {
1206+
const sanitizeErrorCode = (rawValue: string | number): string => {
12071207
let cleanValue = rawValue;
1208+
if (typeof cleanValue === "number") {
1209+
cleanValue = cleanValue.toString();
1210+
}
12081211
if (cleanValue.indexOf(":") >= 0) {
12091212
cleanValue = cleanValue.split(":")[0];
12101213
}

clients/client-connectcampaigns/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,8 +2584,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
25842584
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
25852585
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
25862586

2587-
const sanitizeErrorCode = (rawValue: string): string => {
2587+
const sanitizeErrorCode = (rawValue: string | number): string => {
25882588
let cleanValue = rawValue;
2589+
if (typeof cleanValue === "number") {
2590+
cleanValue = cleanValue.toString();
2591+
}
25892592
if (cleanValue.indexOf(":") >= 0) {
25902593
cleanValue = cleanValue.split(":")[0];
25912594
}

clients/client-emr-serverless/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2008,8 +2008,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
20082008
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
20092009
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
20102010

2011-
const sanitizeErrorCode = (rawValue: string): string => {
2011+
const sanitizeErrorCode = (rawValue: string | number): string => {
20122012
let cleanValue = rawValue;
2013+
if (typeof cleanValue === "number") {
2014+
cleanValue = cleanValue.toString();
2015+
}
20132016
if (cleanValue.indexOf(":") >= 0) {
20142017
cleanValue = cleanValue.split(":")[0];
20152018
}

clients/client-gamesparks/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3764,8 +3764,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
37643764
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
37653765
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
37663766

3767-
const sanitizeErrorCode = (rawValue: string): string => {
3767+
const sanitizeErrorCode = (rawValue: string | number): string => {
37683768
let cleanValue = rawValue;
3769+
if (typeof cleanValue === "number") {
3770+
cleanValue = cleanValue.toString();
3771+
}
37693772
if (cleanValue.indexOf(":") >= 0) {
37703773
cleanValue = cleanValue.split(":")[0];
37713774
}

clients/client-ivschat/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,8 +1451,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
14511451
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
14521452
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
14531453

1454-
const sanitizeErrorCode = (rawValue: string): string => {
1454+
const sanitizeErrorCode = (rawValue: string | number): string => {
14551455
let cleanValue = rawValue;
1456+
if (typeof cleanValue === "number") {
1457+
cleanValue = cleanValue.toString();
1458+
}
14561459
if (cleanValue.indexOf(":") >= 0) {
14571460
cleanValue = cleanValue.split(":")[0];
14581461
}

clients/client-keyspaces/src/protocols/Aws_json1_0.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,8 +1762,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
17621762
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
17631763
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
17641764

1765-
const sanitizeErrorCode = (rawValue: string): string => {
1765+
const sanitizeErrorCode = (rawValue: string | number): string => {
17661766
let cleanValue = rawValue;
1767+
if (typeof cleanValue === "number") {
1768+
cleanValue = cleanValue.toString();
1769+
}
17671770
if (cleanValue.indexOf(":") >= 0) {
17681771
cleanValue = cleanValue.split(":")[0];
17691772
}

clients/client-m2/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4342,8 +4342,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
43424342
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
43434343
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
43444344

4345-
const sanitizeErrorCode = (rawValue: string): string => {
4345+
const sanitizeErrorCode = (rawValue: string | number): string => {
43464346
let cleanValue = rawValue;
4347+
if (typeof cleanValue === "number") {
4348+
cleanValue = cleanValue.toString();
4349+
}
43474350
if (cleanValue.indexOf(":") >= 0) {
43484351
cleanValue = cleanValue.split(":")[0];
43494352
}

clients/client-pinpoint-sms-voice-v2/src/protocols/Aws_json1_0.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5341,8 +5341,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
53415341
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
53425342
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
53435343

5344-
const sanitizeErrorCode = (rawValue: string): string => {
5344+
const sanitizeErrorCode = (rawValue: string | number): string => {
53455345
let cleanValue = rawValue;
5346+
if (typeof cleanValue === "number") {
5347+
cleanValue = cleanValue.toString();
5348+
}
53465349
if (cleanValue.indexOf(":") >= 0) {
53475350
cleanValue = cleanValue.split(":")[0];
53485351
}

clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4037,8 +4037,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
40374037
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
40384038
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
40394039

4040-
const sanitizeErrorCode = (rawValue: string): string => {
4040+
const sanitizeErrorCode = (rawValue: string | number): string => {
40414041
let cleanValue = rawValue;
4042+
if (typeof cleanValue === "number") {
4043+
cleanValue = cleanValue.toString();
4044+
}
40424045
if (cleanValue.indexOf(":") >= 0) {
40434046
cleanValue = cleanValue.split(":")[0];
40444047
}

clients/client-rolesanywhere/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,8 +2488,11 @@ const parseBody = (streamBody: any, context: __SerdeContext): any =>
24882488
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => {
24892489
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
24902490

2491-
const sanitizeErrorCode = (rawValue: string): string => {
2491+
const sanitizeErrorCode = (rawValue: string | number): string => {
24922492
let cleanValue = rawValue;
2493+
if (typeof cleanValue === "number") {
2494+
cleanValue = cleanValue.toString();
2495+
}
24932496
if (cleanValue.indexOf(":") >= 0) {
24942497
cleanValue = cleanValue.split(":")[0];
24952498
}

0 commit comments

Comments
 (0)