@aws-sdk/client-waf-regional 3.504.0 → 3.507.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 CHANGED
@@ -1459,7 +1459,7 @@ var se_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (input, context)
1459
1459
  }, "se_UpdateXssMatchSetCommand");
1460
1460
  var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1461
1461
  if (output.statusCode >= 300) {
1462
- return de_AssociateWebACLCommandError(output, context);
1462
+ return de_CommandError(output, context);
1463
1463
  }
1464
1464
  const data = await parseBody(output.body, context);
1465
1465
  let contents = {};
@@ -1470,40 +1470,9 @@ var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) =
1470
1470
  };
1471
1471
  return response;
1472
1472
  }, "de_AssociateWebACLCommand");
1473
- var de_AssociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1474
- const parsedOutput = {
1475
- ...output,
1476
- body: await parseErrorBody(output.body, context)
1477
- };
1478
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1479
- switch (errorCode) {
1480
- case "WAFInternalErrorException":
1481
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1482
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1483
- case "WAFInvalidAccountException":
1484
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1485
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1486
- case "WAFInvalidParameterException":
1487
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1488
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1489
- case "WAFNonexistentItemException":
1490
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
1491
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1492
- case "WAFUnavailableEntityException":
1493
- case "com.amazonaws.wafregional#WAFUnavailableEntityException":
1494
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1495
- default:
1496
- const parsedBody = parsedOutput.body;
1497
- return throwDefaultError({
1498
- output,
1499
- parsedBody,
1500
- errorCode
1501
- });
1502
- }
1503
- }, "de_AssociateWebACLCommandError");
1504
1473
  var de_CreateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1505
1474
  if (output.statusCode >= 300) {
1506
- return de_CreateByteMatchSetCommandError(output, context);
1475
+ return de_CommandError(output, context);
1507
1476
  }
1508
1477
  const data = await parseBody(output.body, context);
1509
1478
  let contents = {};
@@ -1514,43 +1483,9 @@ var de_CreateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
1514
1483
  };
1515
1484
  return response;
1516
1485
  }, "de_CreateByteMatchSetCommand");
1517
- var de_CreateByteMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1518
- const parsedOutput = {
1519
- ...output,
1520
- body: await parseErrorBody(output.body, context)
1521
- };
1522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1523
- switch (errorCode) {
1524
- case "WAFDisallowedNameException":
1525
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1526
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1527
- case "WAFInternalErrorException":
1528
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1529
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1530
- case "WAFInvalidAccountException":
1531
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1532
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1533
- case "WAFInvalidParameterException":
1534
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1535
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1536
- case "WAFLimitsExceededException":
1537
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1538
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1539
- case "WAFStaleDataException":
1540
- case "com.amazonaws.wafregional#WAFStaleDataException":
1541
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1542
- default:
1543
- const parsedBody = parsedOutput.body;
1544
- return throwDefaultError({
1545
- output,
1546
- parsedBody,
1547
- errorCode
1548
- });
1549
- }
1550
- }, "de_CreateByteMatchSetCommandError");
1551
1486
  var de_CreateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1552
1487
  if (output.statusCode >= 300) {
1553
- return de_CreateGeoMatchSetCommandError(output, context);
1488
+ return de_CommandError(output, context);
1554
1489
  }
1555
1490
  const data = await parseBody(output.body, context);
1556
1491
  let contents = {};
@@ -1561,43 +1496,9 @@ var de_CreateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
1561
1496
  };
1562
1497
  return response;
1563
1498
  }, "de_CreateGeoMatchSetCommand");
1564
- var de_CreateGeoMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1565
- const parsedOutput = {
1566
- ...output,
1567
- body: await parseErrorBody(output.body, context)
1568
- };
1569
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1570
- switch (errorCode) {
1571
- case "WAFDisallowedNameException":
1572
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1573
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1574
- case "WAFInternalErrorException":
1575
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1576
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1577
- case "WAFInvalidAccountException":
1578
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1579
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1580
- case "WAFInvalidParameterException":
1581
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1582
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1583
- case "WAFLimitsExceededException":
1584
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1585
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1586
- case "WAFStaleDataException":
1587
- case "com.amazonaws.wafregional#WAFStaleDataException":
1588
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1589
- default:
1590
- const parsedBody = parsedOutput.body;
1591
- return throwDefaultError({
1592
- output,
1593
- parsedBody,
1594
- errorCode
1595
- });
1596
- }
1597
- }, "de_CreateGeoMatchSetCommandError");
1598
1499
  var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1599
1500
  if (output.statusCode >= 300) {
1600
- return de_CreateIPSetCommandError(output, context);
1501
+ return de_CommandError(output, context);
1601
1502
  }
1602
1503
  const data = await parseBody(output.body, context);
1603
1504
  let contents = {};
@@ -1608,43 +1509,9 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1608
1509
  };
1609
1510
  return response;
1610
1511
  }, "de_CreateIPSetCommand");
1611
- var de_CreateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1612
- const parsedOutput = {
1613
- ...output,
1614
- body: await parseErrorBody(output.body, context)
1615
- };
1616
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1617
- switch (errorCode) {
1618
- case "WAFDisallowedNameException":
1619
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1620
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1621
- case "WAFInternalErrorException":
1622
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1623
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1624
- case "WAFInvalidAccountException":
1625
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1626
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1627
- case "WAFInvalidParameterException":
1628
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1629
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1630
- case "WAFLimitsExceededException":
1631
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1632
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1633
- case "WAFStaleDataException":
1634
- case "com.amazonaws.wafregional#WAFStaleDataException":
1635
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1636
- default:
1637
- const parsedBody = parsedOutput.body;
1638
- return throwDefaultError({
1639
- output,
1640
- parsedBody,
1641
- errorCode
1642
- });
1643
- }
1644
- }, "de_CreateIPSetCommandError");
1645
1512
  var de_CreateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1646
1513
  if (output.statusCode >= 300) {
1647
- return de_CreateRateBasedRuleCommandError(output, context);
1514
+ return de_CommandError(output, context);
1648
1515
  }
1649
1516
  const data = await parseBody(output.body, context);
1650
1517
  let contents = {};
@@ -1655,49 +1522,9 @@ var de_CreateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
1655
1522
  };
1656
1523
  return response;
1657
1524
  }, "de_CreateRateBasedRuleCommand");
1658
- var de_CreateRateBasedRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
- const parsedOutput = {
1660
- ...output,
1661
- body: await parseErrorBody(output.body, context)
1662
- };
1663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
- switch (errorCode) {
1665
- case "WAFBadRequestException":
1666
- case "com.amazonaws.wafregional#WAFBadRequestException":
1667
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
1668
- case "WAFDisallowedNameException":
1669
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1670
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1671
- case "WAFInternalErrorException":
1672
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1673
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1674
- case "WAFInvalidParameterException":
1675
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1676
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1677
- case "WAFLimitsExceededException":
1678
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1679
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1680
- case "WAFStaleDataException":
1681
- case "com.amazonaws.wafregional#WAFStaleDataException":
1682
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1683
- case "WAFTagOperationException":
1684
- case "com.amazonaws.wafregional#WAFTagOperationException":
1685
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1686
- case "WAFTagOperationInternalErrorException":
1687
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
1688
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1689
- default:
1690
- const parsedBody = parsedOutput.body;
1691
- return throwDefaultError({
1692
- output,
1693
- parsedBody,
1694
- errorCode
1695
- });
1696
- }
1697
- }, "de_CreateRateBasedRuleCommandError");
1698
1525
  var de_CreateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1699
1526
  if (output.statusCode >= 300) {
1700
- return de_CreateRegexMatchSetCommandError(output, context);
1527
+ return de_CommandError(output, context);
1701
1528
  }
1702
1529
  const data = await parseBody(output.body, context);
1703
1530
  let contents = {};
@@ -1708,37 +1535,9 @@ var de_CreateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
1708
1535
  };
1709
1536
  return response;
1710
1537
  }, "de_CreateRegexMatchSetCommand");
1711
- var de_CreateRegexMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1712
- const parsedOutput = {
1713
- ...output,
1714
- body: await parseErrorBody(output.body, context)
1715
- };
1716
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1717
- switch (errorCode) {
1718
- case "WAFDisallowedNameException":
1719
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1720
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1721
- case "WAFInternalErrorException":
1722
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1723
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1724
- case "WAFLimitsExceededException":
1725
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1726
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1727
- case "WAFStaleDataException":
1728
- case "com.amazonaws.wafregional#WAFStaleDataException":
1729
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1730
- default:
1731
- const parsedBody = parsedOutput.body;
1732
- return throwDefaultError({
1733
- output,
1734
- parsedBody,
1735
- errorCode
1736
- });
1737
- }
1738
- }, "de_CreateRegexMatchSetCommandError");
1739
1538
  var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1740
1539
  if (output.statusCode >= 300) {
1741
- return de_CreateRegexPatternSetCommandError(output, context);
1540
+ return de_CommandError(output, context);
1742
1541
  }
1743
1542
  const data = await parseBody(output.body, context);
1744
1543
  let contents = {};
@@ -1749,37 +1548,9 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
1749
1548
  };
1750
1549
  return response;
1751
1550
  }, "de_CreateRegexPatternSetCommand");
1752
- var de_CreateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1753
- const parsedOutput = {
1754
- ...output,
1755
- body: await parseErrorBody(output.body, context)
1756
- };
1757
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1758
- switch (errorCode) {
1759
- case "WAFDisallowedNameException":
1760
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1761
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1762
- case "WAFInternalErrorException":
1763
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1764
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1765
- case "WAFLimitsExceededException":
1766
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1767
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1768
- case "WAFStaleDataException":
1769
- case "com.amazonaws.wafregional#WAFStaleDataException":
1770
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1771
- default:
1772
- const parsedBody = parsedOutput.body;
1773
- return throwDefaultError({
1774
- output,
1775
- parsedBody,
1776
- errorCode
1777
- });
1778
- }
1779
- }, "de_CreateRegexPatternSetCommandError");
1780
1551
  var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1781
1552
  if (output.statusCode >= 300) {
1782
- return de_CreateRuleCommandError(output, context);
1553
+ return de_CommandError(output, context);
1783
1554
  }
1784
1555
  const data = await parseBody(output.body, context);
1785
1556
  let contents = {};
@@ -1790,49 +1561,9 @@ var de_CreateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1790
1561
  };
1791
1562
  return response;
1792
1563
  }, "de_CreateRuleCommand");
1793
- var de_CreateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1794
- const parsedOutput = {
1795
- ...output,
1796
- body: await parseErrorBody(output.body, context)
1797
- };
1798
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1799
- switch (errorCode) {
1800
- case "WAFBadRequestException":
1801
- case "com.amazonaws.wafregional#WAFBadRequestException":
1802
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
1803
- case "WAFDisallowedNameException":
1804
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1805
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1806
- case "WAFInternalErrorException":
1807
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1808
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1809
- case "WAFInvalidParameterException":
1810
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1811
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1812
- case "WAFLimitsExceededException":
1813
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1814
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1815
- case "WAFStaleDataException":
1816
- case "com.amazonaws.wafregional#WAFStaleDataException":
1817
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1818
- case "WAFTagOperationException":
1819
- case "com.amazonaws.wafregional#WAFTagOperationException":
1820
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1821
- case "WAFTagOperationInternalErrorException":
1822
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
1823
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1824
- default:
1825
- const parsedBody = parsedOutput.body;
1826
- return throwDefaultError({
1827
- output,
1828
- parsedBody,
1829
- errorCode
1830
- });
1831
- }
1832
- }, "de_CreateRuleCommandError");
1833
1564
  var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1834
1565
  if (output.statusCode >= 300) {
1835
- return de_CreateRuleGroupCommandError(output, context);
1566
+ return de_CommandError(output, context);
1836
1567
  }
1837
1568
  const data = await parseBody(output.body, context);
1838
1569
  let contents = {};
@@ -1843,46 +1574,9 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
1843
1574
  };
1844
1575
  return response;
1845
1576
  }, "de_CreateRuleGroupCommand");
1846
- var de_CreateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1847
- const parsedOutput = {
1848
- ...output,
1849
- body: await parseErrorBody(output.body, context)
1850
- };
1851
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1852
- switch (errorCode) {
1853
- case "WAFBadRequestException":
1854
- case "com.amazonaws.wafregional#WAFBadRequestException":
1855
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
1856
- case "WAFDisallowedNameException":
1857
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1858
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1859
- case "WAFInternalErrorException":
1860
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1861
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1862
- case "WAFLimitsExceededException":
1863
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1864
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1865
- case "WAFStaleDataException":
1866
- case "com.amazonaws.wafregional#WAFStaleDataException":
1867
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1868
- case "WAFTagOperationException":
1869
- case "com.amazonaws.wafregional#WAFTagOperationException":
1870
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1871
- case "WAFTagOperationInternalErrorException":
1872
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
1873
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1874
- default:
1875
- const parsedBody = parsedOutput.body;
1876
- return throwDefaultError({
1877
- output,
1878
- parsedBody,
1879
- errorCode
1880
- });
1881
- }
1882
- }, "de_CreateRuleGroupCommandError");
1883
1577
  var de_CreateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1884
1578
  if (output.statusCode >= 300) {
1885
- return de_CreateSizeConstraintSetCommandError(output, context);
1579
+ return de_CommandError(output, context);
1886
1580
  }
1887
1581
  const data = await parseBody(output.body, context);
1888
1582
  let contents = {};
@@ -1893,43 +1587,9 @@ var de_CreateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
1893
1587
  };
1894
1588
  return response;
1895
1589
  }, "de_CreateSizeConstraintSetCommand");
1896
- var de_CreateSizeConstraintSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1897
- const parsedOutput = {
1898
- ...output,
1899
- body: await parseErrorBody(output.body, context)
1900
- };
1901
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1902
- switch (errorCode) {
1903
- case "WAFDisallowedNameException":
1904
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1905
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1906
- case "WAFInternalErrorException":
1907
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1908
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1909
- case "WAFInvalidAccountException":
1910
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1911
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1912
- case "WAFInvalidParameterException":
1913
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1914
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1915
- case "WAFLimitsExceededException":
1916
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1917
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1918
- case "WAFStaleDataException":
1919
- case "com.amazonaws.wafregional#WAFStaleDataException":
1920
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1921
- default:
1922
- const parsedBody = parsedOutput.body;
1923
- return throwDefaultError({
1924
- output,
1925
- parsedBody,
1926
- errorCode
1927
- });
1928
- }
1929
- }, "de_CreateSizeConstraintSetCommandError");
1930
1590
  var de_CreateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1931
