@aws-sdk/client-wafv2 3.524.0 → 3.529.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/dist-cjs/index.js +63 -98
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/dist-types/commands/DescribeAllManagedProductsCommand.d.ts +21 -0
- package/dist-types/commands/GetDecryptedAPIKeyCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +127 -41
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/package.json +17 -17
- package/dist-cjs/WAFV2.js +0 -1
- package/dist-cjs/WAFV2Client.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateWebACLCommand.js +0 -1
- package/dist-cjs/commands/CheckCapacityCommand.js +0 -1
- package/dist-cjs/commands/CreateAPIKeyCommand.js +0 -1
- package/dist-cjs/commands/CreateIPSetCommand.js +0 -1
- package/dist-cjs/commands/CreateRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateWebACLCommand.js +0 -1
- package/dist-cjs/commands/DeleteAPIKeyCommand.js +0 -1
- package/dist-cjs/commands/DeleteFirewallManagerRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/DeleteIPSetCommand.js +0 -1
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeletePermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteWebACLCommand.js +0 -1
- package/dist-cjs/commands/DescribeAllManagedProductsCommand.js +0 -1
- package/dist-cjs/commands/DescribeManagedProductsByVendorCommand.js +0 -1
- package/dist-cjs/commands/DescribeManagedRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/DisassociateWebACLCommand.js +0 -1
- package/dist-cjs/commands/GenerateMobileSdkReleaseUrlCommand.js +0 -1
- package/dist-cjs/commands/GetDecryptedAPIKeyCommand.js +0 -1
- package/dist-cjs/commands/GetIPSetCommand.js +0 -1
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetManagedRuleSetCommand.js +0 -1
- package/dist-cjs/commands/GetMobileSdkReleaseCommand.js +0 -1
- package/dist-cjs/commands/GetPermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetRateBasedStatementManagedKeysCommand.js +0 -1
- package/dist-cjs/commands/GetRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/GetRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/GetSampledRequestsCommand.js +0 -1
- package/dist-cjs/commands/GetWebACLCommand.js +0 -1
- package/dist-cjs/commands/GetWebACLForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListAPIKeysCommand.js +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListAvailableManagedRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListIPSetsCommand.js +0 -1
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListManagedRuleSetsCommand.js +0 -1
- package/dist-cjs/commands/ListMobileSdkReleasesCommand.js +0 -1
- package/dist-cjs/commands/ListRegexPatternSetsCommand.js +0 -1
- package/dist-cjs/commands/ListResourcesForWebACLCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListWebACLsCommand.js +0 -1
- package/dist-cjs/commands/PutLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/PutManagedRuleSetVersionsCommand.js +0 -1
- package/dist-cjs/commands/PutPermissionPolicyCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateIPSetCommand.js +0 -1
- package/dist-cjs/commands/UpdateManagedRuleSetVersionExpiryDateCommand.js +0 -1
- package/dist-cjs/commands/UpdateRegexPatternSetCommand.js +0 -1
- package/dist-cjs/commands/UpdateRuleGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateWebACLCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/WAFV2ServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -281,6 +281,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
281
281
|
var import_types = require("@smithy/types");
|
|
282
282
|
|
|
283
283
|
// src/protocols/Aws_json1_1.ts
|
|
284
|
+
var import_core2 = require("@aws-sdk/core");
|
|
284
285
|
|
|
285
286
|
|
|
286
287
|
|
|
@@ -649,7 +650,11 @@ var SensitivityLevel = {
|
|
|
649
650
|
LOW: "LOW"
|
|
650
651
|
};
|
|
651
652
|
var AssociatedResourceType = {
|
|
652
|
-
|
|
653
|
+
API_GATEWAY: "API_GATEWAY",
|
|
654
|
+
APP_RUNNER_SERVICE: "APP_RUNNER_SERVICE",
|
|
655
|
+
CLOUDFRONT: "CLOUDFRONT",
|
|
656
|
+
COGNITO_USER_POOL: "COGNITO_USER_POOL",
|
|
657
|
+
VERIFIED_ACCESS_INSTANCE: "VERIFIED_ACCESS_INSTANCE"
|
|
653
658
|
};
|
|
654
659
|
var _WAFInternalErrorException = class _WAFInternalErrorException extends WAFV2ServiceException {
|
|
655
660
|
/**
|
|
@@ -875,6 +880,7 @@ var _WAFLimitsExceededException = class _WAFLimitsExceededException extends WAFV
|
|
|
875
880
|
this.$fault = "client";
|
|
876
881
|
Object.setPrototypeOf(this, _WAFLimitsExceededException.prototype);
|
|
877
882
|
this.Message = opts.Message;
|
|
883
|
+
this.SourceType = opts.SourceType;
|
|
878
884
|
}
|
|
879
885
|
};
|
|
880
886
|
__name(_WAFLimitsExceededException, "WAFLimitsExceededException");
|
|
@@ -1441,7 +1447,7 @@ var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1441
1447
|
if (output.statusCode >= 300) {
|
|
1442
1448
|
return de_CommandError(output, context);
|
|
1443
1449
|
}
|
|
1444
|
-
const data = await
|
|
1450
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1445
1451
|
let contents = {};
|
|
1446
1452
|
contents = (0, import_smithy_client._json)(data);
|
|
1447
1453
|
const response = {
|
|
@@ -1454,7 +1460,7 @@ var de_CheckCapacityCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1454
1460
|
if (output.statusCode >= 300) {
|
|
1455
1461
|
return de_CommandError(output, context);
|
|
1456
1462
|
}
|
|
1457
|
-
const data = await
|
|
1463
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1458
1464
|
let contents = {};
|
|
1459
1465
|
contents = (0, import_smithy_client._json)(data);
|
|
1460
1466
|
const response = {
|
|
@@ -1467,7 +1473,7 @@ var de_CreateAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1467
1473
|
if (output.statusCode >= 300) {
|
|
1468
1474
|
return de_CommandError(output, context);
|
|
1469
1475
|
}
|
|
1470
|
-
const data = await
|
|
1476
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1471
1477
|
let contents = {};
|
|
1472
1478
|
contents = (0, import_smithy_client._json)(data);
|
|
1473
1479
|
const response = {
|
|
@@ -1480,7 +1486,7 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1480
1486
|
if (output.statusCode >= 300) {
|
|
1481
1487
|
return de_CommandError(output, context);
|
|
1482
1488
|
}
|
|
1483
|
-
const data = await
|
|
1489
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1484
1490
|
let contents = {};
|
|
1485
1491
|
contents = (0, import_smithy_client._json)(data);
|
|
1486
1492
|
const response = {
|
|
@@ -1493,7 +1499,7 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1493
1499
|
if (output.statusCode >= 300) {
|
|
1494
1500
|
return de_CommandError(output, context);
|
|
1495
1501
|
}
|
|
1496
|
-
const data = await
|
|
1502
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1497
1503
|
let contents = {};
|
|
1498
1504
|
contents = (0, import_smithy_client._json)(data);
|
|
1499
1505
|
const response = {
|
|
@@ -1506,7 +1512,7 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1506
1512
|
if (output.statusCode >= 300) {
|
|
1507
1513
|
return de_CommandError(output, context);
|
|
1508
1514
|
}
|
|
1509
|
-
const data = await
|
|
1515
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1510
1516
|
let contents = {};
|
|
1511
1517
|
contents = (0, import_smithy_client._json)(data);
|
|
1512
1518
|
const response = {
|
|
@@ -1519,7 +1525,7 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1519
1525
|
if (output.statusCode >= 300) {
|
|
1520
1526
|
return de_CommandError(output, context);
|
|
1521
1527
|
}
|
|
1522
|
-
const data = await
|
|
1528
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1523
1529
|
let contents = {};
|
|
1524
1530
|
contents = (0, import_smithy_client._json)(data);
|
|
1525
1531
|
const response = {
|
|
@@ -1532,7 +1538,7 @@ var de_DeleteAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1532
1538
|
if (output.statusCode >= 300) {
|
|
1533
1539
|
return de_CommandError(output, context);
|
|
1534
1540
|
}
|
|
1535
|
-
const data = await
|
|
1541
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1536
1542
|
let contents = {};
|
|
1537
1543
|
contents = (0, import_smithy_client._json)(data);
|
|
1538
1544
|
const response = {
|
|
@@ -1545,7 +1551,7 @@ var de_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1545
1551
|
if (output.statusCode >= 300) {
|
|
1546
1552
|
return de_CommandError(output, context);
|
|
1547
1553
|
}
|
|
1548
|
-
const data = await
|
|
1554
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1549
1555
|
let contents = {};
|
|
1550
1556
|
contents = (0, import_smithy_client._json)(data);
|
|
1551
1557
|
const response = {
|
|
@@ -1558,7 +1564,7 @@ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1558
1564
|
if (output.statusCode >= 300) {
|
|
1559
1565
|
return de_CommandError(output, context);
|
|
1560
1566
|
}
|
|
1561
|
-
const data = await
|
|
1567
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1562
1568
|
let contents = {};
|
|
1563
1569
|
contents = (0, import_smithy_client._json)(data);
|
|
1564
1570
|
const response = {
|
|
@@ -1571,7 +1577,7 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1571
1577
|
if (output.statusCode >= 300) {
|
|
1572
1578
|
return de_CommandError(output, context);
|
|
1573
1579
|
}
|
|
1574
|
-
const data = await
|
|
1580
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1575
1581
|
let contents = {};
|
|
1576
1582
|
contents = (0, import_smithy_client._json)(data);
|
|
1577
1583
|
const response = {
|
|
@@ -1584,7 +1590,7 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1584
1590
|
if (output.statusCode >= 300) {
|
|
1585
1591
|
return de_CommandError(output, context);
|
|
1586
1592
|
}
|
|
1587
|
-
const data = await
|
|
1593
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1588
1594
|
let contents = {};
|
|
1589
1595
|
contents = (0, import_smithy_client._json)(data);
|
|
1590
1596
|
const response = {
|
|
@@ -1597,7 +1603,7 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1597
1603
|
if (output.statusCode >= 300) {
|
|
1598
1604
|
return de_CommandError(output, context);
|
|
1599
1605
|
}
|
|
1600
|
-
const data = await
|
|
1606
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1601
1607
|
let contents = {};
|
|
1602
1608
|
contents = (0, import_smithy_client._json)(data);
|
|
1603
1609
|
const response = {
|
|
@@ -1610,7 +1616,7 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1610
1616
|
if (output.statusCode >= 300) {
|
|
1611
1617
|
return de_CommandError(output, context);
|
|
1612
1618
|
}
|
|
1613
|
-
const data = await
|
|
1619
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1614
1620
|
let contents = {};
|
|
1615
1621
|
contents = (0, import_smithy_client._json)(data);
|
|
1616
1622
|
const response = {
|
|
@@ -1623,7 +1629,7 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1623
1629
|
if (output.statusCode >= 300) {
|
|
1624
1630
|
return de_CommandError(output, context);
|
|
1625
1631
|
}
|
|
1626
|
-
const data = await
|
|
1632
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1627
1633
|
let contents = {};
|
|
1628
1634
|
contents = (0, import_smithy_client._json)(data);
|
|
1629
1635
|
const response = {
|
|
@@ -1636,7 +1642,7 @@ var de_DescribeAllManagedProductsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1636
1642
|
if (output.statusCode >= 300) {
|
|
1637
1643
|
return de_CommandError(output, context);
|
|
1638
1644
|
}
|
|
1639
|
-
const data = await
|
|
1645
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1640
1646
|
let contents = {};
|
|
1641
1647
|
contents = (0, import_smithy_client._json)(data);
|
|
1642
1648
|
const response = {
|
|
@@ -1649,7 +1655,7 @@ var de_DescribeManagedProductsByVendorCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1649
1655
|
if (output.statusCode >= 300) {
|
|
1650
1656
|
return de_CommandError(output, context);
|
|
1651
1657
|
}
|
|
1652
|
-
const data = await
|
|
1658
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1653
1659
|
let contents = {};
|
|
1654
1660
|
contents = (0, import_smithy_client._json)(data);
|
|
1655
1661
|
const response = {
|
|
@@ -1662,7 +1668,7 @@ var de_DescribeManagedRuleGroupCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1662
1668
|
if (output.statusCode >= 300) {
|
|
1663
1669
|
return de_CommandError(output, context);
|
|
1664
1670
|
}
|
|
1665
|
-
const data = await
|
|
1671
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1666
1672
|
let contents = {};
|
|
1667
1673
|
contents = (0, import_smithy_client._json)(data);
|
|
1668
1674
|
const response = {
|
|
@@ -1675,7 +1681,7 @@ var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1675
1681
|
if (output.statusCode >= 300) {
|
|
1676
1682
|
return de_CommandError(output, context);
|
|
1677
1683
|
}
|
|
1678
|
-
const data = await
|
|
1684
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1679
1685
|
let contents = {};
|
|
1680
1686
|
contents = (0, import_smithy_client._json)(data);
|
|
1681
1687
|
const response = {
|
|
@@ -1688,7 +1694,7 @@ var de_GenerateMobileSdkReleaseUrlCommand = /* @__PURE__ */ __name(async (output
|
|
|
1688
1694
|
if (output.statusCode >= 300) {
|
|
1689
1695
|
return de_CommandError(output, context);
|
|
1690
1696
|
}
|
|
1691
|
-
const data = await
|
|
1697
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1692
1698
|
let contents = {};
|
|
1693
1699
|
contents = (0, import_smithy_client._json)(data);
|
|
1694
1700
|
const response = {
|
|
@@ -1701,7 +1707,7 @@ var de_GetDecryptedAPIKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1701
1707
|
if (output.statusCode >= 300) {
|
|
1702
1708
|
return de_CommandError(output, context);
|
|
1703
1709
|
}
|
|
1704
|
-
const data = await
|
|
1710
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1705
1711
|
let contents = {};
|
|
1706
1712
|
contents = de_GetDecryptedAPIKeyResponse(data, context);
|
|
1707
1713
|
const response = {
|
|
@@ -1714,7 +1720,7 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1714
1720
|
if (output.statusCode >= 300) {
|
|
1715
1721
|
return de_CommandError(output, context);
|
|
1716
1722
|
}
|
|
1717
|
-
const data = await
|
|
1723
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1718
1724
|
let contents = {};
|
|
1719
1725
|
contents = (0, import_smithy_client._json)(data);
|
|
1720
1726
|
const response = {
|
|
@@ -1727,7 +1733,7 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1727
1733
|
if (output.statusCode >= 300) {
|
|
1728
1734
|
return de_CommandError(output, context);
|
|
1729
1735
|
}
|
|
1730
|
-
const data = await
|
|
1736
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1731
1737
|
let contents = {};
|
|
1732
1738
|
contents = (0, import_smithy_client._json)(data);
|
|
1733
1739
|
const response = {
|
|
@@ -1740,7 +1746,7 @@ var de_GetManagedRuleSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1740
1746
|
if (output.statusCode >= 300) {
|
|
1741
1747
|
return de_CommandError(output, context);
|
|
1742
1748
|
}
|
|
1743
|
-
const data = await
|
|
1749
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1744
1750
|
let contents = {};
|
|
1745
1751
|
contents = de_GetManagedRuleSetResponse(data, context);
|
|
1746
1752
|
const response = {
|
|
@@ -1753,7 +1759,7 @@ var de_GetMobileSdkReleaseCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1753
1759
|
if (output.statusCode >= 300) {
|
|
1754
1760
|
return de_CommandError(output, context);
|
|
1755
1761
|
}
|
|
1756
|
-
const data = await
|
|
1762
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1757
1763
|
let contents = {};
|
|
1758
1764
|
contents = de_GetMobileSdkReleaseResponse(data, context);
|
|
1759
1765
|
const response = {
|
|
@@ -1766,7 +1772,7 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1766
1772
|
if (output.statusCode >= 300) {
|
|
1767
1773
|
return de_CommandError(output, context);
|
|
1768
1774
|
}
|
|
1769
|
-
const data = await
|
|
1775
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1770
1776
|
let contents = {};
|
|
1771
1777
|
contents = (0, import_smithy_client._json)(data);
|
|
1772
1778
|
const response = {
|
|
@@ -1779,7 +1785,7 @@ var de_GetRateBasedStatementManagedKeysCommand = /* @__PURE__ */ __name(async (o
|
|
|
1779
1785
|
if (output.statusCode >= 300) {
|
|
1780
1786
|
return de_CommandError(output, context);
|
|
1781
1787
|
}
|
|
1782
|
-
const data = await
|
|
1788
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1783
1789
|
let contents = {};
|
|
1784
1790
|
contents = (0, import_smithy_client._json)(data);
|
|
1785
1791
|
const response = {
|
|
@@ -1792,7 +1798,7 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1792
1798
|
if (output.statusCode >= 300) {
|
|
1793
1799
|
return de_CommandError(output, context);
|
|
1794
1800
|
}
|
|
1795
|
-
const data = await
|
|
1801
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1796
1802
|
let contents = {};
|
|
1797
1803
|
contents = (0, import_smithy_client._json)(data);
|
|
1798
1804
|
const response = {
|
|
@@ -1805,7 +1811,7 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1805
1811
|
if (output.statusCode >= 300) {
|
|
1806
1812
|
return de_CommandError(output, context);
|
|
1807
1813
|
}
|
|
1808
|
-
const data = await
|
|
1814
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1809
1815
|
let contents = {};
|
|
1810
1816
|
contents = de_GetRuleGroupResponse(data, context);
|
|
1811
1817
|
const response = {
|
|
@@ -1818,7 +1824,7 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1818
1824
|
if (output.statusCode >= 300) {
|
|
1819
1825
|
return de_CommandError(output, context);
|
|
1820
1826
|
}
|
|
1821
|
-
const data = await
|
|
1827
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1822
1828
|
let contents = {};
|
|
1823
1829
|
contents = de_GetSampledRequestsResponse(data, context);
|
|
1824
1830
|
const response = {
|
|
@@ -1831,7 +1837,7 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1831
1837
|
if (output.statusCode >= 300) {
|
|
1832
1838
|
return de_CommandError(output, context);
|
|
1833
1839
|
}
|
|
1834
|
-
const data = await
|
|
1840
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1835
1841
|
let contents = {};
|
|
1836
1842
|
contents = de_GetWebACLResponse(data, context);
|
|
1837
1843
|
const response = {
|
|
@@ -1844,7 +1850,7 @@ var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1844
1850
|
if (output.statusCode >= 300) {
|
|
1845
1851
|
return de_CommandError(output, context);
|
|
1846
1852
|
}
|
|
1847
|
-
const data = await
|
|
1853
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1848
1854
|
let contents = {};
|
|
1849
1855
|
contents = de_GetWebACLForResourceResponse(data, context);
|
|
1850
1856
|
const response = {
|
|
@@ -1857,7 +1863,7 @@ var de_ListAPIKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1857
1863
|
if (output.statusCode >= 300) {
|
|
1858
1864
|
return de_CommandError(output, context);
|
|
1859
1865
|
}
|
|
1860
|
-
const data = await
|
|
1866
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1861
1867
|
let contents = {};
|
|
1862
1868
|
contents = de_ListAPIKeysResponse(data, context);
|
|
1863
1869
|
const response = {
|
|
@@ -1870,7 +1876,7 @@ var de_ListAvailableManagedRuleGroupsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1870
1876
|
if (output.statusCode >= 300) {
|
|
1871
1877
|
return de_CommandError(output, context);
|
|
1872
1878
|
}
|
|
1873
|
-
const data = await
|
|
1879
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1874
1880
|
let contents = {};
|
|
1875
1881
|
contents = (0, import_smithy_client._json)(data);
|
|
1876
1882
|
const response = {
|
|
@@ -1883,7 +1889,7 @@ var de_ListAvailableManagedRuleGroupVersionsCommand = /* @__PURE__ */ __name(asy
|
|
|
1883
1889
|
if (output.statusCode >= 300) {
|
|
1884
1890
|
return de_CommandError(output, context);
|
|
1885
1891
|
}
|
|
1886
|
-
const data = await
|
|
1892
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1887
1893
|
let contents = {};
|
|
1888
1894
|
contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
|
|
1889
1895
|
const response = {
|
|
@@ -1896,7 +1902,7 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1896
1902
|
if (output.statusCode >= 300) {
|
|
1897
1903
|
return de_CommandError(output, context);
|
|
1898
1904
|
}
|
|
1899
|
-
const data = await
|
|
1905
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1900
1906
|
let contents = {};
|
|
1901
1907
|
contents = (0, import_smithy_client._json)(data);
|
|
1902
1908
|
const response = {
|
|
@@ -1909,7 +1915,7 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1909
1915
|
if (output.statusCode >= 300) {
|
|
1910
1916
|
return de_CommandError(output, context);
|
|
1911
1917
|
}
|
|
1912
|
-
const data = await
|
|
1918
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1913
1919
|
let contents = {};
|
|
1914
1920
|
contents = (0, import_smithy_client._json)(data);
|
|
1915
1921
|
const response = {
|
|
@@ -1922,7 +1928,7 @@ var de_ListManagedRuleSetsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1922
1928
|
if (output.statusCode >= 300) {
|
|
1923
1929
|
return de_CommandError(output, context);
|
|
1924
1930
|
}
|
|
1925
|
-
const data = await
|
|
1931
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1926
1932
|
let contents = {};
|
|
1927
1933
|
contents = (0, import_smithy_client._json)(data);
|
|
1928
1934
|
const response = {
|
|
@@ -1935,7 +1941,7 @@ var de_ListMobileSdkReleasesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1935
1941
|
if (output.statusCode >= 300) {
|
|
1936
1942
|
return de_CommandError(output, context);
|
|
1937
1943
|
}
|
|
1938
|
-
const data = await
|
|
1944
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1939
1945
|
let contents = {};
|
|
1940
1946
|
contents = de_ListMobileSdkReleasesResponse(data, context);
|
|
1941
1947
|
const response = {
|
|
@@ -1948,7 +1954,7 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1948
1954
|
if (output.statusCode >= 300) {
|
|
1949
1955
|
return de_CommandError(output, context);
|
|
1950
1956
|
}
|
|
1951
|
-
const data = await
|
|
1957
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1952
1958
|
let contents = {};
|
|
1953
1959
|
contents = (0, import_smithy_client._json)(data);
|
|
1954
1960
|
const response = {
|
|
@@ -1961,7 +1967,7 @@ var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1961
1967
|
if (output.statusCode >= 300) {
|
|
1962
1968
|
return de_CommandError(output, context);
|
|
1963
1969
|
}
|
|
1964
|
-
const data = await
|
|
1970
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1965
1971
|
let contents = {};
|
|
1966
1972
|
contents = (0, import_smithy_client._json)(data);
|
|
1967
1973
|
const response = {
|
|
@@ -1974,7 +1980,7 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1974
1980
|
if (output.statusCode >= 300) {
|
|
1975
1981
|
return de_CommandError(output, context);
|
|
1976
1982
|
}
|
|
1977
|
-
const data = await
|
|
1983
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1978
1984
|
let contents = {};
|
|
1979
1985
|
contents = (0, import_smithy_client._json)(data);
|
|
1980
1986
|
const response = {
|
|
@@ -1987,7 +1993,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1987
1993
|
if (output.statusCode >= 300) {
|
|
1988
1994
|
return de_CommandError(output, context);
|
|
1989
1995
|
}
|
|
1990
|
-
const data = await
|
|
1996
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1991
1997
|
let contents = {};
|
|
1992
1998
|
contents = (0, import_smithy_client._json)(data);
|
|
1993
1999
|
const response = {
|
|
@@ -2000,7 +2006,7 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2000
2006
|
if (output.statusCode >= 300) {
|
|
2001
2007
|
return de_CommandError(output, context);
|
|
2002
2008
|
}
|
|
2003
|
-
const data = await
|
|
2009
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2004
2010
|
let contents = {};
|
|
2005
2011
|
contents = (0, import_smithy_client._json)(data);
|
|
2006
2012
|
const response = {
|
|
@@ -2013,7 +2019,7 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2013
2019
|
if (output.statusCode >= 300) {
|
|
2014
2020
|
return de_CommandError(output, context);
|
|
2015
2021
|
}
|
|
2016
|
-
const data = await
|
|
2022
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2017
2023
|
let contents = {};
|
|
2018
2024
|
contents = (0, import_smithy_client._json)(data);
|
|
2019
2025
|
const response = {
|
|
@@ -2026,7 +2032,7 @@ var de_PutManagedRuleSetVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2026
2032
|
if (output.statusCode >= 300) {
|
|
2027
2033
|
return de_CommandError(output, context);
|
|
2028
2034
|
}
|
|
2029
|
-
const data = await
|
|
2035
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2030
2036
|
let contents = {};
|
|
2031
2037
|
contents = (0, import_smithy_client._json)(data);
|
|
2032
2038
|
const response = {
|
|
@@ -2039,7 +2045,7 @@ var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2039
2045
|
if (output.statusCode >= 300) {
|
|
2040
2046
|
return de_CommandError(output, context);
|
|
2041
2047
|
}
|
|
2042
|
-
const data = await
|
|
2048
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2043
2049
|
let contents = {};
|
|
2044
2050
|
contents = (0, import_smithy_client._json)(data);
|
|
2045
2051
|
const response = {
|
|
@@ -2052,7 +2058,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2052
2058
|
if (output.statusCode >= 300) {
|
|
2053
2059
|
return de_CommandError(output, context);
|
|
2054
2060
|
}
|
|
2055
|
-
const data = await
|
|
2061
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2056
2062
|
let contents = {};
|
|
2057
2063
|
contents = (0, import_smithy_client._json)(data);
|
|
2058
2064
|
const response = {
|
|
@@ -2065,7 +2071,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2065
2071
|
if (output.statusCode >= 300) {
|
|
2066
2072
|
return de_CommandError(output, context);
|
|
2067
2073
|
}
|
|
2068
|
-
const data = await
|
|
2074
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2069
2075
|
let contents = {};
|
|
2070
2076
|
contents = (0, import_smithy_client._json)(data);
|
|
2071
2077
|
const response = {
|
|
@@ -2078,7 +2084,7 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2078
2084
|
if (output.statusCode >= 300) {
|
|
2079
2085
|
return de_CommandError(output, context);
|
|
2080
2086
|
}
|
|
2081
|
-
const data = await
|
|
2087
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2082
2088
|
let contents = {};
|
|
2083
2089
|
contents = (0, import_smithy_client._json)(data);
|
|
2084
2090
|
const response = {
|
|
@@ -2091,7 +2097,7 @@ var de_UpdateManagedRuleSetVersionExpiryDateCommand = /* @__PURE__ */ __name(asy
|
|
|
2091
2097
|
if (output.statusCode >= 300) {
|
|
2092
2098
|
return de_CommandError(output, context);
|
|
2093
2099
|
}
|
|
2094
|
-
const data = await
|
|
2100
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2095
2101
|
let contents = {};
|
|
2096
2102
|
contents = de_UpdateManagedRuleSetVersionExpiryDateResponse(data, context);
|
|
2097
2103
|
const response = {
|
|
@@ -2104,7 +2110,7 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2104
2110
|
if (output.statusCode >= 300) {
|
|
2105
2111
|
return de_CommandError(output, context);
|
|
2106
2112
|
}
|
|
2107
|
-
const data = await
|
|
2113
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2108
2114
|
let contents = {};
|
|
2109
2115
|
contents = (0, import_smithy_client._json)(data);
|
|
2110
2116
|
const response = {
|
|
@@ -2117,7 +2123,7 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2117
2123
|
if (output.statusCode >= 300) {
|
|
2118
2124
|
return de_CommandError(output, context);
|
|
2119
2125
|
}
|
|
2120
|
-
const data = await
|
|
2126
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2121
2127
|
let contents = {};
|
|
2122
2128
|
contents = (0, import_smithy_client._json)(data);
|
|
2123
2129
|
const response = {
|
|
@@ -2130,7 +2136,7 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2130
2136
|
if (output.statusCode >= 300) {
|
|
2131
2137
|
return de_CommandError(output, context);
|
|
2132
2138
|
}
|
|
2133
|
-
const data = await
|
|
2139
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2134
2140
|
let contents = {};
|
|
2135
2141
|
contents = (0, import_smithy_client._json)(data);
|
|
2136
2142
|
const response = {
|
|
@@ -2142,9 +2148,9 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2142
2148
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2143
2149
|
const parsedOutput = {
|
|
2144
2150
|
...output,
|
|
2145
|
-
body: await
|
|
2151
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2146
2152
|
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2153
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2148
2154
|
switch (errorCode) {
|
|
2149
2155
|
case "WAFInternalErrorException":
|
|
2150
2156
|
case "com.amazonaws.wafv2#WAFInternalErrorException":
|
|
@@ -2880,7 +2886,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2880
2886
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2881
2887
|
cfId: output.headers["x-amz-cf-id"]
|
|
2882
2888
|
}), "deserializeMetadata");
|
|
2883
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2884
2889
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WAFV2ServiceException);
|
|
2885
2890
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2886
2891
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2907,46 +2912,6 @@ function sharedHeaders(operation) {
|
|
|
2907
2912
|
};
|
|
2908
2913
|
}
|
|
2909
2914
|
__name(sharedHeaders, "sharedHeaders");
|
|
2910
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2911
|
-
if (encoded.length) {
|
|
2912
|
-
return JSON.parse(encoded);
|
|
2913
|
-
}
|
|
2914
|
-
return {};
|
|
2915
|
-
}), "parseBody");
|
|
2916
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2917
|
-
const value = await parseBody(errorBody, context);
|
|
2918
|
-
value.message = value.message ?? value.Message;
|
|
2919
|
-
return value;
|
|
2920
|
-
}, "parseErrorBody");
|
|
2921
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2922
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2923
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2924
|
-
let cleanValue = rawValue;
|
|
2925
|
-
if (typeof cleanValue === "number") {
|
|
2926
|
-
cleanValue = cleanValue.toString();
|
|
2927
|
-
}
|
|
2928
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2929
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2930
|
-
}
|
|
2931
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2932
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2933
|
-
}
|
|
2934
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2935
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2936
|
-
}
|
|
2937
|
-
return cleanValue;
|
|
2938
|
-
}, "sanitizeErrorCode");
|
|
2939
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2940
|
-
if (headerKey !== void 0) {
|
|
2941
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2942
|
-
}
|
|
2943
|
-
if (data.code !== void 0) {
|
|
2944
|
-
return sanitizeErrorCode(data.code);
|
|
2945
|
-
}
|
|
2946
|
-
if (data["__type"] !== void 0) {
|
|
2947
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2948
|
-
}
|
|
2949
|
-
}, "loadRestJsonErrorCode");
|
|
2950
2915
|
|
|
2951
2916
|
// src/commands/AssociateWebACLCommand.ts
|
|
2952
2917
|
var _AssociateWebACLCommand = class _AssociateWebACLCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -349,7 +349,11 @@ export const SensitivityLevel = {
|
|
|
349
349
|
LOW: "LOW",
|
|
350
350
|
};
|
|
351
351
|
export const AssociatedResourceType = {
|
|
352
|
+
API_GATEWAY: "API_GATEWAY",
|
|
353
|
+
APP_RUNNER_SERVICE: "APP_RUNNER_SERVICE",
|
|
352
354
|
CLOUDFRONT: "CLOUDFRONT",
|
|
355
|
+
COGNITO_USER_POOL: "COGNITO_USER_POOL",
|
|
356
|
+
VERIFIED_ACCESS_INSTANCE: "VERIFIED_ACCESS_INSTANCE",
|
|
353
357
|
};
|
|
354
358
|
export class WAFInternalErrorException extends __BaseException {
|
|
355
359
|
constructor(opts) {
|
|
@@ -537,6 +541,7 @@ export class WAFLimitsExceededException extends __BaseException {
|
|
|
537
541
|
this.$fault = "client";
|
|
538
542
|
Object.setPrototypeOf(this, WAFLimitsExceededException.prototype);
|
|
539
543
|
this.Message = opts.Message;
|
|
544
|
+
this.SourceType = opts.SourceType;
|
|
540
545
|
}
|
|
541
546
|
}
|
|
542
547
|
export class WAFSubscriptionNotFoundException extends __BaseException {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { WAFAssociatedItemException, WAFConfigurationWarningException, WAFDuplicateItemException, WAFExpiredManagedRuleGroupVersionException, WAFInternalErrorException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidResourceException, WAFLimitsExceededException, WAFLogDestinationPermissionIssueException, WAFNonexistentItemException, WAFOptimisticLockException, WAFServiceLinkedRoleErrorException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, WAFUnsupportedAggregateKeyTypeException, } from "../models/models_0";
|
|
@@ -1813,43 +1814,3 @@ function sharedHeaders(operation) {
|
|
|
1813
1814
|
"x-amz-target": `AWSWAF_20190729.${operation}`,
|
|
1814
1815
|
};
|
|
1815
1816
|
}
|
|
1816
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1817
|
-
if (encoded.length) {
|
|
1818
|
-
return JSON.parse(encoded);
|
|
1819
|
-
}
|
|
1820
|
-
return {};
|
|
1821
|
-
});
|
|
1822
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1823
|
-
const value = await parseBody(errorBody, context);
|
|
1824
|
-
value.message = value.message ?? value.Message;
|
|
1825
|
-
return value;
|
|
1826
|
-
};
|
|
1827
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1828
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1829
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1830
|
-
let cleanValue = rawValue;
|
|
1831
|
-
if (typeof cleanValue === "number") {
|
|
1832
|
-
cleanValue = cleanValue.toString();
|
|
1833
|
-
}
|
|
1834
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1835
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1836
|
-
}
|
|
1837
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1838
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1839
|
-
}
|
|
1840
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1841
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1842
|
-
}
|
|
1843
|
-
return cleanValue;
|
|
1844
|
-
};
|
|
1845
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1846
|
-
if (headerKey !== undefined) {
|
|
1847
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1848
|
-
}
|
|
1849
|
-
if (data.code !== undefined) {
|
|
1850
|
-
return sanitizeErrorCode(data.code);
|
|
1851
|
-
}
|
|
1852
|
-
if (data["__type"] !== undefined) {
|
|
1853
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1854
|
-
}
|
|
1855
|
-
};
|
|
@@ -69,6 +69,27 @@ declare const DescribeAllManagedProductsCommand_base: {
|
|
|
69
69
|
* @throws {@link WAFInvalidOperationException} (client fault)
|
|
70
70
|
* <p>The operation isn't valid. </p>
|
|
71
71
|
*
|
|
72
|
+
* @throws {@link WAFInvalidParameterException} (client fault)
|
|
73
|
+
* <p>The operation failed because WAF didn't recognize a parameter in the request. For
|
|
74
|
+
* example: </p>
|
|
75
|
+
* <ul>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>You specified a parameter name or value that isn't valid.</p>
|
|
78
|
+
* </li>
|
|
79
|
+
* <li>
|
|
80
|
+
* <p>Your nested statement isn't valid. You might have tried to nest a statement that
|
|
81
|
+
* can’t be nested. </p>
|
|
82
|
+
* </li>
|
|
83
|
+
* <li>
|
|
84
|
+
* <p>You tried to update a <code>WebACL</code> with a <code>DefaultAction</code> that
|
|
85
|
+
* isn't among the types available at <a>DefaultAction</a>.</p>
|
|
86
|
+
* </li>
|
|
87
|
+
* <li>
|
|
88
|
+
* <p>Your request references an ARN that is malformed, or corresponds to a resource
|
|
89
|
+
* with which a web ACL can't be associated.</p>
|
|
90
|
+
* </li>
|
|
91
|
+
* </ul>
|
|
92
|
+
*
|
|
72
93
|
* @throws {@link WAFV2ServiceException}
|
|
73
94
|
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
74
95
|
*
|
|
@@ -89,6 +89,12 @@ declare const GetDecryptedAPIKeyCommand_base: {
|
|
|
89
89
|
* <p>WAF couldn’t perform the operation because the resource that you requested isn’t
|
|
90
90
|
* valid. Check the resource, and try again.</p>
|
|
91
91
|
*
|
|
92
|
+
* @throws {@link WAFNonexistentItemException} (client fault)
|
|
93
|
+
* <p>WAF couldn’t perform the operation because your resource doesn't exist.
|
|
94
|
+
* If you've just created a resource that you're using in this operation, you might
|
|
95
|
+
* just need to wait a few minutes. It can take from a few seconds to a number of minutes
|
|
96
|
+
* for changes to propagate. </p>
|
|
97
|
+
*
|
|
92
98
|
* @throws {@link WAFV2ServiceException}
|
|
93
99
|
* <p>Base exception class for all service exceptions from WAFV2 service.</p>
|
|
94
100
|
*
|