@aws-sdk/client-wafv2 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 +54 -48
- package/dist-es/WAFV2.js +194 -201
- package/dist-es/WAFV2Client.js +22 -28
- package/dist-es/commands/AssociateWebACLCommand.js +21 -28
- package/dist-es/commands/CheckCapacityCommand.js +21 -28
- package/dist-es/commands/CreateIPSetCommand.js +21 -28
- package/dist-es/commands/CreateRegexPatternSetCommand.js +21 -28
- package/dist-es/commands/CreateRuleGroupCommand.js +21 -28
- package/dist-es/commands/CreateWebACLCommand.js +21 -28
- package/dist-es/commands/DeleteFirewallManagerRuleGroupsCommand.js +21 -28
- package/dist-es/commands/DeleteIPSetCommand.js +21 -28
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/DeletePermissionPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteRegexPatternSetCommand.js +21 -28
- package/dist-es/commands/DeleteRuleGroupCommand.js +21 -28
- package/dist-es/commands/DeleteWebACLCommand.js +21 -28
- package/dist-es/commands/DescribeManagedRuleGroupCommand.js +21 -28
- package/dist-es/commands/DisassociateWebACLCommand.js +21 -28
- package/dist-es/commands/GenerateMobileSdkReleaseUrlCommand.js +21 -28
- package/dist-es/commands/GetIPSetCommand.js +21 -28
- package/dist-es/commands/GetLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/GetManagedRuleSetCommand.js +21 -28
- package/dist-es/commands/GetMobileSdkReleaseCommand.js +21 -28
- package/dist-es/commands/GetPermissionPolicyCommand.js +21 -28
- package/dist-es/commands/GetRateBasedStatementManagedKeysCommand.js +21 -28
- package/dist-es/commands/GetRegexPatternSetCommand.js +21 -28
- package/dist-es/commands/GetRuleGroupCommand.js +21 -28
- package/dist-es/commands/GetSampledRequestsCommand.js +21 -28
- package/dist-es/commands/GetWebACLCommand.js +21 -28
- package/dist-es/commands/GetWebACLForResourceCommand.js +21 -28
- package/dist-es/commands/ListAvailableManagedRuleGroupVersionsCommand.js +21 -28
- package/dist-es/commands/ListAvailableManagedRuleGroupsCommand.js +21 -28
- package/dist-es/commands/ListIPSetsCommand.js +21 -28
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListManagedRuleSetsCommand.js +21 -28
- package/dist-es/commands/ListMobileSdkReleasesCommand.js +21 -28
- package/dist-es/commands/ListRegexPatternSetsCommand.js +21 -28
- package/dist-es/commands/ListResourcesForWebACLCommand.js +21 -28
- package/dist-es/commands/ListRuleGroupsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListWebACLsCommand.js +21 -28
- package/dist-es/commands/PutLoggingConfigurationCommand.js +21 -28
- package/dist-es/commands/PutManagedRuleSetVersionsCommand.js +21 -28
- package/dist-es/commands/PutPermissionPolicyCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateIPSetCommand.js +21 -28
- package/dist-es/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +21 -28
- package/dist-es/commands/UpdateRegexPatternSetCommand.js +21 -28
- package/dist-es/commands/UpdateRuleGroupCommand.js +21 -28
- package/dist-es/commands/UpdateWebACLCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/WAFV2ServiceException.js +5 -10
- package/dist-es/models/models_0.js +775 -404
- package/dist-es/protocols/Aws_json1_1.js +4048 -4797
- 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-wafv2
|
|
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-wafv2
|
|
@@ -503,7 +503,7 @@ exports.deserializeAws_json1_1AssociateWebACLCommand = deserializeAws_json1_1Ass
|
|
|
503
503
|
const deserializeAws_json1_1AssociateWebACLCommandError = async (output, context) => {
|
|
504
504
|
const parsedOutput = {
|
|
505
505
|
...output,
|
|
506
|
-
body: await
|
|
506
|
+
body: await parseErrorBody(output.body, context),
|
|
507
507
|
};
|
|
508
508
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
509
|
switch (errorCode) {
|
|
@@ -549,7 +549,7 @@ exports.deserializeAws_json1_1CheckCapacityCommand = deserializeAws_json1_1Check
|
|
|
549
549
|
const deserializeAws_json1_1CheckCapacityCommandError = async (output, context) => {
|
|
550
550
|
const parsedOutput = {
|
|
551
551
|
...output,
|
|
552
|
-
body: await
|
|
552
|
+
body: await parseErrorBody(output.body, context),
|
|
553
553
|
};
|
|
554
554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
555
|
switch (errorCode) {
|
|
@@ -607,7 +607,7 @@ exports.deserializeAws_json1_1CreateIPSetCommand = deserializeAws_json1_1CreateI
|
|
|
607
607
|
const deserializeAws_json1_1CreateIPSetCommandError = async (output, context) => {
|
|
608
608
|
const parsedOutput = {
|
|
609
609
|
...output,
|
|
610
|
-
body: await
|
|
610
|
+
body: await parseErrorBody(output.body, context),
|
|
611
611
|
};
|
|
612
612
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
613
|
switch (errorCode) {
|
|
@@ -662,7 +662,7 @@ exports.deserializeAws_json1_1CreateRegexPatternSetCommand = deserializeAws_json
|
|
|
662
662
|
const deserializeAws_json1_1CreateRegexPatternSetCommandError = async (output, context) => {
|
|
663
663
|
const parsedOutput = {
|
|
664
664
|
...output,
|
|
665
|
-
body: await
|
|
665
|
+
body: await parseErrorBody(output.body, context),
|
|
666
666
|
};
|
|
667
667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
668
|
switch (errorCode) {
|
|
@@ -717,7 +717,7 @@ exports.deserializeAws_json1_1CreateRuleGroupCommand = deserializeAws_json1_1Cre
|
|
|
717
717
|
const deserializeAws_json1_1CreateRuleGroupCommandError = async (output, context) => {
|
|
718
718
|
const parsedOutput = {
|
|
719
719
|
...output,
|
|
720
|
-
body: await
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
721
|
};
|
|
722
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
723
|
switch (errorCode) {
|
|
@@ -781,7 +781,7 @@ exports.deserializeAws_json1_1CreateWebACLCommand = deserializeAws_json1_1Create
|
|
|
781
781
|
const deserializeAws_json1_1CreateWebACLCommandError = async (output, context) => {
|
|
782
782
|
const parsedOutput = {
|
|
783
783
|
...output,
|
|
784
|
-
body: await
|
|
784
|
+
body: await parseErrorBody(output.body, context),
|
|
785
785
|
};
|
|
786
786
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
787
|
switch (errorCode) {
|
|
@@ -851,7 +851,7 @@ exports.deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommand = deseriali
|
|
|
851
851
|
const deserializeAws_json1_1DeleteFirewallManagerRuleGroupsCommandError = async (output, context) => {
|
|
852
852
|
const parsedOutput = {
|
|
853
853
|
...output,
|
|
854
|
-
body: await
|
|
854
|
+
body: await parseErrorBody(output.body, context),
|
|
855
855
|
};
|
|
856
856
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
857
|
switch (errorCode) {
|
|
@@ -897,7 +897,7 @@ exports.deserializeAws_json1_1DeleteIPSetCommand = deserializeAws_json1_1DeleteI
|
|
|
897
897
|
const deserializeAws_json1_1DeleteIPSetCommandError = async (output, context) => {
|
|
898
898
|
const parsedOutput = {
|
|
899
899
|
...output,
|
|
900
|
-
body: await
|
|
900
|
+
body: await parseErrorBody(output.body, context),
|
|
901
901
|
};
|
|
902
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
903
|
switch (errorCode) {
|
|
@@ -952,7 +952,7 @@ exports.deserializeAws_json1_1DeleteLoggingConfigurationCommand = deserializeAws
|
|
|
952
952
|
const deserializeAws_json1_1DeleteLoggingConfigurationCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
|
-
body: await
|
|
955
|
+
body: await parseErrorBody(output.body, context),
|
|
956
956
|
};
|
|
957
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
958
|
switch (errorCode) {
|
|
@@ -998,7 +998,7 @@ exports.deserializeAws_json1_1DeletePermissionPolicyCommand = deserializeAws_jso
|
|
|
998
998
|
const deserializeAws_json1_1DeletePermissionPolicyCommandError = async (output, context) => {
|
|
999
999
|
const parsedOutput = {
|
|
1000
1000
|
...output,
|
|
1001
|
-
body: await
|
|
1001
|
+
body: await parseErrorBody(output.body, context),
|
|
1002
1002
|
};
|
|
1003
1003
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
1004
|
switch (errorCode) {
|
|
@@ -1038,7 +1038,7 @@ exports.deserializeAws_json1_1DeleteRegexPatternSetCommand = deserializeAws_json
|
|
|
1038
1038
|
const deserializeAws_json1_1DeleteRegexPatternSetCommandError = async (output, context) => {
|
|
1039
1039
|
const parsedOutput = {
|
|
1040
1040
|
...output,
|
|
1041
|
-
body: await
|
|
1041
|
+
body: await parseErrorBody(output.body, context),
|
|
1042
1042
|
};
|
|
1043
1043
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1044
|
switch (errorCode) {
|
|
@@ -1093,7 +1093,7 @@ exports.deserializeAws_json1_1DeleteRuleGroupCommand = deserializeAws_json1_1Del
|
|
|
1093
1093
|
const deserializeAws_json1_1DeleteRuleGroupCommandError = async (output, context) => {
|
|
1094
1094
|
const parsedOutput = {
|
|
1095
1095
|
...output,
|
|
1096
|
-
body: await
|
|
1096
|
+
body: await parseErrorBody(output.body, context),
|
|
1097
1097
|
};
|
|
1098
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1099
|
switch (errorCode) {
|
|
@@ -1148,7 +1148,7 @@ exports.deserializeAws_json1_1DeleteWebACLCommand = deserializeAws_json1_1Delete
|
|
|
1148
1148
|
const deserializeAws_json1_1DeleteWebACLCommandError = 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) {
|
|
@@ -1203,7 +1203,7 @@ exports.deserializeAws_json1_1DescribeManagedRuleGroupCommand = deserializeAws_j
|
|
|
1203
1203
|
const deserializeAws_json1_1DescribeManagedRuleGroupCommandError = async (output, context) => {
|
|
1204
1204
|
const parsedOutput = {
|
|
1205
1205
|
...output,
|
|
1206
|
-
body: await
|
|
1206
|
+
body: await parseErrorBody(output.body, context),
|
|
1207
1207
|
};
|
|
1208
1208
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1209
1209
|
switch (errorCode) {
|
|
@@ -1252,7 +1252,7 @@ exports.deserializeAws_json1_1DisassociateWebACLCommand = deserializeAws_json1_1
|
|
|
1252
1252
|
const deserializeAws_json1_1DisassociateWebACLCommandError = async (output, context) => {
|
|
1253
1253
|
const parsedOutput = {
|
|
1254
1254
|
...output,
|
|
1255
|
-
body: await
|
|
1255
|
+
body: await parseErrorBody(output.body, context),
|
|
1256
1256
|
};
|
|
1257
1257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
1258
|
switch (errorCode) {
|
|
@@ -1295,7 +1295,7 @@ exports.deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommand = deserializeAw
|
|
|
1295
1295
|
const deserializeAws_json1_1GenerateMobileSdkReleaseUrlCommandError = async (output, context) => {
|
|
1296
1296
|
const parsedOutput = {
|
|
1297
1297
|
...output,
|
|
1298
|
-
body: await
|
|
1298
|
+
body: await parseErrorBody(output.body, context),
|
|
1299
1299
|
};
|
|
1300
1300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
1301
|
switch (errorCode) {
|
|
@@ -1338,7 +1338,7 @@ exports.deserializeAws_json1_1GetIPSetCommand = deserializeAws_json1_1GetIPSetCo
|
|
|
1338
1338
|
const deserializeAws_json1_1GetIPSetCommandError = async (output, context) => {
|
|
1339
1339
|
const parsedOutput = {
|
|
1340
1340
|
...output,
|
|
1341
|
-
body: await
|
|
1341
|
+
body: await parseErrorBody(output.body, context),
|
|
1342
1342
|
};
|
|
1343
1343
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
1344
|
switch (errorCode) {
|
|
@@ -1381,7 +1381,7 @@ exports.deserializeAws_json1_1GetLoggingConfigurationCommand = deserializeAws_js
|
|
|
1381
1381
|
const deserializeAws_json1_1GetLoggingConfigurationCommandError = 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) {
|
|
@@ -1424,7 +1424,7 @@ exports.deserializeAws_json1_1GetManagedRuleSetCommand = deserializeAws_json1_1G
|
|
|
1424
1424
|
const deserializeAws_json1_1GetManagedRuleSetCommandError = async (output, context) => {
|
|
1425
1425
|
const parsedOutput = {
|
|
1426
1426
|
...output,
|
|
1427
|
-
body: await
|
|
1427
|
+
body: await parseErrorBody(output.body, context),
|
|
1428
1428
|
};
|
|
1429
1429
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1430
|
switch (errorCode) {
|
|
@@ -1467,7 +1467,7 @@ exports.deserializeAws_json1_1GetMobileSdkReleaseCommand = deserializeAws_json1_
|
|
|
1467
1467
|
const deserializeAws_json1_1GetMobileSdkReleaseCommandError = async (output, context) => {
|
|
1468
1468
|
const parsedOutput = {
|
|
1469
1469
|
...output,
|
|
1470
|
-
body: await
|
|
1470
|
+
body: await parseErrorBody(output.body, context),
|
|
1471
1471
|
};
|
|
1472
1472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
1473
|
switch (errorCode) {
|
|
@@ -1510,7 +1510,7 @@ exports.deserializeAws_json1_1GetPermissionPolicyCommand = deserializeAws_json1_
|
|
|
1510
1510
|
const deserializeAws_json1_1GetPermissionPolicyCommandError = async (output, context) => {
|
|
1511
1511
|
const parsedOutput = {
|
|
1512
1512
|
...output,
|
|
1513
|
-
body: await
|
|
1513
|
+
body: await parseErrorBody(output.body, context),
|
|
1514
1514
|
};
|
|
1515
1515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
1516
|
switch (errorCode) {
|
|
@@ -1550,7 +1550,7 @@ exports.deserializeAws_json1_1GetRateBasedStatementManagedKeysCommand = deserial
|
|
|
1550
1550
|
const deserializeAws_json1_1GetRateBasedStatementManagedKeysCommandError = async (output, context) => {
|
|
1551
1551
|
const parsedOutput = {
|
|
1552
1552
|
...output,
|
|
1553
|
-
body: await
|
|
1553
|
+
body: await parseErrorBody(output.body, context),
|
|
1554
1554
|
};
|
|
1555
1555
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
1556
|
switch (errorCode) {
|
|
@@ -1593,7 +1593,7 @@ exports.deserializeAws_json1_1GetRegexPatternSetCommand = deserializeAws_json1_1
|
|
|
1593
1593
|
const deserializeAws_json1_1GetRegexPatternSetCommandError = async (output, context) => {
|
|
1594
1594
|
const parsedOutput = {
|
|
1595
1595
|
...output,
|
|
1596
|
-
body: await
|
|
1596
|
+
body: await parseErrorBody(output.body, context),
|
|
1597
1597
|
};
|
|
1598
1598
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1599
1599
|
switch (errorCode) {
|
|
@@ -1636,7 +1636,7 @@ exports.deserializeAws_json1_1GetRuleGroupCommand = deserializeAws_json1_1GetRul
|
|
|
1636
1636
|
const deserializeAws_json1_1GetRuleGroupCommandError = async (output, context) => {
|
|
1637
1637
|
const parsedOutput = {
|
|
1638
1638
|
...output,
|
|
1639
|
-
body: await
|
|
1639
|
+
body: await parseErrorBody(output.body, context),
|
|
1640
1640
|
};
|
|
1641
1641
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1642
1642
|
switch (errorCode) {
|
|
@@ -1679,7 +1679,7 @@ exports.deserializeAws_json1_1GetSampledRequestsCommand = deserializeAws_json1_1
|
|
|
1679
1679
|
const deserializeAws_json1_1GetSampledRequestsCommandError = async (output, context) => {
|
|
1680
1680
|
const parsedOutput = {
|
|
1681
1681
|
...output,
|
|
1682
|
-
body: await
|
|
1682
|
+
body: await parseErrorBody(output.body, context),
|
|
1683
1683
|
};
|
|
1684
1684
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1685
1685
|
switch (errorCode) {
|
|
@@ -1719,7 +1719,7 @@ exports.deserializeAws_json1_1GetWebACLCommand = deserializeAws_json1_1GetWebACL
|
|
|
1719
1719
|
const deserializeAws_json1_1GetWebACLCommandError = async (output, context) => {
|
|
1720
1720
|
const parsedOutput = {
|
|
1721
1721
|
...output,
|
|
1722
|
-
body: await
|
|
1722
|
+
body: await parseErrorBody(output.body, context),
|
|
1723
1723
|
};
|
|
1724
1724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1725
1725
|
switch (errorCode) {
|
|
@@ -1762,7 +1762,7 @@ exports.deserializeAws_json1_1GetWebACLForResourceCommand = deserializeAws_json1
|
|
|
1762
1762
|
const deserializeAws_json1_1GetWebACLForResourceCommandError = async (output, context) => {
|
|
1763
1763
|
const parsedOutput = {
|
|
1764
1764
|
...output,
|
|
1765
|
-
body: await
|
|
1765
|
+
body: await parseErrorBody(output.body, context),
|
|
1766
1766
|
};
|
|
1767
1767
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1768
|
switch (errorCode) {
|
|
@@ -1808,7 +1808,7 @@ exports.deserializeAws_json1_1ListAvailableManagedRuleGroupsCommand = deserializ
|
|
|
1808
1808
|
const deserializeAws_json1_1ListAvailableManagedRuleGroupsCommandError = async (output, context) => {
|
|
1809
1809
|
const parsedOutput = {
|
|
1810
1810
|
...output,
|
|
1811
|
-
body: await
|
|
1811
|
+
body: await parseErrorBody(output.body, context),
|
|
1812
1812
|
};
|
|
1813
1813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1814
|
switch (errorCode) {
|
|
@@ -1848,7 +1848,7 @@ exports.deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommand = des
|
|
|
1848
1848
|
const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError = async (output, context) => {
|
|
1849
1849
|
const parsedOutput = {
|
|
1850
1850
|
...output,
|
|
1851
|
-
body: await
|
|
1851
|
+
body: await parseErrorBody(output.body, context),
|
|
1852
1852
|
};
|
|
1853
1853
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1854
1854
|
switch (errorCode) {
|
|
@@ -1891,7 +1891,7 @@ exports.deserializeAws_json1_1ListIPSetsCommand = deserializeAws_json1_1ListIPSe
|
|
|
1891
1891
|
const deserializeAws_json1_1ListIPSetsCommandError = async (output, context) => {
|
|
1892
1892
|
const parsedOutput = {
|
|
1893
1893
|
...output,
|
|
1894
|
-
body: await
|
|
1894
|
+
body: await parseErrorBody(output.body, context),
|
|
1895
1895
|
};
|
|
1896
1896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1897
|
switch (errorCode) {
|
|
@@ -1931,7 +1931,7 @@ exports.deserializeAws_json1_1ListLoggingConfigurationsCommand = deserializeAws_
|
|
|
1931
1931
|
const deserializeAws_json1_1ListLoggingConfigurationsCommandError = async (output, context) => {
|
|
1932
1932
|
const parsedOutput = {
|
|
1933
1933
|
...output,
|
|
1934
|
-
body: await
|
|
1934
|
+
body: await parseErrorBody(output.body, context),
|
|
1935
1935
|
};
|
|
1936
1936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1937
|
switch (errorCode) {
|
|
@@ -1971,7 +1971,7 @@ exports.deserializeAws_json1_1ListManagedRuleSetsCommand = deserializeAws_json1_
|
|
|
1971
1971
|
const deserializeAws_json1_1ListManagedRuleSetsCommandError = async (output, context) => {
|
|
1972
1972
|
const parsedOutput = {
|
|
1973
1973
|
...output,
|
|
1974
|
-
body: await
|
|
1974
|
+
body: await parseErrorBody(output.body, context),
|
|
1975
1975
|
};
|
|
1976
1976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
1977
|
switch (errorCode) {
|
|
@@ -2011,7 +2011,7 @@ exports.deserializeAws_json1_1ListMobileSdkReleasesCommand = deserializeAws_json
|
|
|
2011
2011
|
const deserializeAws_json1_1ListMobileSdkReleasesCommandError = async (output, context) => {
|
|
2012
2012
|
const parsedOutput = {
|
|
2013
2013
|
...output,
|
|
2014
|
-
body: await
|
|
2014
|
+
body: await parseErrorBody(output.body, context),
|
|
2015
2015
|
};
|
|
2016
2016
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2017
2017
|
switch (errorCode) {
|
|
@@ -2051,7 +2051,7 @@ exports.deserializeAws_json1_1ListRegexPatternSetsCommand = deserializeAws_json1
|
|
|
2051
2051
|
const deserializeAws_json1_1ListRegexPatternSetsCommandError = async (output, context) => {
|
|
2052
2052
|
const parsedOutput = {
|
|
2053
2053
|
...output,
|
|
2054
|
-
body: await
|
|
2054
|
+
body: await parseErrorBody(output.body, context),
|
|
2055
2055
|
};
|
|
2056
2056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
2057
|
switch (errorCode) {
|
|
@@ -2091,7 +2091,7 @@ exports.deserializeAws_json1_1ListResourcesForWebACLCommand = deserializeAws_jso
|
|
|
2091
2091
|
const deserializeAws_json1_1ListResourcesForWebACLCommandError = async (output, context) => {
|
|
2092
2092
|
const parsedOutput = {
|
|
2093
2093
|
...output,
|
|
2094
|
-
body: await
|
|
2094
|
+
body: await parseErrorBody(output.body, context),
|
|
2095
2095
|
};
|
|
2096
2096
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2097
2097
|
switch (errorCode) {
|
|
@@ -2134,7 +2134,7 @@ exports.deserializeAws_json1_1ListRuleGroupsCommand = deserializeAws_json1_1List
|
|
|
2134
2134
|
const deserializeAws_json1_1ListRuleGroupsCommandError = async (output, context) => {
|
|
2135
2135
|
const parsedOutput = {
|
|
2136
2136
|
...output,
|
|
2137
|
-
body: await
|
|
2137
|
+
body: await parseErrorBody(output.body, context),
|
|
2138
2138
|
};
|
|
2139
2139
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
2140
|
switch (errorCode) {
|
|
@@ -2174,7 +2174,7 @@ exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_
|
|
|
2174
2174
|
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2175
2175
|
const parsedOutput = {
|
|
2176
2176
|
...output,
|
|
2177
|
-
body: await
|
|
2177
|
+
body: await parseErrorBody(output.body, context),
|
|
2178
2178
|
};
|
|
2179
2179
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
2180
|
switch (errorCode) {
|
|
@@ -2223,7 +2223,7 @@ exports.deserializeAws_json1_1ListWebACLsCommand = deserializeAws_json1_1ListWeb
|
|
|
2223
2223
|
const deserializeAws_json1_1ListWebACLsCommandError = async (output, context) => {
|
|
2224
2224
|
const parsedOutput = {
|
|
2225
2225
|
...output,
|
|
2226
|
-
body: await
|
|
2226
|
+
body: await parseErrorBody(output.body, context),
|
|
2227
2227
|
};
|
|
2228
2228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2229
2229
|
switch (errorCode) {
|
|
@@ -2263,7 +2263,7 @@ exports.deserializeAws_json1_1PutLoggingConfigurationCommand = deserializeAws_js
|
|
|
2263
2263
|
const deserializeAws_json1_1PutLoggingConfigurationCommandError = async (output, context) => {
|
|
2264
2264
|
const parsedOutput = {
|
|
2265
2265
|
...output,
|
|
2266
|
-
body: await
|
|
2266
|
+
body: await parseErrorBody(output.body, context),
|
|
2267
2267
|
};
|
|
2268
2268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
2269
|
switch (errorCode) {
|
|
@@ -2318,7 +2318,7 @@ exports.deserializeAws_json1_1PutManagedRuleSetVersionsCommand = deserializeAws_
|
|
|
2318
2318
|
const deserializeAws_json1_1PutManagedRuleSetVersionsCommandError = async (output, context) => {
|
|
2319
2319
|
const parsedOutput = {
|
|
2320
2320
|
...output,
|
|
2321
|
-
body: await
|
|
2321
|
+
body: await parseErrorBody(output.body, context),
|
|
2322
2322
|
};
|
|
2323
2323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2324
2324
|
switch (errorCode) {
|
|
@@ -2364,7 +2364,7 @@ exports.deserializeAws_json1_1PutPermissionPolicyCommand = deserializeAws_json1_
|
|
|
2364
2364
|
const deserializeAws_json1_1PutPermissionPolicyCommandError = async (output, context) => {
|
|
2365
2365
|
const parsedOutput = {
|
|
2366
2366
|
...output,
|
|
2367
|
-
body: await
|
|
2367
|
+
body: await parseErrorBody(output.body, context),
|
|
2368
2368
|
};
|
|
2369
2369
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
2370
|
switch (errorCode) {
|
|
@@ -2407,7 +2407,7 @@ exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagReso
|
|
|
2407
2407
|
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2408
2408
|
const parsedOutput = {
|
|
2409
2409
|
...output,
|
|
2410
|
-
body: await
|
|
2410
|
+
body: await parseErrorBody(output.body, context),
|
|
2411
2411
|
};
|
|
2412
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
2413
|
switch (errorCode) {
|
|
@@ -2459,7 +2459,7 @@ exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1Untag
|
|
|
2459
2459
|
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2460
2460
|
const parsedOutput = {
|
|
2461
2461
|
...output,
|
|
2462
|
-
body: await
|
|
2462
|
+
body: await parseErrorBody(output.body, context),
|
|
2463
2463
|
};
|
|
2464
2464
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2465
2465
|
switch (errorCode) {
|
|
@@ -2508,7 +2508,7 @@ exports.deserializeAws_json1_1UpdateIPSetCommand = deserializeAws_json1_1UpdateI
|
|
|
2508
2508
|
const deserializeAws_json1_1UpdateIPSetCommandError = async (output, context) => {
|
|
2509
2509
|
const parsedOutput = {
|
|
2510
2510
|
...output,
|
|
2511
|
-
body: await
|
|
2511
|
+
body: await parseErrorBody(output.body, context),
|
|
2512
2512
|
};
|
|
2513
2513
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2514
2514
|
switch (errorCode) {
|
|
@@ -2560,7 +2560,7 @@ exports.deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommand = des
|
|
|
2560
2560
|
const deserializeAws_json1_1UpdateManagedRuleSetVersionExpiryDateCommandError = async (output, context) => {
|
|
2561
2561
|
const parsedOutput = {
|
|
2562
2562
|
...output,
|
|
2563
|
-
body: await
|
|
2563
|
+
body: await parseErrorBody(output.body, context),
|
|
2564
2564
|
};
|
|
2565
2565
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2566
2566
|
switch (errorCode) {
|
|
@@ -2606,7 +2606,7 @@ exports.deserializeAws_json1_1UpdateRegexPatternSetCommand = deserializeAws_json
|
|
|
2606
2606
|
const deserializeAws_json1_1UpdateRegexPatternSetCommandError = async (output, context) => {
|
|
2607
2607
|
const parsedOutput = {
|
|
2608
2608
|
...output,
|
|
2609
|
-
body: await
|
|
2609
|
+
body: await parseErrorBody(output.body, context),
|
|
2610
2610
|
};
|
|
2611
2611
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
2612
|
switch (errorCode) {
|
|
@@ -2658,7 +2658,7 @@ exports.deserializeAws_json1_1UpdateRuleGroupCommand = deserializeAws_json1_1Upd
|
|
|
2658
2658
|
const deserializeAws_json1_1UpdateRuleGroupCommandError = async (output, context) => {
|
|
2659
2659
|
const parsedOutput = {
|
|
2660
2660
|
...output,
|
|
2661
|
-
body: await
|
|
2661
|
+
body: await parseErrorBody(output.body, context),
|
|
2662
2662
|
};
|
|
2663
2663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2664
2664
|
switch (errorCode) {
|
|
@@ -2719,7 +2719,7 @@ exports.deserializeAws_json1_1UpdateWebACLCommand = deserializeAws_json1_1Update
|
|
|
2719
2719
|
const deserializeAws_json1_1UpdateWebACLCommandError = async (output, context) => {
|
|
2720
2720
|
const parsedOutput = {
|
|
2721
2721
|
...output,
|
|
2722
|
-
body: await
|
|
2722
|
+
body: await parseErrorBody(output.body, context),
|
|
2723
2723
|
};
|
|
2724
2724
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2725
2725
|
switch (errorCode) {
|
|
@@ -5524,6 +5524,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5524
5524
|
}
|
|
5525
5525
|
return {};
|
|
5526
5526
|
});
|
|
5527
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5528
|
+
var _a;
|
|
5529
|
+
const value = await parseBody(errorBody, context);
|
|
5530
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5531
|
+
return value;
|
|
5532
|
+
};
|
|
5527
5533
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5528
5534
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5529
5535
|
const sanitizeErrorCode = (rawValue) => {
|