1591
  if (output.statusCode >= 300) {
1932
- return de_CreateSqlInjectionMatchSetCommandError(output, context);
1592
+ return de_CommandError(output, context);
1933
1593
  }
1934
1594
  const data = await parseBody(output.body, context);
1935
1595
  let contents = {};
@@ -1940,43 +1600,9 @@ var de_CreateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
1940
1600
  };
1941
1601
  return response;
1942
1602
  }, "de_CreateSqlInjectionMatchSetCommand");
1943
- var de_CreateSqlInjectionMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1944
- const parsedOutput = {
1945
- ...output,
1946
- body: await parseErrorBody(output.body, context)
1947
- };
1948
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1949
- switch (errorCode) {
1950
- case "WAFDisallowedNameException":
1951
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
1952
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
1953
- case "WAFInternalErrorException":
1954
- case "com.amazonaws.wafregional#WAFInternalErrorException":
1955
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1956
- case "WAFInvalidAccountException":
1957
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
1958
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
1959
- case "WAFInvalidParameterException":
1960
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
1961
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1962
- case "WAFLimitsExceededException":
1963
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
1964
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1965
- case "WAFStaleDataException":
1966
- case "com.amazonaws.wafregional#WAFStaleDataException":
1967
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
1968
- default:
1969
- const parsedBody = parsedOutput.body;
1970
- return throwDefaultError({
1971
- output,
1972
- parsedBody,
1973
- errorCode
1974
- });
1975
- }
1976
- }, "de_CreateSqlInjectionMatchSetCommandError");
1977
1603
  var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1978
1604
  if (output.statusCode >= 300) {
1979
- return de_CreateWebACLCommandError(output, context);
1605
+ return de_CommandError(output, context);
1980
1606
  }
1981
1607
  const data = await parseBody(output.body, context);
1982
1608
  let contents = {};
@@ -1987,52 +1613,9 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1987
1613
  };
1988
1614
  return response;
1989
1615
  }, "de_CreateWebACLCommand");
1990
- var de_CreateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1991
- const parsedOutput = {
1992
- ...output,
1993
- body: await parseErrorBody(output.body, context)
1994
- };
1995
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1996
- switch (errorCode) {
1997
- case "WAFBadRequestException":
1998
- case "com.amazonaws.wafregional#WAFBadRequestException":
1999
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
2000
- case "WAFDisallowedNameException":
2001
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
2002
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
2003
- case "WAFInternalErrorException":
2004
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2005
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2006
- case "WAFInvalidAccountException":
2007
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2008
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2009
- case "WAFInvalidParameterException":
2010
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
2011
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2012
- case "WAFLimitsExceededException":
2013
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
2014
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2015
- case "WAFStaleDataException":
2016
- case "com.amazonaws.wafregional#WAFStaleDataException":
2017
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2018
- case "WAFTagOperationException":
2019
- case "com.amazonaws.wafregional#WAFTagOperationException":
2020
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2021
- case "WAFTagOperationInternalErrorException":
2022
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2023
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2024
- default:
2025
- const parsedBody = parsedOutput.body;
2026
- return throwDefaultError({
2027
- output,
2028
- parsedBody,
2029
- errorCode
2030
- });
2031
- }
2032
- }, "de_CreateWebACLCommandError");
2033
1616
  var de_CreateWebACLMigrationStackCommand = /* @__PURE__ */ __name(async (output, context) => {
2034
1617
  if (output.statusCode >= 300) {
2035
- return de_CreateWebACLMigrationStackCommandError(output, context);
1618
+ return de_CommandError(output, context);
2036
1619
  }
2037
1620
  const data = await parseBody(output.body, context);
2038
1621
  let contents = {};
@@ -2043,40 +1626,9 @@ var de_CreateWebACLMigrationStackCommand = /* @__PURE__ */ __name(async (output,
2043
1626
  };
2044
1627
  return response;
2045
1628
  }, "de_CreateWebACLMigrationStackCommand");
2046
- var de_CreateWebACLMigrationStackCommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
- const parsedOutput = {
2048
- ...output,
2049
- body: await parseErrorBody(output.body, context)
2050
- };
2051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
- switch (errorCode) {
2053
- case "WAFEntityMigrationException":
2054
- case "com.amazonaws.wafregional#WAFEntityMigrationException":
2055
- throw await de_WAFEntityMigrationExceptionRes(parsedOutput, context);
2056
- case "WAFInternalErrorException":
2057
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2058
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2059
- case "WAFInvalidOperationException":
2060
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
2061
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2062
- case "WAFInvalidParameterException":
2063
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
2064
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2065
- case "WAFNonexistentItemException":
2066
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2067
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2068
- default:
2069
- const parsedBody = parsedOutput.body;
2070
- return throwDefaultError({
2071
- output,
2072
- parsedBody,
2073
- errorCode
2074
- });
2075
- }
2076
- }, "de_CreateWebACLMigrationStackCommandError");
2077
1629
  var de_CreateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2078
1630
  if (output.statusCode >= 300) {
2079
- return de_CreateXssMatchSetCommandError(output, context);
1631
+ return de_CommandError(output, context);
2080
1632
  }
2081
1633
  const data = await parseBody(output.body, context);
2082
1634
  let contents = {};
@@ -2087,43 +1639,9 @@ var de_CreateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
2087
1639
  };
2088
1640
  return response;
2089
1641
  }, "de_CreateXssMatchSetCommand");
2090
- var de_CreateXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2091
- const parsedOutput = {
2092
- ...output,
2093
- body: await parseErrorBody(output.body, context)
2094
- };
2095
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2096
- switch (errorCode) {
2097
- case "WAFDisallowedNameException":
2098
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
2099
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
2100
- case "WAFInternalErrorException":
2101
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2102
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2103
- case "WAFInvalidAccountException":
2104
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2105
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2106
- case "WAFInvalidParameterException":
2107
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
2108
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2109
- case "WAFLimitsExceededException":
2110
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
2111
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
2112
- case "WAFStaleDataException":
2113
- case "com.amazonaws.wafregional#WAFStaleDataException":
2114
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2115
- default:
2116
- const parsedBody = parsedOutput.body;
2117
- return throwDefaultError({
2118
- output,
2119
- parsedBody,
2120
- errorCode
2121
- });
2122
- }
2123
- }, "de_CreateXssMatchSetCommandError");
2124
1642
  var de_DeleteByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2125
1643
  if (output.statusCode >= 300) {
2126
- return de_DeleteByteMatchSetCommandError(output, context);
1644
+ return de_CommandError(output, context);
2127
1645
  }
2128
1646
  const data = await parseBody(output.body, context);
2129
1647
  let contents = {};
@@ -2134,43 +1652,9 @@ var de_DeleteByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
2134
1652
  };
2135
1653
  return response;
2136
1654
  }, "de_DeleteByteMatchSetCommand");
2137
- var de_DeleteByteMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2138
- const parsedOutput = {
2139
- ...output,
2140
- body: await parseErrorBody(output.body, context)
2141
- };
2142
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2143
- switch (errorCode) {
2144
- case "WAFInternalErrorException":
2145
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2146
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2147
- case "WAFInvalidAccountException":
2148
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2149
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2150
- case "WAFNonEmptyEntityException":
2151
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2152
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2153
- case "WAFNonexistentItemException":
2154
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2155
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2156
- case "WAFReferencedItemException":
2157
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2158
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2159
- case "WAFStaleDataException":
2160
- case "com.amazonaws.wafregional#WAFStaleDataException":
2161
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2162
- default:
2163
- const parsedBody = parsedOutput.body;
2164
- return throwDefaultError({
2165
- output,
2166
- parsedBody,
2167
- errorCode
2168
- });
2169
- }
2170
- }, "de_DeleteByteMatchSetCommandError");
2171
1655
  var de_DeleteGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2172
1656
  if (output.statusCode >= 300) {
2173
- return de_DeleteGeoMatchSetCommandError(output, context);
1657
+ return de_CommandError(output, context);
2174
1658
  }
2175
1659
  const data = await parseBody(output.body, context);
2176
1660
  let contents = {};
@@ -2181,90 +1665,22 @@ var de_DeleteGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
2181
1665
  };
2182
1666
  return response;
2183
1667
  }, "de_DeleteGeoMatchSetCommand");
2184
- var de_DeleteGeoMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2185
- const parsedOutput = {
2186
- ...output,
2187
- body: await parseErrorBody(output.body, context)
2188
- };
2189
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2190
- switch (errorCode) {
2191
- case "WAFInternalErrorException":
2192
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2193
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2194
- case "WAFInvalidAccountException":
2195
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2196
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2197
- case "WAFNonEmptyEntityException":
2198
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2199
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2200
- case "WAFNonexistentItemException":
2201
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2202
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2203
- case "WAFReferencedItemException":
2204
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2205
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2206
- case "WAFStaleDataException":
2207
- case "com.amazonaws.wafregional#WAFStaleDataException":
2208
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2209
- default:
2210
- const parsedBody = parsedOutput.body;
2211
- return throwDefaultError({
2212
- output,
2213
- parsedBody,
2214
- errorCode
2215
- });
2216
- }
2217
- }, "de_DeleteGeoMatchSetCommandError");
2218
- var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2219
- if (output.statusCode >= 300) {
2220
- return de_DeleteIPSetCommandError(output, context);
2221
- }
2222
- const data = await parseBody(output.body, context);
2223
- let contents = {};
2224
- contents = (0, import_smithy_client._json)(data);
2225
- const response = {
2226
- $metadata: deserializeMetadata(output),
2227
- ...contents
1668
+ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1669
+ if (output.statusCode >= 300) {
1670
+ return de_CommandError(output, context);
1671
+ }
1672
+ const data = await parseBody(output.body, context);
1673
+ let contents = {};
1674
+ contents = (0, import_smithy_client._json)(data);
1675
+ const response = {
1676
+ $metadata: deserializeMetadata(output),
1677
+ ...contents
2228
1678
  };
2229
1679
  return response;
2230
1680
  }, "de_DeleteIPSetCommand");
2231
- var de_DeleteIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2232
- const parsedOutput = {
2233
- ...output,
2234
- body: await parseErrorBody(output.body, context)
2235
- };
2236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2237
- switch (errorCode) {
2238
- case "WAFInternalErrorException":
2239
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2240
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2241
- case "WAFInvalidAccountException":
2242
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2243
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2244
- case "WAFNonEmptyEntityException":
2245
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2246
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2247
- case "WAFNonexistentItemException":
2248
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2249
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2250
- case "WAFReferencedItemException":
2251
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2252
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2253
- case "WAFStaleDataException":
2254
- case "com.amazonaws.wafregional#WAFStaleDataException":
2255
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2256
- default:
2257
- const parsedBody = parsedOutput.body;
2258
- return throwDefaultError({
2259
- output,
2260
- parsedBody,
2261
- errorCode
2262
- });
2263
- }
2264
- }, "de_DeleteIPSetCommandError");
2265
1681
  var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2266
1682
  if (output.statusCode >= 300) {
2267
- return de_DeleteLoggingConfigurationCommandError(output, context);
1683
+ return de_CommandError(output, context);
2268
1684
  }
2269
1685
  const data = await parseBody(output.body, context);
2270
1686
  let contents = {};
@@ -2275,34 +1691,9 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
2275
1691
  };
2276
1692
  return response;
2277
1693
  }, "de_DeleteLoggingConfigurationCommand");
2278
- var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2279
- const parsedOutput = {
2280
- ...output,
2281
- body: await parseErrorBody(output.body, context)
2282
- };
2283
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2284
- switch (errorCode) {
2285
- case "WAFInternalErrorException":
2286
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2287
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2288
- case "WAFNonexistentItemException":
2289
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2290
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2291
- case "WAFStaleDataException":
2292
- case "com.amazonaws.wafregional#WAFStaleDataException":
2293
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2294
- default:
2295
- const parsedBody = parsedOutput.body;
2296
- return throwDefaultError({
2297
- output,
2298
- parsedBody,
2299
- errorCode
2300
- });
2301
- }
2302
- }, "de_DeleteLoggingConfigurationCommandError");
2303
1694
  var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2304
1695
  if (output.statusCode >= 300) {
2305
- return de_DeletePermissionPolicyCommandError(output, context);
1696
+ return de_CommandError(output, context);
2306
1697
  }
2307
1698
  const data = await parseBody(output.body, context);
2308
1699
  let contents = {};
@@ -2313,34 +1704,9 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
2313
1704
  };
2314
1705
  return response;
2315
1706
  }, "de_DeletePermissionPolicyCommand");
2316
- var de_DeletePermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2317
- const parsedOutput = {
2318
- ...output,
2319
- body: await parseErrorBody(output.body, context)
2320
- };
2321
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2322
- switch (errorCode) {
2323
- case "WAFInternalErrorException":
2324
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2325
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2326
- case "WAFNonexistentItemException":
2327
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2328
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2329
- case "WAFStaleDataException":
2330
- case "com.amazonaws.wafregional#WAFStaleDataException":
2331
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2332
- default:
2333
- const parsedBody = parsedOutput.body;
2334
- return throwDefaultError({
2335
- output,
2336
- parsedBody,
2337
- errorCode
2338
- });
2339
- }
2340
- }, "de_DeletePermissionPolicyCommandError");
2341
1707
  var de_DeleteRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2342
1708
  if (output.statusCode >= 300) {
2343
- return de_DeleteRateBasedRuleCommandError(output, context);
1709
+ return de_CommandError(output, context);
2344
1710
  }
2345
1711
  const data = await parseBody(output.body, context);
2346
1712
  let contents = {};
@@ -2351,49 +1717,9 @@ var de_DeleteRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
2351
1717
  };
2352
1718
  return response;
2353
1719
  }, "de_DeleteRateBasedRuleCommand");
