@aws-sdk/client-wafv2 3.504.0 → 3.508.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
@@ -33,6 +33,7 @@ __export(src_exports, {
33
33
  CreateRegexPatternSetCommand: () => CreateRegexPatternSetCommand,
34
34
  CreateRuleGroupCommand: () => CreateRuleGroupCommand,
35
35
  CreateWebACLCommand: () => CreateWebACLCommand,
36
+ DeleteAPIKeyCommand: () => DeleteAPIKeyCommand,
36
37
  DeleteFirewallManagerRuleGroupsCommand: () => DeleteFirewallManagerRuleGroupsCommand,
37
38
  DeleteIPSetCommand: () => DeleteIPSetCommand,
38
39
  DeleteLoggingConfigurationCommand: () => DeleteLoggingConfigurationCommand,
@@ -1096,6 +1097,12 @@ var se_CreateWebACLCommand = /* @__PURE__ */ __name(async (input, context) => {
1096
1097
  body = JSON.stringify(se_CreateWebACLRequest(input, context));
1097
1098
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1098
1099
  }, "se_CreateWebACLCommand");
1100
+ var se_DeleteAPIKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
1101
+ const headers = sharedHeaders("DeleteAPIKey");
1102
+ let body;
1103
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1104
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1105
+ }, "se_DeleteAPIKeyCommand");
1099
1106
  var se_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
1100
1107
  const headers = sharedHeaders("DeleteFirewallManagerRuleGroups");
1101
1108
  let body;
@@ -1374,7 +1381,7 @@ var se_UpdateWebACLCommand = /* @__PURE__ */ __name(async (input, context) => {
1374
1381
  }, "se_UpdateWebACLCommand");
1375
1382
  var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1376
1383
  if (output.statusCode >= 300) {
1377
- return de_AssociateWebACLCommandError(output, context);
1384
+ return de_CommandError(output, context);
1378
1385
  }
1379
1386
  const data = await parseBody(output.body, context);
1380
1387
  let contents = {};
@@ -1385,40 +1392,9 @@ var de_AssociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) =
1385
1392
  };
1386
1393
  return response;
1387
1394
  }, "de_AssociateWebACLCommand");
1388
- var de_AssociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1389
- const parsedOutput = {
1390
- ...output,
1391
- body: await parseErrorBody(output.body, context)
1392
- };
1393
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1394
- switch (errorCode) {
1395
- case "WAFInternalErrorException":
1396
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1397
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1398
- case "WAFInvalidOperationException":
1399
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1400
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1401
- case "WAFInvalidParameterException":
1402
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1403
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1404
- case "WAFNonexistentItemException":
1405
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1406
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1407
- case "WAFUnavailableEntityException":
1408
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
1409
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1410
- default:
1411
- const parsedBody = parsedOutput.body;
1412
- return throwDefaultError({
1413
- output,
1414
- parsedBody,
1415
- errorCode
1416
- });
1417
- }
1418
- }, "de_AssociateWebACLCommandError");
1419
1395
  var de_CheckCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
1420
1396
  if (output.statusCode >= 300) {
1421
- return de_CheckCapacityCommandError(output, context);
1397
+ return de_CommandError(output, context);
1422
1398
  }
1423
1399
  const data = await parseBody(output.body, context);
1424
1400
  let contents = {};
@@ -1429,52 +1405,9 @@ var de_CheckCapacityCommand = /* @__PURE__ */ __name(async (output, context) =>
1429
1405
  };
1430
1406
  return response;
1431
1407
  }, "de_CheckCapacityCommand");
1432
- var de_CheckCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
1433
- const parsedOutput = {
1434
- ...output,
1435
- body: await parseErrorBody(output.body, context)
1436
- };
1437
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1438
- switch (errorCode) {
1439
- case "WAFExpiredManagedRuleGroupVersionException":
1440
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
1441
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
1442
- case "WAFInternalErrorException":
1443
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1444
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1445
- case "WAFInvalidOperationException":
1446
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1447
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1448
- case "WAFInvalidParameterException":
1449
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1450
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1451
- case "WAFInvalidResourceException":
1452
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
1453
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1454
- case "WAFLimitsExceededException":
1455
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1456
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1457
- case "WAFNonexistentItemException":
1458
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1459
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1460
- case "WAFSubscriptionNotFoundException":
1461
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
1462
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
1463
- case "WAFUnavailableEntityException":
1464
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
1465
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1466
- default:
1467
- const parsedBody = parsedOutput.body;
1468
- return throwDefaultError({
1469
- output,
1470
- parsedBody,
1471
- errorCode
1472
- });
1473
- }
1474
- }, "de_CheckCapacityCommandError");
1475
1408
  var de_CreateAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1476
1409
  if (output.statusCode >= 300) {
1477
- return de_CreateAPIKeyCommandError(output, context);
1410
+ return de_CommandError(output, context);
1478
1411
  }
1479
1412
  const data = await parseBody(output.body, context);
1480
1413
  let contents = {};
@@ -1485,37 +1418,9 @@ var de_CreateAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1485
1418
  };
1486
1419
  return response;
1487
1420
  }, "de_CreateAPIKeyCommand");
1488
- var de_CreateAPIKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1489
- const parsedOutput = {
1490
- ...output,
1491
- body: await parseErrorBody(output.body, context)
1492
- };
1493
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1494
- switch (errorCode) {
1495
- case "WAFInternalErrorException":
1496
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1497
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1498
- case "WAFInvalidOperationException":
1499
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1500
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1501
- case "WAFInvalidParameterException":
1502
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1503
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1504
- case "WAFLimitsExceededException":
1505
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1506
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1507
- default:
1508
- const parsedBody = parsedOutput.body;
1509
- return throwDefaultError({
1510
- output,
1511
- parsedBody,
1512
- errorCode
1513
- });
1514
- }
1515
- }, "de_CreateAPIKeyCommandError");
1516
1421
  var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1517
1422
  if (output.statusCode >= 300) {
1518
- return de_CreateIPSetCommandError(output, context);
1423
+ return de_CommandError(output, context);
1519
1424
  }
1520
1425
  const data = await parseBody(output.body, context);
1521
1426
  let contents = {};
@@ -1526,49 +1431,9 @@ var de_CreateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1526
1431
  };
1527
1432
  return response;
1528
1433
  }, "de_CreateIPSetCommand");
1529
- var de_CreateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1530
- const parsedOutput = {
1531
- ...output,
1532
- body: await parseErrorBody(output.body, context)
1533
- };
1534
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
- switch (errorCode) {
1536
- case "WAFDuplicateItemException":
1537
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
1538
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
1539
- case "WAFInternalErrorException":
1540
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1541
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1542
- case "WAFInvalidOperationException":
1543
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1544
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1545
- case "WAFInvalidParameterException":
1546
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1547
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1548
- case "WAFLimitsExceededException":
1549
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1550
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1551
- case "WAFOptimisticLockException":
1552
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1553
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1554
- case "WAFTagOperationException":
1555
- case "com.amazonaws.wafv2#WAFTagOperationException":
1556
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1557
- case "WAFTagOperationInternalErrorException":
1558
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1559
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1560
- default:
1561
- const parsedBody = parsedOutput.body;
1562
- return throwDefaultError({
1563
- output,
1564
- parsedBody,
1565
- errorCode
1566
- });
1567
- }
1568
- }, "de_CreateIPSetCommandError");
1569
1434
  var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1570
1435
  if (output.statusCode >= 300) {
1571
- return de_CreateRegexPatternSetCommandError(output, context);
1436
+ return de_CommandError(output, context);
1572
1437
  }
1573
1438
  const data = await parseBody(output.body, context);
1574
1439
  let contents = {};
@@ -1579,49 +1444,9 @@ var de_CreateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
1579
1444
  };
1580
1445
  return response;
1581
1446
  }, "de_CreateRegexPatternSetCommand");
1582
- var de_CreateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1583
- const parsedOutput = {
1584
- ...output,
1585
- body: await parseErrorBody(output.body, context)
1586
- };
1587
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1588
- switch (errorCode) {
1589
- case "WAFDuplicateItemException":
1590
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
1591
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
1592
- case "WAFInternalErrorException":
1593
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1594
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1595
- case "WAFInvalidOperationException":
1596
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1597
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1598
- case "WAFInvalidParameterException":
1599
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1600
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1601
- case "WAFLimitsExceededException":
1602
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1603
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1604
- case "WAFOptimisticLockException":
1605
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1606
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1607
- case "WAFTagOperationException":
1608
- case "com.amazonaws.wafv2#WAFTagOperationException":
1609
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1610
- case "WAFTagOperationInternalErrorException":
1611
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1612
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1613
- default:
1614
- const parsedBody = parsedOutput.body;
1615
- return throwDefaultError({
1616
- output,
1617
- parsedBody,
1618
- errorCode
1619
- });
1620
- }
1621
- }, "de_CreateRegexPatternSetCommandError");
1622
1447
  var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1623
1448
  if (output.statusCode >= 300) {
1624
- return de_CreateRuleGroupCommandError(output, context);
1449
+ return de_CommandError(output, context);
1625
1450
  }
1626
1451
  const data = await parseBody(output.body, context);
1627
1452
  let contents = {};
@@ -1632,58 +1457,9 @@ var de_CreateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
1632
1457
  };
1633
1458
  return response;
1634
1459
  }, "de_CreateRuleGroupCommand");
1635
- var de_CreateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1636
- const parsedOutput = {
1637
- ...output,
1638
- body: await parseErrorBody(output.body, context)
1639
- };
1640
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1641
- switch (errorCode) {
1642
- case "WAFDuplicateItemException":
1643
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
1644
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
1645
- case "WAFInternalErrorException":
1646
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1647
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1648
- case "WAFInvalidOperationException":
1649
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1650
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1651
- case "WAFInvalidParameterException":
1652
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1653
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1654
- case "WAFLimitsExceededException":
1655
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1656
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1657
- case "WAFNonexistentItemException":
1658
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1659
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1660
- case "WAFOptimisticLockException":
1661
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1662
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1663
- case "WAFSubscriptionNotFoundException":
1664
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
1665
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
1666
- case "WAFTagOperationException":
1667
- case "com.amazonaws.wafv2#WAFTagOperationException":
1668
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1669
- case "WAFTagOperationInternalErrorException":
1670
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1671
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1672
- case "WAFUnavailableEntityException":
1673
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
1674
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1675
- default:
1676
- const parsedBody = parsedOutput.body;
1677
- return throwDefaultError({
1678
- output,
1679
- parsedBody,
1680
- errorCode
1681
- });
1682
- }
1683
- }, "de_CreateRuleGroupCommandError");
1684
1460
  var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1685
