@aws-sdk/client-memorydb 3.504.0 → 3.509.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
@@ -1418,7 +1418,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
1418
1418
  }, "se_UpdateUserCommand");
1419
1419
  var de_BatchUpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1420
1420
  if (output.statusCode >= 300) {
1421
- return de_BatchUpdateClusterCommandError(output, context);
1421
+ return de_CommandError(output, context);
1422
1422
  }
1423
1423
  const data = await parseBody(output.body, context);
1424
1424
  let contents = {};
@@ -1429,31 +1429,9 @@ var de_BatchUpdateClusterCommand = /* @__PURE__ */ __name(async (output, context
1429
1429
  };
1430
1430
  return response;
1431
1431
  }, "de_BatchUpdateClusterCommand");
1432
- var de_BatchUpdateClusterCommandError = /* @__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 "InvalidParameterValueException":
1440
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1441
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1442
- case "ServiceUpdateNotFoundFault":
1443
- case "com.amazonaws.memorydb#ServiceUpdateNotFoundFault":
1444
- throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
1445
- default:
1446
- const parsedBody = parsedOutput.body;
1447
- return throwDefaultError({
1448
- output,
1449
- parsedBody,
1450
- errorCode
1451
- });
1452
- }
1453
- }, "de_BatchUpdateClusterCommandError");
1454
1432
  var de_CopySnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1455
1433
  if (output.statusCode >= 300) {
1456
- return de_CopySnapshotCommandError(output, context);
1434
+ return de_CommandError(output, context);
1457
1435
  }
1458
1436
  const data = await parseBody(output.body, context);
1459
1437
  let contents = {};
@@ -1464,49 +1442,9 @@ var de_CopySnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1464
1442
  };
1465
1443
  return response;
1466
1444
  }, "de_CopySnapshotCommand");
1467
- var de_CopySnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1468
- const parsedOutput = {
1469
- ...output,
1470
- body: await parseErrorBody(output.body, context)
1471
- };
1472
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1473
- switch (errorCode) {
1474
- case "InvalidParameterCombinationException":
1475
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1476
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1477
- case "InvalidParameterValueException":
1478
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1479
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1480
- case "InvalidSnapshotStateFault":
1481
- case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
1482
- throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
1483
- case "ServiceLinkedRoleNotFoundFault":
1484
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1485
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1486
- case "SnapshotAlreadyExistsFault":
1487
- case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
1488
- throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
1489
- case "SnapshotNotFoundFault":
1490
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
1491
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
1492
- case "SnapshotQuotaExceededFault":
1493
- case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
1494
- throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1495
- case "TagQuotaPerResourceExceeded":
1496
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1497
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1498
- default:
1499
- const parsedBody = parsedOutput.body;
1500
- return throwDefaultError({
1501
- output,
1502
- parsedBody,
1503
- errorCode
1504
- });
1505
- }
1506
- }, "de_CopySnapshotCommandError");
1507
1445
  var de_CreateACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1508
1446
  if (output.statusCode >= 300) {
1509
- return de_CreateACLCommandError(output, context);
1447
+ return de_CommandError(output, context);
1510
1448
  }
1511
1449
  const data = await parseBody(output.body, context);
1512
1450
  let contents = {};
@@ -1517,46 +1455,9 @@ var de_CreateACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1517
1455
  };
1518
1456
  return response;
1519
1457
  }, "de_CreateACLCommand");
1520
- var de_CreateACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1521
- const parsedOutput = {
1522
- ...output,
1523
- body: await parseErrorBody(output.body, context)
1524
- };
1525
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
- switch (errorCode) {
1527
- case "ACLAlreadyExistsFault":
1528
- case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
1529
- throw await de_ACLAlreadyExistsFaultRes(parsedOutput, context);
1530
- case "ACLQuotaExceededFault":
1531
- case "com.amazonaws.memorydb#ACLQuotaExceededFault":
1532
- throw await de_ACLQuotaExceededFaultRes(parsedOutput, context);
1533
- case "DefaultUserRequired":
1534
- case "com.amazonaws.memorydb#DefaultUserRequired":
1535
- throw await de_DefaultUserRequiredRes(parsedOutput, context);
1536
- case "DuplicateUserNameFault":
1537
- case "com.amazonaws.memorydb#DuplicateUserNameFault":
1538
- throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
1539
- case "InvalidParameterValueException":
1540
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1541
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1542
- case "TagQuotaPerResourceExceeded":
1543
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1544
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1545
- case "UserNotFoundFault":
1546
- case "com.amazonaws.memorydb#UserNotFoundFault":
1547
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
1548
- default:
1549
- const parsedBody = parsedOutput.body;
1550
- return throwDefaultError({
1551
- output,
1552
- parsedBody,
1553
- errorCode
1554
- });
1555
- }
1556
- }, "de_CreateACLCommandError");
1557
1458
  var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1558
1459
  if (output.statusCode >= 300) {
1559
- return de_CreateClusterCommandError(output, context);
1460
+ return de_CommandError(output, context);
1560
1461
  }
1561
1462
  const data = await parseBody(output.body, context);
1562
1463
  let contents = {};
@@ -1567,73 +1468,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1567
1468
  };
1568
1469
  return response;
1569
1470
  }, "de_CreateClusterCommand");
1570
- var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1571
- const parsedOutput = {
1572
- ...output,
1573
- body: await parseErrorBody(output.body, context)
1574
- };
1575
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1576
- switch (errorCode) {
1577
- case "ACLNotFoundFault":
1578
- case "com.amazonaws.memorydb#ACLNotFoundFault":
1579
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
1580
- case "ClusterAlreadyExistsFault":
1581
- case "com.amazonaws.memorydb#ClusterAlreadyExistsFault":
1582
- throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
1583
- case "ClusterQuotaForCustomerExceededFault":
1584
- case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
1585
- throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
1586
- case "InsufficientClusterCapacityFault":
1587
- case "com.amazonaws.memorydb#InsufficientClusterCapacityFault":
1588
- throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
1589
- case "InvalidACLStateFault":
1590
- case "com.amazonaws.memorydb#InvalidACLStateFault":
1591
- throw await de_InvalidACLStateFaultRes(parsedOutput, context);
1592
- case "InvalidCredentialsException":
1593
- case "com.amazonaws.memorydb#InvalidCredentialsException":
1594
- throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
1595
- case "InvalidParameterCombinationException":
1596
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1597
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1598
- case "InvalidParameterValueException":
1599
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1600
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1601
- case "InvalidVPCNetworkStateFault":
1602
- case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
1603
- throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
1604
- case "NodeQuotaForClusterExceededFault":
1605
- case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
1606
- throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
1607
- case "NodeQuotaForCustomerExceededFault":
1608
- case "com.amazonaws.memorydb#NodeQuotaForCustomerExceededFault":
1609
- throw await de_NodeQuotaForCustomerExceededFaultRes(parsedOutput, context);
1610
- case "ParameterGroupNotFoundFault":
1611
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
1612
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1613
- case "ServiceLinkedRoleNotFoundFault":
1614
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1615
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1616
- case "ShardsPerClusterQuotaExceededFault":
1617
- case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
1618
- throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
1619
- case "SubnetGroupNotFoundFault":
1620
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
1621
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
1622
- case "TagQuotaPerResourceExceeded":
1623
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1624
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1625
- default:
1626
- const parsedBody = parsedOutput.body;
1627
- return throwDefaultError({
1628
- output,
1629
- parsedBody,
1630
- errorCode
1631
- });
1632
- }
1633
- }, "de_CreateClusterCommandError");
1634
1471
  var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1635
1472
  if (output.statusCode >= 300) {
1636
- return de_CreateParameterGroupCommandError(output, context);
1473
+ return de_CommandError(output, context);
1637
1474
  }
1638
1475
  const data = await parseBody(output.body, context);
1639
1476
  let contents = {};
@@ -1644,46 +1481,9 @@ var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, conte
1644
1481
  };
1645
1482
  return response;
1646
1483
  }, "de_CreateParameterGroupCommand");
1647
- var de_CreateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1648
- const parsedOutput = {
1649
- ...output,
1650
- body: await parseErrorBody(output.body, context)
1651
- };
1652
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1653
- switch (errorCode) {
1654
- case "InvalidParameterCombinationException":
1655
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1656
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1657
- case "InvalidParameterGroupStateFault":
1658
- case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
1659
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1660
- case "InvalidParameterValueException":
1661
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1662
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1663
- case "ParameterGroupAlreadyExistsFault":
1664
- case "com.amazonaws.memorydb#ParameterGroupAlreadyExistsFault":
1665
- throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
1666
- case "ParameterGroupQuotaExceededFault":
1667
- case "com.amazonaws.memorydb#ParameterGroupQuotaExceededFault":
1668
- throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
1669
- case "ServiceLinkedRoleNotFoundFault":
1670
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1671
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1672
- case "TagQuotaPerResourceExceeded":
1673
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1674
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1675
- default:
1676
- const parsedBody = parsedOutput.body;
1677
- return throwDefaultError({
1678
- output,
1679
- parsedBody,
1680
- errorCode
1681
- });
1682
- }
1683
- }, "de_CreateParameterGroupCommandError");
1684
1484
  var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1685
1485
  if (output.statusCode >= 300) {
1686
- return de_CreateSnapshotCommandError(output, context);
1486
+ return de_CommandError(output, context);
1687
1487
  }
1688
1488
  const data = await parseBody(output.body, context);
1689
1489
  let contents = {};
@@ -1694,49 +1494,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
1694
1494
  };
1695
1495
  return response;
1696
1496
  }, "de_CreateSnapshotCommand");
1697
- var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1698
- const parsedOutput = {
1699
- ...output,
1700
- body: await parseErrorBody(output.body, context)
1701
- };
1702
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1703
- switch (errorCode) {
1704
- case "ClusterNotFoundFault":
1705
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
1706
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1707
- case "InvalidClusterStateFault":
1708
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
1709
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1710
- case "InvalidParameterCombinationException":
1711
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1712
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1713
- case "InvalidParameterValueException":
1714
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1715
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1716
- case "ServiceLinkedRoleNotFoundFault":
1717
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1718
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1719
- case "SnapshotAlreadyExistsFault":
1720
- case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
1721
- throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
1722
- case "SnapshotQuotaExceededFault":
1723
- case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
1724
- throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1725
- case "TagQuotaPerResourceExceeded":
1726
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1727
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1728
- default:
1729
- const parsedBody = parsedOutput.body;
1730
- return throwDefaultError({
1731
- output,
1732
- parsedBody,
1733
- errorCode
1734
- });
1735
- }
1736
- }, "de_CreateSnapshotCommandError");
1737
1497
  var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1738
1498
  if (output.statusCode >= 300) {
1739
- return de_CreateSubnetGroupCommandError(output, context);
1499
+ return de_CommandError(output, context);
1740
1500
  }
1741
1501
  const data = await parseBody(output.body, context);
1742
1502
  let contents = {};
@@ -1747,93 +1507,22 @@ var de_CreateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context)
1747
1507
  };
1748
1508
  return response;
1749
1509
  }, "de_CreateSubnetGroupCommand");
1750
- var de_CreateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1751
- const parsedOutput = {
1752
- ...output,
1753
- body: await parseErrorBody(output.body, context)
1754
- };
1755
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1756
- switch (errorCode) {
1757
- case "InvalidSubnet":
1758
- case "com.amazonaws.memorydb#InvalidSubnet":
1759
- throw await de_InvalidSubnetRes(parsedOutput, context);
1760
- case "ServiceLinkedRoleNotFoundFault":
1761
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1762
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1763
- case "SubnetGroupAlreadyExistsFault":
1764
- case "com.amazonaws.memorydb#SubnetGroupAlreadyExistsFault":
1765
- throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
1766
- case "SubnetGroupQuotaExceededFault":
1767
- case "com.amazonaws.memorydb#SubnetGroupQuotaExceededFault":
1768
- throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
1769
- case "SubnetNotAllowedFault":
1770
- case "com.amazonaws.memorydb#SubnetNotAllowedFault":
1771
- throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
1772
- case "SubnetQuotaExceededFault":
1773
- case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
1774
- throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
1775
- case "TagQuotaPerResourceExceeded":
1776
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1777
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1778
- default:
1779
- const parsedBody = parsedOutput.body;
1780
- return throwDefaultError({
1781
- output,
1782
- parsedBody,
1783
- errorCode
1784
- });
1785
- }
1786
- }, "de_CreateSubnetGroupCommandError");
1787
- var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1788
- if (output.statusCode >= 300) {
1789
- return de_CreateUserCommandError(output, context);
1790
- }
1791
- const data = await parseBody(output.body, context);
1792
- let contents = {};
1793
- contents = (0, import_smithy_client._json)(data);
1794
- const response = {
1795
- $metadata: deserializeMetadata(output),
1796
- ...contents
1510
+ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
+ if (output.statusCode >= 300) {
1512
+ return de_CommandError(output, context);
1513
+ }
1514
+ const data = await parseBody(output.body, context);
1515
+ let contents = {};
1516
+ contents = (0, import_smithy_client._json)(data);
1517
+ const response = {
1518
+ $metadata: deserializeMetadata(output),
1519
+ ...contents
1797
1520
  };
1798
1521
  return response;
1799
1522
  }, "de_CreateUserCommand");
1800
- var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
1801
- const parsedOutput = {
1802
- ...output,
1803
- body: await parseErrorBody(output.body, context)
1804
- };
1805
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1806
- switch (errorCode) {
1807
- case "DuplicateUserNameFault":
1808
- case "com.amazonaws.memorydb#DuplicateUserNameFault":
1809
- throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
1810
- case "InvalidParameterCombinationException":
1811
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1812
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1813
- case "InvalidParameterValueException":
1814
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1815
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1816
- case "TagQuotaPerResourceExceeded":
1817
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1818
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1819
- case "UserAlreadyExistsFault":
1820
- case "com.amazonaws.memorydb#UserAlreadyExistsFault":
1821
- throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
1822
- case "UserQuotaExceededFault":
1823
- case "com.amazonaws.memorydb#UserQuotaExceededFault":
1824
- throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
1825
- default:
1826
- const parsedBody = parsedOutput.body;
1827
- return throwDefaultError({
1828
- output,
1829
- parsedBody,
1830
- errorCode
1831
- });
1832
- }
1833
- }, "de_CreateUserCommandError");
1834
1523
  var de_DeleteACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1835
1524
  if (output.statusCode >= 300) {
1836
- return de_DeleteACLCommandError(output, context);
1525
+ return de_CommandError(output, context);
1837
1526
  }
1838
1527
  const data = await parseBody(output.body, context);
1839
1528
  let contents = {};
@@ -1844,34 +1533,9 @@ var de_DeleteACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1844
1533
  };
1845
1534
  return response;
1846
1535
  }, "de_DeleteACLCommand");
1847
- var de_DeleteACLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1848
- const parsedOutput = {
1849
- ...output,
1850
- body: await parseErrorBody(output.body, context)
1851
- };
1852
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1853
- switch (errorCode) {
1854
- case "ACLNotFoundFault":
1855
- case "com.amazonaws.memorydb#ACLNotFoundFault":
1856
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
1857
- case "InvalidACLStateFault":
1858
- case "com.amazonaws.memorydb#InvalidACLStateFault":
1859
- throw await de_InvalidACLStateFaultRes(parsedOutput, context);
1860
- case "InvalidParameterValueException":
1861
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1862
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1863
- default:
1864
- const parsedBody = parsedOutput.body;
1865
- return throwDefaultError({
1866
- output,
1867
- parsedBody,
1868
- errorCode
1869
- });
1870
- }
1871
- }, "de_DeleteACLCommandError");
1872
1536
  var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1873
1537
  if (output.statusCode >= 300) {
1874
- return de_DeleteClusterCommandError(output, context);
1538
+ return de_CommandError(output, context);
1875
1539
  }
1876
1540
  const data = await parseBody(output.body, context);
1877
1541
  let contents = {};
@@ -1882,43 +1546,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1882
1546
  };
1883
1547
  return response;
1884
1548
  }, "de_DeleteClusterCommand");
1885
- var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1886
- const parsedOutput = {
1887
- ...output,
1888
- body: await parseErrorBody(output.body, context)
1889
- };
1890
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1891
- switch (errorCode) {
1892
- case "ClusterNotFoundFault":
1893
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
1894
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1895
- case "InvalidClusterStateFault":
1896
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
1897
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
1898
- case "InvalidParameterCombinationException":
1899
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1900
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1901
- case "InvalidParameterValueException":
1902
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1903
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1904
- case "ServiceLinkedRoleNotFoundFault":
1905
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1906
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1907
- case "SnapshotAlreadyExistsFault":
1908
- case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
1909
- throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
1910
- default:
1911
- const parsedBody = parsedOutput.body;
1912
- return throwDefaultError({
1913
- output,
1914
- parsedBody,
1915
- errorCode
1916
- });
1917
- }
1918
- }, "de_DeleteClusterCommandError");
1919
1549
  var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1920
1550
  if (output.statusCode >= 300) {
1921
- return de_DeleteParameterGroupCommandError(output, context);
1551
+ return de_CommandError(output, context);
1922
1552
  }
1923
1553
  const data = await parseBody(output.body, context);
1924
1554
  let contents = {};
@@ -1929,40 +1559,9 @@ var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, conte
1929
1559
  };
1930
1560
  return response;
1931
1561
  }, "de_DeleteParameterGroupCommand");
1932
- var de_DeleteParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1933
- const parsedOutput = {
1934
- ...output,
1935
- body: await parseErrorBody(output.body, context)
1936
- };
1937
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1938
- switch (errorCode) {
1939
- case "InvalidParameterCombinationException":
1940
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1941
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1942
- case "InvalidParameterGroupStateFault":
1943
- case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
1944
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
1945
- case "InvalidParameterValueException":
1946
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1947
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1948
- case "ParameterGroupNotFoundFault":
1949
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
1950
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
1951
- case "ServiceLinkedRoleNotFoundFault":
1952
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1953
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1954
- default:
1955
- const parsedBody = parsedOutput.body;
1956
- return throwDefaultError({
1957
- output,
1958
- parsedBody,
1959
- errorCode
1960
- });
1961
- }
1962
- }, "de_DeleteParameterGroupCommandError");
1963
1562
  var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1964
1563
  if (output.statusCode >= 300) {
1965
- return de_DeleteSnapshotCommandError(output, context);
1564
+ return de_CommandError(output, context);
1966
1565
  }
1967
1566
  const data = await parseBody(output.body, context);
1968
1567
  let contents = {};
@@ -1973,40 +1572,9 @@ var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
1973
1572
  };
1974
1573
  return response;
1975
1574
  }, "de_DeleteSnapshotCommand");
1976
- var de_DeleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
1977
- const parsedOutput = {
1978
- ...output,
1979
- body: await parseErrorBody(output.body, context)
1980
- };
1981
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1982
- switch (errorCode) {
1983
- case "InvalidParameterCombinationException":
1984
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1985
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1986
- case "InvalidParameterValueException":
1987
- case "com.amazonaws.memorydb#InvalidParameterValueException":
1988
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1989
- case "InvalidSnapshotStateFault":
1990
- case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
1991
- throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
1992
- case "ServiceLinkedRoleNotFoundFault":
1993
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1994
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1995
- case "SnapshotNotFoundFault":
1996
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
1997
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
1998
- default:
1999
- const parsedBody = parsedOutput.body;
2000
- return throwDefaultError({
2001
- output,
2002
- parsedBody,
2003
- errorCode
2004
- });
2005
- }
2006
- }, "de_DeleteSnapshotCommandError");
2007
1575
  var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2008
1576
  if (output.statusCode >= 300) {
2009
- return de_DeleteSubnetGroupCommandError(output, context);
1577
+ return de_CommandError(output, context);
2010
1578
  }
2011
1579
  const data = await parseBody(output.body, context);
2012
1580
  let contents = {};
@@ -2017,34 +1585,9 @@ var de_DeleteSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context)
2017
1585
  };
2018
1586
  return response;
2019
1587
  }, "de_DeleteSubnetGroupCommand");
2020
- var de_DeleteSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2021
- const parsedOutput = {
2022
- ...output,
2023
- body: await parseErrorBody(output.body, context)
2024
- };
2025
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2026
- switch (errorCode) {
2027
- case "ServiceLinkedRoleNotFoundFault":
2028
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2029
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2030
- case "SubnetGroupInUseFault":
2031
- case "com.amazonaws.memorydb#SubnetGroupInUseFault":
2032
- throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
2033
- case "SubnetGroupNotFoundFault":
2034
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2035
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2036
- default:
2037
- const parsedBody = parsedOutput.body;
2038
- return throwDefaultError({
2039
- output,
2040
- parsedBody,
2041
- errorCode
2042
- });
2043
- }
2044
- }, "de_DeleteSubnetGroupCommandError");
2045
1588
  var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
2046
1589
  if (output.statusCode >= 300) {
2047
- return de_DeleteUserCommandError(output, context);
1590
+ return de_CommandError(output, context);
2048
1591
  }
2049
1592
  const data = await parseBody(output.body, context);
2050
1593
  let contents = {};
@@ -2055,34 +1598,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
2055
1598
  };
2056
1599
  return response;
2057
1600
  }, "de_DeleteUserCommand");
2058
- var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
2059
- const parsedOutput = {
2060
- ...output,
2061
- body: await parseErrorBody(output.body, context)
2062
- };
2063
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2064
- switch (errorCode) {
2065
- case "InvalidParameterValueException":
2066
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2067
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2068
- case "InvalidUserStateFault":
2069
- case "com.amazonaws.memorydb#InvalidUserStateFault":
2070
- throw await de_InvalidUserStateFaultRes(parsedOutput, context);
2071
- case "UserNotFoundFault":
2072
- case "com.amazonaws.memorydb#UserNotFoundFault":
2073
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2074
- default:
2075
- const parsedBody = parsedOutput.body;
2076
- return throwDefaultError({
2077
- output,
2078
- parsedBody,
2079
- errorCode
2080
- });
2081
- }
2082
- }, "de_DeleteUserCommandError");
2083
1601
  var de_DescribeACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
2084
1602
  if (output.statusCode >= 300) {
2085
- return de_DescribeACLsCommandError(output, context);
1603
+ return de_CommandError(output, context);
2086
1604
  }
2087
1605
  const data = await parseBody(output.body, context);
2088
1606
  let contents = {};
@@ -2093,31 +1611,9 @@ var de_DescribeACLsCommand = /* @__PURE__ */ __name(async (output, context) => {
2093
1611
  };
2094
1612
  return response;
2095
1613
  }, "de_DescribeACLsCommand");
