@aws-sdk/client-waf-regional 3.525.0 → 3.529.1
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 +84 -124
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -300,6 +300,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
300
300
|
var import_types = require("@smithy/types");
|
|
301
301
|
|
|
302
302
|
// src/protocols/Aws_json1_1.ts
|
|
303
|
+
var import_core2 = require("@aws-sdk/core");
|
|
303
304
|
|
|
304
305
|
|
|
305
306
|
|
|
@@ -1519,7 +1520,7 @@ var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1519
1520
|
if (output.statusCode >= 300) {
|
|
1520
1521
|
return de_CommandError(output, context);
|
|
1521
1522
|
}
|
|
1522
|
-
const data = await
|
|
1523
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1523
1524
|
let contents = {};
|
|
1524
1525
|
contents = (0, import_smithy_client._json)(data);
|
|
1525
1526
|
const response = {
|
|
@@ -1532,7 +1533,7 @@ var de_CreateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1532
1533
|
if (output.statusCode >= 300) {
|
|
1533
1534
|
return de_CommandError(output, context);
|
|
1534
1535
|
}
|
|
1535
|
-
const data = await
|
|
1536
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1536
1537
|
let contents = {};
|
|
1537
1538
|
contents = de_CreateByteMatchSetResponse(data, context);
|
|
1538
1539
|
const response = {
|
|
@@ -1545,7 +1546,7 @@ var de_CreateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1545
1546
|
if (output.statusCode >= 300) {
|
|
1546
1547
|
return de_CommandError(output, context);
|
|
1547
1548
|
}
|
|
1548
|
-
const data = await
|
|
1549
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1549
1550
|
let contents = {};
|
|
1550
1551
|
contents = (0, import_smithy_client._json)(data);
|
|
1551
1552
|
const response = {
|
|
@@ -1558,7 +1559,7 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1558
1559
|
if (output.statusCode >= 300) {
|
|
1559
1560
|
return de_CommandError(output, context);
|
|
1560
1561
|
}
|
|
1561
|
-
const data = await
|
|
1562
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1562
1563
|
let contents = {};
|
|
1563
1564
|
contents = (0, import_smithy_client._json)(data);
|
|
1564
1565
|
const response = {
|
|
@@ -1571,7 +1572,7 @@ var de_CreateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1571
1572
|
if (output.statusCode >= 300) {
|
|
1572
1573
|
return de_CommandError(output, context);
|
|
1573
1574
|
}
|
|
1574
|
-
const data = await
|
|
1575
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1575
1576
|
let contents = {};
|
|
1576
1577
|
contents = (0, import_smithy_client._json)(data);
|
|
1577
1578
|
const response = {
|
|
@@ -1584,7 +1585,7 @@ var de_CreateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1584
1585
|
if (output.statusCode >= 300) {
|
|
1585
1586
|
return de_CommandError(output, context);
|
|
1586
1587
|
}
|
|
1587
|
-
const data = await
|
|
1588
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1588
1589
|
let contents = {};
|
|
1589
1590
|
contents = (0, import_smithy_client._json)(data);
|
|
1590
1591
|
const response = {
|
|
@@ -1597,7 +1598,7 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1597
1598
|
if (output.statusCode >= 300) {
|
|
1598
1599
|
return de_CommandError(output, context);
|
|
1599
1600
|
}
|
|
1600
|
-
const data = await
|
|
1601
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1601
1602
|
let contents = {};
|
|
1602
1603
|
contents = (0, import_smithy_client._json)(data);
|
|
1603
1604
|
const response = {
|
|
@@ -1610,7 +1611,7 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1610
1611
|
if (output.statusCode >= 300) {
|
|
1611
1612
|
return de_CommandError(output, context);
|
|
1612
1613
|
}
|
|
1613
|
-
const data = await
|
|
1614
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1614
1615
|
let contents = {};
|
|
1615
1616
|
contents = (0, import_smithy_client._json)(data);
|
|
1616
1617
|
const response = {
|
|
@@ -1623,7 +1624,7 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1623
1624
|
if (output.statusCode >= 300) {
|
|
1624
1625
|
return de_CommandError(output, context);
|
|
1625
1626
|
}
|
|
1626
|
-
const data = await
|
|
1627
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1627
1628
|
let contents = {};
|
|
1628
1629
|
contents = (0, import_smithy_client._json)(data);
|
|
1629
1630
|
const response = {
|
|
@@ -1636,7 +1637,7 @@ var de_CreateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1636
1637
|
if (output.statusCode >= 300) {
|
|
1637
1638
|
return de_CommandError(output, context);
|
|
1638
1639
|
}
|
|
1639
|
-
const data = await
|
|
1640
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1640
1641
|
let contents = {};
|
|
1641
1642
|
contents = (0, import_smithy_client._json)(data);
|
|
1642
1643
|
const response = {
|
|
@@ -1649,7 +1650,7 @@ var de_CreateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1649
1650
|
if (output.statusCode >= 300) {
|
|
1650
1651
|
return de_CommandError(output, context);
|
|
1651
1652
|
}
|
|
1652
|
-
const data = await
|
|
1653
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1653
1654
|
let contents = {};
|
|
1654
1655
|
contents = (0, import_smithy_client._json)(data);
|
|
1655
1656
|
const response = {
|
|
@@ -1662,7 +1663,7 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1662
1663
|
if (output.statusCode >= 300) {
|
|
1663
1664
|
return de_CommandError(output, context);
|
|
1664
1665
|
}
|
|
1665
|
-
const data = await
|
|
1666
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1666
1667
|
let contents = {};
|
|
1667
1668
|
contents = (0, import_smithy_client._json)(data);
|
|
1668
1669
|
const response = {
|
|
@@ -1675,7 +1676,7 @@ var de_CreateWebACLMigrationStackCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1675
1676
|
if (output.statusCode >= 300) {
|
|
1676
1677
|
return de_CommandError(output, context);
|
|
1677
1678
|
}
|
|
1678
|
-
const data = await
|
|
1679
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1679
1680
|
let contents = {};
|
|
1680
1681
|
contents = (0, import_smithy_client._json)(data);
|
|
1681
1682
|
const response = {
|
|
@@ -1688,7 +1689,7 @@ var de_CreateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1688
1689
|
if (output.statusCode >= 300) {
|
|
1689
1690
|
return de_CommandError(output, context);
|
|
1690
1691
|
}
|
|
1691
|
-
const data = await
|
|
1692
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1692
1693
|
let contents = {};
|
|
1693
1694
|
contents = (0, import_smithy_client._json)(data);
|
|
1694
1695
|
const response = {
|
|
@@ -1701,7 +1702,7 @@ var de_DeleteByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1701
1702
|
if (output.statusCode >= 300) {
|
|
1702
1703
|
return de_CommandError(output, context);
|
|
1703
1704
|
}
|
|
1704
|
-
const data = await
|
|
1705
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1705
1706
|
let contents = {};
|
|
1706
1707
|
contents = (0, import_smithy_client._json)(data);
|
|
1707
1708
|
const response = {
|
|
@@ -1714,7 +1715,7 @@ var de_DeleteGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1714
1715
|
if (output.statusCode >= 300) {
|
|
1715
1716
|
return de_CommandError(output, context);
|
|
1716
1717
|
}
|
|
1717
|
-
const data = await
|
|
1718
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1718
1719
|
let contents = {};
|
|
1719
1720
|
contents = (0, import_smithy_client._json)(data);
|
|
1720
1721
|
const response = {
|
|
@@ -1727,7 +1728,7 @@ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1727
1728
|
if (output.statusCode >= 300) {
|
|
1728
1729
|
return de_CommandError(output, context);
|
|
1729
1730
|
}
|
|
1730
|
-
const data = await
|
|
1731
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1731
1732
|
let contents = {};
|
|
1732
1733
|
contents = (0, import_smithy_client._json)(data);
|
|
1733
1734
|
const response = {
|
|
@@ -1740,7 +1741,7 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1740
1741
|
if (output.statusCode >= 300) {
|
|
1741
1742
|
return de_CommandError(output, context);
|
|
1742
1743
|
}
|
|
1743
|
-
const data = await
|
|
1744
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1744
1745
|
let contents = {};
|
|
1745
1746
|
contents = (0, import_smithy_client._json)(data);
|
|
1746
1747
|
const response = {
|
|
@@ -1753,7 +1754,7 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1753
1754
|
if (output.statusCode >= 300) {
|
|
1754
1755
|
return de_CommandError(output, context);
|
|
1755
1756
|
}
|
|
1756
|
-
const data = await
|
|
1757
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1757
1758
|
let contents = {};
|
|
1758
1759
|
contents = (0, import_smithy_client._json)(data);
|
|
1759
1760
|
const response = {
|
|
@@ -1766,7 +1767,7 @@ var de_DeleteRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1766
1767
|
if (output.statusCode >= 300) {
|
|
1767
1768
|
return de_CommandError(output, context);
|
|
1768
1769
|
}
|
|
1769
|
-
const data = await
|
|
1770
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1770
1771
|
let contents = {};
|
|
1771
1772
|
contents = (0, import_smithy_client._json)(data);
|
|
1772
1773
|
const response = {
|
|
@@ -1779,7 +1780,7 @@ var de_DeleteRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1779
1780
|
if (output.statusCode >= 300) {
|
|
1780
1781
|
return de_CommandError(output, context);
|
|
1781
1782
|
}
|
|
1782
|
-
const data = await
|
|
1783
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1783
1784
|
let contents = {};
|
|
1784
1785
|
contents = (0, import_smithy_client._json)(data);
|
|
1785
1786
|
const response = {
|
|
@@ -1792,7 +1793,7 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1792
1793
|
if (output.statusCode >= 300) {
|
|
1793
1794
|
return de_CommandError(output, context);
|
|
1794
1795
|
}
|
|
1795
|
-
const data = await
|
|
1796
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1796
1797
|
let contents = {};
|
|
1797
1798
|
contents = (0, import_smithy_client._json)(data);
|
|
1798
1799
|
const response = {
|
|
@@ -1805,7 +1806,7 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1805
1806
|
if (output.statusCode >= 300) {
|
|
1806
1807
|
return de_CommandError(output, context);
|
|
1807
1808
|
}
|
|
1808
|
-
const data = await
|
|
1809
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1809
1810
|
let contents = {};
|
|
1810
1811
|
contents = (0, import_smithy_client._json)(data);
|
|
1811
1812
|
const response = {
|
|
@@ -1818,7 +1819,7 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1818
1819
|
if (output.statusCode >= 300) {
|
|
1819
1820
|
return de_CommandError(output, context);
|
|
1820
1821
|
}
|
|
1821
|
-
const data = await
|
|
1822
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1822
1823
|
let contents = {};
|
|
1823
1824
|
contents = (0, import_smithy_client._json)(data);
|
|
1824
1825
|
const response = {
|
|
@@ -1831,7 +1832,7 @@ var de_DeleteSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1831
1832
|
if (output.statusCode >= 300) {
|
|
1832
1833
|
return de_CommandError(output, context);
|
|
1833
1834
|
}
|
|
1834
|
-
const data = await
|
|
1835
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1835
1836
|
let contents = {};
|
|
1836
1837
|
contents = (0, import_smithy_client._json)(data);
|
|
1837
1838
|
const response = {
|
|
@@ -1844,7 +1845,7 @@ var de_DeleteSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1844
1845
|
if (output.statusCode >= 300) {
|
|
1845
1846
|
return de_CommandError(output, context);
|
|
1846
1847
|
}
|
|
1847
|
-
const data = await
|
|
1848
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1848
1849
|
let contents = {};
|
|
1849
1850
|
contents = (0, import_smithy_client._json)(data);
|
|
1850
1851
|
const response = {
|
|
@@ -1857,7 +1858,7 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1857
1858
|
if (output.statusCode >= 300) {
|
|
1858
1859
|
return de_CommandError(output, context);
|
|
1859
1860
|
}
|
|
1860
|
-
const data = await
|
|
1861
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1861
1862
|
let contents = {};
|
|
1862
1863
|
contents = (0, import_smithy_client._json)(data);
|
|
1863
1864
|
const response = {
|
|
@@ -1870,7 +1871,7 @@ var de_DeleteXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1870
1871
|
if (output.statusCode >= 300) {
|
|
1871
1872
|
return de_CommandError(output, context);
|
|
1872
1873
|
}
|
|
1873
|
-
const data = await
|
|
1874
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1874
1875
|
let contents = {};
|
|
1875
1876
|
contents = (0, import_smithy_client._json)(data);
|
|
1876
1877
|
const response = {
|
|
@@ -1883,7 +1884,7 @@ var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1883
1884
|
if (output.statusCode >= 300) {
|
|
1884
1885
|
return de_CommandError(output, context);
|
|
1885
1886
|
}
|
|
1886
|
-
const data = await
|
|
1887
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1887
1888
|
let contents = {};
|
|
1888
1889
|
contents = (0, import_smithy_client._json)(data);
|
|
1889
1890
|
const response = {
|
|
@@ -1896,7 +1897,7 @@ var de_GetByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1896
1897
|
if (output.statusCode >= 300) {
|
|
1897
1898
|
return de_CommandError(output, context);
|
|
1898
1899
|
}
|
|
1899
|
-
const data = await
|
|
1900
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1900
1901
|
let contents = {};
|
|
1901
1902
|
contents = de_GetByteMatchSetResponse(data, context);
|
|
1902
1903
|
const response = {
|
|
@@ -1909,7 +1910,7 @@ var de_GetChangeTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1909
1910
|
if (output.statusCode >= 300) {
|
|
1910
1911
|
return de_CommandError(output, context);
|
|
1911
1912
|
}
|
|
1912
|
-
const data = await
|
|
1913
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1913
1914
|
let contents = {};
|
|
1914
1915
|
contents = (0, import_smithy_client._json)(data);
|
|
1915
1916
|
const response = {
|
|
@@ -1922,7 +1923,7 @@ var de_GetChangeTokenStatusCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1922
1923
|
if (output.statusCode >= 300) {
|
|
1923
1924
|
return de_CommandError(output, context);
|
|
1924
1925
|
}
|
|
1925
|
-
const data = await
|
|
1926
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1926
1927
|
let contents = {};
|
|
1927
1928
|
contents = (0, import_smithy_client._json)(data);
|
|
1928
1929
|
const response = {
|
|
@@ -1935,7 +1936,7 @@ var de_GetGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1935
1936
|
if (output.statusCode >= 300) {
|
|
1936
1937
|
return de_CommandError(output, context);
|
|
1937
1938
|
}
|
|
1938
|
-
const data = await
|
|
1939
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1939
1940
|
let contents = {};
|
|
1940
1941
|
contents = (0, import_smithy_client._json)(data);
|
|
1941
1942
|
const response = {
|
|
@@ -1948,7 +1949,7 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1948
1949
|
if (output.statusCode >= 300) {
|
|
1949
1950
|
return de_CommandError(output, context);
|
|
1950
1951
|
}
|
|
1951
|
-
const data = await
|
|
1952
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1952
1953
|
let contents = {};
|
|
1953
1954
|
contents = (0, import_smithy_client._json)(data);
|
|
1954
1955
|
const response = {
|
|
@@ -1961,7 +1962,7 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1961
1962
|
if (output.statusCode >= 300) {
|
|
1962
1963
|
return de_CommandError(output, context);
|
|
1963
1964
|
}
|
|
1964
|
-
const data = await
|
|
1965
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1965
1966
|
let contents = {};
|
|
1966
1967
|
contents = (0, import_smithy_client._json)(data);
|
|
1967
1968
|
const response = {
|
|
@@ -1974,7 +1975,7 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1974
1975
|
if (output.statusCode >= 300) {
|
|
1975
1976
|
return de_CommandError(output, context);
|
|
1976
1977
|
}
|
|
1977
|
-
const data = await
|
|
1978
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1978
1979
|
let contents = {};
|
|
1979
1980
|
contents = (0, import_smithy_client._json)(data);
|
|
1980
1981
|
const response = {
|
|
@@ -1987,7 +1988,7 @@ var de_GetRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1987
1988
|
if (output.statusCode >= 300) {
|
|
1988
1989
|
return de_CommandError(output, context);
|
|
1989
1990
|
}
|
|
1990
|
-
const data = await
|
|
1991
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1991
1992
|
let contents = {};
|
|
1992
1993
|
contents = (0, import_smithy_client._json)(data);
|
|
1993
1994
|
const response = {
|
|
@@ -2000,7 +2001,7 @@ var de_GetRateBasedRuleManagedKeysCommand = /* @__PURE__ */ __name(async (output
|
|
|
2000
2001
|
if (output.statusCode >= 300) {
|
|
2001
2002
|
return de_CommandError(output, context);
|
|
2002
2003
|
}
|
|
2003
|
-
const data = await
|
|
2004
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2004
2005
|
let contents = {};
|
|
2005
2006
|
contents = (0, import_smithy_client._json)(data);
|
|
2006
2007
|
const response = {
|
|
@@ -2013,7 +2014,7 @@ var de_GetRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2013
2014
|
if (output.statusCode >= 300) {
|
|
2014
2015
|
return de_CommandError(output, context);
|
|
2015
2016
|
}
|
|
2016
|
-
const data = await
|
|
2017
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2017
2018
|
let contents = {};
|
|
2018
2019
|
contents = (0, import_smithy_client._json)(data);
|
|
2019
2020
|
const response = {
|
|
@@ -2026,7 +2027,7 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2026
2027
|
if (output.statusCode >= 300) {
|
|
2027
2028
|
return de_CommandError(output, context);
|
|
2028
2029
|
}
|
|
2029
|
-
const data = await
|
|
2030
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2030
2031
|
let contents = {};
|
|
2031
2032
|
contents = (0, import_smithy_client._json)(data);
|
|
2032
2033
|
const response = {
|
|
@@ -2039,7 +2040,7 @@ var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2039
2040
|
if (output.statusCode >= 300) {
|
|
2040
2041
|
return de_CommandError(output, context);
|
|
2041
2042
|
}
|
|
2042
|
-
const data = await
|
|
2043
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2043
2044
|
let contents = {};
|
|
2044
2045
|
contents = (0, import_smithy_client._json)(data);
|
|
2045
2046
|
const response = {
|
|
@@ -2052,7 +2053,7 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2052
2053
|
if (output.statusCode >= 300) {
|
|
2053
2054
|
return de_CommandError(output, context);
|
|
2054
2055
|
}
|
|
2055
|
-
const data = await
|
|
2056
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2056
2057
|
let contents = {};
|
|
2057
2058
|
contents = (0, import_smithy_client._json)(data);
|
|
2058
2059
|
const response = {
|
|
@@ -2065,7 +2066,7 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2065
2066
|
if (output.statusCode >= 300) {
|
|
2066
2067
|
return de_CommandError(output, context);
|
|
2067
2068
|
}
|
|
2068
|
-
const data = await
|
|
2069
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2069
2070
|
let contents = {};
|
|
2070
2071
|
contents = de_GetSampledRequestsResponse(data, context);
|
|
2071
2072
|
const response = {
|
|
@@ -2078,7 +2079,7 @@ var de_GetSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2078
2079
|
if (output.statusCode >= 300) {
|
|
2079
2080
|
return de_CommandError(output, context);
|
|
2080
2081
|
}
|
|
2081
|
-
const data = await
|
|
2082
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2082
2083
|
let contents = {};
|
|
2083
2084
|
contents = (0, import_smithy_client._json)(data);
|
|
2084
2085
|
const response = {
|
|
@@ -2091,7 +2092,7 @@ var de_GetSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2091
2092
|
if (output.statusCode >= 300) {
|
|
2092
2093
|
return de_CommandError(output, context);
|
|
2093
2094
|
}
|
|
2094
|
-
const data = await
|
|
2095
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2095
2096
|
let contents = {};
|
|
2096
2097
|
contents = (0, import_smithy_client._json)(data);
|
|
2097
2098
|
const response = {
|
|
@@ -2104,7 +2105,7 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2104
2105
|
if (output.statusCode >= 300) {
|
|
2105
2106
|
return de_CommandError(output, context);
|
|
2106
2107
|
}
|
|
2107
|
-
const data = await
|
|
2108
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2108
2109
|
let contents = {};
|
|
2109
2110
|
contents = (0, import_smithy_client._json)(data);
|
|
2110
2111
|
const response = {
|
|
@@ -2117,7 +2118,7 @@ var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2117
2118
|
if (output.statusCode >= 300) {
|
|
2118
2119
|
return de_CommandError(output, context);
|
|
2119
2120
|
}
|
|
2120
|
-
const data = await
|
|
2121
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2121
2122
|
let contents = {};
|
|
2122
2123
|
contents = (0, import_smithy_client._json)(data);
|
|
2123
2124
|
const response = {
|
|
@@ -2130,7 +2131,7 @@ var de_GetXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2130
2131
|
if (output.statusCode >= 300) {
|
|
2131
2132
|
return de_CommandError(output, context);
|
|
2132
2133
|
}
|
|
2133
|
-
const data = await
|
|
2134
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2134
2135
|
let contents = {};
|
|
2135
2136
|
contents = (0, import_smithy_client._json)(data);
|
|
2136
2137
|
const response = {
|
|
@@ -2143,7 +2144,7 @@ var de_ListActivatedRulesInRuleGroupCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2143
2144
|
if (output.statusCode >= 300) {
|
|
2144
2145
|
return de_CommandError(output, context);
|
|
2145
2146
|
}
|
|
2146
|
-
const data = await
|
|
2147
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2147
2148
|
let contents = {};
|
|
2148
2149
|
contents = (0, import_smithy_client._json)(data);
|
|
2149
2150
|
const response = {
|
|
@@ -2156,7 +2157,7 @@ var de_ListByteMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2156
2157
|
if (output.statusCode >= 300) {
|
|
2157
2158
|
return de_CommandError(output, context);
|
|
2158
2159
|
}
|
|
2159
|
-
const data = await
|
|
2160
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2160
2161
|
let contents = {};
|
|
2161
2162
|
contents = (0, import_smithy_client._json)(data);
|
|
2162
2163
|
const response = {
|
|
@@ -2169,7 +2170,7 @@ var de_ListGeoMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2169
2170
|
if (output.statusCode >= 300) {
|
|
2170
2171
|
return de_CommandError(output, context);
|
|
2171
2172
|
}
|
|
2172
|
-
const data = await
|
|
2173
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2173
2174
|
let contents = {};
|
|
2174
2175
|
contents = (0, import_smithy_client._json)(data);
|
|
2175
2176
|
const response = {
|
|
@@ -2182,7 +2183,7 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2182
2183
|
if (output.statusCode >= 300) {
|
|
2183
2184
|
return de_CommandError(output, context);
|
|
2184
2185
|
}
|
|
2185
|
-
const data = await
|
|
2186
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2186
2187
|
let contents = {};
|
|
2187
2188
|
contents = (0, import_smithy_client._json)(data);
|
|
2188
2189
|
const response = {
|
|
@@ -2195,7 +2196,7 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2195
2196
|
if (output.statusCode >= 300) {
|
|
2196
2197
|
return de_CommandError(output, context);
|
|
2197
2198
|
}
|
|
2198
|
-
const data = await
|
|
2199
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2199
2200
|
let contents = {};
|
|
2200
2201
|
contents = (0, import_smithy_client._json)(data);
|
|
2201
2202
|
const response = {
|
|
@@ -2208,7 +2209,7 @@ var de_ListRateBasedRulesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2208
2209
|
if (output.statusCode >= 300) {
|
|
2209
2210
|
return de_CommandError(output, context);
|
|
2210
2211
|
}
|
|
2211
|
-
const data = await
|
|
2212
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2212
2213
|
let contents = {};
|
|
2213
2214
|
contents = (0, import_smithy_client._json)(data);
|
|
2214
2215
|
const response = {
|
|
@@ -2221,7 +2222,7 @@ var de_ListRegexMatchSetsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2221
2222
|
if (output.statusCode >= 300) {
|
|
2222
2223
|
return de_CommandError(output, context);
|
|
2223
2224
|
}
|
|
2224
|
-
const data = await
|
|
2225
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2225
2226
|
let contents = {};
|
|
2226
2227
|
contents = (0, import_smithy_client._json)(data);
|
|
2227
2228
|
const response = {
|
|
@@ -2234,7 +2235,7 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2234
2235
|
if (output.statusCode >= 300) {
|
|
2235
2236
|
return de_CommandError(output, context);
|
|
2236
2237
|
}
|
|
2237
|
-
const data = await
|
|
2238
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2238
2239
|
let contents = {};
|
|
2239
2240
|
contents = (0, import_smithy_client._json)(data);
|
|
2240
2241
|
const response = {
|
|
@@ -2247,7 +2248,7 @@ var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2247
2248
|
if (output.statusCode >= 300) {
|
|
2248
2249
|
return de_CommandError(output, context);
|
|
2249
2250
|
}
|
|
2250
|
-
const data = await
|
|
2251
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2251
2252
|
let contents = {};
|
|
2252
2253
|
contents = (0, import_smithy_client._json)(data);
|
|
2253
2254
|
const response = {
|
|
@@ -2260,7 +2261,7 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2260
2261
|
if (output.statusCode >= 300) {
|
|
2261
2262
|
return de_CommandError(output, context);
|
|
2262
2263
|
}
|
|
2263
|
-
const data = await
|
|
2264
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2264
2265
|
let contents = {};
|
|
2265
2266
|
contents = (0, import_smithy_client._json)(data);
|
|
2266
2267
|
const response = {
|
|
@@ -2273,7 +2274,7 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2273
2274
|
if (output.statusCode >= 300) {
|
|
2274
2275
|
return de_CommandError(output, context);
|
|
2275
2276
|
}
|
|
2276
|
-
const data = await
|
|
2277
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2277
2278
|
let contents = {};
|
|
2278
2279
|
contents = (0, import_smithy_client._json)(data);
|
|
2279
2280
|
const response = {
|
|
@@ -2286,7 +2287,7 @@ var de_ListSizeConstraintSetsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2286
2287
|
if (output.statusCode >= 300) {
|
|
2287
2288
|
return de_CommandError(output, context);
|
|
2288
2289
|
}
|
|
2289
|
-
const data = await
|
|
2290
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2290
2291
|
let contents = {};
|
|
2291
2292
|
contents = (0, import_smithy_client._json)(data);
|
|
2292
2293
|
const response = {
|
|
@@ -2299,7 +2300,7 @@ var de_ListSqlInjectionMatchSetsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2299
2300
|
if (output.statusCode >= 300) {
|
|
2300
2301
|
return de_CommandError(output, context);
|
|
2301
2302
|
}
|
|
2302
|
-
const data = await
|
|
2303
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2303
2304
|
let contents = {};
|
|
2304
2305
|
contents = (0, import_smithy_client._json)(data);
|
|
2305
2306
|
const response = {
|
|
@@ -2312,7 +2313,7 @@ var de_ListSubscribedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2312
2313
|
if (output.statusCode >= 300) {
|
|
2313
2314
|
return de_CommandError(output, context);
|
|
2314
2315
|
}
|
|
2315
|
-
const data = await
|
|
2316
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2316
2317
|
let contents = {};
|
|
2317
2318
|
contents = (0, import_smithy_client._json)(data);
|
|
2318
2319
|
const response = {
|
|
@@ -2325,7 +2326,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2325
2326
|
if (output.statusCode >= 300) {
|
|
2326
2327
|
return de_CommandError(output, context);
|
|
2327
2328
|
}
|
|
2328
|
-
const data = await
|
|
2329
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2329
2330
|
let contents = {};
|
|
2330
2331
|
contents = (0, import_smithy_client._json)(data);
|
|
2331
2332
|
const response = {
|
|
@@ -2338,7 +2339,7 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2338
2339
|
if (output.statusCode >= 300) {
|
|
2339
2340
|
return de_CommandError(output, context);
|
|
2340
2341
|
}
|
|
2341
|
-
const data = await
|
|
2342
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2342
2343
|
let contents = {};
|
|
2343
2344
|
contents = (0, import_smithy_client._json)(data);
|
|
2344
2345
|
const response = {
|
|
@@ -2351,7 +2352,7 @@ var de_ListXssMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2351
2352
|
if (output.statusCode >= 300) {
|
|
2352
2353
|
return de_CommandError(output, context);
|
|
2353
2354
|
}
|
|
2354
|
-
const data = await
|
|
2355
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2355
2356
|
let contents = {};
|
|
2356
2357
|
contents = (0, import_smithy_client._json)(data);
|
|
2357
2358
|
const response = {
|
|
@@ -2364,7 +2365,7 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2364
2365
|
if (output.statusCode >= 300) {
|
|
2365
2366
|
return de_CommandError(output, context);
|
|
2366
2367
|
}
|
|
2367
|
-
const data = await
|
|
2368
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2368
2369
|
let contents = {};
|
|
2369
2370
|
contents = (0, import_smithy_client._json)(data);
|
|
2370
2371
|
const response = {
|
|
@@ -2377,7 +2378,7 @@ var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2377
2378
|
if (output.statusCode >= 300) {
|
|
2378
2379
|
return de_CommandError(output, context);
|
|
2379
2380
|
}
|
|
2380
|
-
const data = await
|
|
2381
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2381
2382
|
let contents = {};
|
|
2382
2383
|
contents = (0, import_smithy_client._json)(data);
|
|
2383
2384
|
const response = {
|
|
@@ -2390,7 +2391,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2390
2391
|
if (output.statusCode >= 300) {
|
|
2391
2392
|
return de_CommandError(output, context);
|
|
2392
2393
|
}
|
|
2393
|
-
const data = await
|
|
2394
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2394
2395
|
let contents = {};
|
|
2395
2396
|
contents = (0, import_smithy_client._json)(data);
|
|
2396
2397
|
const response = {
|
|
@@ -2403,7 +2404,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2403
2404
|
if (output.statusCode >= 300) {
|
|
2404
2405
|
return de_CommandError(output, context);
|
|
2405
2406
|
}
|
|
2406
|
-
const data = await
|
|
2407
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2407
2408
|
let contents = {};
|
|
2408
2409
|
contents = (0, import_smithy_client._json)(data);
|
|
2409
2410
|
const response = {
|
|
@@ -2416,7 +2417,7 @@ var de_UpdateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2416
2417
|
if (output.statusCode >= 300) {
|
|
2417
2418
|
return de_CommandError(output, context);
|
|
2418
2419
|
}
|
|
2419
|
-
const data = await
|
|
2420
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2420
2421
|
let contents = {};
|
|
2421
2422
|
contents = (0, import_smithy_client._json)(data);
|
|
2422
2423
|
const response = {
|
|
@@ -2429,7 +2430,7 @@ var de_UpdateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2429
2430
|
if (output.statusCode >= 300) {
|
|
2430
2431
|
return de_CommandError(output, context);
|
|
2431
2432
|
}
|
|
2432
|
-
const data = await
|
|
2433
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2433
2434
|
let contents = {};
|
|
2434
2435
|
contents = (0, import_smithy_client._json)(data);
|
|
2435
2436
|
const response = {
|
|
@@ -2442,7 +2443,7 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2442
2443
|
if (output.statusCode >= 300) {
|
|
2443
2444
|
return de_CommandError(output, context);
|
|
2444
2445
|
}
|
|
2445
|
-
const data = await
|
|
2446
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2446
2447
|
let contents = {};
|
|
2447
2448
|
contents = (0, import_smithy_client._json)(data);
|
|
2448
2449
|
const response = {
|
|
@@ -2455,7 +2456,7 @@ var de_UpdateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2455
2456
|
if (output.statusCode >= 300) {
|
|
2456
2457
|
return de_CommandError(output, context);
|
|
2457
2458
|
}
|
|
2458
|
-
const data = await
|
|
2459
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2459
2460
|
let contents = {};
|
|
2460
2461
|
contents = (0, import_smithy_client._json)(data);
|
|
2461
2462
|
const response = {
|
|
@@ -2468,7 +2469,7 @@ var de_UpdateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2468
2469
|
if (output.statusCode >= 300) {
|
|
2469
2470
|
return de_CommandError(output, context);
|
|
2470
2471
|
}
|
|
2471
|
-
const data = await
|
|
2472
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2472
2473
|
let contents = {};
|
|
2473
2474
|
contents = (0, import_smithy_client._json)(data);
|
|
2474
2475
|
const response = {
|
|
@@ -2481,7 +2482,7 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2481
2482
|
if (output.statusCode >= 300) {
|
|
2482
2483
|
return de_CommandError(output, context);
|
|
2483
2484
|
}
|
|
2484
|
-
const data = await
|
|
2485
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2485
2486
|
let contents = {};
|
|
2486
2487
|
contents = (0, import_smithy_client._json)(data);
|
|
2487
2488
|
const response = {
|
|
@@ -2494,7 +2495,7 @@ var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2494
2495
|
if (output.statusCode >= 300) {
|
|
2495
2496
|
return de_CommandError(output, context);
|
|
2496
2497
|
}
|
|
2497
|
-
const data = await
|
|
2498
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2498
2499
|
let contents = {};
|
|
2499
2500
|
contents = (0, import_smithy_client._json)(data);
|
|
2500
2501
|
const response = {
|
|
@@ -2507,7 +2508,7 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2507
2508
|
if (output.statusCode >= 300) {
|
|
2508
2509
|
return de_CommandError(output, context);
|
|
2509
2510
|
}
|
|
2510
|
-
const data = await
|
|
2511
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2511
2512
|
let contents = {};
|
|
2512
2513
|
contents = (0, import_smithy_client._json)(data);
|
|
2513
2514
|
const response = {
|
|
@@ -2520,7 +2521,7 @@ var de_UpdateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2520
2521
|
if (output.statusCode >= 300) {
|
|
2521
2522
|
return de_CommandError(output, context);
|
|
2522
2523
|
}
|
|
2523
|
-
const data = await
|
|
2524
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2524
2525
|
let contents = {};
|
|
2525
2526
|
contents = (0, import_smithy_client._json)(data);
|
|
2526
2527
|
const response = {
|
|
@@ -2533,7 +2534,7 @@ var de_UpdateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2533
2534
|
if (output.statusCode >= 300) {
|
|
2534
2535
|
return de_CommandError(output, context);
|
|
2535
2536
|
}
|
|
2536
|
-
const data = await
|
|
2537
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2537
2538
|
let contents = {};
|
|
2538
2539
|
contents = (0, import_smithy_client._json)(data);
|
|
2539
2540
|
const response = {
|
|
@@ -2546,7 +2547,7 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2546
2547
|
if (output.statusCode >= 300) {
|
|
2547
2548
|
return de_CommandError(output, context);
|
|
2548
2549
|
}
|
|
2549
|
-
const data = await
|
|
2550
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2550
2551
|
let contents = {};
|
|
2551
2552
|
contents = (0, import_smithy_client._json)(data);
|
|
2552
2553
|
const response = {
|
|
@@ -2559,7 +2560,7 @@ var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2559
2560
|
if (output.statusCode >= 300) {
|
|
2560
2561
|
return de_CommandError(output, context);
|
|
2561
2562
|
}
|
|
2562
|
-
const data = await
|
|
2563
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2563
2564
|
let contents = {};
|
|
2564
2565
|
contents = (0, import_smithy_client._json)(data);
|
|
2565
2566
|
const response = {
|
|
@@ -2571,9 +2572,9 @@ var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2571
2572
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2572
2573
|
const parsedOutput = {
|
|
2573
2574
|
...output,
|
|
2574
|
-
body: await
|
|
2575
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2575
2576
|
};
|
|
2576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2577
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2577
2578
|
switch (errorCode) {
|
|
2578
2579
|
case "WAFInternalErrorException":
|
|
2579
2580
|
case "com.amazonaws.wafregional#WAFInternalErrorException":
|
|
@@ -2930,7 +2931,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2930
2931
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2931
2932
|
cfId: output.headers["x-amz-cf-id"]
|
|
2932
2933
|
}), "deserializeMetadata");
|
|
2933
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2934
2934
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WAFRegionalServiceException);
|
|
2935
2935
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2936
2936
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2957,46 +2957,6 @@ function sharedHeaders(operation) {
|
|
|
2957
2957
|
};
|
|
2958
2958
|
}
|
|
2959
2959
|
__name(sharedHeaders, "sharedHeaders");
|
|
2960
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2961
|
-
if (encoded.length) {
|
|
2962
|
-
return JSON.parse(encoded);
|
|
2963
|
-
}
|
|
2964
|
-
return {};
|
|
2965
|
-
}), "parseBody");
|
|
2966
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2967
|
-
const value = await parseBody(errorBody, context);
|
|
2968
|
-
value.message = value.message ?? value.Message;
|
|
2969
|
-
return value;
|
|
2970
|
-
}, "parseErrorBody");
|
|
2971
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2972
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2973
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2974
|
-
let cleanValue = rawValue;
|
|
2975
|
-
if (typeof cleanValue === "number") {
|
|
2976
|
-
cleanValue = cleanValue.toString();
|
|
2977
|
-
}
|
|
2978
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2979
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2980
|
-
}
|
|
2981
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2982
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2983
|
-
}
|
|
2984
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2985
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2986
|
-
}
|
|
2987
|
-
return cleanValue;
|
|
2988
|
-
}, "sanitizeErrorCode");
|
|
2989
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2990
|
-
if (headerKey !== void 0) {
|
|
2991
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2992
|
-
}
|
|
2993
|
-
if (data.code !== void 0) {
|
|
2994
|
-
return sanitizeErrorCode(data.code);
|
|
2995
|
-
}
|
|
2996
|
-
if (data["__type"] !== void 0) {
|
|
2997
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2998
|
-
}
|
|
2999
|
-
}, "loadRestJsonErrorCode");
|
|
3000
2960
|
|
|
3001
2961
|
// src/commands/AssociateWebACLCommand.ts
|
|
3002
2962
|
var _AssociateWebACLCommand = class _AssociateWebACLCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { WAFBadRequestException, WAFDisallowedNameException, WAFEntityMigrationException, WAFInternalErrorException, WAFInvalidAccountException, WAFInvalidOperationException, WAFInvalidParameterException, WAFInvalidPermissionPolicyException, WAFInvalidRegexPatternException, WAFLimitsExceededException, WAFNonEmptyEntityException, WAFNonexistentContainerException, WAFNonexistentItemException, WAFReferencedItemException, WAFServiceLinkedRoleErrorException, WAFStaleDataException, WAFSubscriptionNotFoundException, WAFTagOperationException, WAFTagOperationInternalErrorException, WAFUnavailableEntityException, } from "../models/models_0";
|
|
@@ -1935,43 +1936,3 @@ function sharedHeaders(operation) {
|
|
|
1935
1936
|
"x-amz-target": `AWSWAF_Regional_20161128.${operation}`,
|
|
1936
1937
|
};
|
|
1937
1938
|
}
|
|
1938
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1939
|
-
if (encoded.length) {
|
|
1940
|
-
return JSON.parse(encoded);
|
|
1941
|
-
}
|
|
1942
|
-
return {};
|
|
1943
|
-
});
|
|
1944
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1945
|
-
const value = await parseBody(errorBody, context);
|
|
1946
|
-
value.message = value.message ?? value.Message;
|
|
1947
|
-
return value;
|
|
1948
|
-
};
|
|
1949
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1950
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1951
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1952
|
-
let cleanValue = rawValue;
|
|
1953
|
-
if (typeof cleanValue === "number") {
|
|
1954
|
-
cleanValue = cleanValue.toString();
|
|
1955
|
-
}
|
|
1956
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1957
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1958
|
-
}
|
|
1959
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1960
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1961
|
-
}
|
|
1962
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1963
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1964
|
-
}
|
|
1965
|
-
return cleanValue;
|
|
1966
|
-
};
|
|
1967
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1968
|
-
if (headerKey !== undefined) {
|
|
1969
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1970
|
-
}
|
|
1971
|
-
if (data.code !== undefined) {
|
|
1972
|
-
return sanitizeErrorCode(data.code);
|
|
1973
|
-
}
|
|
1974
|
-
if (data["__type"] !== undefined) {
|
|
1975
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1976
|
-
}
|
|
1977
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-waf-regional",
|
|
3
3
|
"description": "AWS SDK for JavaScript Waf Regional Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-waf-regional",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|