Skip to content

Commit 51c2422

Browse files
authored
chore(codegen): update codegen from PR #3852 (#3904)
1 parent e2c4714 commit 51c2422

File tree

301 files changed

+891
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+891
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
38463846
if (typeof cleanValue === "number") {
38473847
cleanValue = cleanValue.toString();
38483848
}
3849+
if (cleanValue.indexOf(",") >= 0) {
3850+
cleanValue = cleanValue.split(",")[0];
3851+
}
38493852
if (cleanValue.indexOf(":") >= 0) {
38503853
cleanValue = cleanValue.split(":")[0];
38513854
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
596596
if (typeof cleanValue === "number") {
597597
cleanValue = cleanValue.toString();
598598
}
599+
if (cleanValue.indexOf(",") >= 0) {
600+
cleanValue = cleanValue.split(",")[0];
601+
}
599602
if (cleanValue.indexOf(":") >= 0) {
600603
cleanValue = cleanValue.split(":")[0];
601604
}

clients/client-acm-pca/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,6 +2993,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
29932993
if (typeof cleanValue === "number") {
29942994
cleanValue = cleanValue.toString();
29952995
}
2996+
if (cleanValue.indexOf(",") >= 0) {
2997+
cleanValue = cleanValue.split(",")[0];
2998+
}
29962999
if (cleanValue.indexOf(":") >= 0) {
29973000
cleanValue = cleanValue.split(":")[0];
29983001
}

clients/client-acm/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1959,6 +1959,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
19591959
if (typeof cleanValue === "number") {
19601960
cleanValue = cleanValue.toString();
19611961
}
1962+
if (cleanValue.indexOf(",") >= 0) {
1963+
cleanValue = cleanValue.split(",")[0];
1964+
}
19621965
if (cleanValue.indexOf(":") >= 0) {
19631966
cleanValue = cleanValue.split(":")[0];
19641967
}

clients/client-alexa-for-business/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8880,6 +8880,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
88808880
if (typeof cleanValue === "number") {
88818881
cleanValue = cleanValue.toString();
88828882
}
8883+
if (cleanValue.indexOf(",") >= 0) {
8884+
cleanValue = cleanValue.split(",")[0];
8885+
}
88838886
if (cleanValue.indexOf(":") >= 0) {
88848887
cleanValue = cleanValue.split(":")[0];
88858888
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
22192219
if (typeof cleanValue === "number") {
22202220
cleanValue = cleanValue.toString();
22212221
}
2222+
if (cleanValue.indexOf(",") >= 0) {
2223+
cleanValue = cleanValue.split(",")[0];
2224+
}
22222225
if (cleanValue.indexOf(":") >= 0) {
22232226
cleanValue = cleanValue.split(":")[0];
22242227
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3781,6 +3781,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
37813781
if (typeof cleanValue === "number") {
37823782
cleanValue = cleanValue.toString();
37833783
}
3784+
if (cleanValue.indexOf(",") >= 0) {
3785+
cleanValue = cleanValue.split(",")[0];
3786+
}
37843787
if (cleanValue.indexOf(":") >= 0) {
37853788
cleanValue = cleanValue.split(":")[0];
37863789
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4079,6 +4079,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
40794079
if (typeof cleanValue === "number") {
40804080
cleanValue = cleanValue.toString();
40814081
}
4082+
if (cleanValue.indexOf(",") >= 0) {
4083+
cleanValue = cleanValue.split(",")[0];
4084+
}
40824085
if (cleanValue.indexOf(":") >= 0) {
40834086
cleanValue = cleanValue.split(":")[0];
40844087
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,6 +2317,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
23172317
if (typeof cleanValue === "number") {
23182318
cleanValue = cleanValue.toString();
23192319
}
2320+
if (cleanValue.indexOf(",") >= 0) {
2321+
cleanValue = cleanValue.split(",")[0];
2322+
}
23202323
if (cleanValue.indexOf(":") >= 0) {
23212324
cleanValue = cleanValue.split(":")[0];
23222325
}

clients/client-api-gateway/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12794,6 +12794,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
1279412794
if (typeof cleanValue === "number") {
1279512795
cleanValue = cleanValue.toString();
1279612796
}
12797+
if (cleanValue.indexOf(",") >= 0) {
12798+
cleanValue = cleanValue.split(",")[0];
12799+
}
1279712800
if (cleanValue.indexOf(":") >= 0) {
1279812801
cleanValue = cleanValue.split(":")[0];
1279912802
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
369369
if (typeof cleanValue === "number") {
370370
cleanValue = cleanValue.toString();
371371
}
372+
if (cleanValue.indexOf(",") >= 0) {
373+
cleanValue = cleanValue.split(",")[0];
374+
}
372375
if (cleanValue.indexOf(":") >= 0) {
373376
cleanValue = cleanValue.split(":")[0];
374377
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7814,6 +7814,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
78147814
if (typeof cleanValue === "number") {
78157815
cleanValue = cleanValue.toString();
78167816
}
7817+
if (cleanValue.indexOf(",") >= 0) {
7818+
cleanValue = cleanValue.split(",")[0];
7819+
}
78177820
if (cleanValue.indexOf(":") >= 0) {
78187821
cleanValue = cleanValue.split(":")[0];
78197822
}

clients/client-app-mesh/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7332,6 +7332,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
73327332
if (typeof cleanValue === "number") {
73337333
cleanValue = cleanValue.toString();
73347334
}
7335+
if (cleanValue.indexOf(",") >= 0) {
7336+
cleanValue = cleanValue.split(",")[0];
7337+
}
73357338
if (cleanValue.indexOf(":") >= 0) {
73367339
cleanValue = cleanValue.split(":")[0];
73377340
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4838,6 +4838,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
48384838
if (typeof cleanValue === "number") {
48394839
cleanValue = cleanValue.toString();
48404840
}
4841+
if (cleanValue.indexOf(",") >= 0) {
4842+
cleanValue = cleanValue.split(",")[0];
4843+
}
48414844
if (cleanValue.indexOf(":") >= 0) {
48424845
cleanValue = cleanValue.split(":")[0];
48434846
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
360360
if (typeof cleanValue === "number") {
361361
cleanValue = cleanValue.toString();
362362
}
363+
if (cleanValue.indexOf(",") >= 0) {
364+
cleanValue = cleanValue.split(",")[0];
365+
}
363366
if (cleanValue.indexOf(":") >= 0) {
364367
cleanValue = cleanValue.split(":")[0];
365368
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,6 +5509,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
55095509
if (typeof cleanValue === "number") {
55105510
cleanValue = cleanValue.toString();
55115511
}
5512+
if (cleanValue.indexOf(",") >= 0) {
5513+
cleanValue = cleanValue.split(",")[0];
5514+
}
55125515
if (cleanValue.indexOf(":") >= 0) {
55135516
cleanValue = cleanValue.split(":")[0];
55145517
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,6 +1655,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
16551655
if (typeof cleanValue === "number") {
16561656
cleanValue = cleanValue.toString();
16571657
}
1658+
if (cleanValue.indexOf(",") >= 0) {
1659+
cleanValue = cleanValue.split(",")[0];
1660+
}
16581661
if (cleanValue.indexOf(":") >= 0) {
16591662
cleanValue = cleanValue.split(":")[0];
16601663
}

clients/client-application-auto-scaling/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
15871587
if (typeof cleanValue === "number") {
15881588
cleanValue = cleanValue.toString();
15891589
}
1590+
if (cleanValue.indexOf(",") >= 0) {
1591+
cleanValue = cleanValue.split(",")[0];
1592+
}
15901593
if (cleanValue.indexOf(":") >= 0) {
15911594
cleanValue = cleanValue.split(":")[0];
15921595
}

clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,6 +3173,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
31733173
if (typeof cleanValue === "number") {
31743174
cleanValue = cleanValue.toString();
31753175
}
3176+
if (cleanValue.indexOf(",") >= 0) {
3177+
cleanValue = cleanValue.split(",")[0];
3178+
}
31763179
if (cleanValue.indexOf(":") >= 0) {
31773180
cleanValue = cleanValue.split(":")[0];
31783181
}

clients/client-application-insights/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2862,6 +2862,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
28622862
if (typeof cleanValue === "number") {
28632863
cleanValue = cleanValue.toString();
28642864
}
2865+
if (cleanValue.indexOf(",") >= 0) {
2866+
cleanValue = cleanValue.split(",")[0];
2867+
}
28652868
if (cleanValue.indexOf(":") >= 0) {
28662869
cleanValue = cleanValue.split(":")[0];
28672870
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
711711
if (typeof cleanValue === "number") {
712712
cleanValue = cleanValue.toString();
713713
}
714+
if (cleanValue.indexOf(",") >= 0) {
715+
cleanValue = cleanValue.split(",")[0];
716+
}
714717
if (cleanValue.indexOf(":") >= 0) {
715718
cleanValue = cleanValue.split(":")[0];
716719
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,6 +3494,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
34943494
if (typeof cleanValue === "number") {
34953495
cleanValue = cleanValue.toString();
34963496
}
3497+
if (cleanValue.indexOf(",") >= 0) {
3498+
cleanValue = cleanValue.split(",")[0];
3499+
}
34973500
if (cleanValue.indexOf(":") >= 0) {
34983501
cleanValue = cleanValue.split(":")[0];
34993502
}

clients/client-appstream/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7258,6 +7258,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
72587258
if (typeof cleanValue === "number") {
72597259
cleanValue = cleanValue.toString();
72607260
}
7261+
if (cleanValue.indexOf(",") >= 0) {
7262+
cleanValue = cleanValue.split(",")[0];
7263+
}
72617264
if (cleanValue.indexOf(":") >= 0) {
72627265
cleanValue = cleanValue.split(":")[0];
72637266
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5025,6 +5025,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
50255025
if (typeof cleanValue === "number") {
50265026
cleanValue = cleanValue.toString();
50275027
}
5028+
if (cleanValue.indexOf(",") >= 0) {
5029+
cleanValue = cleanValue.split(",")[0];
5030+
}
50285031
if (cleanValue.indexOf(":") >= 0) {
50295032
cleanValue = cleanValue.split(":")[0];
50305033
}

clients/client-athena/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,6 +4033,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
40334033
if (typeof cleanValue === "number") {
40344034
cleanValue = cleanValue.toString();
40354035
}
4036+
if (cleanValue.indexOf(",") >= 0) {
4037+
cleanValue = cleanValue.split(",")[0];
4038+
}
40364039
if (cleanValue.indexOf(":") >= 0) {
40374040
cleanValue = cleanValue.split(":")[0];
40384041
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6701,6 +6701,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
67016701
if (typeof cleanValue === "number") {
67026702
cleanValue = cleanValue.toString();
67036703
}
6704+
if (cleanValue.indexOf(",") >= 0) {
6705+
cleanValue = cleanValue.split(",")[0];
6706+
}
67046707
if (cleanValue.indexOf(":") >= 0) {
67056708
cleanValue = cleanValue.split(":")[0];
67066709
}

clients/client-auto-scaling-plans/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
12611261
if (typeof cleanValue === "number") {
12621262
cleanValue = cleanValue.toString();
12631263
}
1264+
if (cleanValue.indexOf(",") >= 0) {
1265+
cleanValue = cleanValue.split(",")[0];
1266+
}
12641267
if (cleanValue.indexOf(":") >= 0) {
12651268
cleanValue = cleanValue.split(":")[0];
12661269
}

clients/client-backup-gateway/src/protocols/Aws_json1_0.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
18001800
if (typeof cleanValue === "number") {
18011801
cleanValue = cleanValue.toString();
18021802
}
1803+
if (cleanValue.indexOf(",") >= 0) {
1804+
cleanValue = cleanValue.split(",")[0];
1805+
}
18031806
if (cleanValue.indexOf(":") >= 0) {
18041807
cleanValue = cleanValue.split(":")[0];
18051808
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7474,6 +7474,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
74747474
if (typeof cleanValue === "number") {
74757475
cleanValue = cleanValue.toString();
74767476
}
7477+
if (cleanValue.indexOf(",") >= 0) {
7478+
cleanValue = cleanValue.split(",")[0];
7479+
}
74777480
if (cleanValue.indexOf(":") >= 0) {
74787481
cleanValue = cleanValue.split(":")[0];
74797482
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
11851185
if (typeof cleanValue === "number") {
11861186
cleanValue = cleanValue.toString();
11871187
}
1188+
if (cleanValue.indexOf(",") >= 0) {
1189+
cleanValue = cleanValue.split(",")[0];
1190+
}
11881191
if (cleanValue.indexOf(":") >= 0) {
11891192
cleanValue = cleanValue.split(":")[0];
11901193
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,6 +3569,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
35693569
if (typeof cleanValue === "number") {
35703570
cleanValue = cleanValue.toString();
35713571
}
3572+
if (cleanValue.indexOf(",") >= 0) {
3573+
cleanValue = cleanValue.split(",")[0];
3574+
}
35723575
if (cleanValue.indexOf(":") >= 0) {
35733576
cleanValue = cleanValue.split(":")[0];
35743577
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3583,6 +3583,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
35833583
if (typeof cleanValue === "number") {
35843584
cleanValue = cleanValue.toString();
35853585
}
3586+
if (cleanValue.indexOf(",") >= 0) {
3587+
cleanValue = cleanValue.split(",")[0];
3588+
}
35863589
if (cleanValue.indexOf(":") >= 0) {
35873590
cleanValue = cleanValue.split(":")[0];
35883591
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
17931793
if (typeof cleanValue === "number") {
17941794
cleanValue = cleanValue.toString();
17951795
}
1796+
if (cleanValue.indexOf(",") >= 0) {
1797+
cleanValue = cleanValue.split(",")[0];
1798+
}
17961799
if (cleanValue.indexOf(":") >= 0) {
17971800
cleanValue = cleanValue.split(":")[0];
17981801
}

clients/client-budgets/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3147,6 +3147,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
31473147
if (typeof cleanValue === "number") {
31483148
cleanValue = cleanValue.toString();
31493149
}
3150+
if (cleanValue.indexOf(",") >= 0) {
3151+
cleanValue = cleanValue.split(",")[0];
3152+
}
31503153
if (cleanValue.indexOf(":") >= 0) {
31513154
cleanValue = cleanValue.split(":")[0];
31523155
}

clients/client-chime-sdk-identity/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,6 +2781,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
27812781
if (typeof cleanValue === "number") {
27822782
cleanValue = cleanValue.toString();
27832783
}
2784+
if (cleanValue.indexOf(",") >= 0) {
2785+
cleanValue = cleanValue.split(",")[0];
2786+
}
27842787
if (cleanValue.indexOf(":") >= 0) {
27852788
cleanValue = cleanValue.split(":")[0];
27862789
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,6 +2308,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
23082308
if (typeof cleanValue === "number") {
23092309
cleanValue = cleanValue.toString();
23102310
}
2311+
if (cleanValue.indexOf(",") >= 0) {
2312+
cleanValue = cleanValue.split(",")[0];
2313+
}
23112314
if (cleanValue.indexOf(":") >= 0) {
23122315
cleanValue = cleanValue.split(":")[0];
23132316
}

clients/client-chime-sdk-meetings/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
20742074
if (typeof cleanValue === "number") {
20752075
cleanValue = cleanValue.toString();
20762076
}
2077+
if (cleanValue.indexOf(",") >= 0) {
2078+
cleanValue = cleanValue.split(",")[0];
2079+
}
20772080
if (cleanValue.indexOf(":") >= 0) {
20782081
cleanValue = cleanValue.split(":")[0];
20792082
}

clients/client-chime-sdk-messaging/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5389,6 +5389,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
53895389
if (typeof cleanValue === "number") {
53905390
cleanValue = cleanValue.toString();
53915391
}
5392+
if (cleanValue.indexOf(",") >= 0) {
5393+
cleanValue = cleanValue.split(",")[0];
5394+
}
53925395
if (cleanValue.indexOf(":") >= 0) {
53935396
cleanValue = cleanValue.split(":")[0];
53945397
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20714,6 +20714,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
2071420714
if (typeof cleanValue === "number") {
2071520715
cleanValue = cleanValue.toString();
2071620716
}
20717+
if (cleanValue.indexOf(",") >= 0) {
20718+
cleanValue = cleanValue.split(",")[0];
20719+
}
2071720720
if (cleanValue.indexOf(":") >= 0) {
2071820721
cleanValue = cleanValue.split(":")[0];
2071920722
}

clients/client-cloud9/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,9 @@ const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | unde
16151615
if (typeof cleanValue === "number") {
16161616
cleanValue = cleanValue.toString();
16171617
}
1618+
if (cleanValue.indexOf(",") >= 0) {
1619+
cleanValue = cleanValue.split(",")[0];
1620+
}
16181621
if (cleanValue.indexOf(":") >= 0) {
16191622
cleanValue = cleanValue.split(":")[0];
16201623
}

0 commit comments

Comments
 (0)