2354
- var de_DeleteRateBasedRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2355
- const parsedOutput = {
2356
- ...output,
2357
- body: await parseErrorBody(output.body, context)
2358
- };
2359
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2360
- switch (errorCode) {
2361
- case "WAFInternalErrorException":
2362
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2363
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2364
- case "WAFInvalidAccountException":
2365
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2366
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2367
- case "WAFNonEmptyEntityException":
2368
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2369
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2370
- case "WAFNonexistentItemException":
2371
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2372
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2373
- case "WAFReferencedItemException":
2374
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2375
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2376
- case "WAFStaleDataException":
2377
- case "com.amazonaws.wafregional#WAFStaleDataException":
2378
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2379
- case "WAFTagOperationException":
2380
- case "com.amazonaws.wafregional#WAFTagOperationException":
2381
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2382
- case "WAFTagOperationInternalErrorException":
2383
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2384
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2385
- default:
2386
- const parsedBody = parsedOutput.body;
2387
- return throwDefaultError({
2388
- output,
2389
- parsedBody,
2390
- errorCode
2391
- });
2392
- }
2393
- }, "de_DeleteRateBasedRuleCommandError");
2394
1720
  var de_DeleteRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2395
1721
  if (output.statusCode >= 300) {
2396
- return de_DeleteRegexMatchSetCommandError(output, context);
1722
+ return de_CommandError(output, context);
2397
1723
  }
2398
1724
  const data = await parseBody(output.body, context);
2399
1725
  let contents = {};
@@ -2404,43 +1730,9 @@ var de_DeleteRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
2404
1730
  };
2405
1731
  return response;
2406
1732
  }, "de_DeleteRegexMatchSetCommand");
2407
- var de_DeleteRegexMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2408
- const parsedOutput = {
2409
- ...output,
2410
- body: await parseErrorBody(output.body, context)
2411
- };
2412
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2413
- switch (errorCode) {
2414
- case "WAFInternalErrorException":
2415
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2416
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2417
- case "WAFInvalidAccountException":
2418
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2419
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2420
- case "WAFNonEmptyEntityException":
2421
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2422
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2423
- case "WAFNonexistentItemException":
2424
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2425
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2426
- case "WAFReferencedItemException":
2427
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2428
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2429
- case "WAFStaleDataException":
2430
- case "com.amazonaws.wafregional#WAFStaleDataException":
2431
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2432
- default:
2433
- const parsedBody = parsedOutput.body;
2434
- return throwDefaultError({
2435
- output,
2436
- parsedBody,
2437
- errorCode
2438
- });
2439
- }
2440
- }, "de_DeleteRegexMatchSetCommandError");
2441
1733
  var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2442
1734
  if (output.statusCode >= 300) {
2443
- return de_DeleteRegexPatternSetCommandError(output, context);
1735
+ return de_CommandError(output, context);
2444
1736
  }
2445
1737
  const data = await parseBody(output.body, context);
2446
1738
  let contents = {};
@@ -2451,43 +1743,9 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
2451
1743
  };
2452
1744
  return response;
2453
1745
  }, "de_DeleteRegexPatternSetCommand");
2454
- var de_DeleteRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2455
- const parsedOutput = {
2456
- ...output,
2457
- body: await parseErrorBody(output.body, context)
2458
- };
2459
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2460
- switch (errorCode) {
2461
- case "WAFInternalErrorException":
2462
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2463
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2464
- case "WAFInvalidAccountException":
2465
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2466
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2467
- case "WAFNonEmptyEntityException":
2468
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2469
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2470
- case "WAFNonexistentItemException":
2471
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2472
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2473
- case "WAFReferencedItemException":
2474
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2475
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2476
- case "WAFStaleDataException":
2477
- case "com.amazonaws.wafregional#WAFStaleDataException":
2478
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2479
- default:
2480
- const parsedBody = parsedOutput.body;
2481
- return throwDefaultError({
2482
- output,
2483
- parsedBody,
2484
- errorCode
2485
- });
2486
- }
2487
- }, "de_DeleteRegexPatternSetCommandError");
2488
1746
  var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2489
1747
  if (output.statusCode >= 300) {
2490
- return de_DeleteRuleCommandError(output, context);
1748
+ return de_CommandError(output, context);
2491
1749
  }
2492
1750
  const data = await parseBody(output.body, context);
2493
1751
  let contents = {};
@@ -2498,49 +1756,9 @@ var de_DeleteRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2498
1756
  };
2499
1757
  return response;
2500
1758
  }, "de_DeleteRuleCommand");
2501
- var de_DeleteRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2502
- const parsedOutput = {
2503
- ...output,
2504
- body: await parseErrorBody(output.body, context)
2505
- };
2506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2507
- switch (errorCode) {
2508
- case "WAFInternalErrorException":
2509
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2510
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2511
- case "WAFInvalidAccountException":
2512
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2513
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2514
- case "WAFNonEmptyEntityException":
2515
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2516
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2517
- case "WAFNonexistentItemException":
2518
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2519
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2520
- case "WAFReferencedItemException":
2521
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2522
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2523
- case "WAFStaleDataException":
2524
- case "com.amazonaws.wafregional#WAFStaleDataException":
2525
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2526
- case "WAFTagOperationException":
2527
- case "com.amazonaws.wafregional#WAFTagOperationException":
2528
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2529
- case "WAFTagOperationInternalErrorException":
2530
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2531
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2532
- default:
2533
- const parsedBody = parsedOutput.body;
2534
- return throwDefaultError({
2535
- output,
2536
- parsedBody,
2537
- errorCode
2538
- });
2539
- }
2540
- }, "de_DeleteRuleCommandError");
2541
1759
  var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2542
1760
  if (output.statusCode >= 300) {
2543
- return de_DeleteRuleGroupCommandError(output, context);
1761
+ return de_CommandError(output, context);
2544
1762
  }
2545
1763
  const data = await parseBody(output.body, context);
2546
1764
  let contents = {};
@@ -2551,96 +1769,22 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
2551
1769
  };
2552
1770
  return response;
2553
1771
  }, "de_DeleteRuleGroupCommand");
2554
- var de_DeleteRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2555
- const parsedOutput = {
2556
- ...output,
2557
- body: await parseErrorBody(output.body, context)
2558
- };
2559
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2560
- switch (errorCode) {
2561
- case "WAFInternalErrorException":
2562
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2563
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2564
- case "WAFInvalidOperationException":
2565
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
2566
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2567
- case "WAFNonEmptyEntityException":
2568
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2569
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2570
- case "WAFNonexistentItemException":
2571
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2572
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2573
- case "WAFReferencedItemException":
2574
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2575
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2576
- case "WAFStaleDataException":
2577
- case "com.amazonaws.wafregional#WAFStaleDataException":
2578
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2579
- case "WAFTagOperationException":
2580
- case "com.amazonaws.wafregional#WAFTagOperationException":
2581
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2582
- case "WAFTagOperationInternalErrorException":
2583
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2584
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2585
- default:
2586
- const parsedBody = parsedOutput.body;
2587
- return throwDefaultError({
2588
- output,
2589
- parsedBody,
2590
- errorCode
2591
- });
2592
- }
2593
- }, "de_DeleteRuleGroupCommandError");
2594
- var de_DeleteSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2595
- if (output.statusCode >= 300) {
2596
- return de_DeleteSizeConstraintSetCommandError(output, context);
2597
- }
2598
- const data = await parseBody(output.body, context);
2599
- let contents = {};
2600
- contents = (0, import_smithy_client._json)(data);
2601
- const response = {
2602
- $metadata: deserializeMetadata(output),
2603
- ...contents
1772
+ var de_DeleteSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1773
+ if (output.statusCode >= 300) {
1774
+ return de_CommandError(output, context);
1775
+ }
1776
+ const data = await parseBody(output.body, context);
1777
+ let contents = {};
1778
+ contents = (0, import_smithy_client._json)(data);
1779
+ const response = {
1780
+ $metadata: deserializeMetadata(output),
1781
+ ...contents
2604
1782
  };
2605
1783
  return response;
2606
1784
  }, "de_DeleteSizeConstraintSetCommand");
2607
- var de_DeleteSizeConstraintSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2608
- const parsedOutput = {
2609
- ...output,
2610
- body: await parseErrorBody(output.body, context)
2611
- };
2612
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2613
- switch (errorCode) {
2614
- case "WAFInternalErrorException":
2615
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2616
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2617
- case "WAFInvalidAccountException":
2618
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2619
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2620
- case "WAFNonEmptyEntityException":
2621
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2622
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2623
- case "WAFNonexistentItemException":
2624
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2625
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2626
- case "WAFReferencedItemException":
2627
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2628
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2629
- case "WAFStaleDataException":
2630
- case "com.amazonaws.wafregional#WAFStaleDataException":
2631
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2632
- default:
2633
- const parsedBody = parsedOutput.body;
2634
- return throwDefaultError({
2635
- output,
2636
- parsedBody,
2637
- errorCode
2638
- });
2639
- }
2640
- }, "de_DeleteSizeConstraintSetCommandError");
2641
1785
  var de_DeleteSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2642
1786
  if (output.statusCode >= 300) {
2643
- return de_DeleteSqlInjectionMatchSetCommandError(output, context);
1787
+ return de_CommandError(output, context);
2644
1788
  }
2645
1789
  const data = await parseBody(output.body, context);
2646
1790
  let contents = {};
@@ -2651,43 +1795,9 @@ var de_DeleteSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
2651
1795
  };
2652
1796
  return response;
2653
1797
  }, "de_DeleteSqlInjectionMatchSetCommand");
2654
- var de_DeleteSqlInjectionMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2655
- const parsedOutput = {
2656
- ...output,
2657
- body: await parseErrorBody(output.body, context)
2658
- };
2659
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2660
- switch (errorCode) {
2661
- case "WAFInternalErrorException":
2662
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2663
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2664
- case "WAFInvalidAccountException":
2665
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2666
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2667
- case "WAFNonEmptyEntityException":
2668
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2669
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2670
- case "WAFNonexistentItemException":
2671
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2672
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2673
- case "WAFReferencedItemException":
2674
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2675
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2676
- case "WAFStaleDataException":
2677
- case "com.amazonaws.wafregional#WAFStaleDataException":
2678
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2679
- default:
2680
- const parsedBody = parsedOutput.body;
2681
- return throwDefaultError({
2682
- output,
2683
- parsedBody,
2684
- errorCode
2685
- });
2686
- }
2687
- }, "de_DeleteSqlInjectionMatchSetCommandError");
2688
1798
  var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2689
1799
  if (output.statusCode >= 300) {
2690
- return de_DeleteWebACLCommandError(output, context);
1800
+ return de_CommandError(output, context);
2691
1801
  }
2692
1802
  const data = await parseBody(output.body, context);
2693
1803
  let contents = {};
@@ -2698,49 +1808,9 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2698
1808
  };
2699
1809
  return response;
2700
1810
  }, "de_DeleteWebACLCommand");
2701
- var de_DeleteWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2702
- const parsedOutput = {
2703
- ...output,
2704
- body: await parseErrorBody(output.body, context)
2705
- };
2706
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2707
- switch (errorCode) {
2708
- case "WAFInternalErrorException":
2709
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2710
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2711
- case "WAFInvalidAccountException":
2712
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2713
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2714
- case "WAFNonEmptyEntityException":
2715
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2716
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2717
- case "WAFNonexistentItemException":
2718
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2719
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2720
- case "WAFReferencedItemException":
2721
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2722
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2723
- case "WAFStaleDataException":
2724
- case "com.amazonaws.wafregional#WAFStaleDataException":
2725
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2726
- case "WAFTagOperationException":
2727
- case "com.amazonaws.wafregional#WAFTagOperationException":
2728
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2729
- case "WAFTagOperationInternalErrorException":
2730
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2731
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2732
- default:
2733
- const parsedBody = parsedOutput.body;
2734
- return throwDefaultError({
2735
- output,
2736
- parsedBody,
2737
- errorCode
2738
- });
2739
- }
2740
- }, "de_DeleteWebACLCommandError");
2741
1811
  var de_DeleteXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2742
1812
  if (output.statusCode >= 300) {
2743
- return de_DeleteXssMatchSetCommandError(output, context);
1813
+ return de_CommandError(output, context);
2744
1814
  }
2745
1815
  const data = await parseBody(output.body, context);
2746
1816
  let contents = {};
@@ -2751,43 +1821,9 @@ var de_DeleteXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
2751
1821
  };
2752
1822
  return response;
2753
1823
  }, "de_DeleteXssMatchSetCommand");
2754
- var de_DeleteXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2755
- const parsedOutput = {
2756
- ...output,
2757
- body: await parseErrorBody(output.body, context)
2758
- };
2759
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2760
- switch (errorCode) {
2761
- case "WAFInternalErrorException":
2762
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2763
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2764
- case "WAFInvalidAccountException":
2765
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2766
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2767
- case "WAFNonEmptyEntityException":
2768
- case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2769
- throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2770
- case "WAFNonexistentItemException":
2771
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2772
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2773
- case "WAFReferencedItemException":
2774
- case "com.amazonaws.wafregional#WAFReferencedItemException":
2775
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2776
- case "WAFStaleDataException":
2777
- case "com.amazonaws.wafregional#WAFStaleDataException":
2778
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2779
- default:
2780
- const parsedBody = parsedOutput.body;
2781
- return throwDefaultError({
2782
- output,
2783
- parsedBody,
2784
- errorCode
2785
- });
2786
- }
2787
- }, "de_DeleteXssMatchSetCommandError");
2788
1824
  var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2789
1825
  if (output.statusCode >= 300) {
2790
- return de_DisassociateWebACLCommandError(output, context);
1826
+ return de_CommandError(output, context);
2791
1827
  }
2792
1828
  const data = await parseBody(output.body, context);
2793
1829
  let contents = {};
@@ -2798,37 +1834,9 @@ var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context
2798
1834
  };
2799
1835
  return response;
2800
1836
  }, "de_DisassociateWebACLCommand");
2801
- var de_DisassociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2802
- const parsedOutput = {
2803
- ...output,
2804
- body: await parseErrorBody(output.body, context)
2805
- };
2806
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2807
- switch (errorCode) {
2808
- case "WAFInternalErrorException":
2809
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2810
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2811
- case "WAFInvalidAccountException":
2812
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2813
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2814
- case "WAFInvalidParameterException":
2815
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
2816
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2817
- case "WAFNonexistentItemException":
2818
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2819
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2820
- default:
2821
- const parsedBody = parsedOutput.body;
2822
- return throwDefaultError({
2823
- output,
2824
- parsedBody,
2825
- errorCode
2826
- });
2827
- }
2828
- }, "de_DisassociateWebACLCommandError");
2829
1837
  var de_GetByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2830
