@aws-sdk/client-waf 3.525.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 +80 -120
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -294,6 +294,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
294
294
|
var import_types = require("@smithy/types");
|
|
295
295
|
|
|
296
296
|
// src/protocols/Aws_json1_1.ts
|
|
297
|
+
var import_core2 = require("@aws-sdk/core");
|
|
297
298
|
|
|
298
299
|
|
|
299
300
|
|
|
@@ -1468,7 +1469,7 @@ var de_CreateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1468
1469
|
if (output.statusCode >= 300) {
|
|
1469
1470
|
return de_CommandError(output, context);
|
|
1470
1471
|
}
|
|
1471
|
-
const data = await
|
|
1472
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1472
1473
|
let contents = {};
|
|
1473
1474
|
contents = de_CreateByteMatchSetResponse(data, context);
|
|
1474
1475
|
const response = {
|
|
@@ -1481,7 +1482,7 @@ var de_CreateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1481
1482
|
if (output.statusCode >= 300) {
|
|
1482
1483
|
return de_CommandError(output, context);
|
|
1483
1484
|
}
|
|
1484
|
-
const data = await
|
|
1485
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1485
1486
|
let contents = {};
|
|
1486
1487
|
contents = (0, import_smithy_client._json)(data);
|
|
1487
1488
|
const response = {
|
|
@@ -1494,7 +1495,7 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1494
1495
|
if (output.statusCode >= 300) {
|
|
1495
1496
|
return de_CommandError(output, context);
|
|
1496
1497
|
}
|
|
1497
|
-
const data = await
|
|
1498
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1498
1499
|
let contents = {};
|
|
1499
1500
|
contents = (0, import_smithy_client._json)(data);
|
|
1500
1501
|
const response = {
|
|
@@ -1507,7 +1508,7 @@ var de_CreateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1507
1508
|
if (output.statusCode >= 300) {
|
|
1508
1509
|
return de_CommandError(output, context);
|
|
1509
1510
|
}
|
|
1510
|
-
const data = await
|
|
1511
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1511
1512
|
let contents = {};
|
|
1512
1513
|
contents = (0, import_smithy_client._json)(data);
|
|
1513
1514
|
const response = {
|
|
@@ -1520,7 +1521,7 @@ var de_CreateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1520
1521
|
if (output.statusCode >= 300) {
|
|
1521
1522
|
return de_CommandError(output, context);
|
|
1522
1523
|
}
|
|
1523
|
-
const data = await
|
|
1524
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1524
1525
|
let contents = {};
|
|
1525
1526
|
contents = (0, import_smithy_client._json)(data);
|
|
1526
1527
|
const response = {
|
|
@@ -1533,7 +1534,7 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1533
1534
|
if (output.statusCode >= 300) {
|
|
1534
1535
|
return de_CommandError(output, context);
|
|
1535
1536
|
}
|
|
1536
|
-
const data = await
|
|
1537
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1537
1538
|
let contents = {};
|
|
1538
1539
|
contents = (0, import_smithy_client._json)(data);
|
|
1539
1540
|
const response = {
|
|
@@ -1546,7 +1547,7 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1546
1547
|
if (output.statusCode >= 300) {
|
|
1547
1548
|
return de_CommandError(output, context);
|
|
1548
1549
|
}
|
|
1549
|
-
const data = await
|
|
1550
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1550
1551
|
let contents = {};
|
|
1551
1552
|
contents = (0, import_smithy_client._json)(data);
|
|
1552
1553
|
const response = {
|
|
@@ -1559,7 +1560,7 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1559
1560
|
if (output.statusCode >= 300) {
|
|
1560
1561
|
return de_CommandError(output, context);
|
|
1561
1562
|
}
|
|
1562
|
-
const data = await
|
|
1563
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1563
1564
|
let contents = {};
|
|
1564
1565
|
contents = (0, import_smithy_client._json)(data);
|
|
1565
1566
|
const response = {
|
|
@@ -1572,7 +1573,7 @@ var de_CreateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1572
1573
|
if (output.statusCode >= 300) {
|
|
1573
1574
|
return de_CommandError(output, context);
|
|
1574
1575
|
}
|
|
1575
|
-
const data = await
|
|
1576
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1576
1577
|
let contents = {};
|
|
1577
1578
|
contents = (0, import_smithy_client._json)(data);
|
|
1578
1579
|
const response = {
|
|
@@ -1585,7 +1586,7 @@ var de_CreateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1585
1586
|
if (output.statusCode >= 300) {
|
|
1586
1587
|
return de_CommandError(output, context);
|
|
1587
1588
|
}
|
|
1588
|
-
const data = await
|
|
1589
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1589
1590
|
let contents = {};
|
|
1590
1591
|
contents = (0, import_smithy_client._json)(data);
|
|
1591
1592
|
const response = {
|
|
@@ -1598,7 +1599,7 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1598
1599
|
if (output.statusCode >= 300) {
|
|
1599
1600
|
return de_CommandError(output, context);
|
|
1600
1601
|
}
|
|
1601
|
-
const data = await
|
|
1602
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1602
1603
|
let contents = {};
|
|
1603
1604
|
contents = (0, import_smithy_client._json)(data);
|
|
1604
1605
|
const response = {
|
|
@@ -1611,7 +1612,7 @@ var de_CreateWebACLMigrationStackCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1611
1612
|
if (output.statusCode >= 300) {
|
|
1612
1613
|
return de_CommandError(output, context);
|
|
1613
1614
|
}
|
|
1614
|
-
const data = await
|
|
1615
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1615
1616
|
let contents = {};
|
|
1616
1617
|
contents = (0, import_smithy_client._json)(data);
|
|
1617
1618
|
const response = {
|
|
@@ -1624,7 +1625,7 @@ var de_CreateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1624
1625
|
if (output.statusCode >= 300) {
|
|
1625
1626
|
return de_CommandError(output, context);
|
|
1626
1627
|
}
|
|
1627
|
-
const data = await
|
|
1628
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1628
1629
|
let contents = {};
|
|
1629
1630
|
contents = (0, import_smithy_client._json)(data);
|
|
1630
1631
|
const response = {
|
|
@@ -1637,7 +1638,7 @@ var de_DeleteByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1637
1638
|
if (output.statusCode >= 300) {
|
|
1638
1639
|
return de_CommandError(output, context);
|
|
1639
1640
|
}
|
|
1640
|
-
const data = await
|
|
1641
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1641
1642
|
let contents = {};
|
|
1642
1643
|
contents = (0, import_smithy_client._json)(data);
|
|
1643
1644
|
const response = {
|
|
@@ -1650,7 +1651,7 @@ var de_DeleteGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1650
1651
|
if (output.statusCode >= 300) {
|
|
1651
1652
|
return de_CommandError(output, context);
|
|
1652
1653
|
}
|
|
1653
|
-
const data = await
|
|
1654
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1654
1655
|
let contents = {};
|
|
1655
1656
|
contents = (0, import_smithy_client._json)(data);
|
|
1656
1657
|
const response = {
|
|
@@ -1663,7 +1664,7 @@ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1663
1664
|
if (output.statusCode >= 300) {
|
|
1664
1665
|
return de_CommandError(output, context);
|
|
1665
1666
|
}
|
|
1666
|
-
const data = await
|
|
1667
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1667
1668
|
let contents = {};
|
|
1668
1669
|
contents = (0, import_smithy_client._json)(data);
|
|
1669
1670
|
const response = {
|
|
@@ -1676,7 +1677,7 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1676
1677
|
if (output.statusCode >= 300) {
|
|
1677
1678
|
return de_CommandError(output, context);
|
|
1678
1679
|
}
|
|
1679
|
-
const data = await
|
|
1680
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1680
1681
|
let contents = {};
|
|
1681
1682
|
contents = (0, import_smithy_client._json)(data);
|
|
1682
1683
|
const response = {
|
|
@@ -1689,7 +1690,7 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1689
1690
|
if (output.statusCode >= 300) {
|
|
1690
1691
|
return de_CommandError(output, context);
|
|
1691
1692
|
}
|
|
1692
|
-
const data = await
|
|
1693
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1693
1694
|
let contents = {};
|
|
1694
1695
|
contents = (0, import_smithy_client._json)(data);
|
|
1695
1696
|
const response = {
|
|
@@ -1702,7 +1703,7 @@ var de_DeleteRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1702
1703
|
if (output.statusCode >= 300) {
|
|
1703
1704
|
return de_CommandError(output, context);
|
|
1704
1705
|
}
|
|
1705
|
-
const data = await
|
|
1706
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1706
1707
|
let contents = {};
|
|
1707
1708
|
contents = (0, import_smithy_client._json)(data);
|
|
1708
1709
|
const response = {
|
|
@@ -1715,7 +1716,7 @@ var de_DeleteRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1715
1716
|
if (output.statusCode >= 300) {
|
|
1716
1717
|
return de_CommandError(output, context);
|
|
1717
1718
|
}
|
|
1718
|
-
const data = await
|
|
1719
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1719
1720
|
let contents = {};
|
|
1720
1721
|
contents = (0, import_smithy_client._json)(data);
|
|
1721
1722
|
const response = {
|
|
@@ -1728,7 +1729,7 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1728
1729
|
if (output.statusCode >= 300) {
|
|
1729
1730
|
return de_CommandError(output, context);
|
|
1730
1731
|
}
|
|
1731
|
-
const data = await
|
|
1732
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1732
1733
|
let contents = {};
|
|
1733
1734
|
contents = (0, import_smithy_client._json)(data);
|
|
1734
1735
|
const response = {
|
|
@@ -1741,7 +1742,7 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1741
1742
|
if (output.statusCode >= 300) {
|
|
1742
1743
|
return de_CommandError(output, context);
|
|
1743
1744
|
}
|
|
1744
|
-
const data = await
|
|
1745
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1745
1746
|
let contents = {};
|
|
1746
1747
|
contents = (0, import_smithy_client._json)(data);
|
|
1747
1748
|
const response = {
|
|
@@ -1754,7 +1755,7 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1754
1755
|
if (output.statusCode >= 300) {
|
|
1755
1756
|
return de_CommandError(output, context);
|
|
1756
1757
|
}
|
|
1757
|
-
const data = await
|
|
1758
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1758
1759
|
let contents = {};
|
|
1759
1760
|
contents = (0, import_smithy_client._json)(data);
|
|
1760
1761
|
const response = {
|
|
@@ -1767,7 +1768,7 @@ var de_DeleteSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1767
1768
|
if (output.statusCode >= 300) {
|
|
1768
1769
|
return de_CommandError(output, context);
|
|
1769
1770
|
}
|
|
1770
|
-
const data = await
|
|
1771
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1771
1772
|
let contents = {};
|
|
1772
1773
|
contents = (0, import_smithy_client._json)(data);
|
|
1773
1774
|
const response = {
|
|
@@ -1780,7 +1781,7 @@ var de_DeleteSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1780
1781
|
if (output.statusCode >= 300) {
|
|
1781
1782
|
return de_CommandError(output, context);
|
|
1782
1783
|
}
|
|
1783
|
-
const data = await
|
|
1784
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1784
1785
|
let contents = {};
|
|
1785
1786
|
contents = (0, import_smithy_client._json)(data);
|
|
1786
1787
|
const response = {
|
|
@@ -1793,7 +1794,7 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1793
1794
|
if (output.statusCode >= 300) {
|
|
1794
1795
|
return de_CommandError(output, context);
|
|
1795
1796
|
}
|
|
1796
|
-
const data = await
|
|
1797
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1797
1798
|
let contents = {};
|
|
1798
1799
|
contents = (0, import_smithy_client._json)(data);
|
|
1799
1800
|
const response = {
|
|
@@ -1806,7 +1807,7 @@ var de_DeleteXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1806
1807
|
if (output.statusCode >= 300) {
|
|
1807
1808
|
return de_CommandError(output, context);
|
|
1808
1809
|
}
|
|
1809
|
-
const data = await
|
|
1810
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1810
1811
|
let contents = {};
|
|
1811
1812
|
contents = (0, import_smithy_client._json)(data);
|
|
1812
1813
|
const response = {
|
|
@@ -1819,7 +1820,7 @@ var de_GetByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1819
1820
|
if (output.statusCode >= 300) {
|
|
1820
1821
|
return de_CommandError(output, context);
|
|
1821
1822
|
}
|
|
1822
|
-
const data = await
|
|
1823
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1823
1824
|
let contents = {};
|
|
1824
1825
|
contents = de_GetByteMatchSetResponse(data, context);
|
|
1825
1826
|
const response = {
|
|
@@ -1832,7 +1833,7 @@ var de_GetChangeTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1832
1833
|
if (output.statusCode >= 300) {
|
|
1833
1834
|
return de_CommandError(output, context);
|
|
1834
1835
|
}
|
|
1835
|
-
const data = await
|
|
1836
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1836
1837
|
let contents = {};
|
|
1837
1838
|
contents = (0, import_smithy_client._json)(data);
|
|
1838
1839
|
const response = {
|
|
@@ -1845,7 +1846,7 @@ var de_GetChangeTokenStatusCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1845
1846
|
if (output.statusCode >= 300) {
|
|
1846
1847
|
return de_CommandError(output, context);
|
|
1847
1848
|
}
|
|
1848
|
-
const data = await
|
|
1849
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1849
1850
|
let contents = {};
|
|
1850
1851
|
contents = (0, import_smithy_client._json)(data);
|
|
1851
1852
|
const response = {
|
|
@@ -1858,7 +1859,7 @@ var de_GetGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1858
1859
|
if (output.statusCode >= 300) {
|
|
1859
1860
|
return de_CommandError(output, context);
|
|
1860
1861
|
}
|
|
1861
|
-
const data = await
|
|
1862
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1862
1863
|
let contents = {};
|
|
1863
1864
|
contents = (0, import_smithy_client._json)(data);
|
|
1864
1865
|
const response = {
|
|
@@ -1871,7 +1872,7 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1871
1872
|
if (output.statusCode >= 300) {
|
|
1872
1873
|
return de_CommandError(output, context);
|
|
1873
1874
|
}
|
|
1874
|
-
const data = await
|
|
1875
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1875
1876
|
let contents = {};
|
|
1876
1877
|
contents = (0, import_smithy_client._json)(data);
|
|
1877
1878
|
const response = {
|
|
@@ -1884,7 +1885,7 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1884
1885
|
if (output.statusCode >= 300) {
|
|
1885
1886
|
return de_CommandError(output, context);
|
|
1886
1887
|
}
|
|
1887
|
-
const data = await
|
|
1888
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1888
1889
|
let contents = {};
|
|
1889
1890
|
contents = (0, import_smithy_client._json)(data);
|
|
1890
1891
|
const response = {
|
|
@@ -1897,7 +1898,7 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1897
1898
|
if (output.statusCode >= 300) {
|
|
1898
1899
|
return de_CommandError(output, context);
|
|
1899
1900
|
}
|
|
1900
|
-
const data = await
|
|
1901
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1901
1902
|
let contents = {};
|
|
1902
1903
|
contents = (0, import_smithy_client._json)(data);
|
|
1903
1904
|
const response = {
|
|
@@ -1910,7 +1911,7 @@ var de_GetRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1910
1911
|
if (output.statusCode >= 300) {
|
|
1911
1912
|
return de_CommandError(output, context);
|
|
1912
1913
|
}
|
|
1913
|
-
const data = await
|
|
1914
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1914
1915
|
let contents = {};
|
|
1915
1916
|
contents = (0, import_smithy_client._json)(data);
|
|
1916
1917
|
const response = {
|
|
@@ -1923,7 +1924,7 @@ var de_GetRateBasedRuleManagedKeysCommand = /* @__PURE__ */ __name(async (output
|
|
|
1923
1924
|
if (output.statusCode >= 300) {
|
|
1924
1925
|
return de_CommandError(output, context);
|
|
1925
1926
|
}
|
|
1926
|
-
const data = await
|
|
1927
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1927
1928
|
let contents = {};
|
|
1928
1929
|
contents = (0, import_smithy_client._json)(data);
|
|
1929
1930
|
const response = {
|
|
@@ -1936,7 +1937,7 @@ var de_GetRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1936
1937
|
if (output.statusCode >= 300) {
|
|
1937
1938
|
return de_CommandError(output, context);
|
|
1938
1939
|
}
|
|
1939
|
-
const data = await
|
|
1940
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1940
1941
|
let contents = {};
|
|
1941
1942
|
contents = (0, import_smithy_client._json)(data);
|
|
1942
1943
|
const response = {
|
|
@@ -1949,7 +1950,7 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1949
1950
|
if (output.statusCode >= 300) {
|
|
1950
1951
|
return de_CommandError(output, context);
|
|
1951
1952
|
}
|
|
1952
|
-
const data = await
|
|
1953
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1953
1954
|
let contents = {};
|
|
1954
1955
|
contents = (0, import_smithy_client._json)(data);
|
|
1955
1956
|
const response = {
|
|
@@ -1962,7 +1963,7 @@ var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1962
1963
|
if (output.statusCode >= 300) {
|
|
1963
1964
|
return de_CommandError(output, context);
|
|
1964
1965
|
}
|
|
1965
|
-
const data = await
|
|
1966
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1966
1967
|
let contents = {};
|
|
1967
1968
|
contents = (0, import_smithy_client._json)(data);
|
|
1968
1969
|
const response = {
|
|
@@ -1975,7 +1976,7 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1975
1976
|
if (output.statusCode >= 300) {
|
|
1976
1977
|
return de_CommandError(output, context);
|
|
1977
1978
|
}
|
|
1978
|
-
const data = await
|
|
1979
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1979
1980
|
let contents = {};
|
|
1980
1981
|
contents = (0, import_smithy_client._json)(data);
|
|
1981
1982
|
const response = {
|
|
@@ -1988,7 +1989,7 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1988
1989
|
if (output.statusCode >= 300) {
|
|
1989
1990
|
return de_CommandError(output, context);
|
|
1990
1991
|
}
|
|
1991
|
-
const data = await
|
|
1992
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1992
1993
|
let contents = {};
|
|
1993
1994
|
contents = de_GetSampledRequestsResponse(data, context);
|
|
1994
1995
|
const response = {
|
|
@@ -2001,7 +2002,7 @@ var de_GetSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2001
2002
|
if (output.statusCode >= 300) {
|
|
2002
2003
|
return de_CommandError(output, context);
|
|
2003
2004
|
}
|
|
2004
|
-
const data = await
|
|
2005
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2005
2006
|
let contents = {};
|
|
2006
2007
|
contents = (0, import_smithy_client._json)(data);
|
|
2007
2008
|
const response = {
|
|
@@ -2014,7 +2015,7 @@ var de_GetSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2014
2015
|
if (output.statusCode >= 300) {
|
|
2015
2016
|
return de_CommandError(output, context);
|
|
2016
2017
|
}
|
|
2017
|
-
const data = await
|
|
2018
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2018
2019
|
let contents = {};
|
|
2019
2020
|
contents = (0, import_smithy_client._json)(data);
|
|
2020
2021
|
const response = {
|
|
@@ -2027,7 +2028,7 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2027
2028
|
if (output.statusCode >= 300) {
|
|
2028
2029
|
return de_CommandError(output, context);
|
|
2029
2030
|
}
|
|
2030
|
-
const data = await
|
|
2031
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2031
2032
|
let contents = {};
|
|
2032
2033
|
contents = (0, import_smithy_client._json)(data);
|
|
2033
2034
|
const response = {
|
|
@@ -2040,7 +2041,7 @@ var de_GetXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2040
2041
|
if (output.statusCode >= 300) {
|
|
2041
2042
|
return de_CommandError(output, context);
|
|
2042
2043
|
}
|
|
2043
|
-
const data = await
|
|
2044
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2044
2045
|
let contents = {};
|
|
2045
2046
|
contents = (0, import_smithy_client._json)(data);
|
|
2046
2047
|
const response = {
|
|
@@ -2053,7 +2054,7 @@ var de_ListActivatedRulesInRuleGroupCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2053
2054
|
if (output.statusCode >= 300) {
|
|
2054
2055
|
return de_CommandError(output, context);
|
|
2055
2056
|
}
|
|
2056
|
-
const data = await
|
|
2057
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2057
2058
|
let contents = {};
|
|
2058
2059
|
contents = (0, import_smithy_client._json)(data);
|
|
2059
2060
|
const response = {
|
|
@@ -2066,7 +2067,7 @@ var de_ListByteMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2066
2067
|
if (output.statusCode >= 300) {
|
|
2067
2068
|
return de_CommandError(output, context);
|
|
2068
2069
|
}
|
|
2069
|
-
const data = await
|
|
2070
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2070
2071
|
let contents = {};
|
|
2071
2072
|
contents = (0, import_smithy_client._json)(data);
|
|
2072
2073
|
const response = {
|
|
@@ -2079,7 +2080,7 @@ var de_ListGeoMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2079
2080
|
if (output.statusCode >= 300) {
|
|
2080
2081
|
return de_CommandError(output, context);
|
|
2081
2082
|
}
|
|
2082
|
-
const data = await
|
|
2083
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2083
2084
|
let contents = {};
|
|
2084
2085
|
contents = (0, import_smithy_client._json)(data);
|
|
2085
2086
|
const response = {
|
|
@@ -2092,7 +2093,7 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2092
2093
|
if (output.statusCode >= 300) {
|
|
2093
2094
|
return de_CommandError(output, context);
|
|
2094
2095
|
}
|
|
2095
|
-
const data = await
|
|
2096
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2096
2097
|
let contents = {};
|
|
2097
2098
|
contents = (0, import_smithy_client._json)(data);
|
|
2098
2099
|
const response = {
|
|
@@ -2105,7 +2106,7 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2105
2106
|
if (output.statusCode >= 300) {
|
|
2106
2107
|
return de_CommandError(output, context);
|
|
2107
2108
|
}
|
|
2108
|
-
const data = await
|
|
2109
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2109
2110
|
let contents = {};
|
|
2110
2111
|
contents = (0, import_smithy_client._json)(data);
|
|
2111
2112
|
const response = {
|
|
@@ -2118,7 +2119,7 @@ var de_ListRateBasedRulesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2118
2119
|
if (output.statusCode >= 300) {
|
|
2119
2120
|
return de_CommandError(output, context);
|
|
2120
2121
|
}
|
|
2121
|
-
const data = await
|
|
2122
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2122
2123
|
let contents = {};
|
|
2123
2124
|
contents = (0, import_smithy_client._json)(data);
|
|
2124
2125
|
const response = {
|
|
@@ -2131,7 +2132,7 @@ var de_ListRegexMatchSetsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2131
2132
|
if (output.statusCode >= 300) {
|
|
2132
2133
|
return de_CommandError(output, context);
|
|
2133
2134
|
}
|
|
2134
|
-
const data = await
|
|
2135
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2135
2136
|
let contents = {};
|
|
2136
2137
|
contents = (0, import_smithy_client._json)(data);
|
|
2137
2138
|
const response = {
|
|
@@ -2144,7 +2145,7 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2144
2145
|
if (output.statusCode >= 300) {
|
|
2145
2146
|
return de_CommandError(output, context);
|
|
2146
2147
|
}
|
|
2147
|
-
const data = await
|
|
2148
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2148
2149
|
let contents = {};
|
|
2149
2150
|
contents = (0, import_smithy_client._json)(data);
|
|
2150
2151
|
const response = {
|
|
@@ -2157,7 +2158,7 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2157
2158
|
if (output.statusCode >= 300) {
|
|
2158
2159
|
return de_CommandError(output, context);
|
|
2159
2160
|
}
|
|
2160
|
-
const data = await
|
|
2161
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2161
2162
|
let contents = {};
|
|
2162
2163
|
contents = (0, import_smithy_client._json)(data);
|
|
2163
2164
|
const response = {
|
|
@@ -2170,7 +2171,7 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2170
2171
|
if (output.statusCode >= 300) {
|
|
2171
2172
|
return de_CommandError(output, context);
|
|
2172
2173
|
}
|
|
2173
|
-
const data = await
|
|
2174
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2174
2175
|
let contents = {};
|
|
2175
2176
|
contents = (0, import_smithy_client._json)(data);
|
|
2176
2177
|
const response = {
|
|
@@ -2183,7 +2184,7 @@ var de_ListSizeConstraintSetsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2183
2184
|
if (output.statusCode >= 300) {
|
|
2184
2185
|
return de_CommandError(output, context);
|
|
2185
2186
|
}
|
|
2186
|
-
const data = await
|
|
2187
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2187
2188
|
let contents = {};
|
|
2188
2189
|
contents = (0, import_smithy_client._json)(data);
|
|
2189
2190
|
const response = {
|
|
@@ -2196,7 +2197,7 @@ var de_ListSqlInjectionMatchSetsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2196
2197
|
if (output.statusCode >= 300) {
|
|
2197
2198
|
return de_CommandError(output, context);
|
|
2198
2199
|
}
|
|
2199
|
-
const data = await
|
|
2200
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2200
2201
|
let contents = {};
|
|
2201
2202
|
contents = (0, import_smithy_client._json)(data);
|
|
2202
2203
|
const response = {
|
|
@@ -2209,7 +2210,7 @@ var de_ListSubscribedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2209
2210
|
if (output.statusCode >= 300) {
|
|
2210
2211
|
return de_CommandError(output, context);
|
|
2211
2212
|
}
|
|
2212
|
-
const data = await
|
|
2213
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2213
2214
|
let contents = {};
|
|
2214
2215
|
contents = (0, import_smithy_client._json)(data);
|
|
2215
2216
|
const response = {
|
|
@@ -2222,7 +2223,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2222
2223
|
if (output.statusCode >= 300) {
|
|
2223
2224
|
return de_CommandError(output, context);
|
|
2224
2225
|
}
|
|
2225
|
-
const data = await
|
|
2226
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2226
2227
|
let contents = {};
|
|
2227
2228
|
contents = (0, import_smithy_client._json)(data);
|
|
2228
2229
|
const response = {
|
|
@@ -2235,7 +2236,7 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2235
2236
|
if (output.statusCode >= 300) {
|
|
2236
2237
|
return de_CommandError(output, context);
|
|
2237
2238
|
}
|
|
2238
|
-
const data = await
|
|
2239
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2239
2240
|
let contents = {};
|
|
2240
2241
|
contents = (0, import_smithy_client._json)(data);
|
|
2241
2242
|
const response = {
|
|
@@ -2248,7 +2249,7 @@ var de_ListXssMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2248
2249
|
if (output.statusCode >= 300) {
|
|
2249
2250
|
return de_CommandError(output, context);
|
|
2250
2251
|
}
|
|
2251
|
-
const data = await
|
|
2252
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2252
2253
|
let contents = {};
|
|
2253
2254
|
contents = (0, import_smithy_client._json)(data);
|
|
2254
2255
|
const response = {
|
|
@@ -2261,7 +2262,7 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2261
2262
|
if (output.statusCode >= 300) {
|
|
2262
2263
|
return de_CommandError(output, context);
|
|
2263
2264
|
}
|
|
2264
|
-
const data = await
|
|
2265
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2265
2266
|
let contents = {};
|
|
2266
2267
|
contents = (0, import_smithy_client._json)(data);
|
|
2267
2268
|
const response = {
|
|
@@ -2274,7 +2275,7 @@ var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2274
2275
|
if (output.statusCode >= 300) {
|
|
2275
2276
|
return de_CommandError(output, context);
|
|
2276
2277
|
}
|
|
2277
|
-
const data = await
|
|
2278
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2278
2279
|
let contents = {};
|
|
2279
2280
|
contents = (0, import_smithy_client._json)(data);
|
|
2280
2281
|
const response = {
|
|
@@ -2287,7 +2288,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2287
2288
|
if (output.statusCode >= 300) {
|
|
2288
2289
|
return de_CommandError(output, context);
|
|
2289
2290
|
}
|
|
2290
|
-
const data = await
|
|
2291
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2291
2292
|
let contents = {};
|
|
2292
2293
|
contents = (0, import_smithy_client._json)(data);
|
|
2293
2294
|
const response = {
|
|
@@ -2300,7 +2301,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2300
2301
|
if (output.statusCode >= 300) {
|
|
2301
2302
|
return de_CommandError(output, context);
|
|
2302
2303
|
}
|
|
2303
|
-
const data = await
|
|
2304
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2304
2305
|
let contents = {};
|
|
2305
2306
|
contents = (0, import_smithy_client._json)(data);
|
|
2306
2307
|
const response = {
|
|
@@ -2313,7 +2314,7 @@ var de_UpdateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2313
2314
|
if (output.statusCode >= 300) {
|
|
2314
2315
|
return de_CommandError(output, context);
|
|
2315
2316
|
}
|
|
2316
|
-
const data = await
|
|
2317
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2317
2318
|
let contents = {};
|
|
2318
2319
|
contents = (0, import_smithy_client._json)(data);
|
|
2319
2320
|
const response = {
|
|
@@ -2326,7 +2327,7 @@ var de_UpdateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2326
2327
|
if (output.statusCode >= 300) {
|
|
2327
2328
|
return de_CommandError(output, context);
|
|
2328
2329
|
}
|
|
2329
|
-
const data = await
|
|
2330
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2330
2331
|
let contents = {};
|
|
2331
2332
|
contents = (0, import_smithy_client._json)(data);
|
|
2332
2333
|
const response = {
|
|
@@ -2339,7 +2340,7 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2339
2340
|
if (output.statusCode >= 300) {
|
|
2340
2341
|
return de_CommandError(output, context);
|
|
2341
2342
|
}
|
|
2342
|
-
const data = await
|
|
2343
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2343
2344
|
let contents = {};
|
|
2344
2345
|
contents = (0, import_smithy_client._json)(data);
|
|
2345
2346
|
const response = {
|
|
@@ -2352,7 +2353,7 @@ var de_UpdateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2352
2353
|
if (output.statusCode >= 300) {
|
|
2353
2354
|
return de_CommandError(output, context);
|
|
2354
2355
|
}
|
|
2355
|
-
const data = await
|
|
2356
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2356
2357
|
let contents = {};
|
|
2357
2358
|
contents = (0, import_smithy_client._json)(data);
|
|
2358
2359
|
const response = {
|
|
@@ -2365,7 +2366,7 @@ var de_UpdateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2365
2366
|
if (output.statusCode >= 300) {
|
|
2366
2367
|
return de_CommandError(output, context);
|
|
2367
2368
|
}
|
|
2368
|
-
const data = await
|
|
2369
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2369
2370
|
let contents = {};
|
|
2370
2371
|
contents = (0, import_smithy_client._json)(data);
|
|
2371
2372
|
const response = {
|
|
@@ -2378,7 +2379,7 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2378
2379
|
if (output.statusCode >= 300) {
|
|
2379
2380
|
return de_CommandError(output, context);
|
|
2380
2381
|
}
|
|
2381
|
-
const data = await
|
|
2382
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2382
2383
|
let contents = {};
|
|
2383
2384
|
contents = (0, import_smithy_client._json)(data);
|
|
2384
2385
|
const response = {
|
|
@@ -2391,7 +2392,7 @@ var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2391
2392
|
if (output.statusCode >= 300) {
|
|
2392
2393
|
return de_CommandError(output, context);
|
|
2393
2394
|
}
|
|
2394
|
-
const data = await
|
|
2395
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2395
2396
|
let contents = {};
|
|
2396
2397
|
contents = (0, import_smithy_client._json)(data);
|
|
2397
2398
|
const response = {
|
|
@@ -2404,7 +2405,7 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2404
2405
|
if (output.statusCode >= 300) {
|
|
2405
2406
|
return de_CommandError(output, context);
|
|
2406
2407
|
}
|
|
2407
|
-
const data = await
|
|
2408
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2408
2409
|
let contents = {};
|
|
2409
2410
|
contents = (0, import_smithy_client._json)(data);
|
|
2410
2411
|
const response = {
|
|
@@ -2417,7 +2418,7 @@ var de_UpdateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2417
2418
|
if (output.statusCode >= 300) {
|
|
2418
2419
|
return de_CommandError(output, context);
|
|
2419
2420
|
}
|
|
2420
|
-
const data = await
|
|
2421
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2421
2422
|
let contents = {};
|
|
2422
2423
|
contents = (0, import_smithy_client._json)(data);
|
|
2423
2424
|
const response = {
|
|
@@ -2430,7 +2431,7 @@ var de_UpdateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2430
2431
|
if (output.statusCode >= 300) {
|
|
2431
2432
|
return de_CommandError(output, context);
|
|
2432
2433
|
}
|
|
2433
|
-
const data = await
|
|
2434
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2434
2435
|
let contents = {};
|
|
2435
2436
|
contents = (0, import_smithy_client._json)(data);
|
|
2436
2437
|
const response = {
|
|
@@ -2443,7 +2444,7 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2443
2444
|
if (output.statusCode >= 300) {
|
|
2444
2445
|
return de_CommandError(output, context);
|
|
2445
2446
|
}
|
|
2446
|
-
const data = await
|
|
2447
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2447
2448
|
let contents = {};
|
|
2448
2449
|
contents = (0, import_smithy_client._json)(data);
|
|
2449
2450
|
const response = {
|
|
@@ -2456,7 +2457,7 @@ var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2456
2457
|
if (output.statusCode >= 300) {
|
|
2457
2458
|
return de_CommandError(output, context);
|
|
2458
2459
|
}
|
|
2459
|
-
const data = await
|
|
2460
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2460
2461
|
let contents = {};
|
|
2461
2462
|
contents = (0, import_smithy_client._json)(data);
|
|
2462
2463
|
const response = {
|
|
@@ -2468,9 +2469,9 @@ var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2468
2469
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2469
2470
|
const parsedOutput = {
|
|
2470
2471
|
...output,
|
|
2471
|
-
body: await
|
|
2472
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2472
2473
|
};
|
|
2473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2474
2475
|
switch (errorCode) {
|
|
2475
2476
|
case "WAFDisallowedNameException":
|
|
2476
2477
|
case "com.amazonaws.waf#WAFDisallowedNameException":
|
|
@@ -2815,7 +2816,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2815
2816
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2816
2817
|
cfId: output.headers["x-amz-cf-id"]
|
|
2817
2818
|
}), "deserializeMetadata");
|
|
2818
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2819
2819
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WAFServiceException);
|
|
2820
2820
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2821
2821
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2842,46 +2842,6 @@ function sharedHeaders(operation) {
|
|
|
2842
2842
|
};
|
|
2843
2843
|
}
|
|
2844
2844
|
__name(sharedHeaders, "sharedHeaders");
|
|
2845
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2846
|
-
if (encoded.length) {
|
|
2847
|
-
return JSON.parse(encoded);
|
|
2848
|
-
}
|
|
2849
|
-
return {};
|
|
2850
|
-
}), "parseBody");
|
|
2851
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2852
|
-
const value = await parseBody(errorBody, context);
|
|
2853
|
-
value.message = value.message ?? value.Message;
|
|
2854
|
-
return value;
|
|
2855
|
-
}, "parseErrorBody");
|
|
2856
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2857
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2858
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2859
|
-
let cleanValue = rawValue;
|
|
2860
|
-
if (typeof cleanValue === "number") {
|
|
2861
|
-
cleanValue = cleanValue.toString();
|
|
2862
|
-
}
|
|
2863
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2864
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2865
|
-
}
|
|
2866
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2867
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2868
|
-
}
|
|
2869
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2870
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2871
|
-
}
|
|
2872
|
-
return cleanValue;
|
|
2873
|
-
}, "sanitizeErrorCode");
|
|
2874
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2875
|
-
if (headerKey !== void 0) {
|
|
2876
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2877
|
-
}
|
|
2878
|
-
if (data.code !== void 0) {
|
|
2879
|
-
return sanitizeErrorCode(data.code);
|
|
2880
|
-
}
|
|
2881
|
-
if (data["__type"] !== void 0) {
|
|
2882
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2883
|
-
}
|
|
2884
|
-
}, "loadRestJsonErrorCode");
|
|
2885
2845
|
|
|
2886
2846
|
// src/commands/CreateByteMatchSetCommand.ts
|
|
2887
2847
|
var _CreateByteMatchSetCommand = class _CreateByteMatchSetCommand 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, } from "../models/models_0";
|
|
@@ -1847,43 +1848,3 @@ function sharedHeaders(operation) {
|
|
|
1847
1848
|
"x-amz-target": `AWSWAF_20150824.${operation}`,
|
|
1848
1849
|
};
|
|
1849
1850
|
}
|
|
1850
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1851
|
-
if (encoded.length) {
|
|
1852
|
-
return JSON.parse(encoded);
|
|
1853
|
-
}
|
|
1854
|
-
return {};
|
|
1855
|
-
});
|
|
1856
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1857
|
-
const value = await parseBody(errorBody, context);
|
|
1858
|
-
value.message = value.message ?? value.Message;
|
|
1859
|
-
return value;
|
|
1860
|
-
};
|
|
1861
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1862
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1863
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1864
|
-
let cleanValue = rawValue;
|
|
1865
|
-
if (typeof cleanValue === "number") {
|
|
1866
|
-
cleanValue = cleanValue.toString();
|
|
1867
|
-
}
|
|
1868
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1869
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1870
|
-
}
|
|
1871
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1872
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1873
|
-
}
|
|
1874
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1875
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1876
|
-
}
|
|
1877
|
-
return cleanValue;
|
|
1878
|
-
};
|
|
1879
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1880
|
-
if (headerKey !== undefined) {
|
|
1881
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1882
|
-
}
|
|
1883
|
-
if (data.code !== undefined) {
|
|
1884
|
-
return sanitizeErrorCode(data.code);
|
|
1885
|
-
}
|
|
1886
|
-
if (data["__type"] !== undefined) {
|
|
1887
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1888
|
-
}
|
|
1889
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-waf",
|
|
3
3
|
"description": "AWS SDK for JavaScript Waf Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
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",
|
|
@@ -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.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
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",
|