1461
  if (output.statusCode >= 300) {
1686
- return de_CreateWebACLCommandError(output, context);
1462
+ return de_CommandError(output, context);
1687
1463
  }
1688
1464
  const data = await parseBody(output.body, context);
1689
1465
  let contents = {};
@@ -1694,67 +1470,22 @@ var de_CreateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1694
1470
  };
1695
1471
  return response;
1696
1472
  }, "de_CreateWebACLCommand");
1697
- var de_CreateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1698
- const parsedOutput = {
1699
- ...output,
1700
- body: await parseErrorBody(output.body, context)
1473
+ var de_DeleteAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1474
+ if (output.statusCode >= 300) {
1475
+ return de_CommandError(output, context);
1476
+ }
1477
+ const data = await parseBody(output.body, context);
1478
+ let contents = {};
1479
+ contents = (0, import_smithy_client._json)(data);
1480
+ const response = {
1481
+ $metadata: deserializeMetadata(output),
1482
+ ...contents
1701
1483
  };
1702
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1703
- switch (errorCode) {
1704
- case "WAFConfigurationWarningException":
1705
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
1706
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
1707
- case "WAFDuplicateItemException":
1708
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
1709
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
1710
- case "WAFExpiredManagedRuleGroupVersionException":
1711
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
1712
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
1713
- case "WAFInternalErrorException":
1714
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1715
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1716
- case "WAFInvalidOperationException":
1717
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1718
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1719
- case "WAFInvalidParameterException":
1720
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1721
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1722
- case "WAFInvalidResourceException":
1723
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
1724
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
1725
- case "WAFLimitsExceededException":
1726
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
1727
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
1728
- case "WAFNonexistentItemException":
1729
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1730
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1731
- case "WAFOptimisticLockException":
1732
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1733
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1734
- case "WAFSubscriptionNotFoundException":
1735
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
1736
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
1737
- case "WAFTagOperationException":
1738
- case "com.amazonaws.wafv2#WAFTagOperationException":
1739
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1740
- case "WAFTagOperationInternalErrorException":
1741
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1742
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1743
- case "WAFUnavailableEntityException":
1744
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
1745
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
1746
- default:
1747
- const parsedBody = parsedOutput.body;
1748
- return throwDefaultError({
1749
- output,
1750
- parsedBody,
1751
- errorCode
1752
- });
1753
- }
1754
- }, "de_CreateWebACLCommandError");
1484
+ return response;
1485
+ }, "de_DeleteAPIKeyCommand");
1755
1486
  var de_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1756
1487
  if (output.statusCode >= 300) {
1757
- return de_DeleteFirewallManagerRuleGroupsCommandError(output, context);
1488
+ return de_CommandError(output, context);
1758
1489
  }
1759
1490
  const data = await parseBody(output.body, context);
1760
1491
  let contents = {};
@@ -1765,40 +1496,9 @@ var de_DeleteFirewallManagerRuleGroupsCommand = /* @__PURE__ */ __name(async (ou
1765
1496
  };
1766
1497
  return response;
1767
1498
  }, "de_DeleteFirewallManagerRuleGroupsCommand");
1768
- var de_DeleteFirewallManagerRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1769
- const parsedOutput = {
1770
- ...output,
1771
- body: await parseErrorBody(output.body, context)
1772
- };
1773
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1774
- switch (errorCode) {
1775
- case "WAFInternalErrorException":
1776
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1777
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1778
- case "WAFInvalidOperationException":
1779
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1780
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1781
- case "WAFInvalidParameterException":
1782
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1783
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1784
- case "WAFNonexistentItemException":
1785
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1786
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1787
- case "WAFOptimisticLockException":
1788
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1789
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1790
- default:
1791
- const parsedBody = parsedOutput.body;
1792
- return throwDefaultError({
1793
- output,
1794
- parsedBody,
1795
- errorCode
1796
- });
1797
- }
1798
- }, "de_DeleteFirewallManagerRuleGroupsCommandError");
1799
1499
  var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1800
1500
  if (output.statusCode >= 300) {
1801
- return de_DeleteIPSetCommandError(output, context);
1501
+ return de_CommandError(output, context);
1802
1502
  }
1803
1503
  const data = await parseBody(output.body, context);
1804
1504
  let contents = {};
@@ -1809,49 +1509,9 @@ var de_DeleteIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1809
1509
  };
1810
1510
  return response;
1811
1511
  }, "de_DeleteIPSetCommand");
1812
- var de_DeleteIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1813
- const parsedOutput = {
1814
- ...output,
1815
- body: await parseErrorBody(output.body, context)
1816
- };
1817
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1818
- switch (errorCode) {
1819
- case "WAFAssociatedItemException":
1820
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
1821
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
1822
- case "WAFInternalErrorException":
1823
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1824
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1825
- case "WAFInvalidOperationException":
1826
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1827
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1828
- case "WAFInvalidParameterException":
1829
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1830
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1831
- case "WAFNonexistentItemException":
1832
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1833
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1834
- case "WAFOptimisticLockException":
1835
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1836
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1837
- case "WAFTagOperationException":
1838
- case "com.amazonaws.wafv2#WAFTagOperationException":
1839
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1840
- case "WAFTagOperationInternalErrorException":
1841
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1842
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1843
- default:
1844
- const parsedBody = parsedOutput.body;
1845
- return throwDefaultError({
1846
- output,
1847
- parsedBody,
1848
- errorCode
1849
- });
1850
- }
1851
- }, "de_DeleteIPSetCommandError");
1852
1512
  var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1853
1513
  if (output.statusCode >= 300) {
1854
- return de_DeleteLoggingConfigurationCommandError(output, context);
1514
+ return de_CommandError(output, context);
1855
1515
  }
1856
1516
  const data = await parseBody(output.body, context);
1857
1517
  let contents = {};
@@ -1862,40 +1522,9 @@ var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
1862
1522
  };
1863
1523
  return response;
1864
1524
  }, "de_DeleteLoggingConfigurationCommand");
1865
- var de_DeleteLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1866
- const parsedOutput = {
1867
- ...output,
1868
- body: await parseErrorBody(output.body, context)
1869
- };
1870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
- switch (errorCode) {
1872
- case "WAFInternalErrorException":
1873
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1874
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1875
- case "WAFInvalidOperationException":
1876
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1877
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1878
- case "WAFInvalidParameterException":
1879
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1880
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1881
- case "WAFNonexistentItemException":
1882
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1883
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1884
- case "WAFOptimisticLockException":
1885
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1886
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1887
- default:
1888
- const parsedBody = parsedOutput.body;
1889
- return throwDefaultError({
1890
- output,
1891
- parsedBody,
1892
- errorCode
1893
- });
1894
- }
1895
- }, "de_DeleteLoggingConfigurationCommandError");
1896
1525
  var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1897
1526
  if (output.statusCode >= 300) {
1898
- return de_DeletePermissionPolicyCommandError(output, context);
1527
+ return de_CommandError(output, context);
1899
1528
  }
1900
1529
  const data = await parseBody(output.body, context);
1901
1530
  let contents = {};
@@ -1906,34 +1535,9 @@ var de_DeletePermissionPolicyCommand = /* @__PURE__ */ __name(async (output, con
1906
1535
  };
1907
1536
  return response;
1908
1537
  }, "de_DeletePermissionPolicyCommand");
1909
- var de_DeletePermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1910
- const parsedOutput = {
1911
- ...output,
1912
- body: await parseErrorBody(output.body, context)
1913
- };
1914
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1915
- switch (errorCode) {
1916
- case "WAFInternalErrorException":
1917
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1918
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1919
- case "WAFInvalidParameterException":
1920
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1921
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1922
- case "WAFNonexistentItemException":
1923
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1924
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1925
- default:
1926
- const parsedBody = parsedOutput.body;
1927
- return throwDefaultError({
1928
- output,
1929
- parsedBody,
1930
- errorCode
1931
- });
1932
- }
1933
- }, "de_DeletePermissionPolicyCommandError");
1934
1538
  var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1935
1539
  if (output.statusCode >= 300) {
1936
- return de_DeleteRegexPatternSetCommandError(output, context);
1540
+ return de_CommandError(output, context);
1937
1541
  }
1938
1542
  const data = await parseBody(output.body, context);
1939
1543
  let contents = {};
@@ -1944,49 +1548,9 @@ var de_DeleteRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
1944
1548
  };
1945
1549
  return response;
1946
1550
  }, "de_DeleteRegexPatternSetCommand");
1947
- var de_DeleteRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1948
- const parsedOutput = {
1949
- ...output,
1950
- body: await parseErrorBody(output.body, context)
1951
- };
1952
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1953
- switch (errorCode) {
1954
- case "WAFAssociatedItemException":
1955
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
1956
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
1957
- case "WAFInternalErrorException":
1958
- case "com.amazonaws.wafv2#WAFInternalErrorException":
1959
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
1960
- case "WAFInvalidOperationException":
1961
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
1962
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
1963
- case "WAFInvalidParameterException":
1964
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
1965
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
1966
- case "WAFNonexistentItemException":
1967
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
1968
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
1969
- case "WAFOptimisticLockException":
1970
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
1971
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
1972
- case "WAFTagOperationException":
1973
- case "com.amazonaws.wafv2#WAFTagOperationException":
1974
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
1975
- case "WAFTagOperationInternalErrorException":
1976
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
1977
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
1978
- default:
1979
- const parsedBody = parsedOutput.body;
1980
- return throwDefaultError({
1981
- output,
1982
- parsedBody,
1983
- errorCode
1984
- });
1985
- }
1986
- }, "de_DeleteRegexPatternSetCommandError");
1987
1551
  var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1988
1552
  if (output.statusCode >= 300) {
1989
- return de_DeleteRuleGroupCommandError(output, context);
1553
+ return de_CommandError(output, context);
1990
1554
  }
1991
1555
  const data = await parseBody(output.body, context);
1992
1556
  let contents = {};
@@ -1997,49 +1561,9 @@ var de_DeleteRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
1997
1561
  };
1998
1562
  return response;
1999
1563
  }, "de_DeleteRuleGroupCommand");