1838
  if (output.statusCode >= 300) {
2831
- return de_GetByteMatchSetCommandError(output, context);
1839
+ return de_CommandError(output, context);
2832
1840
  }
2833
1841
  const data = await parseBody(output.body, context);
2834
1842
  let contents = {};
@@ -2839,34 +1847,9 @@ var de_GetByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =
2839
1847
  };
2840
1848
  return response;
2841
1849
  }, "de_GetByteMatchSetCommand");
2842
- var de_GetByteMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2843
- const parsedOutput = {
2844
- ...output,
2845
- body: await parseErrorBody(output.body, context)
2846
- };
2847
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2848
- switch (errorCode) {
2849
- case "WAFInternalErrorException":
2850
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2851
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2852
- case "WAFInvalidAccountException":
2853
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2854
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2855
- case "WAFNonexistentItemException":
2856
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2857
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2858
- default:
2859
- const parsedBody = parsedOutput.body;
2860
- return throwDefaultError({
2861
- output,
2862
- parsedBody,
2863
- errorCode
2864
- });
2865
- }
2866
- }, "de_GetByteMatchSetCommandError");
2867
1850
  var de_GetChangeTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
2868
1851
  if (output.statusCode >= 300) {
2869
- return de_GetChangeTokenCommandError(output, context);
1852
+ return de_CommandError(output, context);
2870
1853
  }
2871
1854
  const data = await parseBody(output.body, context);
2872
1855
  let contents = {};
@@ -2877,28 +1860,9 @@ var de_GetChangeTokenCommand = /* @__PURE__ */ __name(async (output, context) =>
2877
1860
  };
2878
1861
  return response;
2879
1862
  }, "de_GetChangeTokenCommand");
2880
- var de_GetChangeTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
2881
- const parsedOutput = {
2882
- ...output,
2883
- body: await parseErrorBody(output.body, context)
2884
- };
2885
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2886
- switch (errorCode) {
2887
- case "WAFInternalErrorException":
2888
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2889
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2890
- default:
2891
- const parsedBody = parsedOutput.body;
2892
- return throwDefaultError({
2893
- output,
2894
- parsedBody,
2895
- errorCode
2896
- });
2897
- }
2898
- }, "de_GetChangeTokenCommandError");
2899
1863
  var de_GetChangeTokenStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2900
1864
  if (output.statusCode >= 300) {
2901
- return de_GetChangeTokenStatusCommandError(output, context);
1865
+ return de_CommandError(output, context);
2902
1866
  }
2903
1867
  const data = await parseBody(output.body, context);
2904
1868
  let contents = {};
@@ -2909,69 +1873,22 @@ var de_GetChangeTokenStatusCommand = /* @__PURE__ */ __name(async (output, conte
2909
1873
  };
2910
1874
  return response;
2911
1875
  }, "de_GetChangeTokenStatusCommand");
2912
- var de_GetChangeTokenStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2913
- const parsedOutput = {
2914
- ...output,
2915
- body: await parseErrorBody(output.body, context)
2916
- };
2917
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2918
- switch (errorCode) {
2919
- case "WAFInternalErrorException":
2920
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2921
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2922
- case "WAFNonexistentItemException":
2923
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2924
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2925
- default:
2926
- const parsedBody = parsedOutput.body;
2927
- return throwDefaultError({
2928
- output,
2929
- parsedBody,
2930
- errorCode
2931
- });
2932
- }
2933
- }, "de_GetChangeTokenStatusCommandError");
2934
- var de_GetGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2935
- if (output.statusCode >= 300) {
2936
- return de_GetGeoMatchSetCommandError(output, context);
2937
- }
2938
- const data = await parseBody(output.body, context);
2939
- let contents = {};
2940
- contents = (0, import_smithy_client._json)(data);
2941
- const response = {
2942
- $metadata: deserializeMetadata(output),
2943
- ...contents
1876
+ var de_GetGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1877
+ if (output.statusCode >= 300) {
1878
+ return de_CommandError(output, context);
1879
+ }
1880
+ const data = await parseBody(output.body, context);
1881
+ let contents = {};
1882
+ contents = (0, import_smithy_client._json)(data);
1883
+ const response = {
1884
+ $metadata: deserializeMetadata(output),
1885
+ ...contents
2944
1886
  };
2945
1887
  return response;
2946
1888
  }, "de_GetGeoMatchSetCommand");
2947
- var de_GetGeoMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2948
- const parsedOutput = {
2949
- ...output,
2950
- body: await parseErrorBody(output.body, context)
2951
- };
2952
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2953
- switch (errorCode) {
2954
- case "WAFInternalErrorException":
2955
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2956
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2957
- case "WAFInvalidAccountException":
2958
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2959
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2960
- case "WAFNonexistentItemException":
2961
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
2962
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2963
- default:
2964
- const parsedBody = parsedOutput.body;
2965
- return throwDefaultError({
2966
- output,
2967
- parsedBody,
2968
- errorCode
2969
- });
2970
- }
2971
- }, "de_GetGeoMatchSetCommandError");
2972
1889
  var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2973
1890
  if (output.statusCode >= 300) {
2974
- return de_GetIPSetCommandError(output, context);
1891
+ return de_CommandError(output, context);
2975
1892
  }
2976
1893
  const data = await parseBody(output.body, context);
2977
1894
  let contents = {};
@@ -2982,34 +1899,9 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2982
1899
  };
2983
1900
  return response;
2984
1901
  }, "de_GetIPSetCommand");
2985
- var de_GetIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2986
- const parsedOutput = {
2987
- ...output,
2988
- body: await parseErrorBody(output.body, context)
2989
- };
2990
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2991
- switch (errorCode) {
2992
- case "WAFInternalErrorException":
2993
- case "com.amazonaws.wafregional#WAFInternalErrorException":
2994
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2995
- case "WAFInvalidAccountException":
2996
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
2997
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
2998
- case "WAFNonexistentItemException":
2999
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3000
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3001
- default:
3002
- const parsedBody = parsedOutput.body;
3003
- return throwDefaultError({
3004
- output,
3005
- parsedBody,
3006
- errorCode
3007
- });
3008
- }
3009
- }, "de_GetIPSetCommandError");
3010
1902
  var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3011
1903
  if (output.statusCode >= 300) {
3012
- return de_GetLoggingConfigurationCommandError(output, context);
1904
+ return de_CommandError(output, context);
3013
1905
  }
3014
1906
  const data = await parseBody(output.body, context);
3015
1907
  let contents = {};
@@ -3020,31 +1912,9 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
3020
1912
  };
3021
1913
  return response;
3022
1914
  }, "de_GetLoggingConfigurationCommand");
3023
- var de_GetLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3024
- const parsedOutput = {
3025
- ...output,
3026
- body: await parseErrorBody(output.body, context)
3027
- };
3028
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3029
- switch (errorCode) {
3030
- case "WAFInternalErrorException":
3031
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3032
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3033
- case "WAFNonexistentItemException":
3034
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3035
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3036
- default:
3037
- const parsedBody = parsedOutput.body;
3038
- return throwDefaultError({
3039
- output,
3040
- parsedBody,
3041
- errorCode
3042
- });
3043
- }
3044
- }, "de_GetLoggingConfigurationCommandError");
3045
1915
  var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3046
1916
  if (output.statusCode >= 300) {
3047
- return de_GetPermissionPolicyCommandError(output, context);
1917
+ return de_CommandError(output, context);
3048
1918
  }
3049
1919
  const data = await parseBody(output.body, context);
3050
1920
  let contents = {};
@@ -3055,31 +1925,9 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
3055
1925
  };
3056
1926
  return response;
3057
1927
  }, "de_GetPermissionPolicyCommand");
3058
- var de_GetPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3059
- const parsedOutput = {
3060
- ...output,
3061
- body: await parseErrorBody(output.body, context)
3062
- };
3063
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3064
- switch (errorCode) {
3065
- case "WAFInternalErrorException":
3066
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3067
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3068
- case "WAFNonexistentItemException":
3069
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3070
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3071
- default:
3072
- const parsedBody = parsedOutput.body;
3073
- return throwDefaultError({
3074
- output,
3075
- parsedBody,
3076
- errorCode
3077
- });
3078
- }
3079
- }, "de_GetPermissionPolicyCommandError");
3080
1928
  var de_GetRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
3081
1929
  if (output.statusCode >= 300) {
3082
- return de_GetRateBasedRuleCommandError(output, context);
1930
+ return de_CommandError(output, context);
3083
1931
  }
3084
1932
  const data = await parseBody(output.body, context);
3085
1933
  let contents = {};
@@ -3090,34 +1938,9 @@ var de_GetRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context)
3090
1938
  };
3091
1939
  return response;
3092
1940
  }, "de_GetRateBasedRuleCommand");
3093
- var de_GetRateBasedRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
3094
- const parsedOutput = {
3095
- ...output,
3096
- body: await parseErrorBody(output.body, context)
3097
- };
3098
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3099
- switch (errorCode) {
3100
- case "WAFInternalErrorException":
3101
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3102
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3103
- case "WAFInvalidAccountException":
3104
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3105
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3106
- case "WAFNonexistentItemException":
3107
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3108
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3109
- default:
3110
- const parsedBody = parsedOutput.body;
3111
- return throwDefaultError({
3112
- output,
3113
- parsedBody,
3114
- errorCode
3115
- });
3116
- }
3117
- }, "de_GetRateBasedRuleCommandError");
3118
1941
  var de_GetRateBasedRuleManagedKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
3119
1942
  if (output.statusCode >= 300) {
3120
- return de_GetRateBasedRuleManagedKeysCommandError(output, context);
1943
+ return de_CommandError(output, context);
3121
1944
  }
3122
1945
  const data = await parseBody(output.body, context);
3123
1946
  let contents = {};
@@ -3128,37 +1951,9 @@ var de_GetRateBasedRuleManagedKeysCommand = /* @__PURE__ */ __name(async (output
3128
1951
  };
3129
1952
  return response;
3130
1953
  }, "de_GetRateBasedRuleManagedKeysCommand");
3131
- var de_GetRateBasedRuleManagedKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
3132
- const parsedOutput = {
3133
- ...output,
3134
- body: await parseErrorBody(output.body, context)
3135
- };
3136
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3137
- switch (errorCode) {
3138
- case "WAFInternalErrorException":
3139
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3140
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3141
- case "WAFInvalidAccountException":
3142
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3143
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3144
- case "WAFInvalidParameterException":
3145
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
3146
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3147
- case "WAFNonexistentItemException":
3148
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3149
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3150
- default:
3151
- const parsedBody = parsedOutput.body;
3152
- return throwDefaultError({
3153
- output,
3154
- parsedBody,
3155
- errorCode
3156
- });
3157
- }
3158
- }, "de_GetRateBasedRuleManagedKeysCommandError");
3159
1954
  var de_GetRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3160
1955
  if (output.statusCode >= 300) {
3161
- return de_GetRegexMatchSetCommandError(output, context);
1956
+ return de_CommandError(output, context);
3162
1957
  }
3163
1958
  const data = await parseBody(output.body, context);
3164
1959
  let contents = {};
@@ -3169,34 +1964,9 @@ var de_GetRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
3169
1964
  };
3170
1965
  return response;
3171
1966
  }, "de_GetRegexMatchSetCommand");
3172
- var de_GetRegexMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3173
- const parsedOutput = {
3174
- ...output,
3175
- body: await parseErrorBody(output.body, context)
3176
- };
3177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3178
- switch (errorCode) {
3179
- case "WAFInternalErrorException":
3180
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3181
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3182
- case "WAFInvalidAccountException":
3183
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3184
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3185
- case "WAFNonexistentItemException":
3186
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3187
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3188
- default:
3189
- const parsedBody = parsedOutput.body;
3190
- return throwDefaultError({
3191
- output,
3192
- parsedBody,
3193
- errorCode
3194
- });
3195
- }
3196
- }, "de_GetRegexMatchSetCommandError");
3197
1967
  var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3198
1968
  if (output.statusCode >= 300) {
3199
- return de_GetRegexPatternSetCommandError(output, context);
1969
+ return de_CommandError(output, context);
3200
1970
  }
3201
1971
  const data = await parseBody(output.body, context);
3202
1972
  let contents = {};
@@ -3207,34 +1977,9 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
3207
1977
  };
3208
1978
  return response;
3209
1979
  }, "de_GetRegexPatternSetCommand");
3210
- var de_GetRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3211
- const parsedOutput = {
3212
- ...output,
3213
- body: await parseErrorBody(output.body, context)
3214
- };
3215
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3216
- switch (errorCode) {
3217
- case "WAFInternalErrorException":
3218
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3219
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3220
- case "WAFInvalidAccountException":
3221
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3222
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3223
- case "WAFNonexistentItemException":
3224
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3225
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3226
- default:
3227
- const parsedBody = parsedOutput.body;
3228
- return throwDefaultError({
3229
- output,
3230
- parsedBody,
3231
- errorCode
3232
- });
3233
- }
3234
- }, "de_GetRegexPatternSetCommandError");
3235
1980
  var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
3236
1981
  if (output.statusCode >= 300) {
3237
- return de_GetRuleCommandError(output, context);
1982
+ return de_CommandError(output, context);
3238
1983
  }
3239
1984
  const data = await parseBody(output.body, context);
3240
1985
  let contents = {};
@@ -3245,34 +1990,9 @@ var de_GetRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
3245
1990
  };
3246
1991
  return response;
3247
1992
  }, "de_GetRuleCommand");
3248
- var de_GetRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
3249
- const parsedOutput = {
3250
- ...output,
3251
- body: await parseErrorBody(output.body, context)
3252
- };
3253
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3254
- switch (errorCode) {
3255
- case "WAFInternalErrorException":
3256
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3257
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3258
- case "WAFInvalidAccountException":
3259
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3260
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3261
- case "WAFNonexistentItemException":
3262
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3263
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3264
- default:
3265
- const parsedBody = parsedOutput.body;
3266
- return throwDefaultError({
3267
- output,
3268
- parsedBody,
3269
- errorCode
3270
- });
3271
- }
3272
- }, "de_GetRuleCommandError");
3273
1993
  var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3274
1994
  if (output.statusCode >= 300) {
3275
- return de_GetRuleGroupCommandError(output, context);
1995
+ return de_CommandError(output, context);
3276
1996
  }
3277
1997
  const data = await parseBody(output.body, context);