2096
- var de_DescribeACLsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2097
- const parsedOutput = {
2098
- ...output,
2099
- body: await parseErrorBody(output.body, context)
2100
- };
2101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2102
- switch (errorCode) {
2103
- case "ACLNotFoundFault":
2104
- case "com.amazonaws.memorydb#ACLNotFoundFault":
2105
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2106
- case "InvalidParameterCombinationException":
2107
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2108
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2109
- default:
2110
- const parsedBody = parsedOutput.body;
2111
- return throwDefaultError({
2112
- output,
2113
- parsedBody,
2114
- errorCode
2115
- });
2116
- }
2117
- }, "de_DescribeACLsCommandError");
2118
1614
  var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
2119
1615
  if (output.statusCode >= 300) {
2120
- return de_DescribeClustersCommandError(output, context);
1616
+ return de_CommandError(output, context);
2121
1617
  }
2122
1618
  const data = await parseBody(output.body, context);
2123
1619
  let contents = {};
@@ -2128,75 +1624,22 @@ var de_DescribeClustersCommand = /* @__PURE__ */ __name(async (output, context)
2128
1624
  };
2129
1625
  return response;
2130
1626
  }, "de_DescribeClustersCommand");
2131
- var de_DescribeClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2132
- const parsedOutput = {
2133
- ...output,
2134
- body: await parseErrorBody(output.body, context)
2135
- };
2136
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2137
- switch (errorCode) {
2138
- case "ClusterNotFoundFault":
2139
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2140
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2141
- case "InvalidParameterCombinationException":
2142
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2143
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2144
- case "InvalidParameterValueException":
2145
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2146
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2147
- case "ServiceLinkedRoleNotFoundFault":
2148
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2149
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2150
- default:
2151
- const parsedBody = parsedOutput.body;
2152
- return throwDefaultError({
2153
- output,
2154
- parsedBody,
2155
- errorCode
2156
- });
2157
- }
2158
- }, "de_DescribeClustersCommandError");
2159
- var de_DescribeEngineVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2160
- if (output.statusCode >= 300) {
2161
- return de_DescribeEngineVersionsCommandError(output, context);
2162
- }
2163
- const data = await parseBody(output.body, context);
2164
- let contents = {};
2165
- contents = (0, import_smithy_client._json)(data);
2166
- const response = {
2167
- $metadata: deserializeMetadata(output),
2168
- ...contents
1627
+ var de_DescribeEngineVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1628
+ if (output.statusCode >= 300) {
1629
+ return de_CommandError(output, context);
1630
+ }
1631
+ const data = await parseBody(output.body, context);
1632
+ let contents = {};
1633
+ contents = (0, import_smithy_client._json)(data);
1634
+ const response = {
1635
+ $metadata: deserializeMetadata(output),
1636
+ ...contents
2169
1637
  };
2170
1638
  return response;
2171
1639
  }, "de_DescribeEngineVersionsCommand");