2000
- var de_DeleteRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2001
- const parsedOutput = {
2002
- ...output,
2003
- body: await parseErrorBody(output.body, context)
2004
- };
2005
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2006
- switch (errorCode) {
2007
- case "WAFAssociatedItemException":
2008
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
2009
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
2010
- case "WAFInternalErrorException":
2011
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2012
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2013
- case "WAFInvalidOperationException":
2014
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2015
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2016
- case "WAFInvalidParameterException":
2017
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2018
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2019
- case "WAFNonexistentItemException":
2020
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2021
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2022
- case "WAFOptimisticLockException":
2023
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2024
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2025
- case "WAFTagOperationException":
2026
- case "com.amazonaws.wafv2#WAFTagOperationException":
2027
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2028
- case "WAFTagOperationInternalErrorException":
2029
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2030
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2031
- default:
2032
- const parsedBody = parsedOutput.body;
2033
- return throwDefaultError({
2034
- output,
2035
- parsedBody,
2036
- errorCode
2037
- });
2038
- }
2039
- }, "de_DeleteRuleGroupCommandError");
2040
1564
  var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2041
1565
  if (output.statusCode >= 300) {
2042
- return de_DeleteWebACLCommandError(output, context);
1566
+ return de_CommandError(output, context);
2043
1567
  }
2044
1568
  const data = await parseBody(output.body, context);
2045
1569
  let contents = {};
@@ -2050,84 +1574,22 @@ var de_DeleteWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2050
1574
  };
2051
1575
  return response;
2052
1576
  }, "de_DeleteWebACLCommand");
2053
- var de_DeleteWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2054
- const parsedOutput = {
2055
- ...output,
2056
- body: await parseErrorBody(output.body, context)
2057
- };
2058
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2059
- switch (errorCode) {
2060
- case "WAFAssociatedItemException":
2061
- case "com.amazonaws.wafv2#WAFAssociatedItemException":
2062
- throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
2063
- case "WAFInternalErrorException":
2064
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2065
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2066
- case "WAFInvalidOperationException":
2067
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2068
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2069
- case "WAFInvalidParameterException":
2070
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2071
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2072
- case "WAFNonexistentItemException":
2073
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2074
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2075
- case "WAFOptimisticLockException":
2076
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
2077
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2078
- case "WAFTagOperationException":
2079
- case "com.amazonaws.wafv2#WAFTagOperationException":
2080
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2081
- case "WAFTagOperationInternalErrorException":
2082
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2083
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2084
- default:
2085
- const parsedBody = parsedOutput.body;
2086
- return throwDefaultError({
2087
- output,
2088
- parsedBody,
2089
- errorCode
2090
- });
2091
- }
2092
- }, "de_DeleteWebACLCommandError");
2093
- var de_DescribeAllManagedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
2094
- if (output.statusCode >= 300) {
2095
- return de_DescribeAllManagedProductsCommandError(output, context);
2096
- }
2097
- const data = await parseBody(output.body, context);
2098
- let contents = {};
2099
- contents = (0, import_smithy_client._json)(data);
2100
- const response = {
2101
- $metadata: deserializeMetadata(output),
2102
- ...contents
1577
+ var de_DescribeAllManagedProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
1578
+ if (output.statusCode >= 300) {
1579
+ return de_CommandError(output, context);
1580
+ }
1581
+ const data = await parseBody(output.body, context);
1582
+ let contents = {};
1583
+ contents = (0, import_smithy_client._json)(data);
1584
+ const response = {
1585
+ $metadata: deserializeMetadata(output),
1586
+ ...contents
2103
1587
  };
2104
1588
  return response;
2105
1589
  }, "de_DescribeAllManagedProductsCommand");
2106
- var de_DescribeAllManagedProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2107
- const parsedOutput = {
2108
- ...output,
2109
- body: await parseErrorBody(output.body, context)
2110
- };
2111
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2112
- switch (errorCode) {
2113
- case "WAFInternalErrorException":
2114
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2115
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2116
- case "WAFInvalidOperationException":
2117
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2118
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2119
- default:
2120
- const parsedBody = parsedOutput.body;
2121
- return throwDefaultError({
2122
- output,
2123
- parsedBody,
2124
- errorCode
2125
- });
2126
- }
2127
- }, "de_DescribeAllManagedProductsCommandError");
2128
1590
  var de_DescribeManagedProductsByVendorCommand = /* @__PURE__ */ __name(async (output, context) => {
2129
1591
  if (output.statusCode >= 300) {
2130
- return de_DescribeManagedProductsByVendorCommandError(output, context);
1592
+ return de_CommandError(output, context);
2131
1593
  }
2132
1594
  const data = await parseBody(output.body, context);
2133
1595
  let contents = {};
@@ -2138,34 +1600,9 @@ var de_DescribeManagedProductsByVendorCommand = /* @__PURE__ */ __name(async (ou
2138
1600
  };
2139
1601
  return response;
2140
1602
  }, "de_DescribeManagedProductsByVendorCommand");
2141
- var de_DescribeManagedProductsByVendorCommandError = /* @__PURE__ */ __name(async (output, context) => {
2142
- const parsedOutput = {
2143
- ...output,
2144
- body: await parseErrorBody(output.body, context)
2145
- };
2146
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2147
- switch (errorCode) {
2148
- case "WAFInternalErrorException":
2149
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2150
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2151
- case "WAFInvalidOperationException":
2152
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2153
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2154
- case "WAFInvalidParameterException":
2155
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2156
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2157
- default:
2158
- const parsedBody = parsedOutput.body;
2159
- return throwDefaultError({
2160
- output,
2161
- parsedBody,
2162
- errorCode
2163
- });
2164
- }
2165
- }, "de_DescribeManagedProductsByVendorCommandError");
2166
1603
  var de_DescribeManagedRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2167
1604
  if (output.statusCode >= 300) {
2168
- return de_DescribeManagedRuleGroupCommandError(output, context);
1605
+ return de_CommandError(output, context);
2169
1606
  }
2170
1607
  const data = await parseBody(output.body, context);
2171
1608
  let contents = {};
@@ -2176,43 +1613,9 @@ var de_DescribeManagedRuleGroupCommand = /* @__PURE__ */ __name(async (output, c
2176
1613
  };
2177
1614
  return response;
2178
1615
  }, "de_DescribeManagedRuleGroupCommand");
2179
- var de_DescribeManagedRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2180
- const parsedOutput = {
2181
- ...output,
2182
- body: await parseErrorBody(output.body, context)
2183
- };
2184
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2185
- switch (errorCode) {
2186
- case "WAFExpiredManagedRuleGroupVersionException":
2187
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
2188
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
2189
- case "WAFInternalErrorException":
2190
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2191
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2192
- case "WAFInvalidOperationException":
2193
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2194
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2195
- case "WAFInvalidParameterException":
2196
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2197
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2198
- case "WAFInvalidResourceException":
2199
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
2200
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
2201
- case "WAFNonexistentItemException":
2202
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2203
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2204
- default:
2205
- const parsedBody = parsedOutput.body;
2206
- return throwDefaultError({
2207
- output,
2208
- parsedBody,
2209
- errorCode
2210
- });
2211
- }
2212
- }, "de_DescribeManagedRuleGroupCommandError");
2213
1616
  var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2214
1617
  if (output.statusCode >= 300) {
2215
- return de_DisassociateWebACLCommandError(output, context);
1618
+ return de_CommandError(output, context);
2216
1619
  }
2217
1620
  const data = await parseBody(output.body, context);
2218
1621
  let contents = {};
@@ -2223,37 +1626,9 @@ var de_DisassociateWebACLCommand = /* @__PURE__ */ __name(async (output, context
2223
1626
  };
2224
1627
  return response;
2225
1628
  }, "de_DisassociateWebACLCommand");
2226
- var de_DisassociateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2227
- const parsedOutput = {
2228
- ...output,
2229
- body: await parseErrorBody(output.body, context)
2230
- };
2231
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2232
- switch (errorCode) {
2233
- case "WAFInternalErrorException":
2234
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2235
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2236
- case "WAFInvalidOperationException":
2237
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2238
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2239
- case "WAFInvalidParameterException":
2240
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2241
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2242
- case "WAFNonexistentItemException":
2243
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2244
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2245
- default:
2246
- const parsedBody = parsedOutput.body;
2247
- return throwDefaultError({
2248
- output,
2249
- parsedBody,
2250
- errorCode
2251
- });
2252
- }
2253
- }, "de_DisassociateWebACLCommandError");
2254
1629
  var de_GenerateMobileSdkReleaseUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
2255
1630
  if (output.statusCode >= 300) {
2256
- return de_GenerateMobileSdkReleaseUrlCommandError(output, context);
1631
+ return de_CommandError(output, context);
2257
1632
  }
2258
1633
  const data = await parseBody(output.body, context);
2259
1634
  let contents = {};
@@ -2264,37 +1639,9 @@ var de_GenerateMobileSdkReleaseUrlCommand = /* @__PURE__ */ __name(async (output
2264
1639
  };
2265
1640
  return response;
2266
1641
  }, "de_GenerateMobileSdkReleaseUrlCommand");
2267
- var de_GenerateMobileSdkReleaseUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
2268
- const parsedOutput = {
2269
- ...output,
2270
- body: await parseErrorBody(output.body, context)
2271
- };
2272
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2273
- switch (errorCode) {
2274
- case "WAFInternalErrorException":
2275
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2276
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2277
- case "WAFInvalidOperationException":
2278
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2279
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2280
- case "WAFInvalidParameterException":
2281
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2282
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2283
- case "WAFNonexistentItemException":
2284
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2285
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2286
- default:
2287
- const parsedBody = parsedOutput.body;
2288
- return throwDefaultError({
2289
- output,
2290
- parsedBody,
2291
- errorCode
2292
- });
2293
- }
2294
- }, "de_GenerateMobileSdkReleaseUrlCommandError");
2295
1642
  var de_GetDecryptedAPIKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
2296
1643
  if (output.statusCode >= 300) {
2297
- return de_GetDecryptedAPIKeyCommandError(output, context);
1644
+ return de_CommandError(output, context);
2298
1645
  }
2299
1646
  const data = await parseBody(output.body, context);
2300
1647
  let contents = {};
@@ -2305,37 +1652,9 @@ var de_GetDecryptedAPIKeyCommand = /* @__PURE__ */ __name(async (output, context
2305
1652
  };
2306
1653
  return response;
2307
1654
  }, "de_GetDecryptedAPIKeyCommand");
2308
- var de_GetDecryptedAPIKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2309
- const parsedOutput = {
2310
- ...output,
2311
- body: await parseErrorBody(output.body, context)
2312
- };
2313
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2314
- switch (errorCode) {
2315
- case "WAFInternalErrorException":
2316
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2317
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2318
- case "WAFInvalidOperationException":
2319
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2320
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2321
- case "WAFInvalidParameterException":
2322
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2323
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2324
- case "WAFInvalidResourceException":
2325
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
2326
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
2327
- default:
2328
- const parsedBody = parsedOutput.body;
2329
- return throwDefaultError({
2330
- output,
2331
- parsedBody,
2332
- errorCode
2333
- });
2334
- }
2335
- }, "de_GetDecryptedAPIKeyCommandError");
2336
1655
  var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2337