3278
1998
  let contents = {};
@@ -3283,31 +2003,9 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3283
2003
  };
3284
2004
  return response;
3285
2005
  }, "de_GetRuleGroupCommand");
3286
- var de_GetRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3287
- const parsedOutput = {
3288
- ...output,
3289
- body: await parseErrorBody(output.body, context)
3290
- };
3291
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3292
- switch (errorCode) {
3293
- case "WAFInternalErrorException":
3294
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3295
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3296
- case "WAFNonexistentItemException":
3297
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3298
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3299
- default:
3300
- const parsedBody = parsedOutput.body;
3301
- return throwDefaultError({
3302
- output,
3303
- parsedBody,
3304
- errorCode
3305
- });
3306
- }
3307
- }, "de_GetRuleGroupCommandError");
3308
2006
  var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
3309
2007
  if (output.statusCode >= 300) {
3310
- return de_GetSampledRequestsCommandError(output, context);
2008
+ return de_CommandError(output, context);
3311
2009
  }
3312
2010
  const data = await parseBody(output.body, context);
3313
2011
  let contents = {};
@@ -3318,31 +2016,9 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
3318
2016
  };
3319
2017
  return response;
3320
2018
  }, "de_GetSampledRequestsCommand");
3321
- var de_GetSampledRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3322
- const parsedOutput = {
3323
- ...output,
3324
- body: await parseErrorBody(output.body, context)
3325
- };
3326
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3327
- switch (errorCode) {
3328
- case "WAFInternalErrorException":
3329
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3330
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3331
- case "WAFNonexistentItemException":
3332
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3333
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3334
- default:
3335
- const parsedBody = parsedOutput.body;
3336
- return throwDefaultError({
3337
- output,
3338
- parsedBody,
3339
- errorCode
3340
- });
3341
- }
3342
- }, "de_GetSampledRequestsCommandError");
3343
2019
  var de_GetSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3344
2020
  if (output.statusCode >= 300) {
3345
- return de_GetSizeConstraintSetCommandError(output, context);
2021
+ return de_CommandError(output, context);
3346
2022
  }
3347
2023
  const data = await parseBody(output.body, context);
3348
2024
  let contents = {};
@@ -3353,34 +2029,9 @@ var de_GetSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, conte
3353
2029
  };
3354
2030
  return response;
3355
2031
  }, "de_GetSizeConstraintSetCommand");
3356
- var de_GetSizeConstraintSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3357
- const parsedOutput = {
3358
- ...output,
3359
- body: await parseErrorBody(output.body, context)
3360
- };
3361
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3362
- switch (errorCode) {
3363
- case "WAFInternalErrorException":
3364
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3365
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3366
- case "WAFInvalidAccountException":
3367
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3368
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3369
- case "WAFNonexistentItemException":
3370
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3371
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3372
- default:
3373
- const parsedBody = parsedOutput.body;
3374
- return throwDefaultError({
3375
- output,
3376
- parsedBody,
3377
- errorCode
3378
- });
3379
- }
3380
- }, "de_GetSizeConstraintSetCommandError");
3381
2032
  var de_GetSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3382
2033
  if (output.statusCode >= 300) {
3383
- return de_GetSqlInjectionMatchSetCommandError(output, context);
2034
+ return de_CommandError(output, context);
3384
2035
  }
3385
2036
  const data = await parseBody(output.body, context);
3386
2037
  let contents = {};
@@ -3391,34 +2042,9 @@ var de_GetSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, co
3391
2042
  };
3392
2043
  return response;
3393
2044
  }, "de_GetSqlInjectionMatchSetCommand");
3394
- var de_GetSqlInjectionMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3395
- const parsedOutput = {
3396
- ...output,
3397
- body: await parseErrorBody(output.body, context)
3398
- };
3399
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3400
- switch (errorCode) {
3401
- case "WAFInternalErrorException":
3402
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3403
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3404
- case "WAFInvalidAccountException":
3405
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3406
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3407
- case "WAFNonexistentItemException":
3408
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3409
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3410
- default:
3411
- const parsedBody = parsedOutput.body;
3412
- return throwDefaultError({
3413
- output,
3414
- parsedBody,
3415
- errorCode
3416
- });
3417
- }
3418
- }, "de_GetSqlInjectionMatchSetCommandError");
3419
2045
  var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3420
2046
  if (output.statusCode >= 300) {
3421
- return de_GetWebACLCommandError(output, context);
2047
+ return de_CommandError(output, context);
3422
2048
  }
3423
2049
  const data = await parseBody(output.body, context);
3424
2050
  let contents = {};
@@ -3429,34 +2055,9 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3429
2055
  };
3430
2056
  return response;
3431
2057
  }, "de_GetWebACLCommand");
3432
- var de_GetWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
3433
- const parsedOutput = {
3434
- ...output,
3435
- body: await parseErrorBody(output.body, context)
3436
- };
3437
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3438
- switch (errorCode) {
3439
- case "WAFInternalErrorException":
3440
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3441
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3442
- case "WAFInvalidAccountException":
3443
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3444
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3445
- case "WAFNonexistentItemException":
3446
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3447
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3448
- default:
3449
- const parsedBody = parsedOutput.body;
3450
- return throwDefaultError({
3451
- output,
3452
- parsedBody,
3453
- errorCode
3454
- });
3455
- }
3456
- }, "de_GetWebACLCommandError");
3457
2058
  var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3458
2059
  if (output.statusCode >= 300) {
3459
- return de_GetWebACLForResourceCommandError(output, context);
2060
+ return de_CommandError(output, context);
3460
2061
  }
3461
2062
  const data = await parseBody(output.body, context);
3462
2063
  let contents = {};
@@ -3467,40 +2068,9 @@ var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, conte
3467
2068
  };
3468
2069
  return response;
3469
2070
  }, "de_GetWebACLForResourceCommand");
3470
- var de_GetWebACLForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3471
- const parsedOutput = {
3472
- ...output,
3473
- body: await parseErrorBody(output.body, context)
3474
- };
3475
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3476
- switch (errorCode) {
3477
- case "WAFInternalErrorException":
3478
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3479
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3480
- case "WAFInvalidAccountException":
3481
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3482
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3483
- case "WAFInvalidParameterException":
3484
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
3485
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3486
- case "WAFNonexistentItemException":
3487
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3488
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3489
- case "WAFUnavailableEntityException":
3490
- case "com.amazonaws.wafregional#WAFUnavailableEntityException":
3491
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
3492
- default:
3493
- const parsedBody = parsedOutput.body;
3494
- return throwDefaultError({
3495
- output,
3496
- parsedBody,
3497
- errorCode
3498
- });
3499
- }
3500
- }, "de_GetWebACLForResourceCommandError");
3501
2071
  var de_GetXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3502
2072
  if (output.statusCode >= 300) {
3503
- return de_GetXssMatchSetCommandError(output, context);
2073
+ return de_CommandError(output, context);
3504
2074
  }
3505
2075
  const data = await parseBody(output.body, context);
3506
2076
  let contents = {};
@@ -3511,34 +2081,9 @@ var de_GetXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) =>
3511
2081
  };
3512
2082
  return response;
3513
2083
  }, "de_GetXssMatchSetCommand");
3514
- var de_GetXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3515
- const parsedOutput = {
3516
- ...output,
3517
- body: await parseErrorBody(output.body, context)
3518
- };
3519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3520
- switch (errorCode) {
3521
- case "WAFInternalErrorException":
3522
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3523
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3524
- case "WAFInvalidAccountException":
3525
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3526
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3527
- case "WAFNonexistentItemException":
3528
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3529
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3530
- default:
3531
- const parsedBody = parsedOutput.body;
3532
- return throwDefaultError({
3533
- output,
3534
- parsedBody,
3535
- errorCode
3536
- });
3537
- }
3538
- }, "de_GetXssMatchSetCommandError");
3539
2084
  var de_ListActivatedRulesInRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3540
2085
  if (output.statusCode >= 300) {
3541
- return de_ListActivatedRulesInRuleGroupCommandError(output, context);
2086
+ return de_CommandError(output, context);
3542
2087
  }
3543
2088
  const data = await parseBody(output.body, context);
3544
2089
  let contents = {};
@@ -3549,34 +2094,9 @@ var de_ListActivatedRulesInRuleGroupCommand = /* @__PURE__ */ __name(async (outp
3549
2094
  };
3550
2095
  return response;
3551
2096
  }, "de_ListActivatedRulesInRuleGroupCommand");
3552
- var de_ListActivatedRulesInRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3553
- const parsedOutput = {
3554
- ...output,
3555
- body: await parseErrorBody(output.body, context)
3556
- };
3557
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3558
- switch (errorCode) {
3559
- case "WAFInternalErrorException":
3560
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3561
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3562
- case "WAFInvalidParameterException":
3563
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
3564
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3565
- case "WAFNonexistentItemException":
3566
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3567
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3568
- default:
3569
- const parsedBody = parsedOutput.body;
3570
- return throwDefaultError({
3571
- output,
3572
- parsedBody,
3573
- errorCode
3574
- });
3575
- }
3576
- }, "de_ListActivatedRulesInRuleGroupCommandError");
3577
2097
  var de_ListByteMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3578
2098
  if (output.statusCode >= 300) {
3579
- return de_ListByteMatchSetsCommandError(output, context);
2099
+ return de_CommandError(output, context);
3580
2100
  }
3581
2101
  const data = await parseBody(output.body, context);
3582
2102
  let contents = {};
@@ -3587,31 +2107,9 @@ var de_ListByteMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
3587
2107
  };
3588
2108
  return response;
3589
2109
  }, "de_ListByteMatchSetsCommand");
3590
- var de_ListByteMatchSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3591
- const parsedOutput = {
3592
- ...output,
3593
- body: await parseErrorBody(output.body, context)
3594
- };
3595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3596
- switch (errorCode) {
3597
- case "WAFInternalErrorException":
3598
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3599
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3600
- case "WAFInvalidAccountException":
3601
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3602
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3603
- default:
3604
- const parsedBody = parsedOutput.body;
3605
- return throwDefaultError({
3606
- output,
3607
- parsedBody,
3608
- errorCode
3609
- });
3610
- }
3611
- }, "de_ListByteMatchSetsCommandError");
3612
2110
  var de_ListGeoMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3613
2111
  if (output.statusCode >= 300) {
3614
- return de_ListGeoMatchSetsCommandError(output, context);
2112
+ return de_CommandError(output, context);
3615
2113
  }
3616
2114
  const data = await parseBody(output.body, context);
3617
2115
  let contents = {};
@@ -3622,31 +2120,9 @@ var de_ListGeoMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
3622
2120
  };
3623
2121
  return response;
3624
2122
  }, "de_ListGeoMatchSetsCommand");
3625
- var de_ListGeoMatchSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3626
- const parsedOutput = {
3627
- ...output,
3628
- body: await parseErrorBody(output.body, context)
3629
- };
3630
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3631
- switch (errorCode) {
3632
- case "WAFInternalErrorException":
3633
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3634
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3635
- case "WAFInvalidAccountException":
3636
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3637
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3638
- default:
3639
- const parsedBody = parsedOutput.body;
3640
- return throwDefaultError({
3641
- output,
3642
- parsedBody,
3643
- errorCode
3644
- });
3645
- }
3646
- }, "de_ListGeoMatchSetsCommandError");
3647
2123
  var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3648
2124
  if (output.statusCode >= 300) {
3649
- return de_ListIPSetsCommandError(output, context);
2125
+ return de_CommandError(output, context);
3650
2126
  }
3651
2127
  const data = await parseBody(output.body, context);
3652
2128
  let contents = {};
@@ -3657,31 +2133,9 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3657
2133
  };
3658
2134
  return response;
3659
2135
  }, "de_ListIPSetsCommand");
3660
- var de_ListIPSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3661
- const parsedOutput = {
3662
- ...output,
3663
- body: await parseErrorBody(output.body, context)
3664
- };
3665
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3666
- switch (errorCode) {
3667
- case "WAFInternalErrorException":
3668
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3669
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3670
- case "WAFInvalidAccountException":
3671
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3672
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3673
- default:
3674
- const parsedBody = parsedOutput.body;
3675
- return throwDefaultError({
3676
- output,
3677
- parsedBody,
3678
- errorCode
3679
- });
3680
- }
3681
- }, "de_ListIPSetsCommandError");
3682
2136
  var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3683
2137
  if (output.statusCode >= 300) {
3684
- return de_ListLoggingConfigurationsCommandError(output, context);
2138
+ return de_CommandError(output, context);
3685
2139
  }
3686
2140
  const data = await parseBody(output.body, context);
3687
2141
  let contents = {};
@@ -3692,34 +2146,9 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
3692
2146
  };
3693
2147
  return response;
3694
2148
  }, "de_ListLoggingConfigurationsCommand");
3695
- var de_ListLoggingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3696
- const parsedOutput = {
3697
- ...output,
3698
- body: await parseErrorBody(output.body, context)
3699
- };
3700
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3701
- switch (errorCode) {
3702
- case "WAFInternalErrorException":
3703
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3704
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3705
- case "WAFInvalidParameterException":
3706
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
3707
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3708
- case "WAFNonexistentItemException":
3709
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3710
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3711
- default:
3712
- const parsedBody = parsedOutput.body;
3713
- return throwDefaultError({
3714
- output,
3715
- parsedBody,
3716
- errorCode
3717
- });
3718
- }
3719
- }, "de_ListLoggingConfigurationsCommandError");
3720
2149
  var de_ListRateBasedRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
3721
2150
  if (output.statusCode >= 300) {
3722
- return de_ListRateBasedRulesCommandError(output, context);
2151
+ return de_CommandError(output, context);
3723
2152
  }
3724
2153
  const data = await parseBody(output.body, context);
3725
2154
  let contents = {};
@@ -3730,66 +2159,22 @@ var de_ListRateBasedRulesCommand = /* @__PURE__ */ __name(async (output, context
3730
2159
  };
3731
2160
  return response;
3732
2161
  }, "de_ListRateBasedRulesCommand");