2172
- var de_DescribeEngineVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2173
- const parsedOutput = {
2174
- ...output,
2175
- body: await parseErrorBody(output.body, context)
2176
- };
2177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
- switch (errorCode) {
2179
- case "InvalidParameterCombinationException":
2180
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2181
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2182
- case "InvalidParameterValueException":
2183
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2184
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2185
- case "ServiceLinkedRoleNotFoundFault":
2186
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2187
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2188
- default:
2189
- const parsedBody = parsedOutput.body;
2190
- return throwDefaultError({
2191
- output,
2192
- parsedBody,
2193
- errorCode
2194
- });
2195
- }
2196
- }, "de_DescribeEngineVersionsCommandError");
2197
1640
  var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
2198
1641
  if (output.statusCode >= 300) {
2199
- return de_DescribeEventsCommandError(output, context);
1642
+ return de_CommandError(output, context);
2200
1643
  }
2201
1644
  const data = await parseBody(output.body, context);
2202
1645
  let contents = {};
@@ -2207,34 +1650,9 @@ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) =>
2207
1650
  };
2208
1651
  return response;
2209
1652
  }, "de_DescribeEventsCommand");
2210
- var de_DescribeEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2211
- const parsedOutput = {
2212
- ...output,
2213
- body: await parseErrorBody(output.body, context)
2214
- };
2215
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2216
- switch (errorCode) {
2217
- case "InvalidParameterCombinationException":
2218
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2219
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2220
- case "InvalidParameterValueException":
2221
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2222
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2223
- case "ServiceLinkedRoleNotFoundFault":
2224
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2225
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2226
- default:
2227
- const parsedBody = parsedOutput.body;
2228
- return throwDefaultError({
2229
- output,
2230
- parsedBody,
2231
- errorCode
2232
- });
2233
- }
2234
- }, "de_DescribeEventsCommandError");
2235
1653
  var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2236