1656
  if (output.statusCode >= 300) {
2338
- return de_GetIPSetCommandError(output, context);
1657
+ return de_CommandError(output, context);
2339
1658
  }
2340
1659
  const data = await parseBody(output.body, context);
2341
1660
  let contents = {};
@@ -2346,37 +1665,9 @@ var de_GetIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2346
1665
  };
2347
1666
  return response;
2348
1667
  }, "de_GetIPSetCommand");
2349
- var de_GetIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2350
- const parsedOutput = {
2351
- ...output,
2352
- body: await parseErrorBody(output.body, context)
2353
- };
2354
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2355
- switch (errorCode) {
2356
- case "WAFInternalErrorException":
2357
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2358
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2359
- case "WAFInvalidOperationException":
2360
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2361
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2362
- case "WAFInvalidParameterException":
2363
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2364
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2365
- case "WAFNonexistentItemException":
2366
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2367
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2368
- default:
2369
- const parsedBody = parsedOutput.body;
2370
- return throwDefaultError({
2371
- output,
2372
- parsedBody,
2373
- errorCode
2374
- });
2375
- }
2376
- }, "de_GetIPSetCommandError");
2377
1668
  var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2378
1669
  if (output.statusCode >= 300) {
2379
- return de_GetLoggingConfigurationCommandError(output, context);
1670
+ return de_CommandError(output, context);
2380
1671
  }
2381
1672
  const data = await parseBody(output.body, context);
2382
1673
  let contents = {};
@@ -2387,37 +1678,9 @@ var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
2387
1678
  };
2388
1679
  return response;
2389
1680
  }, "de_GetLoggingConfigurationCommand");
2390
- var de_GetLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2391
- const parsedOutput = {
2392
- ...output,
2393
- body: await parseErrorBody(output.body, context)
2394
- };
2395
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2396
- switch (errorCode) {
2397
- case "WAFInternalErrorException":
2398
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2399
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2400
- case "WAFInvalidOperationException":
2401
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2402
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2403
- case "WAFInvalidParameterException":
2404
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2405
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2406
- case "WAFNonexistentItemException":
2407
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2408
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2409
- default:
2410
- const parsedBody = parsedOutput.body;
2411
- return throwDefaultError({
2412
- output,
2413
- parsedBody,
2414
- errorCode
2415
- });
2416
- }
2417
- }, "de_GetLoggingConfigurationCommandError");
2418
1681
  var de_GetManagedRuleSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2419
1682
  if (output.statusCode >= 300) {
2420
- return de_GetManagedRuleSetCommandError(output, context);
1683
+ return de_CommandError(output, context);
2421
1684
  }
2422
1685
  const data = await parseBody(output.body, context);
2423
1686
  let contents = {};
@@ -2428,37 +1691,9 @@ var de_GetManagedRuleSetCommand = /* @__PURE__ */ __name(async (output, context)
2428
1691
  };
2429
1692
  return response;
2430
1693
  }, "de_GetManagedRuleSetCommand");
2431
- var de_GetManagedRuleSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2432
- const parsedOutput = {
2433
- ...output,
2434
- body: await parseErrorBody(output.body, context)
2435
- };
2436
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2437
- switch (errorCode) {
2438
- case "WAFInternalErrorException":
2439
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2440
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2441
- case "WAFInvalidOperationException":
2442
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2443
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2444
- case "WAFInvalidParameterException":
2445
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2446
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2447
- case "WAFNonexistentItemException":
2448
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2449
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2450
- default:
2451
- const parsedBody = parsedOutput.body;
2452
- return throwDefaultError({
2453
- output,
2454
- parsedBody,
2455
- errorCode
2456
- });
2457
- }
2458
- }, "de_GetManagedRuleSetCommandError");
2459
1694
  var de_GetMobileSdkReleaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2460
1695
  if (output.statusCode >= 300) {
2461
- return de_GetMobileSdkReleaseCommandError(output, context);
1696
+ return de_CommandError(output, context);
2462
1697
  }
2463
1698
  const data = await parseBody(output.body, context);
2464
1699
  let contents = {};
@@ -2469,37 +1704,9 @@ var de_GetMobileSdkReleaseCommand = /* @__PURE__ */ __name(async (output, contex
2469
1704
  };
2470
1705
  return response;
2471
1706
  }, "de_GetMobileSdkReleaseCommand");
2472
- var de_GetMobileSdkReleaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
2473
- const parsedOutput = {
2474
- ...output,
2475
- body: await parseErrorBody(output.body, context)
2476
- };
2477
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2478
- switch (errorCode) {
2479
- case "WAFInternalErrorException":
2480
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2481
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2482
- case "WAFInvalidOperationException":
2483
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2484
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2485
- case "WAFInvalidParameterException":
2486
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2487
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2488
- case "WAFNonexistentItemException":
2489
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2490
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2491
- default:
2492
- const parsedBody = parsedOutput.body;
2493
- return throwDefaultError({
2494
- output,
2495
- parsedBody,
2496
- errorCode
2497
- });
2498
- }
2499
- }, "de_GetMobileSdkReleaseCommandError");
2500
1707
  var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2501
1708
  if (output.statusCode >= 300) {
2502
- return de_GetPermissionPolicyCommandError(output, context);
1709
+ return de_CommandError(output, context);
2503
1710
  }
2504
1711
  const data = await parseBody(output.body, context);
2505
1712
  let contents = {};
@@ -2510,34 +1717,9 @@ var de_GetPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
2510
1717
  };
2511
1718
  return response;
2512
1719
  }, "de_GetPermissionPolicyCommand");
2513
- var de_GetPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2514
- const parsedOutput = {
2515
- ...output,
2516
- body: await parseErrorBody(output.body, context)
2517
- };
2518
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2519
- switch (errorCode) {
2520
- case "WAFInternalErrorException":
2521
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2522
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2523
- case "WAFInvalidParameterException":
2524
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2525
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2526
- case "WAFNonexistentItemException":
2527
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2528
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2529
- default:
2530
- const parsedBody = parsedOutput.body;
2531
- return throwDefaultError({
2532
- output,
2533
- parsedBody,
2534
- errorCode
2535
- });
2536
- }
2537
- }, "de_GetPermissionPolicyCommandError");
2538
1720
  var de_GetRateBasedStatementManagedKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
2539
1721
  if (output.statusCode >= 300) {
2540
- return de_GetRateBasedStatementManagedKeysCommandError(output, context);
1722
+ return de_CommandError(output, context);
2541
1723
  }
2542
1724
  const data = await parseBody(output.body, context);
2543
1725
  let contents = {};
@@ -2548,40 +1730,9 @@ var de_GetRateBasedStatementManagedKeysCommand = /* @__PURE__ */ __name(async (o
2548
1730
  };
2549
1731
  return response;
2550
1732
  }, "de_GetRateBasedStatementManagedKeysCommand");
2551
- var de_GetRateBasedStatementManagedKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
2552
- const parsedOutput = {
2553
- ...output,
2554
- body: await parseErrorBody(output.body, context)
2555
- };
2556
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2557
- switch (errorCode) {
2558
- case "WAFInternalErrorException":
2559
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2560
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2561
- case "WAFInvalidOperationException":
2562
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2563
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2564
- case "WAFInvalidParameterException":
2565
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2566
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2567
- case "WAFNonexistentItemException":
2568
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2569
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2570
- case "WAFUnsupportedAggregateKeyTypeException":
2571
- case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
2572
- throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
2573
- default:
2574
- const parsedBody = parsedOutput.body;
2575
- return throwDefaultError({
2576
- output,
2577
- parsedBody,
2578
- errorCode
2579
- });
2580
- }
2581
- }, "de_GetRateBasedStatementManagedKeysCommandError");
2582
1733
  var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2583
1734
  if (output.statusCode >= 300) {
2584
- return de_GetRegexPatternSetCommandError(output, context);
1735
+ return de_CommandError(output, context);
2585
1736
  }
2586
1737
  const data = await parseBody(output.body, context);
2587
1738
  let contents = {};
@@ -2592,37 +1743,9 @@ var de_GetRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context
2592
1743
  };
2593
1744
  return response;
2594
1745
  }, "de_GetRegexPatternSetCommand");
2595
- var de_GetRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2596
- const parsedOutput = {
2597
- ...output,
2598
- body: await parseErrorBody(output.body, context)
2599
- };
2600
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2601
- switch (errorCode) {
2602
- case "WAFInternalErrorException":
2603
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2604
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2605
- case "WAFInvalidOperationException":
2606
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2607
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2608
- case "WAFInvalidParameterException":
2609
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2610
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2611
- case "WAFNonexistentItemException":
2612
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2613
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2614
- default:
2615
- const parsedBody = parsedOutput.body;
2616
- return throwDefaultError({
2617
- output,
2618
- parsedBody,
2619
- errorCode
2620
- });
2621
- }
2622
- }, "de_GetRegexPatternSetCommandError");
2623
1746
  var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2624
1747
  if (output.statusCode >= 300) {
2625
- return de_GetRuleGroupCommandError(output, context);
1748
+ return de_CommandError(output, context);
2626
1749
  }
2627
1750
  const data = await parseBody(output.body, context);
2628
1751
  let contents = {};
@@ -2633,37 +1756,9 @@ var de_GetRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2633
1756
  };
2634
1757
  return response;
2635
1758
  }, "de_GetRuleGroupCommand");
2636
- var de_GetRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2637
- const parsedOutput = {
2638
- ...output,
2639
- body: await parseErrorBody(output.body, context)
2640
- };
2641
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2642
- switch (errorCode) {
2643
- case "WAFInternalErrorException":
2644
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2645
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2646
- case "WAFInvalidOperationException":
2647
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2648
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2649
- case "WAFInvalidParameterException":
2650
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2651
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2652
- case "WAFNonexistentItemException":
2653
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2654
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2655
- default:
2656
- const parsedBody = parsedOutput.body;
2657
- return throwDefaultError({
2658
- output,
2659
- parsedBody,
2660
- errorCode
2661
- });
2662
- }
2663
- }, "de_GetRuleGroupCommandError");
2664
1759
  var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
2665
1760
  if (output.statusCode >= 300) {
2666
- return de_GetSampledRequestsCommandError(output, context);
1761
+ return de_CommandError(output, context);
2667
1762
  }