3733
- var de_ListRateBasedRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3734
- const parsedOutput = {
3735
- ...output,
3736
- body: await parseErrorBody(output.body, context)
3737
- };
3738
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3739
- switch (errorCode) {
3740
- case "WAFInternalErrorException":
3741
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3742
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3743
- case "WAFInvalidAccountException":
3744
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3745
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3746
- default:
3747
- const parsedBody = parsedOutput.body;
3748
- return throwDefaultError({
3749
- output,
3750
- parsedBody,
3751
- errorCode
3752
- });
3753
- }
3754
- }, "de_ListRateBasedRulesCommandError");
3755
- var de_ListRegexMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3756
- if (output.statusCode >= 300) {
3757
- return de_ListRegexMatchSetsCommandError(output, context);
3758
- }
3759
- const data = await parseBody(output.body, context);
3760
- let contents = {};
3761
- contents = (0, import_smithy_client._json)(data);
3762
- const response = {
3763
- $metadata: deserializeMetadata(output),
3764
- ...contents
2162
+ var de_ListRegexMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2163
+ if (output.statusCode >= 300) {
2164
+ return de_CommandError(output, context);
2165
+ }
2166
+ const data = await parseBody(output.body, context);
2167
+ let contents = {};
2168
+ contents = (0, import_smithy_client._json)(data);
2169
+ const response = {
2170
+ $metadata: deserializeMetadata(output),
2171
+ ...contents
3765
2172
  };
3766
2173
  return response;
3767
2174
  }, "de_ListRegexMatchSetsCommand");
3768
- var de_ListRegexMatchSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3769
- const parsedOutput = {
3770
- ...output,
3771
- body: await parseErrorBody(output.body, context)
3772
- };
3773
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3774
- switch (errorCode) {
3775
- case "WAFInternalErrorException":
3776
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3777
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3778
- case "WAFInvalidAccountException":
3779
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3780
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3781
- default:
3782
- const parsedBody = parsedOutput.body;
3783
- return throwDefaultError({
3784
- output,
3785
- parsedBody,
3786
- errorCode
3787
- });
3788
- }
3789
- }, "de_ListRegexMatchSetsCommandError");
3790
2175
  var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3791
2176
  if (output.statusCode >= 300) {
3792
- return de_ListRegexPatternSetsCommandError(output, context);
2177
+ return de_CommandError(output, context);
3793
2178
  }
3794
2179
  const data = await parseBody(output.body, context);
3795
2180
  let contents = {};
@@ -3800,31 +2185,9 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
3800
2185
  };
3801
2186
  return response;
3802
2187
  }, "de_ListRegexPatternSetsCommand");
3803
- var de_ListRegexPatternSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3804
- const parsedOutput = {
3805
- ...output,
3806
- body: await parseErrorBody(output.body, context)
3807
- };
3808
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3809
- switch (errorCode) {
3810
- case "WAFInternalErrorException":
3811
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3812
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3813
- case "WAFInvalidAccountException":
3814
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3815
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3816
- default:
3817
- const parsedBody = parsedOutput.body;
3818
- return throwDefaultError({
3819
- output,
3820
- parsedBody,
3821
- errorCode
3822
- });
3823
- }
3824
- }, "de_ListRegexPatternSetsCommandError");
3825
2188
  var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3826
2189
  if (output.statusCode >= 300) {
3827
- return de_ListResourcesForWebACLCommandError(output, context);
2190
+ return de_CommandError(output, context);
3828
2191
  }
3829
2192
  const data = await parseBody(output.body, context);
3830
2193
  let contents = {};
@@ -3835,37 +2198,9 @@ var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, con
3835
2198
  };
3836
2199
  return response;
3837
2200
  }, "de_ListResourcesForWebACLCommand");
3838
- var de_ListResourcesForWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
3839
- const parsedOutput = {
3840
- ...output,
3841
- body: await parseErrorBody(output.body, context)
3842
- };
3843
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3844
- switch (errorCode) {
3845
- case "WAFInternalErrorException":
3846
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3847
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3848
- case "WAFInvalidAccountException":
3849
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3850
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3851
- case "WAFInvalidParameterException":
3852
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
3853
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3854
- case "WAFNonexistentItemException":
3855
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
3856
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3857
- default:
3858
- const parsedBody = parsedOutput.body;
3859
- return throwDefaultError({
3860
- output,
3861
- parsedBody,
3862
- errorCode
3863
- });
3864
- }
3865
- }, "de_ListResourcesForWebACLCommandError");
3866
2201
  var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
3867
2202
  if (output.statusCode >= 300) {
3868
- return de_ListRuleGroupsCommandError(output, context);
2203
+ return de_CommandError(output, context);
3869
2204
  }
3870
2205
  const data = await parseBody(output.body, context);
3871
2206
  let contents = {};
@@ -3876,28 +2211,9 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
3876
2211
  };
3877
2212
  return response;
3878
2213
  }, "de_ListRuleGroupsCommand");
3879
- var de_ListRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3880
- const parsedOutput = {
3881
- ...output,
3882
- body: await parseErrorBody(output.body, context)
3883
- };
3884
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3885
- switch (errorCode) {
3886
- case "WAFInternalErrorException":
3887
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3888
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3889
- default:
3890
- const parsedBody = parsedOutput.body;
3891
- return throwDefaultError({
3892
- output,
3893
- parsedBody,
3894
- errorCode
3895
- });
3896
- }
3897
- }, "de_ListRuleGroupsCommandError");
3898
2214
  var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
3899
2215
  if (output.statusCode >= 300) {
3900
- return de_ListRulesCommandError(output, context);
2216
+ return de_CommandError(output, context);
3901
2217
  }
3902
2218
  const data = await parseBody(output.body, context);
3903
2219
  let contents = {};
@@ -3908,31 +2224,9 @@ var de_ListRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
3908
2224
  };
3909
2225
  return response;
3910
2226
  }, "de_ListRulesCommand");
3911
- var de_ListRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3912
- const parsedOutput = {
3913
- ...output,
3914
- body: await parseErrorBody(output.body, context)
3915
- };
3916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3917
- switch (errorCode) {
3918
- case "WAFInternalErrorException":
3919
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3920
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3921
- case "WAFInvalidAccountException":
3922
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3923
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3924
- default:
3925
- const parsedBody = parsedOutput.body;
3926
- return throwDefaultError({
3927
- output,
3928
- parsedBody,
3929
- errorCode
3930
- });
3931
- }
3932
- }, "de_ListRulesCommandError");
3933
2227
  var de_ListSizeConstraintSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3934
2228
  if (output.statusCode >= 300) {
3935
- return de_ListSizeConstraintSetsCommandError(output, context);
2229
+ return de_CommandError(output, context);
3936
2230
  }
3937
2231
  const data = await parseBody(output.body, context);
3938
2232
  let contents = {};
@@ -3943,31 +2237,9 @@ var de_ListSizeConstraintSetsCommand = /* @__PURE__ */ __name(async (output, con
3943
2237
  };
3944
2238
  return response;
3945
2239
  }, "de_ListSizeConstraintSetsCommand");
3946
- var de_ListSizeConstraintSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3947
- const parsedOutput = {
3948
- ...output,
3949
- body: await parseErrorBody(output.body, context)
3950
- };
3951
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3952
- switch (errorCode) {
3953
- case "WAFInternalErrorException":
3954
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3955
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3956
- case "WAFInvalidAccountException":
3957
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3958
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3959
- default:
3960
- const parsedBody = parsedOutput.body;
3961
- return throwDefaultError({
3962
- output,
3963
- parsedBody,
3964
- errorCode
3965
- });
3966
- }
3967
- }, "de_ListSizeConstraintSetsCommandError");
3968
2240
  var de_ListSqlInjectionMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3969
2241
  if (output.statusCode >= 300) {
3970
- return de_ListSqlInjectionMatchSetsCommandError(output, context);
2242
+ return de_CommandError(output, context);
3971
2243
  }
3972
2244
  const data = await parseBody(output.body, context);
3973
2245
  let contents = {};
@@ -3978,31 +2250,9 @@ var de_ListSqlInjectionMatchSetsCommand = /* @__PURE__ */ __name(async (output,
3978
2250
  };
3979
2251
  return response;
3980
2252
  }, "de_ListSqlInjectionMatchSetsCommand");
3981
- var de_ListSqlInjectionMatchSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3982
- const parsedOutput = {
3983
- ...output,
3984
- body: await parseErrorBody(output.body, context)
3985
- };
3986
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3987
- switch (errorCode) {
3988
- case "WAFInternalErrorException":
3989
- case "com.amazonaws.wafregional#WAFInternalErrorException":
3990
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3991
- case "WAFInvalidAccountException":
3992
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
3993
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
3994
- default:
3995
- const parsedBody = parsedOutput.body;
3996
- return throwDefaultError({
3997
- output,
3998
- parsedBody,
3999
- errorCode
4000
- });
4001
- }
4002
- }, "de_ListSqlInjectionMatchSetsCommandError");
4003
2253
  var de_ListSubscribedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
4004
2254
  if (output.statusCode >= 300) {
4005
- return de_ListSubscribedRuleGroupsCommandError(output, context);
2255
+ return de_CommandError(output, context);
4006
2256
  }
4007
2257
  const data = await parseBody(output.body, context);
4008
2258
  let contents = {};
@@ -4013,31 +2263,9 @@ var de_ListSubscribedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, c
4013
2263
  };
4014
2264
  return response;
4015
2265
  }, "de_ListSubscribedRuleGroupsCommand");
4016
- var de_ListSubscribedRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4017
- const parsedOutput = {
4018
- ...output,
4019
- body: await parseErrorBody(output.body, context)
4020
- };
4021
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4022
- switch (errorCode) {
4023
- case "WAFInternalErrorException":
4024
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4025
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4026
- case "WAFNonexistentItemException":
4027
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4028
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4029
- default:
4030
- const parsedBody = parsedOutput.body;
4031
- return throwDefaultError({
4032
- output,
4033
- parsedBody,
4034
- errorCode
4035
- });
4036
- }
4037
- }, "de_ListSubscribedRuleGroupsCommandError");
4038
2266
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4039
2267
  if (output.statusCode >= 300) {
4040
- return de_ListTagsForResourceCommandError(output, context);
2268
+ return de_CommandError(output, context);
4041
2269
  }
4042
2270
  const data = await parseBody(output.body, context);
4043
2271
  let contents = {};
@@ -4048,43 +2276,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
4048
2276
  };
4049
2277
  return response;
4050
2278
  }, "de_ListTagsForResourceCommand");
4051
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4052
- const parsedOutput = {
4053
- ...output,
4054
- body: await parseErrorBody(output.body, context)
4055
- };
4056
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4057
- switch (errorCode) {
4058
- case "WAFBadRequestException":
4059
- case "com.amazonaws.wafregional#WAFBadRequestException":
4060
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
4061
- case "WAFInternalErrorException":
4062
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4063
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4064
- case "WAFInvalidParameterException":
4065
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4066
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4067
- case "WAFNonexistentItemException":
4068
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4069
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4070
- case "WAFTagOperationException":
4071
- case "com.amazonaws.wafregional#WAFTagOperationException":
4072
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
4073
- case "WAFTagOperationInternalErrorException":
4074
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
4075
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
4076
- default:
4077
- const parsedBody = parsedOutput.body;
4078
- return throwDefaultError({
4079
- output,
4080
- parsedBody,
4081
- errorCode
4082
- });
4083
- }
4084
- }, "de_ListTagsForResourceCommandError");
4085
2279
  var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
4086
2280
  if (output.statusCode >= 300) {
4087
- return de_ListWebACLsCommandError(output, context);
2281
+ return de_CommandError(output, context);
4088
2282
  }
4089
2283
  const data = await parseBody(output.body, context);
4090
2284
  let contents = {};
@@ -4095,31 +2289,9 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
4095
2289
  };
4096
2290
  return response;
4097
2291
  }, "de_ListWebACLsCommand");
4098
- var de_ListWebACLsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4099
- const parsedOutput = {
4100
- ...output,
4101
- body: await parseErrorBody(output.body, context)
4102
- };
4103
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4104
- switch (errorCode) {
4105
- case "WAFInternalErrorException":
4106
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4107
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4108
- case "WAFInvalidAccountException":
4109
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4110
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4111
- default:
4112
- const parsedBody = parsedOutput.body;
4113
- return throwDefaultError({
4114
- output,
4115
- parsedBody,
4116
- errorCode
4117
- });
4118
- }
4119
- }, "de_ListWebACLsCommandError");
4120
2292
  var de_ListXssMatchSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
4121
2293
  if (output.statusCode >= 300) {
4122
- return de_ListXssMatchSetsCommandError(output, context);
2294
+ return de_CommandError(output, context);
4123
2295
  }
4124
2296
  const data = await parseBody(output.body, context);
4125
2297
  let contents = {};
@@ -4130,31 +2302,9 @@ var de_ListXssMatchSetsCommand = /* @__PURE__ */ __name(async (output, context)
4130
2302
  };
4131
2303
  return response;
4132
2304
  }, "de_ListXssMatchSetsCommand");
4133
- var de_ListXssMatchSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4134
- const parsedOutput = {
4135
- ...output,
4136
- body: await parseErrorBody(output.body, context)
4137
- };
4138
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4139
- switch (errorCode) {
4140
- case "WAFInternalErrorException":
4141
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4142
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4143
- case "WAFInvalidAccountException":
4144
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4145
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4146
- default:
4147
- const parsedBody = parsedOutput.body;
4148
- return throwDefaultError({
4149
- output,
4150
- parsedBody,
4151
- errorCode
4152
- });
4153
- }
4154
- }, "de_ListXssMatchSetsCommandError");
4155
2305
  var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4156
2306
  if (output.statusCode >= 300) {
4157
- return de_PutLoggingConfigurationCommandError(output, context);
2307
+ return de_CommandError(output, context);
4158
2308
  }
4159
2309
  const data = await parseBody(output.body, context);
4160
2310
  let contents = {};
@@ -4165,37 +2315,9 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
4165
2315
  };
4166
2316
  return response;
4167
2317
  }, "de_PutLoggingConfigurationCommand");
4168
- var de_PutLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4169
- const parsedOutput = {
4170
- ...output,
4171
- body: await parseErrorBody(output.body, context)
4172
- };
4173
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4174
- switch (errorCode) {
4175
- case "WAFInternalErrorException":
4176
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4177
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4178
- case "WAFNonexistentItemException":
4179
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4180
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4181
- case "WAFServiceLinkedRoleErrorException":
4182
- case "com.amazonaws.wafregional#WAFServiceLinkedRoleErrorException":
4183
- throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
4184
- case "WAFStaleDataException":
4185
- case "com.amazonaws.wafregional#WAFStaleDataException":
4186
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4187
- default:
4188
- const parsedBody = parsedOutput.body;
4189
- return throwDefaultError({
4190
- output,
4191
- parsedBody,
4192
- errorCode
4193
- });
4194
- }
4195
- }, "de_PutLoggingConfigurationCommandError");
4196
2318
  var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
