@aws-sdk/client-global-accelerator 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +53 -47
- package/dist-es/GlobalAccelerator.js +190 -197
- package/dist-es/GlobalAcceleratorClient.js +22 -28
- package/dist-es/commands/AddCustomRoutingEndpointsCommand.js +21 -28
- package/dist-es/commands/AdvertiseByoipCidrCommand.js +21 -28
- package/dist-es/commands/AllowCustomRoutingTrafficCommand.js +22 -29
- package/dist-es/commands/CreateAcceleratorCommand.js +21 -28
- package/dist-es/commands/CreateCustomRoutingAcceleratorCommand.js +21 -28
- package/dist-es/commands/CreateCustomRoutingEndpointGroupCommand.js +21 -28
- package/dist-es/commands/CreateCustomRoutingListenerCommand.js +21 -28
- package/dist-es/commands/CreateEndpointGroupCommand.js +21 -28
- package/dist-es/commands/CreateListenerCommand.js +21 -28
- package/dist-es/commands/DeleteAcceleratorCommand.js +22 -29
- package/dist-es/commands/DeleteCustomRoutingAcceleratorCommand.js +22 -29
- package/dist-es/commands/DeleteCustomRoutingEndpointGroupCommand.js +22 -29
- package/dist-es/commands/DeleteCustomRoutingListenerCommand.js +22 -29
- package/dist-es/commands/DeleteEndpointGroupCommand.js +22 -29
- package/dist-es/commands/DeleteListenerCommand.js +22 -29
- package/dist-es/commands/DenyCustomRoutingTrafficCommand.js +22 -29
- package/dist-es/commands/DeprovisionByoipCidrCommand.js +21 -28
- package/dist-es/commands/DescribeAcceleratorAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeAcceleratorCommand.js +21 -28
- package/dist-es/commands/DescribeCustomRoutingAcceleratorAttributesCommand.js +21 -28
- package/dist-es/commands/DescribeCustomRoutingAcceleratorCommand.js +21 -28
- package/dist-es/commands/DescribeCustomRoutingEndpointGroupCommand.js +21 -28
- package/dist-es/commands/DescribeCustomRoutingListenerCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointGroupCommand.js +21 -28
- package/dist-es/commands/DescribeListenerCommand.js +21 -28
- package/dist-es/commands/ListAcceleratorsCommand.js +21 -28
- package/dist-es/commands/ListByoipCidrsCommand.js +21 -28
- package/dist-es/commands/ListCustomRoutingAcceleratorsCommand.js +21 -28
- package/dist-es/commands/ListCustomRoutingEndpointGroupsCommand.js +21 -28
- package/dist-es/commands/ListCustomRoutingListenersCommand.js +21 -28
- package/dist-es/commands/ListCustomRoutingPortMappingsByDestinationCommand.js +21 -28
- package/dist-es/commands/ListCustomRoutingPortMappingsCommand.js +21 -28
- package/dist-es/commands/ListEndpointGroupsCommand.js +21 -28
- package/dist-es/commands/ListListenersCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ProvisionByoipCidrCommand.js +21 -28
- package/dist-es/commands/RemoveCustomRoutingEndpointsCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAcceleratorAttributesCommand.js +21 -28
- package/dist-es/commands/UpdateAcceleratorCommand.js +21 -28
- package/dist-es/commands/UpdateCustomRoutingAcceleratorAttributesCommand.js +21 -28
- package/dist-es/commands/UpdateCustomRoutingAcceleratorCommand.js +21 -28
- package/dist-es/commands/UpdateCustomRoutingListenerCommand.js +21 -28
- package/dist-es/commands/UpdateEndpointGroupCommand.js +21 -28
- package/dist-es/commands/UpdateListenerCommand.js +21 -28
- package/dist-es/commands/WithdrawByoipCidrCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/GlobalAcceleratorServiceException.js +5 -10
- package/dist-es/models/models_0.js +546 -327
- package/dist-es/pagination/ListAcceleratorsPaginator.js +25 -68
- package/dist-es/pagination/ListByoipCidrsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomRoutingAcceleratorsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomRoutingEndpointGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListCustomRoutingListenersPaginator.js +25 -68
- package/dist-es/pagination/ListCustomRoutingPortMappingsByDestinationPaginator.js +25 -68
- package/dist-es/pagination/ListCustomRoutingPortMappingsPaginator.js +25 -68
- package/dist-es/pagination/ListEndpointGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListListenersPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +3127 -4058
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-global-accelerator
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-global-accelerator
|
|
@@ -494,7 +494,7 @@ exports.deserializeAws_json1_1AddCustomRoutingEndpointsCommand = deserializeAws_
|
|
|
494
494
|
const deserializeAws_json1_1AddCustomRoutingEndpointsCommandError = async (output, context) => {
|
|
495
495
|
const parsedOutput = {
|
|
496
496
|
...output,
|
|
497
|
-
body: await
|
|
497
|
+
body: await parseErrorBody(output.body, context),
|
|
498
498
|
};
|
|
499
499
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
500
500
|
switch (errorCode) {
|
|
@@ -546,7 +546,7 @@ exports.deserializeAws_json1_1AdvertiseByoipCidrCommand = deserializeAws_json1_1
|
|
|
546
546
|
const deserializeAws_json1_1AdvertiseByoipCidrCommandError = async (output, context) => {
|
|
547
547
|
const parsedOutput = {
|
|
548
548
|
...output,
|
|
549
|
-
body: await
|
|
549
|
+
body: await parseErrorBody(output.body, context),
|
|
550
550
|
};
|
|
551
551
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
552
552
|
switch (errorCode) {
|
|
@@ -589,7 +589,7 @@ exports.deserializeAws_json1_1AllowCustomRoutingTrafficCommand = deserializeAws_
|
|
|
589
589
|
const deserializeAws_json1_1AllowCustomRoutingTrafficCommandError = async (output, context) => {
|
|
590
590
|
const parsedOutput = {
|
|
591
591
|
...output,
|
|
592
|
-
body: await
|
|
592
|
+
body: await parseErrorBody(output.body, context),
|
|
593
593
|
};
|
|
594
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
595
595
|
switch (errorCode) {
|
|
@@ -629,7 +629,7 @@ exports.deserializeAws_json1_1CreateAcceleratorCommand = deserializeAws_json1_1C
|
|
|
629
629
|
const deserializeAws_json1_1CreateAcceleratorCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
|
-
body: await
|
|
632
|
+
body: await parseErrorBody(output.body, context),
|
|
633
633
|
};
|
|
634
634
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
635
|
switch (errorCode) {
|
|
@@ -669,7 +669,7 @@ exports.deserializeAws_json1_1CreateCustomRoutingAcceleratorCommand = deserializ
|
|
|
669
669
|
const deserializeAws_json1_1CreateCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
670
670
|
const parsedOutput = {
|
|
671
671
|
...output,
|
|
672
|
-
body: await
|
|
672
|
+
body: await parseErrorBody(output.body, context),
|
|
673
673
|
};
|
|
674
674
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
675
|
switch (errorCode) {
|
|
@@ -712,7 +712,7 @@ exports.deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommand = deserial
|
|
|
712
712
|
const deserializeAws_json1_1CreateCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
713
713
|
const parsedOutput = {
|
|
714
714
|
...output,
|
|
715
|
-
body: await
|
|
715
|
+
body: await parseErrorBody(output.body, context),
|
|
716
716
|
};
|
|
717
717
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
718
718
|
switch (errorCode) {
|
|
@@ -767,7 +767,7 @@ exports.deserializeAws_json1_1CreateCustomRoutingListenerCommand = deserializeAw
|
|
|
767
767
|
const deserializeAws_json1_1CreateCustomRoutingListenerCommandError = async (output, context) => {
|
|
768
768
|
const parsedOutput = {
|
|
769
769
|
...output,
|
|
770
|
-
body: await
|
|
770
|
+
body: await parseErrorBody(output.body, context),
|
|
771
771
|
};
|
|
772
772
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
773
|
switch (errorCode) {
|
|
@@ -813,7 +813,7 @@ exports.deserializeAws_json1_1CreateEndpointGroupCommand = deserializeAws_json1_
|
|
|
813
813
|
const deserializeAws_json1_1CreateEndpointGroupCommandError = async (output, context) => {
|
|
814
814
|
const parsedOutput = {
|
|
815
815
|
...output,
|
|
816
|
-
body: await
|
|
816
|
+
body: await parseErrorBody(output.body, context),
|
|
817
817
|
};
|
|
818
818
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
819
|
switch (errorCode) {
|
|
@@ -865,7 +865,7 @@ exports.deserializeAws_json1_1CreateListenerCommand = deserializeAws_json1_1Crea
|
|
|
865
865
|
const deserializeAws_json1_1CreateListenerCommandError = async (output, context) => {
|
|
866
866
|
const parsedOutput = {
|
|
867
867
|
...output,
|
|
868
|
-
body: await
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
869
|
};
|
|
870
870
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
871
|
switch (errorCode) {
|
|
@@ -908,7 +908,7 @@ exports.deserializeAws_json1_1DeleteAcceleratorCommand = deserializeAws_json1_1D
|
|
|
908
908
|
const deserializeAws_json1_1DeleteAcceleratorCommandError = async (output, context) => {
|
|
909
909
|
const parsedOutput = {
|
|
910
910
|
...output,
|
|
911
|
-
body: await
|
|
911
|
+
body: await parseErrorBody(output.body, context),
|
|
912
912
|
};
|
|
913
913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
914
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommand = deserializ
|
|
|
951
951
|
const deserializeAws_json1_1DeleteCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
952
952
|
const parsedOutput = {
|
|
953
953
|
...output,
|
|
954
|
-
body: await
|
|
954
|
+
body: await parseErrorBody(output.body, context),
|
|
955
955
|
};
|
|
956
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
957
|
switch (errorCode) {
|
|
@@ -994,7 +994,7 @@ exports.deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommand = deserial
|
|
|
994
994
|
const deserializeAws_json1_1DeleteCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
995
995
|
const parsedOutput = {
|
|
996
996
|
...output,
|
|
997
|
-
body: await
|
|
997
|
+
body: await parseErrorBody(output.body, context),
|
|
998
998
|
};
|
|
999
999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
1000
|
switch (errorCode) {
|
|
@@ -1031,7 +1031,7 @@ exports.deserializeAws_json1_1DeleteCustomRoutingListenerCommand = deserializeAw
|
|
|
1031
1031
|
const deserializeAws_json1_1DeleteCustomRoutingListenerCommandError = async (output, context) => {
|
|
1032
1032
|
const parsedOutput = {
|
|
1033
1033
|
...output,
|
|
1034
|
-
body: await
|
|
1034
|
+
body: await parseErrorBody(output.body, context),
|
|
1035
1035
|
};
|
|
1036
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
1037
|
switch (errorCode) {
|
|
@@ -1071,7 +1071,7 @@ exports.deserializeAws_json1_1DeleteEndpointGroupCommand = deserializeAws_json1_
|
|
|
1071
1071
|
const deserializeAws_json1_1DeleteEndpointGroupCommandError = async (output, context) => {
|
|
1072
1072
|
const parsedOutput = {
|
|
1073
1073
|
...output,
|
|
1074
|
-
body: await
|
|
1074
|
+
body: await parseErrorBody(output.body, context),
|
|
1075
1075
|
};
|
|
1076
1076
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1077
1077
|
switch (errorCode) {
|
|
@@ -1108,7 +1108,7 @@ exports.deserializeAws_json1_1DeleteListenerCommand = deserializeAws_json1_1Dele
|
|
|
1108
1108
|
const deserializeAws_json1_1DeleteListenerCommandError = async (output, context) => {
|
|
1109
1109
|
const parsedOutput = {
|
|
1110
1110
|
...output,
|
|
1111
|
-
body: await
|
|
1111
|
+
body: await parseErrorBody(output.body, context),
|
|
1112
1112
|
};
|
|
1113
1113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1114
|
switch (errorCode) {
|
|
@@ -1148,7 +1148,7 @@ exports.deserializeAws_json1_1DenyCustomRoutingTrafficCommand = deserializeAws_j
|
|
|
1148
1148
|
const deserializeAws_json1_1DenyCustomRoutingTrafficCommandError = async (output, context) => {
|
|
1149
1149
|
const parsedOutput = {
|
|
1150
1150
|
...output,
|
|
1151
|
-
body: await
|
|
1151
|
+
body: await parseErrorBody(output.body, context),
|
|
1152
1152
|
};
|
|
1153
1153
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1154
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_json1_1DeprovisionByoipCidrCommand = deserializeAws_json1
|
|
|
1188
1188
|
const deserializeAws_json1_1DeprovisionByoipCidrCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -1234,7 +1234,7 @@ exports.deserializeAws_json1_1DescribeAcceleratorCommand = deserializeAws_json1_
|
|
|
1234
1234
|
const deserializeAws_json1_1DescribeAcceleratorCommandError = async (output, context) => {
|
|
1235
1235
|
const parsedOutput = {
|
|
1236
1236
|
...output,
|
|
1237
|
-
body: await
|
|
1237
|
+
body: await parseErrorBody(output.body, context),
|
|
1238
1238
|
};
|
|
1239
1239
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1240
|
switch (errorCode) {
|
|
@@ -1274,7 +1274,7 @@ exports.deserializeAws_json1_1DescribeAcceleratorAttributesCommand = deserialize
|
|
|
1274
1274
|
const deserializeAws_json1_1DescribeAcceleratorAttributesCommandError = async (output, context) => {
|
|
1275
1275
|
const parsedOutput = {
|
|
1276
1276
|
...output,
|
|
1277
|
-
body: await
|
|
1277
|
+
body: await parseErrorBody(output.body, context),
|
|
1278
1278
|
};
|
|
1279
1279
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1280
1280
|
switch (errorCode) {
|
|
@@ -1314,7 +1314,7 @@ exports.deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommand = deserial
|
|
|
1314
1314
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
1315
1315
|
const parsedOutput = {
|
|
1316
1316
|
...output,
|
|
1317
|
-
body: await
|
|
1317
|
+
body: await parseErrorBody(output.body, context),
|
|
1318
1318
|
};
|
|
1319
1319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
1320
|
switch (errorCode) {
|
|
@@ -1354,7 +1354,7 @@ exports.deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommand
|
|
|
1354
1354
|
const deserializeAws_json1_1DescribeCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
|
|
1355
1355
|
const parsedOutput = {
|
|
1356
1356
|
...output,
|
|
1357
|
-
body: await
|
|
1357
|
+
body: await parseErrorBody(output.body, context),
|
|
1358
1358
|
};
|
|
1359
1359
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1360
1360
|
switch (errorCode) {
|
|
@@ -1394,7 +1394,7 @@ exports.deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommand = deseri
|
|
|
1394
1394
|
const deserializeAws_json1_1DescribeCustomRoutingEndpointGroupCommandError = async (output, context) => {
|
|
1395
1395
|
const parsedOutput = {
|
|
1396
1396
|
...output,
|
|
1397
|
-
body: await
|
|
1397
|
+
body: await parseErrorBody(output.body, context),
|
|
1398
1398
|
};
|
|
1399
1399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1400
1400
|
switch (errorCode) {
|
|
@@ -1434,7 +1434,7 @@ exports.deserializeAws_json1_1DescribeCustomRoutingListenerCommand = deserialize
|
|
|
1434
1434
|
const deserializeAws_json1_1DescribeCustomRoutingListenerCommandError = async (output, context) => {
|
|
1435
1435
|
const parsedOutput = {
|
|
1436
1436
|
...output,
|
|
1437
|
-
body: await
|
|
1437
|
+
body: await parseErrorBody(output.body, context),
|
|
1438
1438
|
};
|
|
1439
1439
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
1440
|
switch (errorCode) {
|
|
@@ -1474,7 +1474,7 @@ exports.deserializeAws_json1_1DescribeEndpointGroupCommand = deserializeAws_json
|
|
|
1474
1474
|
const deserializeAws_json1_1DescribeEndpointGroupCommandError = async (output, context) => {
|
|
1475
1475
|
const parsedOutput = {
|
|
1476
1476
|
...output,
|
|
1477
|
-
body: await
|
|
1477
|
+
body: await parseErrorBody(output.body, context),
|
|
1478
1478
|
};
|
|
1479
1479
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1480
1480
|
switch (errorCode) {
|
|
@@ -1514,7 +1514,7 @@ exports.deserializeAws_json1_1DescribeListenerCommand = deserializeAws_json1_1De
|
|
|
1514
1514
|
const deserializeAws_json1_1DescribeListenerCommandError = async (output, context) => {
|
|
1515
1515
|
const parsedOutput = {
|
|
1516
1516
|
...output,
|
|
1517
|
-
body: await
|
|
1517
|
+
body: await parseErrorBody(output.body, context),
|
|
1518
1518
|
};
|
|
1519
1519
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1520
1520
|
switch (errorCode) {
|
|
@@ -1554,7 +1554,7 @@ exports.deserializeAws_json1_1ListAcceleratorsCommand = deserializeAws_json1_1Li
|
|
|
1554
1554
|
const deserializeAws_json1_1ListAcceleratorsCommandError = async (output, context) => {
|
|
1555
1555
|
const parsedOutput = {
|
|
1556
1556
|
...output,
|
|
1557
|
-
body: await
|
|
1557
|
+
body: await parseErrorBody(output.body, context),
|
|
1558
1558
|
};
|
|
1559
1559
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1560
|
switch (errorCode) {
|
|
@@ -1594,7 +1594,7 @@ exports.deserializeAws_json1_1ListByoipCidrsCommand = deserializeAws_json1_1List
|
|
|
1594
1594
|
const deserializeAws_json1_1ListByoipCidrsCommandError = async (output, context) => {
|
|
1595
1595
|
const parsedOutput = {
|
|
1596
1596
|
...output,
|
|
1597
|
-
body: await
|
|
1597
|
+
body: await parseErrorBody(output.body, context),
|
|
1598
1598
|
};
|
|
1599
1599
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1600
1600
|
switch (errorCode) {
|
|
@@ -1637,7 +1637,7 @@ exports.deserializeAws_json1_1ListCustomRoutingAcceleratorsCommand = deserialize
|
|
|
1637
1637
|
const deserializeAws_json1_1ListCustomRoutingAcceleratorsCommandError = async (output, context) => {
|
|
1638
1638
|
const parsedOutput = {
|
|
1639
1639
|
...output,
|
|
1640
|
-
body: await
|
|
1640
|
+
body: await parseErrorBody(output.body, context),
|
|
1641
1641
|
};
|
|
1642
1642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1643
1643
|
switch (errorCode) {
|
|
@@ -1677,7 +1677,7 @@ exports.deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommand = deseriali
|
|
|
1677
1677
|
const deserializeAws_json1_1ListCustomRoutingEndpointGroupsCommandError = async (output, context) => {
|
|
1678
1678
|
const parsedOutput = {
|
|
1679
1679
|
...output,
|
|
1680
|
-
body: await
|
|
1680
|
+
body: await parseErrorBody(output.body, context),
|
|
1681
1681
|
};
|
|
1682
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1683
|
switch (errorCode) {
|
|
@@ -1720,7 +1720,7 @@ exports.deserializeAws_json1_1ListCustomRoutingListenersCommand = deserializeAws
|
|
|
1720
1720
|
const deserializeAws_json1_1ListCustomRoutingListenersCommandError = async (output, context) => {
|
|
1721
1721
|
const parsedOutput = {
|
|
1722
1722
|
...output,
|
|
1723
|
-
body: await
|
|
1723
|
+
body: await parseErrorBody(output.body, context),
|
|
1724
1724
|
};
|
|
1725
1725
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
1726
|
switch (errorCode) {
|
|
@@ -1763,7 +1763,7 @@ exports.deserializeAws_json1_1ListCustomRoutingPortMappingsCommand = deserialize
|
|
|
1763
1763
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsCommandError = async (output, context) => {
|
|
1764
1764
|
const parsedOutput = {
|
|
1765
1765
|
...output,
|
|
1766
|
-
body: await
|
|
1766
|
+
body: await parseErrorBody(output.body, context),
|
|
1767
1767
|
};
|
|
1768
1768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1769
|
switch (errorCode) {
|
|
@@ -1809,7 +1809,7 @@ exports.deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommand
|
|
|
1809
1809
|
const deserializeAws_json1_1ListCustomRoutingPortMappingsByDestinationCommandError = async (output, context) => {
|
|
1810
1810
|
const parsedOutput = {
|
|
1811
1811
|
...output,
|
|
1812
|
-
body: await
|
|
1812
|
+
body: await parseErrorBody(output.body, context),
|
|
1813
1813
|
};
|
|
1814
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1815
|
switch (errorCode) {
|
|
@@ -1852,7 +1852,7 @@ exports.deserializeAws_json1_1ListEndpointGroupsCommand = deserializeAws_json1_1
|
|
|
1852
1852
|
const deserializeAws_json1_1ListEndpointGroupsCommandError = async (output, context) => {
|
|
1853
1853
|
const parsedOutput = {
|
|
1854
1854
|
...output,
|
|
1855
|
-
body: await
|
|
1855
|
+
body: await parseErrorBody(output.body, context),
|
|
1856
1856
|
};
|
|
1857
1857
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1858
|
switch (errorCode) {
|
|
@@ -1895,7 +1895,7 @@ exports.deserializeAws_json1_1ListListenersCommand = deserializeAws_json1_1ListL
|
|
|
1895
1895
|
const deserializeAws_json1_1ListListenersCommandError = async (output, context) => {
|
|
1896
1896
|
const parsedOutput = {
|
|
1897
1897
|
...output,
|
|
1898
|
-
body: await
|
|
1898
|
+
body: await parseErrorBody(output.body, context),
|
|
1899
1899
|
};
|
|
1900
1900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
1901
|
switch (errorCode) {
|
|
@@ -1938,7 +1938,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1938
1938
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1939
1939
|
const parsedOutput = {
|
|
1940
1940
|
...output,
|
|
1941
|
-
body: await
|
|
1941
|
+
body: await parseErrorBody(output.body, context),
|
|
1942
1942
|
};
|
|
1943
1943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1944
1944
|
switch (errorCode) {
|
|
@@ -1978,7 +1978,7 @@ exports.deserializeAws_json1_1ProvisionByoipCidrCommand = deserializeAws_json1_1
|
|
|
1978
1978
|
const deserializeAws_json1_1ProvisionByoipCidrCommandError = async (output, context) => {
|
|
1979
1979
|
const parsedOutput = {
|
|
1980
1980
|
...output,
|
|
1981
|
-
body: await
|
|
1981
|
+
body: await parseErrorBody(output.body, context),
|
|
1982
1982
|
};
|
|
1983
1983
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
1984
|
switch (errorCode) {
|
|
@@ -2021,7 +2021,7 @@ exports.deserializeAws_json1_1RemoveCustomRoutingEndpointsCommand = deserializeA
|
|
|
2021
2021
|
const deserializeAws_json1_1RemoveCustomRoutingEndpointsCommandError = async (output, context) => {
|
|
2022
2022
|
const parsedOutput = {
|
|
2023
2023
|
...output,
|
|
2024
|
-
body: await
|
|
2024
|
+
body: await parseErrorBody(output.body, context),
|
|
2025
2025
|
};
|
|
2026
2026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
2027
|
switch (errorCode) {
|
|
@@ -2070,7 +2070,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2070
2070
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2071
2071
|
const parsedOutput = {
|
|
2072
2072
|
...output,
|
|
2073
|
-
body: await
|
|
2073
|
+
body: await parseErrorBody(output.body, context),
|
|
2074
2074
|
};
|
|
2075
2075
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2076
2076
|
switch (errorCode) {
|
|
@@ -2110,7 +2110,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2110
2110
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2111
2111
|
const parsedOutput = {
|
|
2112
2112
|
...output,
|
|
2113
|
-
body: await
|
|
2113
|
+
body: await parseErrorBody(output.body, context),
|
|
2114
2114
|
};
|
|
2115
2115
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2116
|
switch (errorCode) {
|
|
@@ -2150,7 +2150,7 @@ exports.deserializeAws_json1_1UpdateAcceleratorCommand = deserializeAws_json1_1U
|
|
|
2150
2150
|
const deserializeAws_json1_1UpdateAcceleratorCommandError = async (output, context) => {
|
|
2151
2151
|
const parsedOutput = {
|
|
2152
2152
|
...output,
|
|
2153
|
-
body: await
|
|
2153
|
+
body: await parseErrorBody(output.body, context),
|
|
2154
2154
|
};
|
|
2155
2155
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2156
2156
|
switch (errorCode) {
|
|
@@ -2193,7 +2193,7 @@ exports.deserializeAws_json1_1UpdateAcceleratorAttributesCommand = deserializeAw
|
|
|
2193
2193
|
const deserializeAws_json1_1UpdateAcceleratorAttributesCommandError = async (output, context) => {
|
|
2194
2194
|
const parsedOutput = {
|
|
2195
2195
|
...output,
|
|
2196
|
-
body: await
|
|
2196
|
+
body: await parseErrorBody(output.body, context),
|
|
2197
2197
|
};
|
|
2198
2198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2199
2199
|
switch (errorCode) {
|
|
@@ -2236,7 +2236,7 @@ exports.deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommand = deserializ
|
|
|
2236
2236
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorCommandError = async (output, context) => {
|
|
2237
2237
|
const parsedOutput = {
|
|
2238
2238
|
...output,
|
|
2239
|
-
body: await
|
|
2239
|
+
body: await parseErrorBody(output.body, context),
|
|
2240
2240
|
};
|
|
2241
2241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2242
2242
|
switch (errorCode) {
|
|
@@ -2276,7 +2276,7 @@ exports.deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommand =
|
|
|
2276
2276
|
const deserializeAws_json1_1UpdateCustomRoutingAcceleratorAttributesCommandError = async (output, context) => {
|
|
2277
2277
|
const parsedOutput = {
|
|
2278
2278
|
...output,
|
|
2279
|
-
body: await
|
|
2279
|
+
body: await parseErrorBody(output.body, context),
|
|
2280
2280
|
};
|
|
2281
2281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
2282
|
switch (errorCode) {
|
|
@@ -2319,7 +2319,7 @@ exports.deserializeAws_json1_1UpdateCustomRoutingListenerCommand = deserializeAw
|
|
|
2319
2319
|
const deserializeAws_json1_1UpdateCustomRoutingListenerCommandError = async (output, context) => {
|
|
2320
2320
|
const parsedOutput = {
|
|
2321
2321
|
...output,
|
|
2322
|
-
body: await
|
|
2322
|
+
body: await parseErrorBody(output.body, context),
|
|
2323
2323
|
};
|
|
2324
2324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
2325
|
switch (errorCode) {
|
|
@@ -2365,7 +2365,7 @@ exports.deserializeAws_json1_1UpdateEndpointGroupCommand = deserializeAws_json1_
|
|
|
2365
2365
|
const deserializeAws_json1_1UpdateEndpointGroupCommandError = async (output, context) => {
|
|
2366
2366
|
const parsedOutput = {
|
|
2367
2367
|
...output,
|
|
2368
|
-
body: await
|
|
2368
|
+
body: await parseErrorBody(output.body, context),
|
|
2369
2369
|
};
|
|
2370
2370
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2371
2371
|
switch (errorCode) {
|
|
@@ -2411,7 +2411,7 @@ exports.deserializeAws_json1_1UpdateListenerCommand = deserializeAws_json1_1Upda
|
|
|
2411
2411
|
const deserializeAws_json1_1UpdateListenerCommandError = async (output, context) => {
|
|
2412
2412
|
const parsedOutput = {
|
|
2413
2413
|
...output,
|
|
2414
|
-
body: await
|
|
2414
|
+
body: await parseErrorBody(output.body, context),
|
|
2415
2415
|
};
|
|
2416
2416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2417
2417
|
switch (errorCode) {
|
|
@@ -2457,7 +2457,7 @@ exports.deserializeAws_json1_1WithdrawByoipCidrCommand = deserializeAws_json1_1W
|
|
|
2457
2457
|
const deserializeAws_json1_1WithdrawByoipCidrCommandError = async (output, context) => {
|
|
2458
2458
|
const parsedOutput = {
|
|
2459
2459
|
...output,
|
|
2460
|
-
body: await
|
|
2460
|
+
body: await parseErrorBody(output.body, context),
|
|
2461
2461
|
};
|
|
2462
2462
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
2463
|
switch (errorCode) {
|
|
@@ -3912,6 +3912,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3912
3912
|
}
|
|
3913
3913
|
return {};
|
|
3914
3914
|
});
|
|
3915
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3916
|
+
var _a;
|
|
3917
|
+
const value = await parseBody(errorBody, context);
|
|
3918
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3919
|
+
return value;
|
|
3920
|
+
};
|
|
3915
3921
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3916
3922
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3917
3923
|
const sanitizeErrorCode = (rawValue) => {
|