2668
1763
  const data = await parseBody(output.body, context);
2669
1764
  let contents = {};
@@ -2674,34 +1769,9 @@ var de_GetSampledRequestsCommand = /* @__PURE__ */ __name(async (output, context
2674
1769
  };
2675
1770
  return response;
2676
1771
  }, "de_GetSampledRequestsCommand");
2677
- var de_GetSampledRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2678
- const parsedOutput = {
2679
- ...output,
2680
- body: await parseErrorBody(output.body, context)
2681
- };
2682
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2683
- switch (errorCode) {
2684
- case "WAFInternalErrorException":
2685
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2686
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2687
- case "WAFInvalidParameterException":
2688
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2689
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2690
- case "WAFNonexistentItemException":
2691
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2692
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2693
- default:
2694
- const parsedBody = parsedOutput.body;
2695
- return throwDefaultError({
2696
- output,
2697
- parsedBody,
2698
- errorCode
2699
- });
2700
- }
2701
- }, "de_GetSampledRequestsCommandError");
2702
1772
  var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2703
1773
  if (output.statusCode >= 300) {
2704
- return de_GetWebACLCommandError(output, context);
1774
+ return de_CommandError(output, context);
2705
1775
  }
2706
1776
  const data = await parseBody(output.body, context);
2707
1777
  let contents = {};
@@ -2712,37 +1782,9 @@ var de_GetWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2712
1782
  };
2713
1783
  return response;
2714
1784
  }, "de_GetWebACLCommand");
2715
- var de_GetWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2716
- const parsedOutput = {
2717
- ...output,
2718
- body: await parseErrorBody(output.body, context)
2719
- };
2720
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2721
- switch (errorCode) {
2722
- case "WAFInternalErrorException":
2723
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2724
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2725
- case "WAFInvalidOperationException":
2726
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2727
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2728
- case "WAFInvalidParameterException":
2729
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2730
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2731
- case "WAFNonexistentItemException":
2732
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2733
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2734
- default:
2735
- const parsedBody = parsedOutput.body;
2736
- return throwDefaultError({
2737
- output,
2738
- parsedBody,
2739
- errorCode
2740
- });
2741
- }
2742
- }, "de_GetWebACLCommandError");
2743
1785
  var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2744
1786
  if (output.statusCode >= 300) {
2745
- return de_GetWebACLForResourceCommandError(output, context);
1787
+ return de_CommandError(output, context);
2746
1788
  }
2747
1789
  const data = await parseBody(output.body, context);
2748
1790
  let contents = {};
@@ -2753,40 +1795,9 @@ var de_GetWebACLForResourceCommand = /* @__PURE__ */ __name(async (output, conte
2753
1795
  };
2754
1796
  return response;
2755
1797
  }, "de_GetWebACLForResourceCommand");
2756
- var de_GetWebACLForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2757
- const parsedOutput = {
2758
- ...output,
2759
- body: await parseErrorBody(output.body, context)
2760
- };
2761
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2762
- switch (errorCode) {
2763
- case "WAFInternalErrorException":
2764
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2765
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2766
- case "WAFInvalidOperationException":
2767
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2768
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2769
- case "WAFInvalidParameterException":
2770
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2771
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2772
- case "WAFNonexistentItemException":
2773
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2774
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2775
- case "WAFUnavailableEntityException":
2776
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
2777
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2778
- default:
2779
- const parsedBody = parsedOutput.body;
2780
- return throwDefaultError({
2781
- output,
2782
- parsedBody,
2783
- errorCode
2784
- });
2785
- }
2786
- }, "de_GetWebACLForResourceCommandError");
2787
1798
  var de_ListAPIKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
2788
1799
  if (output.statusCode >= 300) {
2789
- return de_ListAPIKeysCommandError(output, context);
1800
+ return de_CommandError(output, context);
2790
1801
  }
2791
1802
  const data = await parseBody(output.body, context);
2792
1803
  let contents = {};
@@ -2797,37 +1808,9 @@ var de_ListAPIKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
2797
1808
  };
2798
1809
  return response;
2799
1810
  }, "de_ListAPIKeysCommand");
2800
- var de_ListAPIKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
2801
- const parsedOutput = {
2802
- ...output,
2803
- body: await parseErrorBody(output.body, context)
2804
- };
2805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2806
- switch (errorCode) {
2807
- case "WAFInternalErrorException":
2808
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2809
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2810
- case "WAFInvalidOperationException":
2811
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2812
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2813
- case "WAFInvalidParameterException":
2814
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2815
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2816
- case "WAFInvalidResourceException":
2817
- case "com.amazonaws.wafv2#WAFInvalidResourceException":
2818
- throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
2819
- default:
2820
- const parsedBody = parsedOutput.body;
2821
- return throwDefaultError({
2822
- output,
2823
- parsedBody,
2824
- errorCode
2825
- });
2826
- }
2827
- }, "de_ListAPIKeysCommandError");
2828
1811
  var de_ListAvailableManagedRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2829
1812
  if (output.statusCode >= 300) {
2830
- return de_ListAvailableManagedRuleGroupsCommandError(output, context);
1813
+ return de_CommandError(output, context);
2831
1814
  }
2832
1815
  const data = await parseBody(output.body, context);
2833
1816
  let contents = {};
@@ -2838,75 +1821,22 @@ var de_ListAvailableManagedRuleGroupsCommand = /* @__PURE__ */ __name(async (out
2838
1821
  };
2839
1822
  return response;
2840
1823
  }, "de_ListAvailableManagedRuleGroupsCommand");
2841
- var de_ListAvailableManagedRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2842
- const parsedOutput = {
2843
- ...output,
2844
- body: await parseErrorBody(output.body, context)
2845
- };
2846
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2847
- switch (errorCode) {
2848
- case "WAFInternalErrorException":
2849
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2850
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2851
- case "WAFInvalidOperationException":
2852
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2853
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2854
- case "WAFInvalidParameterException":
2855
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2856
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2857
- default:
2858
- const parsedBody = parsedOutput.body;
2859
- return throwDefaultError({
2860
- output,
2861
- parsedBody,
2862
- errorCode
2863
- });
2864
- }
2865
- }, "de_ListAvailableManagedRuleGroupsCommandError");
2866
- var de_ListAvailableManagedRuleGroupVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2867
- if (output.statusCode >= 300) {
2868
- return de_ListAvailableManagedRuleGroupVersionsCommandError(output, context);
2869
- }
2870
- const data = await parseBody(output.body, context);
2871
- let contents = {};
2872
- contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
2873
- const response = {
2874
- $metadata: deserializeMetadata(output),
2875
- ...contents
1824
+ var de_ListAvailableManagedRuleGroupVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1825
+ if (output.statusCode >= 300) {
1826
+ return de_CommandError(output, context);
1827
+ }
1828
+ const data = await parseBody(output.body, context);
1829
+ let contents = {};
1830
+ contents = de_ListAvailableManagedRuleGroupVersionsResponse(data, context);
1831
+ const response = {
1832
+ $metadata: deserializeMetadata(output),
1833
+ ...contents
2876
1834
  };
2877
1835
  return response;
2878
1836
  }, "de_ListAvailableManagedRuleGroupVersionsCommand");
2879
- var de_ListAvailableManagedRuleGroupVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2880
- const parsedOutput = {
2881
- ...output,
2882
- body: await parseErrorBody(output.body, context)
2883
- };
2884
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2885
- switch (errorCode) {
2886
- case "WAFInternalErrorException":
2887
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2888
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2889
- case "WAFInvalidOperationException":
2890
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2891
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2892
- case "WAFInvalidParameterException":
2893
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2894
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2895
- case "WAFNonexistentItemException":
2896
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
2897
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2898
- default:
2899
- const parsedBody = parsedOutput.body;
2900
- return throwDefaultError({
2901
- output,
2902
- parsedBody,
2903
- errorCode
2904
- });
2905
- }
2906
- }, "de_ListAvailableManagedRuleGroupVersionsCommandError");
2907
1837
  var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2908
1838
  if (output.statusCode >= 300) {
2909
- return de_ListIPSetsCommandError(output, context);
1839
+ return de_CommandError(output, context);
2910
1840
  }
2911
1841
  const data = await parseBody(output.body, context);
2912
1842
  let contents = {};
@@ -2917,34 +1847,9 @@ var de_ListIPSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2917
1847
  };
2918
1848
  return response;
2919
1849
  }, "de_ListIPSetsCommand");
2920
- var de_ListIPSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2921
- const parsedOutput = {
2922
- ...output,
2923
- body: await parseErrorBody(output.body, context)
2924
- };
2925
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2926
- switch (errorCode) {
2927
- case "WAFInternalErrorException":
2928
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2929
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2930
- case "WAFInvalidOperationException":
2931
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2932
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2933
- case "WAFInvalidParameterException":
2934
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2935
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2936
- default:
2937
- const parsedBody = parsedOutput.body;
2938
- return throwDefaultError({
2939
- output,
2940
- parsedBody,
2941
- errorCode
2942
- });
2943
- }
2944
- }, "de_ListIPSetsCommandError");
2945
1850
  var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2946
1851
  if (output.statusCode >= 300) {
2947
- return de_ListLoggingConfigurationsCommandError(output, context);
1852
+ return de_CommandError(output, context);
2948
1853
  }
2949
1854
  const data = await parseBody(output.body, context);
2950
1855
  let contents = {};
@@ -2955,34 +1860,9 @@ var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output,
2955
1860
  };
2956
1861
  return response;
2957
1862
  }, "de_ListLoggingConfigurationsCommand");
2958
- var de_ListLoggingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2959
- const parsedOutput = {
2960
- ...output,
2961
- body: await parseErrorBody(output.body, context)
2962
- };
2963
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2964
- switch (errorCode) {
2965
- case "WAFInternalErrorException":
2966
- case "com.amazonaws.wafv2#WAFInternalErrorException":
2967
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
2968
- case "WAFInvalidOperationException":
2969
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
2970
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
2971
- case "WAFInvalidParameterException":
2972
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
2973
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2974
- default:
2975
- const parsedBody = parsedOutput.body;
2976
- return throwDefaultError({
2977
- output,
2978
- parsedBody,
2979
- errorCode
2980
- });
2981
- }
2982
- }, "de_ListLoggingConfigurationsCommandError");
2983
1863
  var de_ListManagedRuleSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2984
1864
  if (output.statusCode >= 300) {
2985
- return de_ListManagedRuleSetsCommandError(output, context);
1865
+ return de_CommandError(output, context);
2986
1866
  }
2987
1867
  const data = await parseBody(output.body, context);