1654
  if (output.statusCode >= 300) {
2237
- return de_DescribeParameterGroupsCommandError(output, context);
1655
+ return de_CommandError(output, context);
2238
1656
  }
2239
1657
  const data = await parseBody(output.body, context);
2240
1658
  let contents = {};
@@ -2245,37 +1663,9 @@ var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, co
2245
1663
  };
2246
1664
  return response;
2247
1665
  }, "de_DescribeParameterGroupsCommand");
2248
- var de_DescribeParameterGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2249
- const parsedOutput = {
2250
- ...output,
2251
- body: await parseErrorBody(output.body, context)
2252
- };
2253
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2254
- switch (errorCode) {
2255
- case "InvalidParameterCombinationException":
2256
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2257
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2258
- case "InvalidParameterValueException":
2259
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2260
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2261
- case "ParameterGroupNotFoundFault":
2262
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2263
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2264
- case "ServiceLinkedRoleNotFoundFault":
2265
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2266
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2267
- default:
2268
- const parsedBody = parsedOutput.body;
2269
- return throwDefaultError({
2270
- output,
2271
- parsedBody,
2272
- errorCode
2273
- });
2274
- }
2275
- }, "de_DescribeParameterGroupsCommandError");
2276
1666
  var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context) => {
2277
1667
  if (output.statusCode >= 300) {
2278
- return de_DescribeParametersCommandError(output, context);
1668
+ return de_CommandError(output, context);
2279
1669
  }
2280
1670
  const data = await parseBody(output.body, context);
2281
1671
  let contents = {};
@@ -2286,37 +1676,9 @@ var de_DescribeParametersCommand = /* @__PURE__ */ __name(async (output, context
2286
1676
  };
2287
1677
  return response;
2288
1678
  }, "de_DescribeParametersCommand");
2289
- var de_DescribeParametersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2290
- const parsedOutput = {
2291
- ...output,
2292
- body: await parseErrorBody(output.body, context)
2293
- };
2294
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2295
- switch (errorCode) {
2296
- case "InvalidParameterCombinationException":
2297
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2298
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2299
- case "InvalidParameterValueException":
2300
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2301
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2302
- case "ParameterGroupNotFoundFault":
2303
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2304
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2305
- case "ServiceLinkedRoleNotFoundFault":
2306
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2307
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2308
- default:
2309
- const parsedBody = parsedOutput.body;
2310
- return throwDefaultError({
2311
- output,
2312
- parsedBody,
2313
- errorCode
2314
- });
2315
- }
2316
- }, "de_DescribeParametersCommandError");
2317
1679
  var de_DescribeReservedNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
2318
1680
  if (output.statusCode >= 300) {
2319
- return de_DescribeReservedNodesCommandError(output, context);
1681
+ return de_CommandError(output, context);
2320
1682
  }
2321
1683
  const data = await parseBody(output.body, context);
2322
1684
  let contents = {};
@@ -2327,37 +1689,9 @@ var de_DescribeReservedNodesCommand = /* @__PURE__ */ __name(async (output, cont
2327
1689
  };
2328
1690
  return response;
2329
1691
  }, "de_DescribeReservedNodesCommand");
2330
- var de_DescribeReservedNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2331
- const parsedOutput = {
2332
- ...output,
2333
- body: await parseErrorBody(output.body, context)
2334
- };
2335
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2336
- switch (errorCode) {
2337
- case "InvalidParameterCombinationException":
2338
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2339
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2340
- case "InvalidParameterValueException":
2341
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2342
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2343
- case "ReservedNodeNotFoundFault":
2344
- case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
2345
- throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
2346
- case "ServiceLinkedRoleNotFoundFault":
2347
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2348
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2349
- default:
2350
- const parsedBody = parsedOutput.body;
2351
- return throwDefaultError({
2352
- output,
2353
- parsedBody,
2354
- errorCode
2355
- });
2356
- }
2357
- }, "de_DescribeReservedNodesCommandError");
2358
1692
  var de_DescribeReservedNodesOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2359
1693
  if (output.statusCode >= 300) {
2360
- return de_DescribeReservedNodesOfferingsCommandError(output, context);
1694
+ return de_CommandError(output, context);
2361
1695
  }
2362
1696
  const data = await parseBody(output.body, context);
2363
1697
  let contents = {};
@@ -2368,37 +1702,9 @@ var de_DescribeReservedNodesOfferingsCommand = /* @__PURE__ */ __name(async (out
2368
1702
  };
2369
1703
  return response;
2370
1704
  }, "de_DescribeReservedNodesOfferingsCommand");
2371
- var de_DescribeReservedNodesOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2372
- const parsedOutput = {
2373
- ...output,
2374
- body: await parseErrorBody(output.body, context)
2375
- };
2376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2377
- switch (errorCode) {
2378
- case "InvalidParameterCombinationException":
2379
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2380
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2381
- case "InvalidParameterValueException":
2382
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2383
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2384
- case "ReservedNodesOfferingNotFoundFault":
2385
- case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
2386
- throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
2387
- case "ServiceLinkedRoleNotFoundFault":
2388
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2389
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2390
- default:
2391
- const parsedBody = parsedOutput.body;
2392
- return throwDefaultError({
2393
- output,
2394
- parsedBody,
2395
- errorCode
2396
- });
2397
- }
2398
- }, "de_DescribeReservedNodesOfferingsCommandError");
2399
1705
  var de_DescribeServiceUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
2400
1706
  if (output.statusCode >= 300) {
2401
- return de_DescribeServiceUpdatesCommandError(output, context);
1707
+ return de_CommandError(output, context);
2402
1708
  }
2403
1709
  const data = await parseBody(output.body, context);
2404
1710
  let contents = {};
@@ -2409,31 +1715,9 @@ var de_DescribeServiceUpdatesCommand = /* @__PURE__ */ __name(async (output, con
2409
1715
  };
2410
1716
  return response;
2411
1717
  }, "de_DescribeServiceUpdatesCommand");
2412
- var de_DescribeServiceUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2413
- const parsedOutput = {
2414
- ...output,
2415
- body: await parseErrorBody(output.body, context)
2416
- };
2417
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2418
- switch (errorCode) {
2419
- case "InvalidParameterCombinationException":
2420
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2421
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2422
- case "InvalidParameterValueException":
2423
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2424
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2425
- default:
2426
- const parsedBody = parsedOutput.body;
2427
- return throwDefaultError({
2428
- output,
2429
- parsedBody,
2430
- errorCode
2431
- });
2432
- }
2433
- }, "de_DescribeServiceUpdatesCommandError");
2434
1718
  var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
2435
1719
  if (output.statusCode >= 300) {
2436
- return de_DescribeSnapshotsCommandError(output, context);
1720
+ return de_CommandError(output, context);
2437
1721
  }
2438
1722
  const data = await parseBody(output.body, context);
2439
1723
  let contents = {};
@@ -2444,37 +1728,9 @@ var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context)
2444
1728
  };
2445
1729
  return response;
2446
1730
  }, "de_DescribeSnapshotsCommand");
2447
- var de_DescribeSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2448
- const parsedOutput = {
2449
- ...output,
2450
- body: await parseErrorBody(output.body, context)
2451
- };
2452
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2453
- switch (errorCode) {
2454
- case "InvalidParameterCombinationException":
2455
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2456
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2457
- case "InvalidParameterValueException":
2458
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2459
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2460
- case "ServiceLinkedRoleNotFoundFault":
2461
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2462
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2463
- case "SnapshotNotFoundFault":
2464
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
2465
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2466
- default:
2467
- const parsedBody = parsedOutput.body;
2468
- return throwDefaultError({
2469
- output,
2470
- parsedBody,
2471
- errorCode
2472
- });
2473
- }
2474
- }, "de_DescribeSnapshotsCommandError");
2475
1731
  var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2476
1732
  if (output.statusCode >= 300) {
2477
- return de_DescribeSubnetGroupsCommandError(output, context);
1733
+ return de_CommandError(output, context);
2478
1734
  }
2479
1735
  const data = await parseBody(output.body, context);
2480
1736
  let contents = {};