4197
2319
  if (output.statusCode >= 300) {
4198
- return de_PutPermissionPolicyCommandError(output, context);
2320
+ return de_CommandError(output, context);
4199
2321
  }
4200
2322
  const data = await parseBody(output.body, context);
4201
2323
  let contents = {};
@@ -4206,37 +2328,9 @@ var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
4206
2328
  };
4207
2329
  return response;
4208
2330
  }, "de_PutPermissionPolicyCommand");
4209
- var de_PutPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
4210
- const parsedOutput = {
4211
- ...output,
4212
- body: await parseErrorBody(output.body, context)
4213
- };
4214
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4215
- switch (errorCode) {
4216
- case "WAFInternalErrorException":
4217
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4218
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4219
- case "WAFInvalidPermissionPolicyException":
4220
- case "com.amazonaws.wafregional#WAFInvalidPermissionPolicyException":
4221
- throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
4222
- case "WAFNonexistentItemException":
4223
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4224
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4225
- case "WAFStaleDataException":
4226
- case "com.amazonaws.wafregional#WAFStaleDataException":
4227
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4228
- default:
4229
- const parsedBody = parsedOutput.body;
4230
- return throwDefaultError({
4231
- output,
4232
- parsedBody,
4233
- errorCode
4234
- });
4235
- }
4236
- }, "de_PutPermissionPolicyCommandError");
4237
2331
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4238
2332
  if (output.statusCode >= 300) {
4239
- return de_TagResourceCommandError(output, context);
2333
+ return de_CommandError(output, context);
4240
2334
  }
4241
2335
  const data = await parseBody(output.body, context);
4242
2336
  let contents = {};
@@ -4247,46 +2341,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4247
2341
  };
4248
2342
  return response;
4249
2343
  }, "de_TagResourceCommand");
4250
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4251
- const parsedOutput = {
4252
- ...output,
4253
- body: await parseErrorBody(output.body, context)
4254
- };
4255
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4256
- switch (errorCode) {
4257
- case "WAFBadRequestException":
4258
- case "com.amazonaws.wafregional#WAFBadRequestException":
4259
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
4260
- case "WAFInternalErrorException":
4261
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4262
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4263
- case "WAFInvalidParameterException":
4264
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4265
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4266
- case "WAFLimitsExceededException":
4267
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4268
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4269
- case "WAFNonexistentItemException":
4270
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4271
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4272
- case "WAFTagOperationException":
4273
- case "com.amazonaws.wafregional#WAFTagOperationException":
4274
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
4275
- case "WAFTagOperationInternalErrorException":
4276
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
4277
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
4278
- default:
4279
- const parsedBody = parsedOutput.body;
4280
- return throwDefaultError({
4281
- output,
4282
- parsedBody,
4283
- errorCode
4284
- });
4285
- }
4286
- }, "de_TagResourceCommandError");
4287
2344
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4288
2345
  if (output.statusCode >= 300) {
4289
- return de_UntagResourceCommandError(output, context);
2346
+ return de_CommandError(output, context);
4290
2347
  }
4291
2348
  const data = await parseBody(output.body, context);
4292
2349
  let contents = {};
@@ -4297,43 +2354,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
4297
2354
  };
4298
2355
  return response;
4299
2356
  }, "de_UntagResourceCommand");
4300
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4301
- const parsedOutput = {
4302
- ...output,
4303
- body: await parseErrorBody(output.body, context)
4304
- };
4305
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4306
- switch (errorCode) {
4307
- case "WAFBadRequestException":
4308
- case "com.amazonaws.wafregional#WAFBadRequestException":
4309
- throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
4310
- case "WAFInternalErrorException":
4311
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4312
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4313
- case "WAFInvalidParameterException":
4314
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4315
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4316
- case "WAFNonexistentItemException":
4317
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4318
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4319
- case "WAFTagOperationException":
4320
- case "com.amazonaws.wafregional#WAFTagOperationException":
4321
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
4322
- case "WAFTagOperationInternalErrorException":
4323
- case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
4324
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
4325
- default:
4326
- const parsedBody = parsedOutput.body;
4327
- return throwDefaultError({
4328
- output,
4329
- parsedBody,
4330
- errorCode
4331
- });
4332
- }
4333
- }, "de_UntagResourceCommandError");
4334
2357
  var de_UpdateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4335
2358
  if (output.statusCode >= 300) {
4336
- return de_UpdateByteMatchSetCommandError(output, context);
2359
+ return de_CommandError(output, context);
4337
2360
  }
4338
2361
  const data = await parseBody(output.body, context);
4339
2362
  let contents = {};
@@ -4344,49 +2367,9 @@ var de_UpdateByteMatchSetCommand = /* @__PURE__ */ __name(async (output, context
4344
2367
  };
4345
2368
  return response;
4346
2369
  }, "de_UpdateByteMatchSetCommand");
4347
- var de_UpdateByteMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4348
- const parsedOutput = {
4349
- ...output,
4350
- body: await parseErrorBody(output.body, context)
4351
- };
4352
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4353
- switch (errorCode) {
4354
- case "WAFInternalErrorException":
4355
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4356
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4357
- case "WAFInvalidAccountException":
4358
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4359
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4360
- case "WAFInvalidOperationException":
4361
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4362
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4363
- case "WAFInvalidParameterException":
4364
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4365
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4366
- case "WAFLimitsExceededException":
4367
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4368
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4369
- case "WAFNonexistentContainerException":
4370
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4371
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4372
- case "WAFNonexistentItemException":
4373
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4374
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4375
- case "WAFStaleDataException":
4376
- case "com.amazonaws.wafregional#WAFStaleDataException":
4377
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4378
- default:
4379
- const parsedBody = parsedOutput.body;
4380
- return throwDefaultError({
4381
- output,
4382
- parsedBody,
4383
- errorCode
4384
- });
4385
- }
4386
- }, "de_UpdateByteMatchSetCommandError");
4387
2370
  var de_UpdateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4388
2371
  if (output.statusCode >= 300) {
4389
- return de_UpdateGeoMatchSetCommandError(output, context);
2372
+ return de_CommandError(output, context);
4390
2373
  }
4391
2374
  const data = await parseBody(output.body, context);
4392
2375
  let contents = {};
@@ -4397,52 +2380,9 @@ var de_UpdateGeoMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
4397
2380
  };
4398
2381
  return response;
4399
2382
  }, "de_UpdateGeoMatchSetCommand");
4400
- var de_UpdateGeoMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4401
- const parsedOutput = {
4402
- ...output,
4403
- body: await parseErrorBody(output.body, context)
4404
- };
4405
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4406
- switch (errorCode) {
4407
- case "WAFInternalErrorException":
4408
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4409
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4410
- case "WAFInvalidAccountException":
4411
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4412
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4413
- case "WAFInvalidOperationException":
4414
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4415
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4416
- case "WAFInvalidParameterException":
4417
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4418
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4419
- case "WAFLimitsExceededException":
4420
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4421
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4422
- case "WAFNonexistentContainerException":
4423
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4424
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4425
- case "WAFNonexistentItemException":
4426
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4427
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4428
- case "WAFReferencedItemException":
4429
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4430
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4431
- case "WAFStaleDataException":
4432
- case "com.amazonaws.wafregional#WAFStaleDataException":
4433
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4434
- default:
4435
- const parsedBody = parsedOutput.body;
4436
- return throwDefaultError({
4437
- output,
4438
- parsedBody,
4439
- errorCode
4440
- });
4441
- }
4442
- }, "de_UpdateGeoMatchSetCommandError");
4443
2383
  var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4444
2384
  if (output.statusCode >= 300) {
4445
- return de_UpdateIPSetCommandError(output, context);
2385
+ return de_CommandError(output, context);
4446
2386
  }
4447
2387
  const data = await parseBody(output.body, context);
4448
2388
  let contents = {};
@@ -4453,52 +2393,9 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4453
2393
  };
4454
2394
  return response;
4455
2395
  }, "de_UpdateIPSetCommand");
4456
- var de_UpdateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4457
- const parsedOutput = {
4458
- ...output,
4459
- body: await parseErrorBody(output.body, context)
4460
- };
4461
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4462
- switch (errorCode) {
4463
- case "WAFInternalErrorException":
4464
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4465
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4466
- case "WAFInvalidAccountException":
4467
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4468
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4469
- case "WAFInvalidOperationException":
4470
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4471
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4472
- case "WAFInvalidParameterException":
4473
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4474
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4475
- case "WAFLimitsExceededException":
4476
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4477
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4478
- case "WAFNonexistentContainerException":
4479
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4480
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4481
- case "WAFNonexistentItemException":
4482
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4483
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4484
- case "WAFReferencedItemException":
4485
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4486
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4487
- case "WAFStaleDataException":
4488
- case "com.amazonaws.wafregional#WAFStaleDataException":
4489
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4490
- default:
4491
- const parsedBody = parsedOutput.body;
4492
- return throwDefaultError({
4493
- output,
4494
- parsedBody,
4495
- errorCode
4496
- });
4497
- }
4498
- }, "de_UpdateIPSetCommandError");
4499
2396
  var de_UpdateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
4500
2397
  if (output.statusCode >= 300) {
4501
- return de_UpdateRateBasedRuleCommandError(output, context);
2398
+ return de_CommandError(output, context);
4502
2399
  }
4503
2400
  const data = await parseBody(output.body, context);
4504
2401
  let contents = {};
@@ -4509,52 +2406,9 @@ var de_UpdateRateBasedRuleCommand = /* @__PURE__ */ __name(async (output, contex
4509
2406
  };
4510
2407
  return response;
4511
2408
  }, "de_UpdateRateBasedRuleCommand");
4512
- var de_UpdateRateBasedRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
4513
- const parsedOutput = {
4514
- ...output,
4515
- body: await parseErrorBody(output.body, context)
4516
- };
4517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4518
- switch (errorCode) {
4519
- case "WAFInternalErrorException":
4520
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4521
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4522
- case "WAFInvalidAccountException":
4523
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4524
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4525
- case "WAFInvalidOperationException":
4526
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4527
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4528
- case "WAFInvalidParameterException":
4529
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4530
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4531
- case "WAFLimitsExceededException":
4532
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4533
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4534
- case "WAFNonexistentContainerException":
4535
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4536
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4537
- case "WAFNonexistentItemException":
4538
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4539
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4540
- case "WAFReferencedItemException":
4541
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4542
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4543
- case "WAFStaleDataException":
4544
- case "com.amazonaws.wafregional#WAFStaleDataException":
4545
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4546
- default:
4547
- const parsedBody = parsedOutput.body;
4548
- return throwDefaultError({
4549
- output,
4550
- parsedBody,
4551
- errorCode
4552
- });
4553
- }
4554
- }, "de_UpdateRateBasedRuleCommandError");
4555
2409
  var de_UpdateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4556
2410
  if (output.statusCode >= 300) {
4557
- return de_UpdateRegexMatchSetCommandError(output, context);
2411
+ return de_CommandError(output, context);
4558
2412
  }
4559
2413
  const data = await parseBody(output.body, context);
4560
2414
  let contents = {};
@@ -4565,49 +2419,9 @@ var de_UpdateRegexMatchSetCommand = /* @__PURE__ */ __name(async (output, contex
4565
2419
  };
4566
2420
  return response;
4567
2421
  }, "de_UpdateRegexMatchSetCommand");
4568
- var de_UpdateRegexMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4569
- const parsedOutput = {
4570
- ...output,
4571
- body: await parseErrorBody(output.body, context)
4572
- };
4573
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4574
- switch (errorCode) {
4575
- case "WAFDisallowedNameException":
4576
- case "com.amazonaws.wafregional#WAFDisallowedNameException":
4577
- throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
4578
- case "WAFInternalErrorException":
4579
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4580
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4581
- case "WAFInvalidAccountException":
4582
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4583
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4584
- case "WAFInvalidOperationException":
4585
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4586
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4587
- case "WAFLimitsExceededException":
4588
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4589
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4590
- case "WAFNonexistentContainerException":
4591
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4592
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4593
- case "WAFNonexistentItemException":
4594
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4595
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4596
- case "WAFStaleDataException":
4597
- case "com.amazonaws.wafregional#WAFStaleDataException":
4598
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4599
- default:
4600
- const parsedBody = parsedOutput.body;
4601
- return throwDefaultError({
4602
- output,
4603
- parsedBody,
4604
- errorCode
4605
- });
4606
- }
4607
- }, "de_UpdateRegexMatchSetCommandError");
4608
2422
  var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4609
2423
  if (output.statusCode >= 300) {
4610
- return de_UpdateRegexPatternSetCommandError(output, context);
2424
+ return de_CommandError(output, context);
4611
2425
  }
4612
2426
  const data = await parseBody(output.body, context);
4613
2427
  let contents = {};
@@ -4615,52 +2429,12 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
4615
2429
  const response = {
4616
2430
  $metadata: deserializeMetadata(output),
4617
2431
  ...contents
4618
- };
4619
- return response;
4620
- }, "de_UpdateRegexPatternSetCommand");
4621
- var de_UpdateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4622
- const parsedOutput = {
4623
- ...output,
4624
- body: await parseErrorBody(output.body, context)
4625
- };
4626
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4627
- switch (errorCode) {
4628
- case "WAFInternalErrorException":
4629
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4630
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4631
- case "WAFInvalidAccountException":
4632
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4633
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4634
- case "WAFInvalidOperationException":
4635
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4636
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4637
- case "WAFInvalidRegexPatternException":
4638
- case "com.amazonaws.wafregional#WAFInvalidRegexPatternException":
4639
- throw await de_WAFInvalidRegexPatternExceptionRes(parsedOutput, context);
4640
- case "WAFLimitsExceededException":
4641
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4642
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4643
- case "WAFNonexistentContainerException":
4644
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4645
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4646
- case "WAFNonexistentItemException":
4647
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4648
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4649
- case "WAFStaleDataException":
4650
- case "com.amazonaws.wafregional#WAFStaleDataException":
4651
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4652
- default:
4653
- const parsedBody = parsedOutput.body;
4654
- return throwDefaultError({
4655
- output,
4656
- parsedBody,
4657
- errorCode
4658
- });
4659
- }
4660
- }, "de_UpdateRegexPatternSetCommandError");
2432
+ };
2433
+ return response;
2434
+ }, "de_UpdateRegexPatternSetCommand");
4661
2435
  var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