2988
1868
  let contents = {};
@@ -2993,34 +1873,9 @@ var de_ListManagedRuleSetsCommand = /* @__PURE__ */ __name(async (output, contex
2993
1873
  };
2994
1874
  return response;
2995
1875
  }, "de_ListManagedRuleSetsCommand");
2996
- var de_ListManagedRuleSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2997
- const parsedOutput = {
2998
- ...output,
2999
- body: await parseErrorBody(output.body, context)
3000
- };
3001
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3002
- switch (errorCode) {
3003
- case "WAFInternalErrorException":
3004
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3005
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3006
- case "WAFInvalidOperationException":
3007
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3008
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3009
- case "WAFInvalidParameterException":
3010
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3011
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3012
- default:
3013
- const parsedBody = parsedOutput.body;
3014
- return throwDefaultError({
3015
- output,
3016
- parsedBody,
3017
- errorCode
3018
- });
3019
- }
3020
- }, "de_ListManagedRuleSetsCommandError");
3021
1876
  var de_ListMobileSdkReleasesCommand = /* @__PURE__ */ __name(async (output, context) => {
3022
1877
  if (output.statusCode >= 300) {
3023
- return de_ListMobileSdkReleasesCommandError(output, context);
1878
+ return de_CommandError(output, context);
3024
1879
  }
3025
1880
  const data = await parseBody(output.body, context);
3026
1881
  let contents = {};
@@ -3031,34 +1886,9 @@ var de_ListMobileSdkReleasesCommand = /* @__PURE__ */ __name(async (output, cont
3031
1886
  };
3032
1887
  return response;
3033
1888
  }, "de_ListMobileSdkReleasesCommand");
3034
- var de_ListMobileSdkReleasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3035
- const parsedOutput = {
3036
- ...output,
3037
- body: await parseErrorBody(output.body, context)
3038
- };
3039
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3040
- switch (errorCode) {
3041
- case "WAFInternalErrorException":
3042
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3043
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3044
- case "WAFInvalidOperationException":
3045
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3046
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3047
- case "WAFInvalidParameterException":
3048
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3049
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3050
- default:
3051
- const parsedBody = parsedOutput.body;
3052
- return throwDefaultError({
3053
- output,
3054
- parsedBody,
3055
- errorCode
3056
- });
3057
- }
3058
- }, "de_ListMobileSdkReleasesCommandError");
3059
1889
  var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
3060
1890
  if (output.statusCode >= 300) {
3061
- return de_ListRegexPatternSetsCommandError(output, context);
1891
+ return de_CommandError(output, context);
3062
1892
  }
3063
1893
  const data = await parseBody(output.body, context);
3064
1894
  let contents = {};
@@ -3069,34 +1899,9 @@ var de_ListRegexPatternSetsCommand = /* @__PURE__ */ __name(async (output, conte
3069
1899
  };
3070
1900
  return response;
3071
1901
  }, "de_ListRegexPatternSetsCommand");
3072
- var de_ListRegexPatternSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3073
- const parsedOutput = {
3074
- ...output,
3075
- body: await parseErrorBody(output.body, context)
3076
- };
3077
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3078
- switch (errorCode) {
3079
- case "WAFInternalErrorException":
3080
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3081
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3082
- case "WAFInvalidOperationException":
3083
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3084
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3085
- case "WAFInvalidParameterException":
3086
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3087
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3088
- default:
3089
- const parsedBody = parsedOutput.body;
3090
- return throwDefaultError({
3091
- output,
3092
- parsedBody,
3093
- errorCode
3094
- });
3095
- }
3096
- }, "de_ListRegexPatternSetsCommandError");
3097
1902
  var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3098
1903
  if (output.statusCode >= 300) {
3099
- return de_ListResourcesForWebACLCommandError(output, context);
1904
+ return de_CommandError(output, context);
3100
1905
  }
3101
1906
  const data = await parseBody(output.body, context);
3102
1907
  let contents = {};
@@ -3107,37 +1912,9 @@ var de_ListResourcesForWebACLCommand = /* @__PURE__ */ __name(async (output, con
3107
1912
  };
3108
1913
  return response;
3109
1914
  }, "de_ListResourcesForWebACLCommand");
3110
- var de_ListResourcesForWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
3111
- const parsedOutput = {
3112
- ...output,
3113
- body: await parseErrorBody(output.body, context)
3114
- };
3115
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3116
- switch (errorCode) {
3117
- case "WAFInternalErrorException":
3118
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3119
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3120
- case "WAFInvalidOperationException":
3121
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3122
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3123
- case "WAFInvalidParameterException":
3124
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3125
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3126
- case "WAFNonexistentItemException":
3127
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3128
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3129
- default:
3130
- const parsedBody = parsedOutput.body;
3131
- return throwDefaultError({
3132
- output,
3133
- parsedBody,
3134
- errorCode
3135
- });
3136
- }
3137
- }, "de_ListResourcesForWebACLCommandError");
3138
1915
  var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
3139
1916
  if (output.statusCode >= 300) {
3140
- return de_ListRuleGroupsCommandError(output, context);
1917
+ return de_CommandError(output, context);
3141
1918
  }
3142
1919
  const data = await parseBody(output.body, context);
3143
1920
  let contents = {};
@@ -3148,34 +1925,9 @@ var de_ListRuleGroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
3148
1925
  };
3149
1926
  return response;
3150
1927
  }, "de_ListRuleGroupsCommand");
3151
- var de_ListRuleGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3152
- const parsedOutput = {
3153
- ...output,
3154
- body: await parseErrorBody(output.body, context)
3155
- };
3156
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3157
- switch (errorCode) {
3158
- case "WAFInternalErrorException":
3159
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3160
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3161
- case "WAFInvalidOperationException":
3162
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3163
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3164
- case "WAFInvalidParameterException":
3165
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3166
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3167
- default:
3168
- const parsedBody = parsedOutput.body;
3169
- return throwDefaultError({
3170
- output,
3171
- parsedBody,
3172
- errorCode
3173
- });
3174
- }
3175
- }, "de_ListRuleGroupsCommandError");
3176
1928
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3177
1929
  if (output.statusCode >= 300) {
3178
- return de_ListTagsForResourceCommandError(output, context);
1930
+ return de_CommandError(output, context);
3179
1931
  }
3180
1932
  const data = await parseBody(output.body, context);
3181
1933
  let contents = {};
@@ -3186,43 +1938,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
3186
1938
  };
3187
1939
  return response;
3188
1940
  }, "de_ListTagsForResourceCommand");
3189
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3190
- const parsedOutput = {
3191
- ...output,
3192
- body: await parseErrorBody(output.body, context)
3193
- };
3194
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3195
- switch (errorCode) {
3196
- case "WAFInternalErrorException":
3197
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3198
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3199
- case "WAFInvalidOperationException":
3200
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3201
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3202
- case "WAFInvalidParameterException":
3203
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3204
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3205
- case "WAFNonexistentItemException":
3206
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3207
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3208
- case "WAFTagOperationException":
3209
- case "com.amazonaws.wafv2#WAFTagOperationException":
3210
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
3211
- case "WAFTagOperationInternalErrorException":
3212
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
3213
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
3214
- default:
3215
- const parsedBody = parsedOutput.body;
3216
- return throwDefaultError({
3217
- output,
3218
- parsedBody,
3219
- errorCode
3220
- });
3221
- }
3222
- }, "de_ListTagsForResourceCommandError");
3223
1941
  var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
3224
1942
  if (output.statusCode >= 300) {
3225
- return de_ListWebACLsCommandError(output, context);
1943
+ return de_CommandError(output, context);
3226
1944
  }
3227
1945
  const data = await parseBody(output.body, context);
3228
1946
  let contents = {};
@@ -3233,34 +1951,9 @@ var de_ListWebACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
3233
1951
  };
3234
1952
  return response;
3235
1953
  }, "de_ListWebACLsCommand");
3236
- var de_ListWebACLsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3237
- const parsedOutput = {
3238
- ...output,
3239
- body: await parseErrorBody(output.body, context)
3240
- };
3241
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3242
- switch (errorCode) {
3243
- case "WAFInternalErrorException":
3244
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3245
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3246
- case "WAFInvalidOperationException":
3247
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3248
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3249
- case "WAFInvalidParameterException":
3250
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3251
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3252
- default:
3253
- const parsedBody = parsedOutput.body;
3254
- return throwDefaultError({
3255
- output,
3256
- parsedBody,
3257
- errorCode
3258
- });
3259
- }
3260
- }, "de_ListWebACLsCommandError");
3261
1954
  var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3262
1955
  if (output.statusCode >= 300) {
3263
- return de_PutLoggingConfigurationCommandError(output, context);
1956
+ return de_CommandError(output, context);
3264
1957
  }
3265
1958
  const data = await parseBody(output.body, context);
3266
1959
  let contents = {};
@@ -3271,49 +1964,9 @@ var de_PutLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, co
3271
1964
  };
3272
1965
  return response;
3273
1966
  }, "de_PutLoggingConfigurationCommand");
3274
- var de_PutLoggingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3275
- const parsedOutput = {
3276
- ...output,
3277
- body: await parseErrorBody(output.body, context)
3278
- };
3279
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3280
- switch (errorCode) {
3281
- case "WAFInternalErrorException":
3282
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3283
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3284
- case "WAFInvalidOperationException":
3285
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3286
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3287
- case "WAFInvalidParameterException":
3288
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3289
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3290
- case "WAFLimitsExceededException":
3291
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
3292
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3293
- case "WAFLogDestinationPermissionIssueException":
3294
- case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
3295
- throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
3296
- case "WAFNonexistentItemException":
3297
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3298
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3299
- case "WAFOptimisticLockException":
3300
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3301
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3302
- case "WAFServiceLinkedRoleErrorException":
3303
- case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
3304
- throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
3305
- default:
3306
- const parsedBody = parsedOutput.body;
3307
- return throwDefaultError({
3308
- output,
3309
- parsedBody,
3310
- errorCode
3311
- });
3312
- }
3313
- }, "de_PutLoggingConfigurationCommandError");
3314
1967
  var de_PutManagedRuleSetVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3315
1968
  if (output.statusCode >= 300) {
3316
- return de_PutManagedRuleSetVersionsCommandError(output, context);
1969
+ return de_CommandError(output, context);
3317
1970
  }
3318
1971
  const data = await parseBody(output.body, context);
3319
1972
  let contents = {};
@@ -3324,40 +1977,9 @@ var de_PutManagedRuleSetVersionsCommand = /* @__PURE__ */ __name(async (output,
3324
1977
  };
3325
1978
  return response;
3326
1979
  }, "de_PutManagedRuleSetVersionsCommand");