@@ -2485,31 +1741,9 @@ var de_DescribeSubnetGroupsCommand = /* @__PURE__ */ __name(async (output, conte
2485
1741
  };
2486
1742
  return response;
2487
1743
  }, "de_DescribeSubnetGroupsCommand");
2488
- var de_DescribeSubnetGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2489
- const parsedOutput = {
2490
- ...output,
2491
- body: await parseErrorBody(output.body, context)
2492
- };
2493
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2494
- switch (errorCode) {
2495
- case "ServiceLinkedRoleNotFoundFault":
2496
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2497
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2498
- case "SubnetGroupNotFoundFault":
2499
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2500
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2501
- default:
2502
- const parsedBody = parsedOutput.body;
2503
- return throwDefaultError({
2504
- output,
2505
- parsedBody,
2506
- errorCode
2507
- });
2508
- }
2509
- }, "de_DescribeSubnetGroupsCommandError");
2510
1744
  var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
2511
1745
  if (output.statusCode >= 300) {
2512
- return de_DescribeUsersCommandError(output, context);
1746
+ return de_CommandError(output, context);
2513
1747
  }
2514
1748
  const data = await parseBody(output.body, context);
2515
1749
  let contents = {};
@@ -2520,84 +1754,22 @@ var de_DescribeUsersCommand = /* @__PURE__ */ __name(async (output, context) =>
2520
1754
  };
2521
1755
  return response;
2522
1756
  }, "de_DescribeUsersCommand");
2523
- var de_DescribeUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2524
- const parsedOutput = {
2525
- ...output,
2526
- body: await parseErrorBody(output.body, context)
2527
- };
2528
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2529
- switch (errorCode) {
2530
- case "InvalidParameterCombinationException":
2531
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2532
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2533
- case "UserNotFoundFault":
2534
- case "com.amazonaws.memorydb#UserNotFoundFault":
2535
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2536
- default:
2537
- const parsedBody = parsedOutput.body;
2538
- return throwDefaultError({
2539
- output,
2540
- parsedBody,
2541
- errorCode
2542
- });
2543
- }
2544
- }, "de_DescribeUsersCommandError");
2545
- var de_FailoverShardCommand = /* @__PURE__ */ __name(async (output, context) => {
2546
- if (output.statusCode >= 300) {
2547
- return de_FailoverShardCommandError(output, context);
2548
- }
2549
- const data = await parseBody(output.body, context);
2550
- let contents = {};
2551
- contents = de_FailoverShardResponse(data, context);
2552
- const response = {
2553
- $metadata: deserializeMetadata(output),
2554
- ...contents
1757
+ var de_FailoverShardCommand = /* @__PURE__ */ __name(async (output, context) => {
1758
+ if (output.statusCode >= 300) {
1759
+ return de_CommandError(output, context);
1760
+ }
1761
+ const data = await parseBody(output.body, context);
1762
+ let contents = {};
1763
+ contents = de_FailoverShardResponse(data, context);
1764
+ const response = {
1765
+ $metadata: deserializeMetadata(output),
1766
+ ...contents
2555
1767
  };
2556
1768
  return response;
2557
1769
  }, "de_FailoverShardCommand");
2558
- var de_FailoverShardCommandError = /* @__PURE__ */ __name(async (output, context) => {
2559
- const parsedOutput = {
2560
- ...output,
2561
- body: await parseErrorBody(output.body, context)
2562
- };
2563
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2564
- switch (errorCode) {
2565
- case "APICallRateForCustomerExceededFault":
2566
- case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
2567
- throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
2568
- case "ClusterNotFoundFault":
2569
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2570
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2571
- case "InvalidClusterStateFault":
2572
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
2573
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
2574
- case "InvalidKMSKeyFault":
2575
- case "com.amazonaws.memorydb#InvalidKMSKeyFault":
2576
- throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
2577
- case "InvalidParameterCombinationException":
2578
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2579
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2580
- case "InvalidParameterValueException":
2581
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2582
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2583
- case "ShardNotFoundFault":
2584
- case "com.amazonaws.memorydb#ShardNotFoundFault":
2585
- throw await de_ShardNotFoundFaultRes(parsedOutput, context);
2586
- case "TestFailoverNotAvailableFault":
2587
- case "com.amazonaws.memorydb#TestFailoverNotAvailableFault":
2588
- throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
2589
- default:
2590
- const parsedBody = parsedOutput.body;
2591
- return throwDefaultError({
2592
- output,
2593
- parsedBody,
2594
- errorCode
2595
- });
2596
- }
2597
- }, "de_FailoverShardCommandError");
2598
1770
  var de_ListAllowedNodeTypeUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
2599
1771
  if (output.statusCode >= 300) {
2600
- return de_ListAllowedNodeTypeUpdatesCommandError(output, context);
1772
+ return de_CommandError(output, context);
2601
1773
  }
2602
1774
  const data = await parseBody(output.body, context);
2603
1775
  let contents = {};
@@ -2608,37 +1780,9 @@ var de_ListAllowedNodeTypeUpdatesCommand = /* @__PURE__ */ __name(async (output,
2608
1780
  };
2609
1781
  return response;
2610
1782
  }, "de_ListAllowedNodeTypeUpdatesCommand");
2611
- var de_ListAllowedNodeTypeUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2612
- const parsedOutput = {
2613
- ...output,
2614
- body: await parseErrorBody(output.body, context)
2615
- };
2616
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2617
- switch (errorCode) {
2618
- case "ClusterNotFoundFault":
2619
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2620
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2621
- case "InvalidParameterCombinationException":
2622
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2623
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2624
- case "InvalidParameterValueException":
2625
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2626
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2627
- case "ServiceLinkedRoleNotFoundFault":
2628
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2629
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2630
- default:
2631
- const parsedBody = parsedOutput.body;
2632
- return throwDefaultError({
2633
- output,
2634
- parsedBody,
2635
- errorCode
2636
- });
2637
- }
2638
- }, "de_ListAllowedNodeTypeUpdatesCommandError");
2639
1783
  var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
2640
1784
  if (output.statusCode >= 300) {
2641
- return de_ListTagsCommandError(output, context);
1785
+ return de_CommandError(output, context);
2642
1786
  }
2643
1787
  const data = await parseBody(output.body, context);
2644
1788
  let contents = {};
@@ -2649,52 +1793,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
2649
1793
  };
2650
1794
  return response;
2651
1795
  }, "de_ListTagsCommand");
2652
- var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2653
- const parsedOutput = {
2654
- ...output,
2655
- body: await parseErrorBody(output.body, context)
2656
- };
2657
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2658
- switch (errorCode) {
2659
- case "ACLNotFoundFault":
2660
- case "com.amazonaws.memorydb#ACLNotFoundFault":
2661
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2662
- case "ClusterNotFoundFault":
2663
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2664
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2665
- case "InvalidARNFault":
2666
- case "com.amazonaws.memorydb#InvalidARNFault":
2667
- throw await de_InvalidARNFaultRes(parsedOutput, context);
2668
- case "InvalidClusterStateFault":
2669
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
2670
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
2671
- case "ParameterGroupNotFoundFault":
2672
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2673
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2674
- case "ServiceLinkedRoleNotFoundFault":
2675
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2676
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2677
- case "SnapshotNotFoundFault":
2678
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
2679
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2680
- case "SubnetGroupNotFoundFault":
2681
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2682
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2683
- case "UserNotFoundFault":
2684
- case "com.amazonaws.memorydb#UserNotFoundFault":
2685
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2686
- default:
2687
- const parsedBody = parsedOutput.body;
2688
- return throwDefaultError({
2689
- output,
2690
- parsedBody,
2691
- errorCode
2692
- });
2693
- }
2694
- }, "de_ListTagsCommandError");
2695
1796
  var de_PurchaseReservedNodesOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
2696
1797
  if (output.statusCode >= 300) {
2697
- return de_PurchaseReservedNodesOfferingCommandError(output, context);
1798
+ return de_CommandError(output, context);
2698
1799
  }
2699
1800
  const data = await parseBody(output.body, context);
2700
1801
  let contents = {};
@@ -2705,46 +1806,9 @@ var de_PurchaseReservedNodesOfferingCommand = /* @__PURE__ */ __name(async (outp
2705
1806
  };
2706
1807
  return response;
2707
1808
  }, "de_PurchaseReservedNodesOfferingCommand");