4662
2436
  if (output.statusCode >= 300) {
4663
- return de_UpdateRuleCommandError(output, context);
2437
+ return de_CommandError(output, context);
4664
2438
  }
4665
2439
  const data = await parseBody(output.body, context);
4666
2440
  let contents = {};
@@ -4671,52 +2445,9 @@ var de_UpdateRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
4671
2445
  };
4672
2446
  return response;
4673
2447
  }, "de_UpdateRuleCommand");
4674
- var de_UpdateRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
4675
- const parsedOutput = {
4676
- ...output,
4677
- body: await parseErrorBody(output.body, context)
4678
- };
4679
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4680
- switch (errorCode) {
4681
- case "WAFInternalErrorException":
4682
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4683
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4684
- case "WAFInvalidAccountException":
4685
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4686
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4687
- case "WAFInvalidOperationException":
4688
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4689
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4690
- case "WAFInvalidParameterException":
4691
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4692
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4693
- case "WAFLimitsExceededException":
4694
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4695
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4696
- case "WAFNonexistentContainerException":
4697
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4698
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4699
- case "WAFNonexistentItemException":
4700
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4701
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4702
- case "WAFReferencedItemException":
4703
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4704
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4705
- case "WAFStaleDataException":
4706
- case "com.amazonaws.wafregional#WAFStaleDataException":
4707
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4708
- default:
4709
- const parsedBody = parsedOutput.body;
4710
- return throwDefaultError({
4711
- output,
4712
- parsedBody,
4713
- errorCode
4714
- });
4715
- }
4716
- }, "de_UpdateRuleCommandError");
4717
2448
  var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
4718
2449
  if (output.statusCode >= 300) {
4719
- return de_UpdateRuleGroupCommandError(output, context);
2450
+ return de_CommandError(output, context);
4720
2451
  }
4721
2452
  const data = await parseBody(output.body, context);
4722
2453
  let contents = {};
@@ -4727,46 +2458,9 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
4727
2458
  };
4728
2459
  return response;
4729
2460
  }, "de_UpdateRuleGroupCommand");
4730
- var de_UpdateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
4731
- const parsedOutput = {
4732
- ...output,
4733
- body: await parseErrorBody(output.body, context)
4734
- };
4735
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4736
- switch (errorCode) {
4737
- case "WAFInternalErrorException":
4738
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4739
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4740
- case "WAFInvalidOperationException":
4741
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4742
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4743
- case "WAFInvalidParameterException":
4744
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4745
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4746
- case "WAFLimitsExceededException":
4747
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4748
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4749
- case "WAFNonexistentContainerException":
4750
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4751
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4752
- case "WAFNonexistentItemException":
4753
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4754
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4755
- case "WAFStaleDataException":
4756
- case "com.amazonaws.wafregional#WAFStaleDataException":
4757
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4758
- default:
4759
- const parsedBody = parsedOutput.body;
4760
- return throwDefaultError({
4761
- output,
4762
- parsedBody,
4763
- errorCode
4764
- });
4765
- }
4766
- }, "de_UpdateRuleGroupCommandError");
4767
2461
  var de_UpdateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4768
2462
  if (output.statusCode >= 300) {
4769
- return de_UpdateSizeConstraintSetCommandError(output, context);
2463
+ return de_CommandError(output, context);
4770
2464
  }
4771
2465
  const data = await parseBody(output.body, context);
4772
2466
  let contents = {};
@@ -4777,52 +2471,9 @@ var de_UpdateSizeConstraintSetCommand = /* @__PURE__ */ __name(async (output, co
4777
2471
  };
4778
2472
  return response;
4779
2473
  }, "de_UpdateSizeConstraintSetCommand");
4780
- var de_UpdateSizeConstraintSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4781
- const parsedOutput = {
4782
- ...output,
4783
- body: await parseErrorBody(output.body, context)
4784
- };
4785
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4786
- switch (errorCode) {
4787
- case "WAFInternalErrorException":
4788
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4789
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4790
- case "WAFInvalidAccountException":
4791
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4792
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4793
- case "WAFInvalidOperationException":
4794
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4795
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4796
- case "WAFInvalidParameterException":
4797
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4798
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4799
- case "WAFLimitsExceededException":
4800
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4801
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4802
- case "WAFNonexistentContainerException":
4803
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4804
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4805
- case "WAFNonexistentItemException":
4806
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4807
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4808
- case "WAFReferencedItemException":
4809
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4810
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4811
- case "WAFStaleDataException":
4812
- case "com.amazonaws.wafregional#WAFStaleDataException":
4813
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4814
- default:
4815
- const parsedBody = parsedOutput.body;
4816
- return throwDefaultError({
4817
- output,
4818
- parsedBody,
4819
- errorCode
4820
- });
4821
- }
4822
- }, "de_UpdateSizeConstraintSetCommandError");
4823
2474
  var de_UpdateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4824
2475
  if (output.statusCode >= 300) {
4825
- return de_UpdateSqlInjectionMatchSetCommandError(output, context);
2476
+ return de_CommandError(output, context);
4826
2477
  }
4827
2478
  const data = await parseBody(output.body, context);
4828
2479
  let contents = {};
@@ -4833,49 +2484,9 @@ var de_UpdateSqlInjectionMatchSetCommand = /* @__PURE__ */ __name(async (output,
4833
2484
  };
4834
2485
  return response;
4835
2486
  }, "de_UpdateSqlInjectionMatchSetCommand");
4836
- var de_UpdateSqlInjectionMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
4837
- const parsedOutput = {
4838
- ...output,
4839
- body: await parseErrorBody(output.body, context)
4840
- };
4841
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4842
- switch (errorCode) {
4843
- case "WAFInternalErrorException":
4844
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4845
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4846
- case "WAFInvalidAccountException":
4847
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4848
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4849
- case "WAFInvalidOperationException":
4850
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4851
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4852
- case "WAFInvalidParameterException":
4853
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4854
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4855
- case "WAFLimitsExceededException":
4856
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4857
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4858
- case "WAFNonexistentContainerException":
4859
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4860
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4861
- case "WAFNonexistentItemException":
4862
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4863
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4864
- case "WAFStaleDataException":
4865
- case "com.amazonaws.wafregional#WAFStaleDataException":
4866
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4867
- default:
4868
- const parsedBody = parsedOutput.body;
4869
- return throwDefaultError({
4870
- output,
4871
- parsedBody,
4872
- errorCode
4873
- });
4874
- }
4875
- }, "de_UpdateSqlInjectionMatchSetCommandError");
4876
2487
  var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
4877
2488
  if (output.statusCode >= 300) {
4878
- return de_UpdateWebACLCommandError(output, context);
2489
+ return de_CommandError(output, context);
4879
2490
  }
4880
2491
  const data = await parseBody(output.body, context);
4881
2492
  let contents = {};
@@ -4886,55 +2497,9 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
4886
2497
  };
4887
2498
  return response;
4888
2499
  }, "de_UpdateWebACLCommand");
4889
- var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
4890
- const parsedOutput = {
4891
- ...output,
4892
- body: await parseErrorBody(output.body, context)
4893
- };
4894
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4895
- switch (errorCode) {
4896
- case "WAFInternalErrorException":
4897
- case "com.amazonaws.wafregional#WAFInternalErrorException":
4898
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
4899
- case "WAFInvalidAccountException":
4900
- case "com.amazonaws.wafregional#WAFInvalidAccountException":
4901
- throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4902
- case "WAFInvalidOperationException":
4903
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4904
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4905
- case "WAFInvalidParameterException":
4906
- case "com.amazonaws.wafregional#WAFInvalidParameterException":
4907
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4908
- case "WAFLimitsExceededException":
4909
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4910
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4911
- case "WAFNonexistentContainerException":
4912
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4913
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4914
- case "WAFNonexistentItemException":
4915
- case "com.amazonaws.wafregional#WAFNonexistentItemException":
4916
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
4917
- case "WAFReferencedItemException":
4918
- case "com.amazonaws.wafregional#WAFReferencedItemException":
4919
- throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
4920
- case "WAFStaleDataException":
4921
- case "com.amazonaws.wafregional#WAFStaleDataException":
4922
- throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
4923
- case "WAFSubscriptionNotFoundException":
4924
- case "com.amazonaws.wafregional#WAFSubscriptionNotFoundException":
4925
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
4926
- default:
4927
- const parsedBody = parsedOutput.body;
4928
- return throwDefaultError({
4929
- output,
4930
- parsedBody,
4931
- errorCode
4932
- });
4933
- }
4934
- }, "de_UpdateWebACLCommandError");
4935
2500
  var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context) => {
4936
2501
  if (output.statusCode >= 300) {
4937
- return de_UpdateXssMatchSetCommandError(output, context);
2502
+ return de_CommandError(output, context);
4938
2503
  }
4939
2504
  const data = await parseBody(output.body, context);
4940
2505
  let contents = {};
@@ -4945,7 +2510,7 @@ var de_UpdateXssMatchSetCommand = /* @__PURE__ */ __name(async (output, context)
4945
2510
  };
4946
2511
  return response;
4947
2512
  }, "de_UpdateXssMatchSetCommand");
4948
- var de_UpdateXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2513
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4949
2514
  const parsedOutput = {
4950
2515
  ...output,
4951
2516
  body: await parseErrorBody(output.body, context)
@@ -4958,24 +2523,60 @@ var de_UpdateXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, con
4958
2523
  case "WAFInvalidAccountException":
4959
2524
  case "com.amazonaws.wafregional#WAFInvalidAccountException":
4960
2525
  throw await de_WAFInvalidAccountExceptionRes(parsedOutput, context);
4961
- case "WAFInvalidOperationException":
4962
- case "com.amazonaws.wafregional#WAFInvalidOperationException":
4963
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
4964
2526
  case "WAFInvalidParameterException":
4965
2527
  case "com.amazonaws.wafregional#WAFInvalidParameterException":
4966
2528
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
4967
- case "WAFLimitsExceededException":
4968
- case "com.amazonaws.wafregional#WAFLimitsExceededException":
4969
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4970
- case "WAFNonexistentContainerException":
4971
- case "com.amazonaws.wafregional#WAFNonexistentContainerException":
4972
- throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
4973
2529
  case "WAFNonexistentItemException":
4974
2530
  case "com.amazonaws.wafregional#WAFNonexistentItemException":
4975
2531
  throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2532
+ case "WAFUnavailableEntityException":
2533
+ case "com.amazonaws.wafregional#WAFUnavailableEntityException":
2534
+ throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2535
+ case "WAFDisallowedNameException":
2536
+ case "com.amazonaws.wafregional#WAFDisallowedNameException":
2537
+ throw await de_WAFDisallowedNameExceptionRes(parsedOutput, context);
2538
+ case "WAFLimitsExceededException":
2539
+ case "com.amazonaws.wafregional#WAFLimitsExceededException":
2540
+ throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
4976
2541
  case "WAFStaleDataException":
4977
2542
  case "com.amazonaws.wafregional#WAFStaleDataException":
4978
2543
  throw await de_WAFStaleDataExceptionRes(parsedOutput, context);
2544
+ case "WAFBadRequestException":
2545
+ case "com.amazonaws.wafregional#WAFBadRequestException":
2546
+ throw await de_WAFBadRequestExceptionRes(parsedOutput, context);
2547
+ case "WAFTagOperationException":
2548
+ case "com.amazonaws.wafregional#WAFTagOperationException":
2549
+ throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2550
+ case "WAFTagOperationInternalErrorException":
2551
+ case "com.amazonaws.wafregional#WAFTagOperationInternalErrorException":
2552
+ throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2553
+ case "WAFEntityMigrationException":
2554
+ case "com.amazonaws.wafregional#WAFEntityMigrationException":
2555
+ throw await de_WAFEntityMigrationExceptionRes(parsedOutput, context);
2556
+ case "WAFInvalidOperationException":
2557
+ case "com.amazonaws.wafregional#WAFInvalidOperationException":
2558
+ throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2559
+ case "WAFNonEmptyEntityException":
2560
+ case "com.amazonaws.wafregional#WAFNonEmptyEntityException":
2561
+ throw await de_WAFNonEmptyEntityExceptionRes(parsedOutput, context);
2562
+ case "WAFReferencedItemException":
2563
+ case "com.amazonaws.wafregional#WAFReferencedItemException":
2564
+ throw await de_WAFReferencedItemExceptionRes(parsedOutput, context);
2565
+ case "WAFServiceLinkedRoleErrorException":
2566
+ case "com.amazonaws.wafregional#WAFServiceLinkedRoleErrorException":
2567
+ throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
2568
+ case "WAFInvalidPermissionPolicyException":
2569
+ case "com.amazonaws.wafregional#WAFInvalidPermissionPolicyException":
2570
+ throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
2571
+ case "WAFNonexistentContainerException":
2572
+ case "com.amazonaws.wafregional#WAFNonexistentContainerException":
2573
+ throw await de_WAFNonexistentContainerExceptionRes(parsedOutput, context);
2574
+ case "WAFInvalidRegexPatternException":
2575
+ case "com.amazonaws.wafregional#WAFInvalidRegexPatternException":
2576
+ throw await de_WAFInvalidRegexPatternExceptionRes(parsedOutput, context);
2577
+ case "WAFSubscriptionNotFoundException":
2578
+ case "com.amazonaws.wafregional#WAFSubscriptionNotFoundException":
2579
+ throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
4979
2580
  default:
4980
2581
  const parsedBody = parsedOutput.body;
4981
2582
  return throwDefaultError({
@@ -4984,7 +2585,7 @@ var de_UpdateXssMatchSetCommandError = /* @__PURE__ */ __name(async (output, con
4984
2585
  errorCode
4985
2586
  });
4986
2587
  }
4987
- }, "de_UpdateXssMatchSetCommandError");
2588
+ }, "de_CommandError");
4988
2589
  var de_WAFBadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4989
2590
  const body = parsedOutput.body;
4990
2591
  const deserialized = (0, import_smithy_client._json)(body);