@aws-sdk/client-shield 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 +42 -36
- package/dist-es/Shield.js +146 -153
- package/dist-es/ShieldClient.js +22 -28
- package/dist-es/commands/AssociateDRTLogBucketCommand.js +21 -28
- package/dist-es/commands/AssociateDRTRoleCommand.js +21 -28
- package/dist-es/commands/AssociateHealthCheckCommand.js +21 -28
- package/dist-es/commands/AssociateProactiveEngagementDetailsCommand.js +21 -28
- package/dist-es/commands/CreateProtectionCommand.js +21 -28
- package/dist-es/commands/CreateProtectionGroupCommand.js +21 -28
- package/dist-es/commands/CreateSubscriptionCommand.js +21 -28
- package/dist-es/commands/DeleteProtectionCommand.js +21 -28
- package/dist-es/commands/DeleteProtectionGroupCommand.js +21 -28
- package/dist-es/commands/DeleteSubscriptionCommand.js +21 -28
- package/dist-es/commands/DescribeAttackCommand.js +21 -28
- package/dist-es/commands/DescribeAttackStatisticsCommand.js +21 -28
- package/dist-es/commands/DescribeDRTAccessCommand.js +21 -28
- package/dist-es/commands/DescribeEmergencyContactSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeProtectionCommand.js +21 -28
- package/dist-es/commands/DescribeProtectionGroupCommand.js +21 -28
- package/dist-es/commands/DescribeSubscriptionCommand.js +21 -28
- package/dist-es/commands/DisableApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/DisableProactiveEngagementCommand.js +21 -28
- package/dist-es/commands/DisassociateDRTLogBucketCommand.js +21 -28
- package/dist-es/commands/DisassociateDRTRoleCommand.js +21 -28
- package/dist-es/commands/DisassociateHealthCheckCommand.js +21 -28
- package/dist-es/commands/EnableApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/EnableProactiveEngagementCommand.js +21 -28
- package/dist-es/commands/GetSubscriptionStateCommand.js +21 -28
- package/dist-es/commands/ListAttacksCommand.js +21 -28
- package/dist-es/commands/ListProtectionGroupsCommand.js +21 -28
- package/dist-es/commands/ListProtectionsCommand.js +21 -28
- package/dist-es/commands/ListResourcesInProtectionGroupCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationLayerAutomaticResponseCommand.js +21 -28
- package/dist-es/commands/UpdateEmergencyContactSettingsCommand.js +21 -28
- package/dist-es/commands/UpdateProtectionGroupCommand.js +21 -28
- package/dist-es/commands/UpdateSubscriptionCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ShieldServiceException.js +5 -10
- package/dist-es/models/models_0.js +458 -253
- package/dist-es/pagination/ListAttacksPaginator.js +25 -68
- package/dist-es/pagination/ListProtectionGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListProtectionsPaginator.js +25 -68
- package/dist-es/pagination/ListResourcesInProtectionGroupPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +2384 -3119
- 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-shield
|
|
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-shield
|
|
@@ -383,7 +383,7 @@ exports.deserializeAws_json1_1AssociateDRTLogBucketCommand = deserializeAws_json
|
|
|
383
383
|
const deserializeAws_json1_1AssociateDRTLogBucketCommandError = async (output, context) => {
|
|
384
384
|
const parsedOutput = {
|
|
385
385
|
...output,
|
|
386
|
-
body: await
|
|
386
|
+
body: await parseErrorBody(output.body, context),
|
|
387
387
|
};
|
|
388
388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
389
389
|
switch (errorCode) {
|
|
@@ -438,7 +438,7 @@ exports.deserializeAws_json1_1AssociateDRTRoleCommand = deserializeAws_json1_1As
|
|
|
438
438
|
const deserializeAws_json1_1AssociateDRTRoleCommandError = async (output, context) => {
|
|
439
439
|
const parsedOutput = {
|
|
440
440
|
...output,
|
|
441
|
-
body: await
|
|
441
|
+
body: await parseErrorBody(output.body, context),
|
|
442
442
|
};
|
|
443
443
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
444
|
switch (errorCode) {
|
|
@@ -487,7 +487,7 @@ exports.deserializeAws_json1_1AssociateHealthCheckCommand = deserializeAws_json1
|
|
|
487
487
|
const deserializeAws_json1_1AssociateHealthCheckCommandError = async (output, context) => {
|
|
488
488
|
const parsedOutput = {
|
|
489
489
|
...output,
|
|
490
|
-
body: await
|
|
490
|
+
body: await parseErrorBody(output.body, context),
|
|
491
491
|
};
|
|
492
492
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
493
493
|
switch (errorCode) {
|
|
@@ -536,7 +536,7 @@ exports.deserializeAws_json1_1AssociateProactiveEngagementDetailsCommand = deser
|
|
|
536
536
|
const deserializeAws_json1_1AssociateProactiveEngagementDetailsCommandError = async (output, context) => {
|
|
537
537
|
const parsedOutput = {
|
|
538
538
|
...output,
|
|
539
|
-
body: await
|
|
539
|
+
body: await parseErrorBody(output.body, context),
|
|
540
540
|
};
|
|
541
541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
542
542
|
switch (errorCode) {
|
|
@@ -582,7 +582,7 @@ exports.deserializeAws_json1_1CreateProtectionCommand = deserializeAws_json1_1Cr
|
|
|
582
582
|
const deserializeAws_json1_1CreateProtectionCommandError = async (output, context) => {
|
|
583
583
|
const parsedOutput = {
|
|
584
584
|
...output,
|
|
585
|
-
body: await
|
|
585
|
+
body: await parseErrorBody(output.body, context),
|
|
586
586
|
};
|
|
587
587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
588
|
switch (errorCode) {
|
|
@@ -637,7 +637,7 @@ exports.deserializeAws_json1_1CreateProtectionGroupCommand = deserializeAws_json
|
|
|
637
637
|
const deserializeAws_json1_1CreateProtectionGroupCommandError = async (output, context) => {
|
|
638
638
|
const parsedOutput = {
|
|
639
639
|
...output,
|
|
640
|
-
body: await
|
|
640
|
+
body: await parseErrorBody(output.body, context),
|
|
641
641
|
};
|
|
642
642
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
643
643
|
switch (errorCode) {
|
|
@@ -686,7 +686,7 @@ exports.deserializeAws_json1_1CreateSubscriptionCommand = deserializeAws_json1_1
|
|
|
686
686
|
const deserializeAws_json1_1CreateSubscriptionCommandError = async (output, context) => {
|
|
687
687
|
const parsedOutput = {
|
|
688
688
|
...output,
|
|
689
|
-
body: await
|
|
689
|
+
body: await parseErrorBody(output.body, context),
|
|
690
690
|
};
|
|
691
691
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
692
|
switch (errorCode) {
|
|
@@ -723,7 +723,7 @@ exports.deserializeAws_json1_1DeleteProtectionCommand = deserializeAws_json1_1De
|
|
|
723
723
|
const deserializeAws_json1_1DeleteProtectionCommandError = async (output, context) => {
|
|
724
724
|
const parsedOutput = {
|
|
725
725
|
...output,
|
|
726
|
-
body: await
|
|
726
|
+
body: await parseErrorBody(output.body, context),
|
|
727
727
|
};
|
|
728
728
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
729
729
|
switch (errorCode) {
|
|
@@ -763,7 +763,7 @@ exports.deserializeAws_json1_1DeleteProtectionGroupCommand = deserializeAws_json
|
|
|
763
763
|
const deserializeAws_json1_1DeleteProtectionGroupCommandError = async (output, context) => {
|
|
764
764
|
const parsedOutput = {
|
|
765
765
|
...output,
|
|
766
|
-
body: await
|
|
766
|
+
body: await parseErrorBody(output.body, context),
|
|
767
767
|
};
|
|
768
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
769
|
switch (errorCode) {
|
|
@@ -803,7 +803,7 @@ exports.deserializeAws_json1_1DeleteSubscriptionCommand = deserializeAws_json1_1
|
|
|
803
803
|
const deserializeAws_json1_1DeleteSubscriptionCommandError = async (output, context) => {
|
|
804
804
|
const parsedOutput = {
|
|
805
805
|
...output,
|
|
806
|
-
body: await
|
|
806
|
+
body: await parseErrorBody(output.body, context),
|
|
807
807
|
};
|
|
808
808
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
809
809
|
switch (errorCode) {
|
|
@@ -843,7 +843,7 @@ exports.deserializeAws_json1_1DescribeAttackCommand = deserializeAws_json1_1Desc
|
|
|
843
843
|
const deserializeAws_json1_1DescribeAttackCommandError = async (output, context) => {
|
|
844
844
|
const parsedOutput = {
|
|
845
845
|
...output,
|
|
846
|
-
body: await
|
|
846
|
+
body: await parseErrorBody(output.body, context),
|
|
847
847
|
};
|
|
848
848
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
849
|
switch (errorCode) {
|
|
@@ -880,7 +880,7 @@ exports.deserializeAws_json1_1DescribeAttackStatisticsCommand = deserializeAws_j
|
|
|
880
880
|
const deserializeAws_json1_1DescribeAttackStatisticsCommandError = async (output, context) => {
|
|
881
881
|
const parsedOutput = {
|
|
882
882
|
...output,
|
|
883
|
-
body: await
|
|
883
|
+
body: await parseErrorBody(output.body, context),
|
|
884
884
|
};
|
|
885
885
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
886
|
switch (errorCode) {
|
|
@@ -914,7 +914,7 @@ exports.deserializeAws_json1_1DescribeDRTAccessCommand = deserializeAws_json1_1D
|
|
|
914
914
|
const deserializeAws_json1_1DescribeDRTAccessCommandError = async (output, context) => {
|
|
915
915
|
const parsedOutput = {
|
|
916
916
|
...output,
|
|
917
|
-
body: await
|
|
917
|
+
body: await parseErrorBody(output.body, context),
|
|
918
918
|
};
|
|
919
919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
920
920
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_json1_1DescribeEmergencyContactSettingsCommand = deserial
|
|
|
951
951
|
const deserializeAws_json1_1DescribeEmergencyContactSettingsCommandError = 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) {
|
|
@@ -988,7 +988,7 @@ exports.deserializeAws_json1_1DescribeProtectionCommand = deserializeAws_json1_1
|
|
|
988
988
|
const deserializeAws_json1_1DescribeProtectionCommandError = async (output, context) => {
|
|
989
989
|
const parsedOutput = {
|
|
990
990
|
...output,
|
|
991
|
-
body: await
|
|
991
|
+
body: await parseErrorBody(output.body, context),
|
|
992
992
|
};
|
|
993
993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
994
994
|
switch (errorCode) {
|
|
@@ -1028,7 +1028,7 @@ exports.deserializeAws_json1_1DescribeProtectionGroupCommand = deserializeAws_js
|
|
|
1028
1028
|
const deserializeAws_json1_1DescribeProtectionGroupCommandError = async (output, context) => {
|
|
1029
1029
|
const parsedOutput = {
|
|
1030
1030
|
...output,
|
|
1031
|
-
body: await
|
|
1031
|
+
body: await parseErrorBody(output.body, context),
|
|
1032
1032
|
};
|
|
1033
1033
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1034
|
switch (errorCode) {
|
|
@@ -1065,7 +1065,7 @@ exports.deserializeAws_json1_1DescribeSubscriptionCommand = deserializeAws_json1
|
|
|
1065
1065
|
const deserializeAws_json1_1DescribeSubscriptionCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
|
-
body: await
|
|
1068
|
+
body: await parseErrorBody(output.body, context),
|
|
1069
1069
|
};
|
|
1070
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
switch (errorCode) {
|
|
@@ -1102,7 +1102,7 @@ exports.deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommand =
|
|
|
1102
1102
|
const deserializeAws_json1_1DisableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1103
1103
|
const parsedOutput = {
|
|
1104
1104
|
...output,
|
|
1105
|
-
body: await
|
|
1105
|
+
body: await parseErrorBody(output.body, context),
|
|
1106
1106
|
};
|
|
1107
1107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
1108
|
switch (errorCode) {
|
|
@@ -1148,7 +1148,7 @@ exports.deserializeAws_json1_1DisableProactiveEngagementCommand = deserializeAws
|
|
|
1148
1148
|
const deserializeAws_json1_1DisableProactiveEngagementCommandError = 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) {
|
|
@@ -1194,7 +1194,7 @@ exports.deserializeAws_json1_1DisassociateDRTLogBucketCommand = deserializeAws_j
|
|
|
1194
1194
|
const deserializeAws_json1_1DisassociateDRTLogBucketCommandError = async (output, context) => {
|
|
1195
1195
|
const parsedOutput = {
|
|
1196
1196
|
...output,
|
|
1197
|
-
body: await
|
|
1197
|
+
body: await parseErrorBody(output.body, context),
|
|
1198
1198
|
};
|
|
1199
1199
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
1200
|
switch (errorCode) {
|
|
@@ -1243,7 +1243,7 @@ exports.deserializeAws_json1_1DisassociateDRTRoleCommand = deserializeAws_json1_
|
|
|
1243
1243
|
const deserializeAws_json1_1DisassociateDRTRoleCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
|
-
body: await
|
|
1246
|
+
body: await parseErrorBody(output.body, context),
|
|
1247
1247
|
};
|
|
1248
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1249
|
switch (errorCode) {
|
|
@@ -1286,7 +1286,7 @@ exports.deserializeAws_json1_1DisassociateHealthCheckCommand = deserializeAws_js
|
|
|
1286
1286
|
const deserializeAws_json1_1DisassociateHealthCheckCommandError = async (output, context) => {
|
|
1287
1287
|
const parsedOutput = {
|
|
1288
1288
|
...output,
|
|
1289
|
-
body: await
|
|
1289
|
+
body: await parseErrorBody(output.body, context),
|
|
1290
1290
|
};
|
|
1291
1291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1292
1292
|
switch (errorCode) {
|
|
@@ -1332,7 +1332,7 @@ exports.deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommand = d
|
|
|
1332
1332
|
const deserializeAws_json1_1EnableApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1333
1333
|
const parsedOutput = {
|
|
1334
1334
|
...output,
|
|
1335
|
-
body: await
|
|
1335
|
+
body: await parseErrorBody(output.body, context),
|
|
1336
1336
|
};
|
|
1337
1337
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
1338
|
switch (errorCode) {
|
|
@@ -1381,7 +1381,7 @@ exports.deserializeAws_json1_1EnableProactiveEngagementCommand = deserializeAws_
|
|
|
1381
1381
|
const deserializeAws_json1_1EnableProactiveEngagementCommandError = async (output, context) => {
|
|
1382
1382
|
const parsedOutput = {
|
|
1383
1383
|
...output,
|
|
1384
|
-
body: await
|
|
1384
|
+
body: await parseErrorBody(output.body, context),
|
|
1385
1385
|
};
|
|
1386
1386
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1387
1387
|
switch (errorCode) {
|
|
@@ -1427,7 +1427,7 @@ exports.deserializeAws_json1_1GetSubscriptionStateCommand = deserializeAws_json1
|
|
|
1427
1427
|
const deserializeAws_json1_1GetSubscriptionStateCommandError = async (output, context) => {
|
|
1428
1428
|
const parsedOutput = {
|
|
1429
1429
|
...output,
|
|
1430
|
-
body: await
|
|
1430
|
+
body: await parseErrorBody(output.body, context),
|
|
1431
1431
|
};
|
|
1432
1432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1433
1433
|
switch (errorCode) {
|
|
@@ -1461,7 +1461,7 @@ exports.deserializeAws_json1_1ListAttacksCommand = deserializeAws_json1_1ListAtt
|
|
|
1461
1461
|
const deserializeAws_json1_1ListAttacksCommandError = async (output, context) => {
|
|
1462
1462
|
const parsedOutput = {
|
|
1463
1463
|
...output,
|
|
1464
|
-
body: await
|
|
1464
|
+
body: await parseErrorBody(output.body, context),
|
|
1465
1465
|
};
|
|
1466
1466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
1467
|
switch (errorCode) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_json1_1ListProtectionGroupsCommand = deserializeAws_json1
|
|
|
1501
1501
|
const deserializeAws_json1_1ListProtectionGroupsCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1541,7 +1541,7 @@ exports.deserializeAws_json1_1ListProtectionsCommand = deserializeAws_json1_1Lis
|
|
|
1541
1541
|
const deserializeAws_json1_1ListProtectionsCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
|
-
body: await
|
|
1544
|
+
body: await parseErrorBody(output.body, context),
|
|
1545
1545
|
};
|
|
1546
1546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1547
|
switch (errorCode) {
|
|
@@ -1581,7 +1581,7 @@ exports.deserializeAws_json1_1ListResourcesInProtectionGroupCommand = deserializ
|
|
|
1581
1581
|
const deserializeAws_json1_1ListResourcesInProtectionGroupCommandError = async (output, context) => {
|
|
1582
1582
|
const parsedOutput = {
|
|
1583
1583
|
...output,
|
|
1584
|
-
body: await
|
|
1584
|
+
body: await parseErrorBody(output.body, context),
|
|
1585
1585
|
};
|
|
1586
1586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1587
|
switch (errorCode) {
|
|
@@ -1621,7 +1621,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
1621
1621
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1622
1622
|
const parsedOutput = {
|
|
1623
1623
|
...output,
|
|
1624
|
-
body: await
|
|
1624
|
+
body: await parseErrorBody(output.body, context),
|
|
1625
1625
|
};
|
|
1626
1626
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
1627
|
switch (errorCode) {
|
|
@@ -1661,7 +1661,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
1661
1661
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1662
1662
|
const parsedOutput = {
|
|
1663
1663
|
...output,
|
|
1664
|
-
body: await
|
|
1664
|
+
body: await parseErrorBody(output.body, context),
|
|
1665
1665
|
};
|
|
1666
1666
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
1667
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
1704
1704
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -1747,7 +1747,7 @@ exports.deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommand = d
|
|
|
1747
1747
|
const deserializeAws_json1_1UpdateApplicationLayerAutomaticResponseCommandError = async (output, context) => {
|
|
1748
1748
|
const parsedOutput = {
|
|
1749
1749
|
...output,
|
|
1750
|
-
body: await
|
|
1750
|
+
body: await parseErrorBody(output.body, context),
|
|
1751
1751
|
};
|
|
1752
1752
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
1753
|
switch (errorCode) {
|
|
@@ -1793,7 +1793,7 @@ exports.deserializeAws_json1_1UpdateEmergencyContactSettingsCommand = deserializ
|
|
|
1793
1793
|
const deserializeAws_json1_1UpdateEmergencyContactSettingsCommandError = async (output, context) => {
|
|
1794
1794
|
const parsedOutput = {
|
|
1795
1795
|
...output,
|
|
1796
|
-
body: await
|
|
1796
|
+
body: await parseErrorBody(output.body, context),
|
|
1797
1797
|
};
|
|
1798
1798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
1799
|
switch (errorCode) {
|
|
@@ -1836,7 +1836,7 @@ exports.deserializeAws_json1_1UpdateProtectionGroupCommand = deserializeAws_json
|
|
|
1836
1836
|
const deserializeAws_json1_1UpdateProtectionGroupCommandError = async (output, context) => {
|
|
1837
1837
|
const parsedOutput = {
|
|
1838
1838
|
...output,
|
|
1839
|
-
body: await
|
|
1839
|
+
body: await parseErrorBody(output.body, context),
|
|
1840
1840
|
};
|
|
1841
1841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1842
|
switch (errorCode) {
|
|
@@ -1879,7 +1879,7 @@ exports.deserializeAws_json1_1UpdateSubscriptionCommand = deserializeAws_json1_1
|
|
|
1879
1879
|
const deserializeAws_json1_1UpdateSubscriptionCommandError = async (output, context) => {
|
|
1880
1880
|
const parsedOutput = {
|
|
1881
1881
|
...output,
|
|
1882
|
-
body: await
|
|
1882
|
+
body: await parseErrorBody(output.body, context),
|
|
1883
1883
|
};
|
|
1884
1884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
1885
|
switch (errorCode) {
|
|
@@ -3064,6 +3064,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3064
3064
|
}
|
|
3065
3065
|
return {};
|
|
3066
3066
|
});
|
|
3067
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3068
|
+
var _a;
|
|
3069
|
+
const value = await parseBody(errorBody, context);
|
|
3070
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3071
|
+
return value;
|
|
3072
|
+
};
|
|
3067
3073
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3068
3074
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3069
3075
|
const sanitizeErrorCode = (rawValue) => {
|