2708
- var de_PurchaseReservedNodesOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
2709
- const parsedOutput = {
2710
- ...output,
2711
- body: await parseErrorBody(output.body, context)
2712
- };
2713
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2714
- switch (errorCode) {
2715
- case "InvalidParameterCombinationException":
2716
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2717
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2718
- case "InvalidParameterValueException":
2719
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2720
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2721
- case "ReservedNodeAlreadyExistsFault":
2722
- case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
2723
- throw await de_ReservedNodeAlreadyExistsFaultRes(parsedOutput, context);
2724
- case "ReservedNodeQuotaExceededFault":
2725
- case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
2726
- throw await de_ReservedNodeQuotaExceededFaultRes(parsedOutput, context);
2727
- case "ReservedNodesOfferingNotFoundFault":
2728
- case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
2729
- throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
2730
- case "ServiceLinkedRoleNotFoundFault":
2731
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2732
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2733
- case "TagQuotaPerResourceExceeded":
2734
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
2735
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
2736
- default:
2737
- const parsedBody = parsedOutput.body;
2738
- return throwDefaultError({
2739
- output,
2740
- parsedBody,
2741
- errorCode
2742
- });
2743
- }
2744
- }, "de_PurchaseReservedNodesOfferingCommandError");
2745
1809
  var de_ResetParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2746
1810
  if (output.statusCode >= 300) {
2747
- return de_ResetParameterGroupCommandError(output, context);
1811
+ return de_CommandError(output, context);
2748
1812
  }
2749
1813
  const data = await parseBody(output.body, context);
2750
1814
  let contents = {};
@@ -2755,40 +1819,9 @@ var de_ResetParameterGroupCommand = /* @__PURE__ */ __name(async (output, contex
2755
1819
  };
2756
1820
  return response;
2757
1821
  }, "de_ResetParameterGroupCommand");
2758
- var de_ResetParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2759
- const parsedOutput = {
2760
- ...output,
2761
- body: await parseErrorBody(output.body, context)
2762
- };
2763
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2764
- switch (errorCode) {
2765
- case "InvalidParameterCombinationException":
2766
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2767
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2768
- case "InvalidParameterGroupStateFault":
2769
- case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
2770
- throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
2771
- case "InvalidParameterValueException":
2772
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2773
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2774
- case "ParameterGroupNotFoundFault":
2775
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2776
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2777
- case "ServiceLinkedRoleNotFoundFault":
2778
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2779
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2780
- default:
2781
- const parsedBody = parsedOutput.body;
2782
- return throwDefaultError({
2783
- output,
2784
- parsedBody,
2785
- errorCode
2786
- });
2787
- }
2788
- }, "de_ResetParameterGroupCommandError");
2789
1822
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2790
1823
  if (output.statusCode >= 300) {
2791
- return de_TagResourceCommandError(output, context);
1824
+ return de_CommandError(output, context);
2792
1825
  }
2793
1826
  const data = await parseBody(output.body, context);
2794
1827
  let contents = {};
@@ -2799,55 +1832,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2799
1832
  };
2800
1833
  return response;
2801
1834
  }, "de_TagResourceCommand");
2802
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2803
- const parsedOutput = {
2804
- ...output,
2805
- body: await parseErrorBody(output.body, context)
2806
- };
2807
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2808
- switch (errorCode) {
2809
- case "ACLNotFoundFault":
2810
- case "com.amazonaws.memorydb#ACLNotFoundFault":
2811
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2812
- case "ClusterNotFoundFault":
2813
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2814
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2815
- case "InvalidARNFault":
2816
- case "com.amazonaws.memorydb#InvalidARNFault":
2817
- throw await de_InvalidARNFaultRes(parsedOutput, context);
2818
- case "InvalidClusterStateFault":
2819
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
2820
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
2821
- case "ParameterGroupNotFoundFault":
2822
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2823
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2824
- case "ServiceLinkedRoleNotFoundFault":
2825
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2826
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2827
- case "SnapshotNotFoundFault":
2828
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
2829
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2830
- case "SubnetGroupNotFoundFault":
2831
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2832
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2833
- case "TagQuotaPerResourceExceeded":
2834
- case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
2835
- throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
2836
- case "UserNotFoundFault":
2837
- case "com.amazonaws.memorydb#UserNotFoundFault":
2838
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2839
- default:
2840
- const parsedBody = parsedOutput.body;
2841
- return throwDefaultError({
2842
- output,
2843
- parsedBody,
2844
- errorCode
2845
- });
2846
- }
2847
- }, "de_TagResourceCommandError");
2848
1835
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2849
1836
  if (output.statusCode >= 300) {
2850
- return de_UntagResourceCommandError(output, context);
1837
+ return de_CommandError(output, context);
2851
1838
  }
2852
1839
  const data = await parseBody(output.body, context);
2853
1840
  let contents = {};
@@ -2858,55 +1845,35 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2858
1845
  };
2859
1846
  return response;
2860
1847
  }, "de_UntagResourceCommand");
2861
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2862
- const parsedOutput = {
2863
- ...output,
2864
- body: await parseErrorBody(output.body, context)
1848
+ var de_UpdateACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1849
+ if (output.statusCode >= 300) {
1850
+ return de_CommandError(output, context);
1851
+ }
1852
+ const data = await parseBody(output.body, context);
1853
+ let contents = {};
1854
+ contents = (0, import_smithy_client._json)(data);
1855
+ const response = {
1856
+ $metadata: deserializeMetadata(output),
1857
+ ...contents
2865
1858
  };
2866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2867
- switch (errorCode) {
2868
- case "ACLNotFoundFault":
2869
- case "com.amazonaws.memorydb#ACLNotFoundFault":
2870
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2871
- case "ClusterNotFoundFault":
2872
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2873
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2874
- case "InvalidARNFault":
2875
- case "com.amazonaws.memorydb#InvalidARNFault":
2876
- throw await de_InvalidARNFaultRes(parsedOutput, context);
2877
- case "InvalidClusterStateFault":
2878
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
2879
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
2880
- case "ParameterGroupNotFoundFault":
2881
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
2882
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
2883
- case "ServiceLinkedRoleNotFoundFault":
2884
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
2885
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
2886
- case "SnapshotNotFoundFault":
2887
- case "com.amazonaws.memorydb#SnapshotNotFoundFault":
2888
- throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
2889
- case "SubnetGroupNotFoundFault":
2890
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2891
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2892
- case "TagNotFoundFault":
2893
- case "com.amazonaws.memorydb#TagNotFoundFault":
2894
- throw await de_TagNotFoundFaultRes(parsedOutput, context);
2895
- case "UserNotFoundFault":
2896
- case "com.amazonaws.memorydb#UserNotFoundFault":
2897
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2898
- default:
2899
- const parsedBody = parsedOutput.body;
2900
- return throwDefaultError({
2901
- output,
2902
- parsedBody,
2903
- errorCode
2904
- });
1859
+ return response;
1860
+ }, "de_UpdateACLCommand");
1861
+ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1862
+ if (output.statusCode >= 300) {
1863
+ return de_CommandError(output, context);
2905
1864
  }
2906
- }, "de_UntagResourceCommandError");
2907
- var de_UpdateACLCommand = /* @__PURE__ */ __name(async (output, context) => {
1865
+ const data = await parseBody(output.body, context);
1866
+ let contents = {};
1867
+ contents = de_UpdateClusterResponse(data, context);
1868
+ const response = {
1869
+ $metadata: deserializeMetadata(output),
1870
+ ...contents
1871
+ };
1872
+ return response;
1873
+ }, "de_UpdateClusterCommand");
1874
+ var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2908
1875
  if (output.statusCode >= 300) {
2909
- return de_UpdateACLCommandError(output, context);
1876
+ return de_CommandError(output, context);
2910
1877
  }
2911
1878
  const data = await parseBody(output.body, context);
2912
1879
  let contents = {};