3327
- var de_PutManagedRuleSetVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3328
- const parsedOutput = {
3329
- ...output,
3330
- body: await parseErrorBody(output.body, context)
3331
- };
3332
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3333
- switch (errorCode) {
3334
- case "WAFInternalErrorException":
3335
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3336
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3337
- case "WAFInvalidOperationException":
3338
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3339
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3340
- case "WAFInvalidParameterException":
3341
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3342
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3343
- case "WAFNonexistentItemException":
3344
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3345
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3346
- case "WAFOptimisticLockException":
3347
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3348
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3349
- default:
3350
- const parsedBody = parsedOutput.body;
3351
- return throwDefaultError({
3352
- output,
3353
- parsedBody,
3354
- errorCode
3355
- });
3356
- }
3357
- }, "de_PutManagedRuleSetVersionsCommandError");
3358
1980
  var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3359
1981
  if (output.statusCode >= 300) {
3360
- return de_PutPermissionPolicyCommandError(output, context);
1982
+ return de_CommandError(output, context);
3361
1983
  }
3362
1984
  const data = await parseBody(output.body, context);
3363
1985
  let contents = {};
@@ -3367,88 +1989,23 @@ var de_PutPermissionPolicyCommand = /* @__PURE__ */ __name(async (output, contex
3367
1989
  ...contents
3368
1990
  };
3369
1991
  return response;
3370
- }, "de_PutPermissionPolicyCommand");
3371
- var de_PutPermissionPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3372
- const parsedOutput = {
3373
- ...output,
3374
- body: await parseErrorBody(output.body, context)
3375
- };
3376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3377
- switch (errorCode) {
3378
- case "WAFInternalErrorException":
3379
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3380
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3381
- case "WAFInvalidParameterException":
3382
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3383
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3384
- case "WAFInvalidPermissionPolicyException":
3385
- case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
3386
- throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
3387
- case "WAFNonexistentItemException":
3388
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3389
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3390
- default:
3391
- const parsedBody = parsedOutput.body;
3392
- return throwDefaultError({
3393
- output,
3394
- parsedBody,
3395
- errorCode
3396
- });
3397
- }
3398
- }, "de_PutPermissionPolicyCommandError");
3399
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3400
- if (output.statusCode >= 300) {
3401
- return de_TagResourceCommandError(output, context);
3402
- }
3403
- const data = await parseBody(output.body, context);
3404
- let contents = {};
3405
- contents = (0, import_smithy_client._json)(data);
3406
- const response = {
3407
- $metadata: deserializeMetadata(output),
3408
- ...contents
3409
- };
3410
- return response;
3411
- }, "de_TagResourceCommand");
3412
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3413
- const parsedOutput = {
3414
- ...output,
3415
- body: await parseErrorBody(output.body, context)
3416
- };
3417
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3418
- switch (errorCode) {
3419
- case "WAFInternalErrorException":
3420
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3421
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3422
- case "WAFInvalidOperationException":
3423
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3424
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3425
- case "WAFInvalidParameterException":
3426
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3427
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3428
- case "WAFLimitsExceededException":
3429
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
3430
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3431
- case "WAFNonexistentItemException":
3432
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3433
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3434
- case "WAFTagOperationException":
3435
- case "com.amazonaws.wafv2#WAFTagOperationException":
3436
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
3437
- case "WAFTagOperationInternalErrorException":
3438
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
3439
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
3440
- default:
3441
- const parsedBody = parsedOutput.body;
3442
- return throwDefaultError({
3443
- output,
3444
- parsedBody,
3445
- errorCode
3446
- });
1992
+ }, "de_PutPermissionPolicyCommand");
1993
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1994
+ if (output.statusCode >= 300) {
1995
+ return de_CommandError(output, context);
3447
1996
  }
3448
- }, "de_TagResourceCommandError");
1997
+ const data = await parseBody(output.body, context);
1998
+ let contents = {};
1999
+ contents = (0, import_smithy_client._json)(data);
2000
+ const response = {
2001
+ $metadata: deserializeMetadata(output),
2002
+ ...contents
2003
+ };
2004
+ return response;
2005
+ }, "de_TagResourceCommand");
3449
2006
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3450
2007
  if (output.statusCode >= 300) {
3451
- return de_UntagResourceCommandError(output, context);
2008
+ return de_CommandError(output, context);
3452
2009
  }
3453
2010
  const data = await parseBody(output.body, context);
3454
2011
  let contents = {};
@@ -3459,43 +2016,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3459
2016
  };
3460
2017
  return response;
3461
2018
  }, "de_UntagResourceCommand");
3462
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3463
- const parsedOutput = {
3464
- ...output,
3465
- body: await parseErrorBody(output.body, context)
3466
- };
3467
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3468
- switch (errorCode) {
3469
- case "WAFInternalErrorException":
3470
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3471
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3472
- case "WAFInvalidOperationException":
3473
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3474
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3475
- case "WAFInvalidParameterException":
3476
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3477
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3478
- case "WAFNonexistentItemException":
3479
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3480
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3481
- case "WAFTagOperationException":
3482
- case "com.amazonaws.wafv2#WAFTagOperationException":
3483
- throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
3484
- case "WAFTagOperationInternalErrorException":
3485
- case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
3486
- throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
3487
- default:
3488
- const parsedBody = parsedOutput.body;
3489
- return throwDefaultError({
3490
- output,
3491
- parsedBody,
3492
- errorCode
3493
- });
3494
- }
3495
- }, "de_UntagResourceCommandError");
3496
2019
  var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3497
2020
  if (output.statusCode >= 300) {
3498
- return de_UpdateIPSetCommandError(output, context);
2021
+ return de_CommandError(output, context);
3499
2022
  }
3500
2023
  const data = await parseBody(output.body, context);
3501
2024
  let contents = {};
@@ -3506,46 +2029,9 @@ var de_UpdateIPSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3506
2029
  };
3507
2030
  return response;
3508
2031
  }, "de_UpdateIPSetCommand");
3509
- var de_UpdateIPSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3510
- const parsedOutput = {
3511
- ...output,
3512
- body: await parseErrorBody(output.body, context)
3513
- };
3514
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3515
- switch (errorCode) {
3516
- case "WAFDuplicateItemException":
3517
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
3518
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
3519
- case "WAFInternalErrorException":
3520
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3521
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3522
- case "WAFInvalidOperationException":
3523
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3524
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3525
- case "WAFInvalidParameterException":
3526
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3527
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3528
- case "WAFLimitsExceededException":
3529
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
3530
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3531
- case "WAFNonexistentItemException":
3532
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3533
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3534
- case "WAFOptimisticLockException":
3535
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3536
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3537
- default:
3538
- const parsedBody = parsedOutput.body;
3539
- return throwDefaultError({
3540
- output,
3541
- parsedBody,
3542
- errorCode
3543
- });
3544
- }
3545
- }, "de_UpdateIPSetCommandError");
3546
2032
  var de_UpdateManagedRuleSetVersionExpiryDateCommand = /* @__PURE__ */ __name(async (output, context) => {
3547
2033
  if (output.statusCode >= 300) {
3548
- return de_UpdateManagedRuleSetVersionExpiryDateCommandError(output, context);
2034
+ return de_CommandError(output, context);
3549
2035
  }
3550
2036
  const data = await parseBody(output.body, context);
3551
2037
  let contents = {};
@@ -3556,40 +2042,9 @@ var de_UpdateManagedRuleSetVersionExpiryDateCommand = /* @__PURE__ */ __name(asy
3556
2042
  };
3557
2043
  return response;
3558
2044
  }, "de_UpdateManagedRuleSetVersionExpiryDateCommand");
3559
- var de_UpdateManagedRuleSetVersionExpiryDateCommandError = /* @__PURE__ */ __name(async (output, context) => {
3560
- const parsedOutput = {
3561
- ...output,
3562
- body: await parseErrorBody(output.body, context)
3563
- };
3564
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3565
- switch (errorCode) {
3566
- case "WAFInternalErrorException":
3567
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3568
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3569
- case "WAFInvalidOperationException":
3570
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3571
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3572
- case "WAFInvalidParameterException":
3573
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3574
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3575
- case "WAFNonexistentItemException":
3576
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3577
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3578
- case "WAFOptimisticLockException":
3579
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3580
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3581
- default:
3582
- const parsedBody = parsedOutput.body;
3583
- return throwDefaultError({
3584
- output,
3585
- parsedBody,
3586
- errorCode
3587
- });
3588
- }
3589
- }, "de_UpdateManagedRuleSetVersionExpiryDateCommandError");
3590
2045
  var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3591
2046
  if (output.statusCode >= 300) {
3592
- return de_UpdateRegexPatternSetCommandError(output, context);
2047
+ return de_CommandError(output, context);
3593
2048
  }
3594
2049
  const data = await parseBody(output.body, context);
3595
2050
  let contents = {};
@@ -3600,46 +2055,9 @@ var de_UpdateRegexPatternSetCommand = /* @__PURE__ */ __name(async (output, cont
3600
2055
  };
3601
2056
  return response;
3602
2057
  }, "de_UpdateRegexPatternSetCommand");
3603
- var de_UpdateRegexPatternSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3604
- const parsedOutput = {
3605
- ...output,
3606
- body: await parseErrorBody(output.body, context)
3607
- };
3608
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3609
- switch (errorCode) {
3610
- case "WAFDuplicateItemException":
3611
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
3612
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
3613
- case "WAFInternalErrorException":
3614
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3615
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3616
- case "WAFInvalidOperationException":
3617
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3618
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3619
- case "WAFInvalidParameterException":
3620
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3621
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3622
- case "WAFLimitsExceededException":
3623
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
3624
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3625
- case "WAFNonexistentItemException":
3626
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3627
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3628
- case "WAFOptimisticLockException":
3629
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3630
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3631
- default:
3632
- const parsedBody = parsedOutput.body;
3633
- return throwDefaultError({
3634
- output,
3635
- parsedBody,
3636
- errorCode
3637
- });
3638
- }
3639
- }, "de_UpdateRegexPatternSetCommandError");
3640
2058
  var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3641
2059
  if (output.statusCode >= 300) {
3642
- return de_UpdateRuleGroupCommandError(output, context);
2060
+ return de_CommandError(output, context);
3643
2061
  }
3644
2062
  const data = await parseBody(output.body, context);
3645
2063
  let contents = {};
@@ -3650,55 +2068,9 @@ var de_UpdateRuleGroupCommand = /* @__PURE__ */ __name(async (output, context) =
3650
2068
  };