@@ -2916,97 +1883,103 @@ var de_UpdateACLCommand = /* @__PURE__ */ __name(async (output, context) => {
2916
1883
  ...contents
2917
1884
  };
2918
1885
  return response;
2919
- }, "de_UpdateACLCommand");
2920
- var de_UpdateACLCommandError = /* @__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 "ACLNotFoundFault":
2928
- case "com.amazonaws.memorydb#ACLNotFoundFault":
2929
- throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2930
- case "DefaultUserRequired":
2931
- case "com.amazonaws.memorydb#DefaultUserRequired":
2932
- throw await de_DefaultUserRequiredRes(parsedOutput, context);
2933
- case "DuplicateUserNameFault":
2934
- case "com.amazonaws.memorydb#DuplicateUserNameFault":
2935
- throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
2936
- case "InvalidACLStateFault":
2937
- case "com.amazonaws.memorydb#InvalidACLStateFault":
2938
- throw await de_InvalidACLStateFaultRes(parsedOutput, context);
2939
- case "InvalidParameterCombinationException":
2940
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
2941
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2942
- case "InvalidParameterValueException":
2943
- case "com.amazonaws.memorydb#InvalidParameterValueException":
2944
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2945
- case "UserNotFoundFault":
2946
- case "com.amazonaws.memorydb#UserNotFoundFault":
2947
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2948
- default:
2949
- const parsedBody = parsedOutput.body;
2950
- return throwDefaultError({
2951
- output,
2952
- parsedBody,
2953
- errorCode
2954
- });
1886
+ }, "de_UpdateParameterGroupCommand");
1887
+ var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1888
+ if (output.statusCode >= 300) {
1889
+ return de_CommandError(output, context);
2955
1890
  }
2956
- }, "de_UpdateACLCommandError");
2957
- var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1891
+ const data = await parseBody(output.body, context);
1892
+ let contents = {};
1893
+ contents = (0, import_smithy_client._json)(data);
1894
+ const response = {
1895
+ $metadata: deserializeMetadata(output),
1896
+ ...contents
1897
+ };
1898
+ return response;
1899
+ }, "de_UpdateSubnetGroupCommand");
1900
+ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
2958
1901
  if (output.statusCode >= 300) {
2959
- return de_UpdateClusterCommandError(output, context);
1902
+ return de_CommandError(output, context);
2960
1903
  }
2961
1904
  const data = await parseBody(output.body, context);
2962
1905
  let contents = {};
2963
- contents = de_UpdateClusterResponse(data, context);
1906
+ contents = (0, import_smithy_client._json)(data);
2964
1907
  const response = {
2965
1908
  $metadata: deserializeMetadata(output),
2966
1909
  ...contents
2967
1910
  };
2968
1911
  return response;
2969
- }, "de_UpdateClusterCommand");
2970
- var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1912
+ }, "de_UpdateUserCommand");
1913
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2971
1914
  const parsedOutput = {
2972
1915
  ...output,
2973
1916
  body: await parseErrorBody(output.body, context)
2974
1917
  };
2975
1918
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2976
1919
  switch (errorCode) {
1920
+ case "InvalidParameterValueException":
1921
+ case "com.amazonaws.memorydb#InvalidParameterValueException":
1922
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1923
+ case "ServiceUpdateNotFoundFault":
1924
+ case "com.amazonaws.memorydb#ServiceUpdateNotFoundFault":
1925
+ throw await de_ServiceUpdateNotFoundFaultRes(parsedOutput, context);
1926
+ case "InvalidParameterCombinationException":
1927
+ case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1928
+ throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1929
+ case "InvalidSnapshotStateFault":
1930
+ case "com.amazonaws.memorydb#InvalidSnapshotStateFault":
1931
+ throw await de_InvalidSnapshotStateFaultRes(parsedOutput, context);
1932
+ case "ServiceLinkedRoleNotFoundFault":
1933
+ case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1934
+ throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
1935
+ case "SnapshotAlreadyExistsFault":
1936
+ case "com.amazonaws.memorydb#SnapshotAlreadyExistsFault":
1937
+ throw await de_SnapshotAlreadyExistsFaultRes(parsedOutput, context);
1938
+ case "SnapshotNotFoundFault":
1939
+ case "com.amazonaws.memorydb#SnapshotNotFoundFault":
1940
+ throw await de_SnapshotNotFoundFaultRes(parsedOutput, context);
1941
+ case "SnapshotQuotaExceededFault":
1942
+ case "com.amazonaws.memorydb#SnapshotQuotaExceededFault":
1943
+ throw await de_SnapshotQuotaExceededFaultRes(parsedOutput, context);
1944
+ case "TagQuotaPerResourceExceeded":
1945
+ case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1946
+ throw await de_TagQuotaPerResourceExceededRes(parsedOutput, context);
1947
+ case "ACLAlreadyExistsFault":
1948
+ case "com.amazonaws.memorydb#ACLAlreadyExistsFault":
1949
+ throw await de_ACLAlreadyExistsFaultRes(parsedOutput, context);
1950
+ case "ACLQuotaExceededFault":
1951
+ case "com.amazonaws.memorydb#ACLQuotaExceededFault":
1952
+ throw await de_ACLQuotaExceededFaultRes(parsedOutput, context);
1953
+ case "DefaultUserRequired":
1954
+ case "com.amazonaws.memorydb#DefaultUserRequired":
1955
+ throw await de_DefaultUserRequiredRes(parsedOutput, context);
1956
+ case "DuplicateUserNameFault":
1957
+ case "com.amazonaws.memorydb#DuplicateUserNameFault":
1958
+ throw await de_DuplicateUserNameFaultRes(parsedOutput, context);
1959
+ case "UserNotFoundFault":
1960
+ case "com.amazonaws.memorydb#UserNotFoundFault":
1961
+ throw await de_UserNotFoundFaultRes(parsedOutput, context);
2977
1962
  case "ACLNotFoundFault":
2978
1963
  case "com.amazonaws.memorydb#ACLNotFoundFault":
2979
1964
  throw await de_ACLNotFoundFaultRes(parsedOutput, context);
2980
- case "ClusterNotFoundFault":
2981
- case "com.amazonaws.memorydb#ClusterNotFoundFault":
2982
- throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
1965
+ case "ClusterAlreadyExistsFault":
1966
+ case "com.amazonaws.memorydb#ClusterAlreadyExistsFault":
1967
+ throw await de_ClusterAlreadyExistsFaultRes(parsedOutput, context);
2983
1968
  case "ClusterQuotaForCustomerExceededFault":
2984
1969
  case "com.amazonaws.memorydb#ClusterQuotaForCustomerExceededFault":
2985
1970
  throw await de_ClusterQuotaForCustomerExceededFaultRes(parsedOutput, context);
1971
+ case "InsufficientClusterCapacityFault":
1972
+ case "com.amazonaws.memorydb#InsufficientClusterCapacityFault":
1973
+ throw await de_InsufficientClusterCapacityFaultRes(parsedOutput, context);
2986
1974
  case "InvalidACLStateFault":
2987
1975
  case "com.amazonaws.memorydb#InvalidACLStateFault":
2988
1976
  throw await de_InvalidACLStateFaultRes(parsedOutput, context);
2989
- case "InvalidClusterStateFault":
2990
- case "com.amazonaws.memorydb#InvalidClusterStateFault":
2991
- throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
2992
- case "InvalidKMSKeyFault":
2993
- case "com.amazonaws.memorydb#InvalidKMSKeyFault":
2994
- throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
2995
- case "InvalidNodeStateFault":
2996
- case "com.amazonaws.memorydb#InvalidNodeStateFault":
2997
- throw await de_InvalidNodeStateFaultRes(parsedOutput, context);
2998
- case "InvalidParameterCombinationException":
2999
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
3000
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
3001
- case "InvalidParameterValueException":
3002
- case "com.amazonaws.memorydb#InvalidParameterValueException":
3003
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1977
+ case "InvalidCredentialsException":
1978
+ case "com.amazonaws.memorydb#InvalidCredentialsException":
1979
+ throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
3004
1980
  case "InvalidVPCNetworkStateFault":
3005
1981
  case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
3006
1982
  throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
3007
- case "NoOperationFault":
3008
- case "com.amazonaws.memorydb#NoOperationFault":
3009
- throw await de_NoOperationFaultRes(parsedOutput, context);
3010
1983
  case "NodeQuotaForClusterExceededFault":
3011
1984
  case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
3012
1985
  throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
@@ -3016,144 +1989,93 @@ var de_UpdateClusterCommandError = /* @__PURE__ */ __name(async (output, context
3016
1989
  case "ParameterGroupNotFoundFault":
3017
1990
  case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
3018
1991
  throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
3019
- case "ServiceLinkedRoleNotFoundFault":
3020
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
3021
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
3022
1992
  case "ShardsPerClusterQuotaExceededFault":
3023
1993
  case "com.amazonaws.memorydb#ShardsPerClusterQuotaExceededFault":
3024
1994
  throw await de_ShardsPerClusterQuotaExceededFaultRes(parsedOutput, context);
3025
- default:
3026
- const parsedBody = parsedOutput.body;
3027
- return throwDefaultError({
3028
- output,
3029
- parsedBody,
3030
- errorCode
3031
- });
3032
- }
3033
- }, "de_UpdateClusterCommandError");
3034
- var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3035
- if (output.statusCode >= 300) {
3036
- return de_UpdateParameterGroupCommandError(output, context);
3037
- }
3038
- const data = await parseBody(output.body, context);
3039
- let contents = {};
3040
- contents = (0, import_smithy_client._json)(data);
3041
- const response = {
3042
- $metadata: deserializeMetadata(output),
3043
- ...contents
3044
- };
3045
- return response;
3046
- }, "de_UpdateParameterGroupCommand");
3047
- var de_UpdateParameterGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3048
- const parsedOutput = {
3049
- ...output,
3050
- body: await parseErrorBody(output.body, context)
3051
- };
3052
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3053
- switch (errorCode) {
3054
- case "InvalidParameterCombinationException":
3055
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
3056
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1995
+ case "SubnetGroupNotFoundFault":
1996
+ case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
1997
+ throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
3057
1998
  case "InvalidParameterGroupStateFault":
3058
1999
  case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
3059
2000
  throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
3060
- case "InvalidParameterValueException":
3061
- case "com.amazonaws.memorydb#InvalidParameterValueException":
3062
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
3063
- case "ParameterGroupNotFoundFault":
3064
- case "com.amazonaws.memorydb#ParameterGroupNotFoundFault":
3065
- throw await de_ParameterGroupNotFoundFaultRes(parsedOutput, context);
3066
- case "ServiceLinkedRoleNotFoundFault":
3067
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
3068
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
3069
- default:
3070
- const parsedBody = parsedOutput.body;
3071
- return throwDefaultError({
3072
- output,
3073
- parsedBody,
3074
- errorCode
3075
- });
3076
- }
3077
- }, "de_UpdateParameterGroupCommandError");
3078
- var de_UpdateSubnetGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3079
- if (output.statusCode >= 300) {
3080
- return de_UpdateSubnetGroupCommandError(output, context);
3081
- }
3082
- const data = await parseBody(output.body, context);
3083
- let contents = {};
3084
- contents = (0, import_smithy_client._json)(data);
3085
- const response = {
3086
- $metadata: deserializeMetadata(output),
3087
- ...contents
3088
- };
3089
- return response;
3090
- }, "de_UpdateSubnetGroupCommand");
3091
- var de_UpdateSubnetGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3092
- const parsedOutput = {
3093
- ...output,
3094
- body: await parseErrorBody(output.body, context)
3095
- };
3096
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3097
- switch (errorCode) {
2001
+ case "ParameterGroupAlreadyExistsFault":
2002
+ case "com.amazonaws.memorydb#ParameterGroupAlreadyExistsFault":
2003
+ throw await de_ParameterGroupAlreadyExistsFaultRes(parsedOutput, context);
2004
+ case "ParameterGroupQuotaExceededFault":
2005
+ case "com.amazonaws.memorydb#ParameterGroupQuotaExceededFault":
2006
+ throw await de_ParameterGroupQuotaExceededFaultRes(parsedOutput, context);
2007
+ case "ClusterNotFoundFault":
2008
+ case "com.amazonaws.memorydb#ClusterNotFoundFault":
2009
+ throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
2010
+ case "InvalidClusterStateFault":
2011
+ case "com.amazonaws.memorydb#InvalidClusterStateFault":
2012
+ throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
3098
2013
  case "InvalidSubnet":
3099
2014
  case "com.amazonaws.memorydb#InvalidSubnet":
3100
2015
  throw await de_InvalidSubnetRes(parsedOutput, context);
3101
- case "ServiceLinkedRoleNotFoundFault":
3102
- case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
3103
- throw await de_ServiceLinkedRoleNotFoundFaultRes(parsedOutput, context);
3104
- case "SubnetGroupNotFoundFault":
3105
- case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
3106
- throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
3107
- case "SubnetInUse":
3108
- case "com.amazonaws.memorydb#SubnetInUse":
3109
- throw await de_SubnetInUseRes(parsedOutput, context);
2016
+ case "SubnetGroupAlreadyExistsFault":
2017
+ case "com.amazonaws.memorydb#SubnetGroupAlreadyExistsFault":
2018
+ throw await de_SubnetGroupAlreadyExistsFaultRes(parsedOutput, context);
2019
+ case "SubnetGroupQuotaExceededFault":
2020
+ case "com.amazonaws.memorydb#SubnetGroupQuotaExceededFault":
2021
+ throw await de_SubnetGroupQuotaExceededFaultRes(parsedOutput, context);
3110
2022
  case "SubnetNotAllowedFault":
3111
2023
  case "com.amazonaws.memorydb#SubnetNotAllowedFault":
3112
2024
  throw await de_SubnetNotAllowedFaultRes(parsedOutput, context);
3113
2025
  case "SubnetQuotaExceededFault":
3114
2026
  case "com.amazonaws.memorydb#SubnetQuotaExceededFault":
3115
2027
  throw await de_SubnetQuotaExceededFaultRes(parsedOutput, context);
3116
- default:
3117
- const parsedBody = parsedOutput.body;
3118
- return throwDefaultError({
3119
- output,
3120
- parsedBody,
3121
- errorCode
3122
- });
3123
- }
3124
- }, "de_UpdateSubnetGroupCommandError");
3125
- var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
3126
- if (output.statusCode >= 300) {
3127
- return de_UpdateUserCommandError(output, context);
3128
- }
3129
- const data = await parseBody(output.body, context);
3130
- let contents = {};
3131
- contents = (0, import_smithy_client._json)(data);
3132
- const response = {
3133
- $metadata: deserializeMetadata(output),
3134
- ...contents
3135
- };
3136
- return response;
3137
- }, "de_UpdateUserCommand");
3138
- var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
3139
- const parsedOutput = {
3140
- ...output,
3141
- body: await parseErrorBody(output.body, context)
3142
- };
3143
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3144
- switch (errorCode) {
3145
- case "InvalidParameterCombinationException":
3146
- case "com.amazonaws.memorydb#InvalidParameterCombinationException":
3147
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
3148
- case "InvalidParameterValueException":
3149
- case "com.amazonaws.memorydb#InvalidParameterValueException":
3150
- throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
2028
+ case "UserAlreadyExistsFault":
2029
+ case "com.amazonaws.memorydb#UserAlreadyExistsFault":
2030
+ throw await de_UserAlreadyExistsFaultRes(parsedOutput, context);
2031
+ case "UserQuotaExceededFault":
2032
+ case "com.amazonaws.memorydb#UserQuotaExceededFault":
2033
+ throw await de_UserQuotaExceededFaultRes(parsedOutput, context);
2034
+ case "SubnetGroupInUseFault":
2035
+ case "com.amazonaws.memorydb#SubnetGroupInUseFault":
2036
+ throw await de_SubnetGroupInUseFaultRes(parsedOutput, context);
3151
2037
  case "InvalidUserStateFault":
3152
2038
  case "com.amazonaws.memorydb#InvalidUserStateFault":
3153
2039
  throw await de_InvalidUserStateFaultRes(parsedOutput, context);
3154
- case "UserNotFoundFault":
3155
- case "com.amazonaws.memorydb#UserNotFoundFault":
3156
- throw await de_UserNotFoundFaultRes(parsedOutput, context);
2040
+ case "ReservedNodeNotFoundFault":
2041
+ case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
2042
+ throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
2043
+ case "ReservedNodesOfferingNotFoundFault":
2044
+ case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
2045
+ throw await de_ReservedNodesOfferingNotFoundFaultRes(parsedOutput, context);
2046
+ case "APICallRateForCustomerExceededFault":
2047
+ case "com.amazonaws.memorydb#APICallRateForCustomerExceededFault":
2048
+ throw await de_APICallRateForCustomerExceededFaultRes(parsedOutput, context);
2049
+ case "InvalidKMSKeyFault":
2050
+ case "com.amazonaws.memorydb#InvalidKMSKeyFault":
2051
+ throw await de_InvalidKMSKeyFaultRes(parsedOutput, context);
2052
+ case "ShardNotFoundFault":
2053
+ case "com.amazonaws.memorydb#ShardNotFoundFault":
2054
+ throw await de_ShardNotFoundFaultRes(parsedOutput, context);
2055
+ case "TestFailoverNotAvailableFault":
2056
+ case "com.amazonaws.memorydb#TestFailoverNotAvailableFault":
2057
+ throw await de_TestFailoverNotAvailableFaultRes(parsedOutput, context);
2058
+ case "InvalidARNFault":
2059
+ case "com.amazonaws.memorydb#InvalidARNFault":
2060
+ throw await de_InvalidARNFaultRes(parsedOutput, context);
2061
+ case "ReservedNodeAlreadyExistsFault":
2062
+ case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
2063
+ throw await de_ReservedNodeAlreadyExistsFaultRes(parsedOutput, context);
2064
+ case "ReservedNodeQuotaExceededFault":
2065
+ case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
2066
+ throw await de_ReservedNodeQuotaExceededFaultRes(parsedOutput, context);
2067
+ case "TagNotFoundFault":
2068
+ case "com.amazonaws.memorydb#TagNotFoundFault":
2069
+ throw await de_TagNotFoundFaultRes(parsedOutput, context);
2070
+ case "InvalidNodeStateFault":
2071
+ case "com.amazonaws.memorydb#InvalidNodeStateFault":
2072
+ throw await de_InvalidNodeStateFaultRes(parsedOutput, context);
2073
+ case "NoOperationFault":
2074
+ case "com.amazonaws.memorydb#NoOperationFault":
2075
+ throw await de_NoOperationFaultRes(parsedOutput, context);
2076
+ case "SubnetInUse":
2077
+ case "com.amazonaws.memorydb#SubnetInUse":
2078
+ throw await de_SubnetInUseRes(parsedOutput, context);
3157
2079
  default:
3158
2080
  const parsedBody = parsedOutput.body;
3159
2081
  return throwDefaultError({
@@ -3162,7 +2084,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
3162
2084
  errorCode
3163
2085
  });
3164
2086
  }
3165
- }, "de_UpdateUserCommandError");
2087
+ }, "de_CommandError");
3166
2088
  var de_ACLAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3167
2089
  const body = parsedOutput.body;
3168
2090
  const deserialized = (0, import_smithy_client._json)(body);