3651
2069
  return response;
3652
2070
  }, "de_UpdateRuleGroupCommand");
3653
- var de_UpdateRuleGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3654
- const parsedOutput = {
3655
- ...output,
3656
- body: await parseErrorBody(output.body, context)
3657
- };
3658
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3659
- switch (errorCode) {
3660
- case "WAFConfigurationWarningException":
3661
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
3662
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
3663
- case "WAFDuplicateItemException":
3664
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
3665
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
3666
- case "WAFInternalErrorException":
3667
- case "com.amazonaws.wafv2#WAFInternalErrorException":
3668
- throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
3669
- case "WAFInvalidOperationException":
3670
- case "com.amazonaws.wafv2#WAFInvalidOperationException":
3671
- throw await de_WAFInvalidOperationExceptionRes(parsedOutput, context);
3672
- case "WAFInvalidParameterException":
3673
- case "com.amazonaws.wafv2#WAFInvalidParameterException":
3674
- throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
3675
- case "WAFLimitsExceededException":
3676
- case "com.amazonaws.wafv2#WAFLimitsExceededException":
3677
- throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3678
- case "WAFNonexistentItemException":
3679
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3680
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3681
- case "WAFOptimisticLockException":
3682
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3683
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3684
- case "WAFSubscriptionNotFoundException":
3685
- case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
3686
- throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
3687
- case "WAFUnavailableEntityException":
3688
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
3689
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
3690
- default:
3691
- const parsedBody = parsedOutput.body;
3692
- return throwDefaultError({
3693
- output,
3694
- parsedBody,
3695
- errorCode
3696
- });
3697
- }
3698
- }, "de_UpdateRuleGroupCommandError");
3699
2071
  var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3700
2072
  if (output.statusCode >= 300) {
3701
- return de_UpdateWebACLCommandError(output, context);
2073
+ return de_CommandError(output, context);
3702
2074
  }
3703
2075
  const data = await parseBody(output.body, context);
3704
2076
  let contents = {};
@@ -3709,22 +2081,13 @@ var de_UpdateWebACLCommand = /* @__PURE__ */ __name(async (output, context) => {
3709
2081
  };
3710
2082
  return response;
3711
2083
  }, "de_UpdateWebACLCommand");
3712
- var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
2084
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3713
2085
  const parsedOutput = {
3714
2086
  ...output,
3715
2087
  body: await parseErrorBody(output.body, context)
3716
2088
  };
3717
2089
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3718
2090
  switch (errorCode) {
3719
- case "WAFConfigurationWarningException":
3720
- case "com.amazonaws.wafv2#WAFConfigurationWarningException":
3721
- throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
3722
- case "WAFDuplicateItemException":
3723
- case "com.amazonaws.wafv2#WAFDuplicateItemException":
3724
- throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
3725
- case "WAFExpiredManagedRuleGroupVersionException":
3726
- case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
3727
- throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
3728
2091
  case "WAFInternalErrorException":
3729
2092
  case "com.amazonaws.wafv2#WAFInternalErrorException":
3730
2093
  throw await de_WAFInternalErrorExceptionRes(parsedOutput, context);
@@ -3734,24 +2097,54 @@ var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context)
3734
2097
  case "WAFInvalidParameterException":
3735
2098
  case "com.amazonaws.wafv2#WAFInvalidParameterException":
3736
2099
  throw await de_WAFInvalidParameterExceptionRes(parsedOutput, context);
2100
+ case "WAFNonexistentItemException":
2101
+ case "com.amazonaws.wafv2#WAFNonexistentItemException":
2102
+ throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
2103
+ case "WAFUnavailableEntityException":
2104
+ case "com.amazonaws.wafv2#WAFUnavailableEntityException":
2105
+ throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2106
+ case "WAFExpiredManagedRuleGroupVersionException":
2107
+ case "com.amazonaws.wafv2#WAFExpiredManagedRuleGroupVersionException":
2108
+ throw await de_WAFExpiredManagedRuleGroupVersionExceptionRes(parsedOutput, context);
3737
2109
  case "WAFInvalidResourceException":
3738
2110
  case "com.amazonaws.wafv2#WAFInvalidResourceException":
3739
2111
  throw await de_WAFInvalidResourceExceptionRes(parsedOutput, context);
3740
2112
  case "WAFLimitsExceededException":
3741
2113
  case "com.amazonaws.wafv2#WAFLimitsExceededException":
3742
2114
  throw await de_WAFLimitsExceededExceptionRes(parsedOutput, context);
3743
- case "WAFNonexistentItemException":
3744
- case "com.amazonaws.wafv2#WAFNonexistentItemException":
3745
- throw await de_WAFNonexistentItemExceptionRes(parsedOutput, context);
3746
- case "WAFOptimisticLockException":
3747
- case "com.amazonaws.wafv2#WAFOptimisticLockException":
3748
- throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
3749
2115
  case "WAFSubscriptionNotFoundException":
3750
2116
  case "com.amazonaws.wafv2#WAFSubscriptionNotFoundException":
3751
2117
  throw await de_WAFSubscriptionNotFoundExceptionRes(parsedOutput, context);
3752
- case "WAFUnavailableEntityException":
3753
- case "com.amazonaws.wafv2#WAFUnavailableEntityException":
3754
- throw await de_WAFUnavailableEntityExceptionRes(parsedOutput, context);
2118
+ case "WAFDuplicateItemException":
2119
+ case "com.amazonaws.wafv2#WAFDuplicateItemException":
2120
+ throw await de_WAFDuplicateItemExceptionRes(parsedOutput, context);
2121
+ case "WAFOptimisticLockException":
2122
+ case "com.amazonaws.wafv2#WAFOptimisticLockException":
2123
+ throw await de_WAFOptimisticLockExceptionRes(parsedOutput, context);
2124
+ case "WAFTagOperationException":
2125
+ case "com.amazonaws.wafv2#WAFTagOperationException":
2126
+ throw await de_WAFTagOperationExceptionRes(parsedOutput, context);
2127
+ case "WAFTagOperationInternalErrorException":
2128
+ case "com.amazonaws.wafv2#WAFTagOperationInternalErrorException":
2129
+ throw await de_WAFTagOperationInternalErrorExceptionRes(parsedOutput, context);
2130
+ case "WAFConfigurationWarningException":
2131
+ case "com.amazonaws.wafv2#WAFConfigurationWarningException":
2132
+ throw await de_WAFConfigurationWarningExceptionRes(parsedOutput, context);
2133
+ case "WAFAssociatedItemException":
2134
+ case "com.amazonaws.wafv2#WAFAssociatedItemException":
2135
+ throw await de_WAFAssociatedItemExceptionRes(parsedOutput, context);
2136
+ case "WAFUnsupportedAggregateKeyTypeException":
2137
+ case "com.amazonaws.wafv2#WAFUnsupportedAggregateKeyTypeException":
2138
+ throw await de_WAFUnsupportedAggregateKeyTypeExceptionRes(parsedOutput, context);
2139
+ case "WAFLogDestinationPermissionIssueException":
2140
+ case "com.amazonaws.wafv2#WAFLogDestinationPermissionIssueException":
2141
+ throw await de_WAFLogDestinationPermissionIssueExceptionRes(parsedOutput, context);
2142
+ case "WAFServiceLinkedRoleErrorException":
2143
+ case "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException":
2144
+ throw await de_WAFServiceLinkedRoleErrorExceptionRes(parsedOutput, context);
2145
+ case "WAFInvalidPermissionPolicyException":
2146
+ case "com.amazonaws.wafv2#WAFInvalidPermissionPolicyException":
2147
+ throw await de_WAFInvalidPermissionPolicyExceptionRes(parsedOutput, context);
3755
2148
  default:
3756
2149
  const parsedBody = parsedOutput.body;
3757
2150
  return throwDefaultError({
@@ -3760,7 +2153,7 @@ var de_UpdateWebACLCommandError = /* @__PURE__ */ __name(async (output, context)
3760
2153
  errorCode
3761
2154
  });
3762
2155
  }
3763
- }, "de_UpdateWebACLCommandError");
2156
+ }, "de_CommandError");
3764
2157
  var de_WAFAssociatedItemExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3765
2158
  const body = parsedOutput.body;
3766
2159
  const deserialized = (0, import_smithy_client._json)(body);
@@ -4610,6 +3003,23 @@ var _CreateWebACLCommand = class _CreateWebACLCommand extends import_smithy_clie
4610
3003
  __name(_CreateWebACLCommand, "CreateWebACLCommand");
4611
3004
  var CreateWebACLCommand = _CreateWebACLCommand;
4612
3005
 
3006
+ // src/commands/DeleteAPIKeyCommand.ts
3007
+
3008
+
3009
+
3010
+
3011
+ var _DeleteAPIKeyCommand = class _DeleteAPIKeyCommand extends import_smithy_client.Command.classBuilder().ep({
3012
+ ...commonParams
3013
+ }).m(function(Command, cs, config, o) {
3014
+ return [
3015
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3016
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3017
+ ];
3018
+ }).s("AWSWAF_20190729", "DeleteAPIKey", {}).n("WAFV2Client", "DeleteAPIKeyCommand").f(void 0, void 0).ser(se_DeleteAPIKeyCommand).de(de_DeleteAPIKeyCommand).build() {
3019
+ };
3020
+ __name(_DeleteAPIKeyCommand, "DeleteAPIKeyCommand");
3021
+ var DeleteAPIKeyCommand = _DeleteAPIKeyCommand;
3022
+
4613
3023
  // src/commands/DeleteFirewallManagerRuleGroupsCommand.ts
4614
3024
 
4615
3025
 
@@ -5401,6 +3811,7 @@ var commands = {
5401
3811
  CreateRegexPatternSetCommand,
5402
3812
  CreateRuleGroupCommand,
5403
3813
  CreateWebACLCommand,
3814
+ DeleteAPIKeyCommand,
5404
3815
  DeleteFirewallManagerRuleGroupsCommand,
5405
3816
  DeleteIPSetCommand,
5406
3817
  DeleteLoggingConfigurationCommand,
@@ -5471,6 +3882,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
5471
3882
  CreateRegexPatternSetCommand,
5472
3883
  CreateRuleGroupCommand,
5473
3884
  CreateWebACLCommand,
3885
+ DeleteAPIKeyCommand,
5474
3886
  DeleteFirewallManagerRuleGroupsCommand,
5475
3887
  DeleteIPSetCommand,
5476
3888
  DeleteLoggingConfigurationCommand,