@aws-sdk/client-redshift 3.312.0 → 3.316.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/Redshift.js +123 -1666
- package/dist-cjs/protocols/Aws_query.js +239 -357
- package/dist-es/Redshift.js +123 -1666
- package/dist-es/protocols/Aws_query.js +240 -358
- package/dist-types/Redshift.d.ts +146 -772
- package/dist-types/ts3.4/Redshift.d.ts +2 -1
- package/package.json +6 -6
|
@@ -1329,7 +1329,7 @@ const de_AcceptReservedNodeExchangeCommand = async (output, context) => {
|
|
|
1329
1329
|
$metadata: deserializeMetadata(output),
|
|
1330
1330
|
...contents,
|
|
1331
1331
|
};
|
|
1332
|
-
return
|
|
1332
|
+
return response;
|
|
1333
1333
|
};
|
|
1334
1334
|
exports.de_AcceptReservedNodeExchangeCommand = de_AcceptReservedNodeExchangeCommand;
|
|
1335
1335
|
const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
|
|
@@ -1362,10 +1362,9 @@ const de_AcceptReservedNodeExchangeCommandError = async (output, context) => {
|
|
|
1362
1362
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1363
1363
|
default:
|
|
1364
1364
|
const parsedBody = parsedOutput.body;
|
|
1365
|
-
|
|
1365
|
+
return throwDefaultError({
|
|
1366
1366
|
output,
|
|
1367
1367
|
parsedBody: parsedBody.Error,
|
|
1368
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1369
1368
|
errorCode,
|
|
1370
1369
|
});
|
|
1371
1370
|
}
|
|
@@ -1381,7 +1380,7 @@ const de_AddPartnerCommand = async (output, context) => {
|
|
|
1381
1380
|
$metadata: deserializeMetadata(output),
|
|
1382
1381
|
...contents,
|
|
1383
1382
|
};
|
|
1384
|
-
return
|
|
1383
|
+
return response;
|
|
1385
1384
|
};
|
|
1386
1385
|
exports.de_AddPartnerCommand = de_AddPartnerCommand;
|
|
1387
1386
|
const de_AddPartnerCommandError = async (output, context) => {
|
|
@@ -1402,10 +1401,9 @@ const de_AddPartnerCommandError = async (output, context) => {
|
|
|
1402
1401
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
1403
1402
|
default:
|
|
1404
1403
|
const parsedBody = parsedOutput.body;
|
|
1405
|
-
|
|
1404
|
+
return throwDefaultError({
|
|
1406
1405
|
output,
|
|
1407
1406
|
parsedBody: parsedBody.Error,
|
|
1408
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1409
1407
|
errorCode,
|
|
1410
1408
|
});
|
|
1411
1409
|
}
|
|
@@ -1421,7 +1419,7 @@ const de_AssociateDataShareConsumerCommand = async (output, context) => {
|
|
|
1421
1419
|
$metadata: deserializeMetadata(output),
|
|
1422
1420
|
...contents,
|
|
1423
1421
|
};
|
|
1424
|
-
return
|
|
1422
|
+
return response;
|
|
1425
1423
|
};
|
|
1426
1424
|
exports.de_AssociateDataShareConsumerCommand = de_AssociateDataShareConsumerCommand;
|
|
1427
1425
|
const de_AssociateDataShareConsumerCommandError = async (output, context) => {
|
|
@@ -1439,10 +1437,9 @@ const de_AssociateDataShareConsumerCommandError = async (output, context) => {
|
|
|
1439
1437
|
throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
|
|
1440
1438
|
default:
|
|
1441
1439
|
const parsedBody = parsedOutput.body;
|
|
1442
|
-
|
|
1440
|
+
return throwDefaultError({
|
|
1443
1441
|
output,
|
|
1444
1442
|
parsedBody: parsedBody.Error,
|
|
1445
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1446
1443
|
errorCode,
|
|
1447
1444
|
});
|
|
1448
1445
|
}
|
|
@@ -1458,7 +1455,7 @@ const de_AuthorizeClusterSecurityGroupIngressCommand = async (output, context) =
|
|
|
1458
1455
|
$metadata: deserializeMetadata(output),
|
|
1459
1456
|
...contents,
|
|
1460
1457
|
};
|
|
1461
|
-
return
|
|
1458
|
+
return response;
|
|
1462
1459
|
};
|
|
1463
1460
|
exports.de_AuthorizeClusterSecurityGroupIngressCommand = de_AuthorizeClusterSecurityGroupIngressCommand;
|
|
1464
1461
|
const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, context) => {
|
|
@@ -1482,10 +1479,9 @@ const de_AuthorizeClusterSecurityGroupIngressCommandError = async (output, conte
|
|
|
1482
1479
|
throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
|
|
1483
1480
|
default:
|
|
1484
1481
|
const parsedBody = parsedOutput.body;
|
|
1485
|
-
|
|
1482
|
+
return throwDefaultError({
|
|
1486
1483
|
output,
|
|
1487
1484
|
parsedBody: parsedBody.Error,
|
|
1488
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1489
1485
|
errorCode,
|
|
1490
1486
|
});
|
|
1491
1487
|
}
|
|
@@ -1501,7 +1497,7 @@ const de_AuthorizeDataShareCommand = async (output, context) => {
|
|
|
1501
1497
|
$metadata: deserializeMetadata(output),
|
|
1502
1498
|
...contents,
|
|
1503
1499
|
};
|
|
1504
|
-
return
|
|
1500
|
+
return response;
|
|
1505
1501
|
};
|
|
1506
1502
|
exports.de_AuthorizeDataShareCommand = de_AuthorizeDataShareCommand;
|
|
1507
1503
|
const de_AuthorizeDataShareCommandError = async (output, context) => {
|
|
@@ -1516,10 +1512,9 @@ const de_AuthorizeDataShareCommandError = async (output, context) => {
|
|
|
1516
1512
|
throw await de_InvalidDataShareFaultRes(parsedOutput, context);
|
|
1517
1513
|
default:
|
|
1518
1514
|
const parsedBody = parsedOutput.body;
|
|
1519
|
-
|
|
1515
|
+
return throwDefaultError({
|
|
1520
1516
|
output,
|
|
1521
1517
|
parsedBody: parsedBody.Error,
|
|
1522
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1523
1518
|
errorCode,
|
|
1524
1519
|
});
|
|
1525
1520
|
}
|
|
@@ -1535,7 +1530,7 @@ const de_AuthorizeEndpointAccessCommand = async (output, context) => {
|
|
|
1535
1530
|
$metadata: deserializeMetadata(output),
|
|
1536
1531
|
...contents,
|
|
1537
1532
|
};
|
|
1538
|
-
return
|
|
1533
|
+
return response;
|
|
1539
1534
|
};
|
|
1540
1535
|
exports.de_AuthorizeEndpointAccessCommand = de_AuthorizeEndpointAccessCommand;
|
|
1541
1536
|
const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
|
|
@@ -1565,10 +1560,9 @@ const de_AuthorizeEndpointAccessCommandError = async (output, context) => {
|
|
|
1565
1560
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1566
1561
|
default:
|
|
1567
1562
|
const parsedBody = parsedOutput.body;
|
|
1568
|
-
|
|
1563
|
+
return throwDefaultError({
|
|
1569
1564
|
output,
|
|
1570
1565
|
parsedBody: parsedBody.Error,
|
|
1571
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1572
1566
|
errorCode,
|
|
1573
1567
|
});
|
|
1574
1568
|
}
|
|
@@ -1584,7 +1578,7 @@ const de_AuthorizeSnapshotAccessCommand = async (output, context) => {
|
|
|
1584
1578
|
$metadata: deserializeMetadata(output),
|
|
1585
1579
|
...contents,
|
|
1586
1580
|
};
|
|
1587
|
-
return
|
|
1581
|
+
return response;
|
|
1588
1582
|
};
|
|
1589
1583
|
exports.de_AuthorizeSnapshotAccessCommand = de_AuthorizeSnapshotAccessCommand;
|
|
1590
1584
|
const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
|
|
@@ -1617,10 +1611,9 @@ const de_AuthorizeSnapshotAccessCommandError = async (output, context) => {
|
|
|
1617
1611
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1618
1612
|
default:
|
|
1619
1613
|
const parsedBody = parsedOutput.body;
|
|
1620
|
-
|
|
1614
|
+
return throwDefaultError({
|
|
1621
1615
|
output,
|
|
1622
1616
|
parsedBody: parsedBody.Error,
|
|
1623
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1624
1617
|
errorCode,
|
|
1625
1618
|
});
|
|
1626
1619
|
}
|
|
@@ -1636,7 +1629,7 @@ const de_BatchDeleteClusterSnapshotsCommand = async (output, context) => {
|
|
|
1636
1629
|
$metadata: deserializeMetadata(output),
|
|
1637
1630
|
...contents,
|
|
1638
1631
|
};
|
|
1639
|
-
return
|
|
1632
|
+
return response;
|
|
1640
1633
|
};
|
|
1641
1634
|
exports.de_BatchDeleteClusterSnapshotsCommand = de_BatchDeleteClusterSnapshotsCommand;
|
|
1642
1635
|
const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
|
|
@@ -1651,10 +1644,9 @@ const de_BatchDeleteClusterSnapshotsCommandError = async (output, context) => {
|
|
|
1651
1644
|
throw await de_BatchDeleteRequestSizeExceededFaultRes(parsedOutput, context);
|
|
1652
1645
|
default:
|
|
1653
1646
|
const parsedBody = parsedOutput.body;
|
|
1654
|
-
|
|
1647
|
+
return throwDefaultError({
|
|
1655
1648
|
output,
|
|
1656
1649
|
parsedBody: parsedBody.Error,
|
|
1657
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1658
1650
|
errorCode,
|
|
1659
1651
|
});
|
|
1660
1652
|
}
|
|
@@ -1670,7 +1662,7 @@ const de_BatchModifyClusterSnapshotsCommand = async (output, context) => {
|
|
|
1670
1662
|
$metadata: deserializeMetadata(output),
|
|
1671
1663
|
...contents,
|
|
1672
1664
|
};
|
|
1673
|
-
return
|
|
1665
|
+
return response;
|
|
1674
1666
|
};
|
|
1675
1667
|
exports.de_BatchModifyClusterSnapshotsCommand = de_BatchModifyClusterSnapshotsCommand;
|
|
1676
1668
|
const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
|
|
@@ -1688,10 +1680,9 @@ const de_BatchModifyClusterSnapshotsCommandError = async (output, context) => {
|
|
|
1688
1680
|
throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
|
|
1689
1681
|
default:
|
|
1690
1682
|
const parsedBody = parsedOutput.body;
|
|
1691
|
-
|
|
1683
|
+
return throwDefaultError({
|
|
1692
1684
|
output,
|
|
1693
1685
|
parsedBody: parsedBody.Error,
|
|
1694
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1695
1686
|
errorCode,
|
|
1696
1687
|
});
|
|
1697
1688
|
}
|
|
@@ -1707,7 +1698,7 @@ const de_CancelResizeCommand = async (output, context) => {
|
|
|
1707
1698
|
$metadata: deserializeMetadata(output),
|
|
1708
1699
|
...contents,
|
|
1709
1700
|
};
|
|
1710
|
-
return
|
|
1701
|
+
return response;
|
|
1711
1702
|
};
|
|
1712
1703
|
exports.de_CancelResizeCommand = de_CancelResizeCommand;
|
|
1713
1704
|
const de_CancelResizeCommandError = async (output, context) => {
|
|
@@ -1731,10 +1722,9 @@ const de_CancelResizeCommandError = async (output, context) => {
|
|
|
1731
1722
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
1732
1723
|
default:
|
|
1733
1724
|
const parsedBody = parsedOutput.body;
|
|
1734
|
-
|
|
1725
|
+
return throwDefaultError({
|
|
1735
1726
|
output,
|
|
1736
1727
|
parsedBody: parsedBody.Error,
|
|
1737
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1738
1728
|
errorCode,
|
|
1739
1729
|
});
|
|
1740
1730
|
}
|
|
@@ -1750,7 +1740,7 @@ const de_CopyClusterSnapshotCommand = async (output, context) => {
|
|
|
1750
1740
|
$metadata: deserializeMetadata(output),
|
|
1751
1741
|
...contents,
|
|
1752
1742
|
};
|
|
1753
|
-
return
|
|
1743
|
+
return response;
|
|
1754
1744
|
};
|
|
1755
1745
|
exports.de_CopyClusterSnapshotCommand = de_CopyClusterSnapshotCommand;
|
|
1756
1746
|
const de_CopyClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -1777,10 +1767,9 @@ const de_CopyClusterSnapshotCommandError = async (output, context) => {
|
|
|
1777
1767
|
throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
|
|
1778
1768
|
default:
|
|
1779
1769
|
const parsedBody = parsedOutput.body;
|
|
1780
|
-
|
|
1770
|
+
return throwDefaultError({
|
|
1781
1771
|
output,
|
|
1782
1772
|
parsedBody: parsedBody.Error,
|
|
1783
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1784
1773
|
errorCode,
|
|
1785
1774
|
});
|
|
1786
1775
|
}
|
|
@@ -1796,7 +1785,7 @@ const de_CreateAuthenticationProfileCommand = async (output, context) => {
|
|
|
1796
1785
|
$metadata: deserializeMetadata(output),
|
|
1797
1786
|
...contents,
|
|
1798
1787
|
};
|
|
1799
|
-
return
|
|
1788
|
+
return response;
|
|
1800
1789
|
};
|
|
1801
1790
|
exports.de_CreateAuthenticationProfileCommand = de_CreateAuthenticationProfileCommand;
|
|
1802
1791
|
const de_CreateAuthenticationProfileCommandError = async (output, context) => {
|
|
@@ -1817,10 +1806,9 @@ const de_CreateAuthenticationProfileCommandError = async (output, context) => {
|
|
|
1817
1806
|
throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
|
|
1818
1807
|
default:
|
|
1819
1808
|
const parsedBody = parsedOutput.body;
|
|
1820
|
-
|
|
1809
|
+
return throwDefaultError({
|
|
1821
1810
|
output,
|
|
1822
1811
|
parsedBody: parsedBody.Error,
|
|
1823
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1824
1812
|
errorCode,
|
|
1825
1813
|
});
|
|
1826
1814
|
}
|
|
@@ -1836,7 +1824,7 @@ const de_CreateClusterCommand = async (output, context) => {
|
|
|
1836
1824
|
$metadata: deserializeMetadata(output),
|
|
1837
1825
|
...contents,
|
|
1838
1826
|
};
|
|
1839
|
-
return
|
|
1827
|
+
return response;
|
|
1840
1828
|
};
|
|
1841
1829
|
exports.de_CreateClusterCommand = de_CreateClusterCommand;
|
|
1842
1830
|
const de_CreateClusterCommandError = async (output, context) => {
|
|
@@ -1914,10 +1902,9 @@ const de_CreateClusterCommandError = async (output, context) => {
|
|
|
1914
1902
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1915
1903
|
default:
|
|
1916
1904
|
const parsedBody = parsedOutput.body;
|
|
1917
|
-
|
|
1905
|
+
return throwDefaultError({
|
|
1918
1906
|
output,
|
|
1919
1907
|
parsedBody: parsedBody.Error,
|
|
1920
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1921
1908
|
errorCode,
|
|
1922
1909
|
});
|
|
1923
1910
|
}
|
|
@@ -1933,7 +1920,7 @@ const de_CreateClusterParameterGroupCommand = async (output, context) => {
|
|
|
1933
1920
|
$metadata: deserializeMetadata(output),
|
|
1934
1921
|
...contents,
|
|
1935
1922
|
};
|
|
1936
|
-
return
|
|
1923
|
+
return response;
|
|
1937
1924
|
};
|
|
1938
1925
|
exports.de_CreateClusterParameterGroupCommand = de_CreateClusterParameterGroupCommand;
|
|
1939
1926
|
const de_CreateClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -1957,10 +1944,9 @@ const de_CreateClusterParameterGroupCommandError = async (output, context) => {
|
|
|
1957
1944
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
1958
1945
|
default:
|
|
1959
1946
|
const parsedBody = parsedOutput.body;
|
|
1960
|
-
|
|
1947
|
+
return throwDefaultError({
|
|
1961
1948
|
output,
|
|
1962
1949
|
parsedBody: parsedBody.Error,
|
|
1963
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
1964
1950
|
errorCode,
|
|
1965
1951
|
});
|
|
1966
1952
|
}
|
|
@@ -1976,7 +1962,7 @@ const de_CreateClusterSecurityGroupCommand = async (output, context) => {
|
|
|
1976
1962
|
$metadata: deserializeMetadata(output),
|
|
1977
1963
|
...contents,
|
|
1978
1964
|
};
|
|
1979
|
-
return
|
|
1965
|
+
return response;
|
|
1980
1966
|
};
|
|
1981
1967
|
exports.de_CreateClusterSecurityGroupCommand = de_CreateClusterSecurityGroupCommand;
|
|
1982
1968
|
const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
|
|
@@ -2000,10 +1986,9 @@ const de_CreateClusterSecurityGroupCommandError = async (output, context) => {
|
|
|
2000
1986
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2001
1987
|
default:
|
|
2002
1988
|
const parsedBody = parsedOutput.body;
|
|
2003
|
-
|
|
1989
|
+
return throwDefaultError({
|
|
2004
1990
|
output,
|
|
2005
1991
|
parsedBody: parsedBody.Error,
|
|
2006
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2007
1992
|
errorCode,
|
|
2008
1993
|
});
|
|
2009
1994
|
}
|
|
@@ -2019,7 +2004,7 @@ const de_CreateClusterSnapshotCommand = async (output, context) => {
|
|
|
2019
2004
|
$metadata: deserializeMetadata(output),
|
|
2020
2005
|
...contents,
|
|
2021
2006
|
};
|
|
2022
|
-
return
|
|
2007
|
+
return response;
|
|
2023
2008
|
};
|
|
2024
2009
|
exports.de_CreateClusterSnapshotCommand = de_CreateClusterSnapshotCommand;
|
|
2025
2010
|
const de_CreateClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -2052,10 +2037,9 @@ const de_CreateClusterSnapshotCommandError = async (output, context) => {
|
|
|
2052
2037
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2053
2038
|
default:
|
|
2054
2039
|
const parsedBody = parsedOutput.body;
|
|
2055
|
-
|
|
2040
|
+
return throwDefaultError({
|
|
2056
2041
|
output,
|
|
2057
2042
|
parsedBody: parsedBody.Error,
|
|
2058
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2059
2043
|
errorCode,
|
|
2060
2044
|
});
|
|
2061
2045
|
}
|
|
@@ -2071,7 +2055,7 @@ const de_CreateClusterSubnetGroupCommand = async (output, context) => {
|
|
|
2071
2055
|
$metadata: deserializeMetadata(output),
|
|
2072
2056
|
...contents,
|
|
2073
2057
|
};
|
|
2074
|
-
return
|
|
2058
|
+
return response;
|
|
2075
2059
|
};
|
|
2076
2060
|
exports.de_CreateClusterSubnetGroupCommand = de_CreateClusterSubnetGroupCommand;
|
|
2077
2061
|
const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
|
|
@@ -2107,10 +2091,9 @@ const de_CreateClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
2107
2091
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
2108
2092
|
default:
|
|
2109
2093
|
const parsedBody = parsedOutput.body;
|
|
2110
|
-
|
|
2094
|
+
return throwDefaultError({
|
|
2111
2095
|
output,
|
|
2112
2096
|
parsedBody: parsedBody.Error,
|
|
2113
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2114
2097
|
errorCode,
|
|
2115
2098
|
});
|
|
2116
2099
|
}
|
|
@@ -2126,7 +2109,7 @@ const de_CreateEndpointAccessCommand = async (output, context) => {
|
|
|
2126
2109
|
$metadata: deserializeMetadata(output),
|
|
2127
2110
|
...contents,
|
|
2128
2111
|
};
|
|
2129
|
-
return
|
|
2112
|
+
return response;
|
|
2130
2113
|
};
|
|
2131
2114
|
exports.de_CreateEndpointAccessCommand = de_CreateEndpointAccessCommand;
|
|
2132
2115
|
const de_CreateEndpointAccessCommandError = async (output, context) => {
|
|
@@ -2168,10 +2151,9 @@ const de_CreateEndpointAccessCommandError = async (output, context) => {
|
|
|
2168
2151
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
2169
2152
|
default:
|
|
2170
2153
|
const parsedBody = parsedOutput.body;
|
|
2171
|
-
|
|
2154
|
+
return throwDefaultError({
|
|
2172
2155
|
output,
|
|
2173
2156
|
parsedBody: parsedBody.Error,
|
|
2174
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2175
2157
|
errorCode,
|
|
2176
2158
|
});
|
|
2177
2159
|
}
|
|
@@ -2187,7 +2169,7 @@ const de_CreateEventSubscriptionCommand = async (output, context) => {
|
|
|
2187
2169
|
$metadata: deserializeMetadata(output),
|
|
2188
2170
|
...contents,
|
|
2189
2171
|
};
|
|
2190
|
-
return
|
|
2172
|
+
return response;
|
|
2191
2173
|
};
|
|
2192
2174
|
exports.de_CreateEventSubscriptionCommand = de_CreateEventSubscriptionCommand;
|
|
2193
2175
|
const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -2232,10 +2214,9 @@ const de_CreateEventSubscriptionCommandError = async (output, context) => {
|
|
|
2232
2214
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2233
2215
|
default:
|
|
2234
2216
|
const parsedBody = parsedOutput.body;
|
|
2235
|
-
|
|
2217
|
+
return throwDefaultError({
|
|
2236
2218
|
output,
|
|
2237
2219
|
parsedBody: parsedBody.Error,
|
|
2238
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2239
2220
|
errorCode,
|
|
2240
2221
|
});
|
|
2241
2222
|
}
|
|
@@ -2251,7 +2232,7 @@ const de_CreateHsmClientCertificateCommand = async (output, context) => {
|
|
|
2251
2232
|
$metadata: deserializeMetadata(output),
|
|
2252
2233
|
...contents,
|
|
2253
2234
|
};
|
|
2254
|
-
return
|
|
2235
|
+
return response;
|
|
2255
2236
|
};
|
|
2256
2237
|
exports.de_CreateHsmClientCertificateCommand = de_CreateHsmClientCertificateCommand;
|
|
2257
2238
|
const de_CreateHsmClientCertificateCommandError = async (output, context) => {
|
|
@@ -2275,10 +2256,9 @@ const de_CreateHsmClientCertificateCommandError = async (output, context) => {
|
|
|
2275
2256
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2276
2257
|
default:
|
|
2277
2258
|
const parsedBody = parsedOutput.body;
|
|
2278
|
-
|
|
2259
|
+
return throwDefaultError({
|
|
2279
2260
|
output,
|
|
2280
2261
|
parsedBody: parsedBody.Error,
|
|
2281
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2282
2262
|
errorCode,
|
|
2283
2263
|
});
|
|
2284
2264
|
}
|
|
@@ -2294,7 +2274,7 @@ const de_CreateHsmConfigurationCommand = async (output, context) => {
|
|
|
2294
2274
|
$metadata: deserializeMetadata(output),
|
|
2295
2275
|
...contents,
|
|
2296
2276
|
};
|
|
2297
|
-
return
|
|
2277
|
+
return response;
|
|
2298
2278
|
};
|
|
2299
2279
|
exports.de_CreateHsmConfigurationCommand = de_CreateHsmConfigurationCommand;
|
|
2300
2280
|
const de_CreateHsmConfigurationCommandError = async (output, context) => {
|
|
@@ -2318,10 +2298,9 @@ const de_CreateHsmConfigurationCommandError = async (output, context) => {
|
|
|
2318
2298
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2319
2299
|
default:
|
|
2320
2300
|
const parsedBody = parsedOutput.body;
|
|
2321
|
-
|
|
2301
|
+
return throwDefaultError({
|
|
2322
2302
|
output,
|
|
2323
2303
|
parsedBody: parsedBody.Error,
|
|
2324
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2325
2304
|
errorCode,
|
|
2326
2305
|
});
|
|
2327
2306
|
}
|
|
@@ -2337,7 +2316,7 @@ const de_CreateScheduledActionCommand = async (output, context) => {
|
|
|
2337
2316
|
$metadata: deserializeMetadata(output),
|
|
2338
2317
|
...contents,
|
|
2339
2318
|
};
|
|
2340
|
-
return
|
|
2319
|
+
return response;
|
|
2341
2320
|
};
|
|
2342
2321
|
exports.de_CreateScheduledActionCommand = de_CreateScheduledActionCommand;
|
|
2343
2322
|
const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
@@ -2367,10 +2346,9 @@ const de_CreateScheduledActionCommandError = async (output, context) => {
|
|
|
2367
2346
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
2368
2347
|
default:
|
|
2369
2348
|
const parsedBody = parsedOutput.body;
|
|
2370
|
-
|
|
2349
|
+
return throwDefaultError({
|
|
2371
2350
|
output,
|
|
2372
2351
|
parsedBody: parsedBody.Error,
|
|
2373
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2374
2352
|
errorCode,
|
|
2375
2353
|
});
|
|
2376
2354
|
}
|
|
@@ -2386,7 +2364,7 @@ const de_CreateSnapshotCopyGrantCommand = async (output, context) => {
|
|
|
2386
2364
|
$metadata: deserializeMetadata(output),
|
|
2387
2365
|
...contents,
|
|
2388
2366
|
};
|
|
2389
|
-
return
|
|
2367
|
+
return response;
|
|
2390
2368
|
};
|
|
2391
2369
|
exports.de_CreateSnapshotCopyGrantCommand = de_CreateSnapshotCopyGrantCommand;
|
|
2392
2370
|
const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
|
|
@@ -2416,10 +2394,9 @@ const de_CreateSnapshotCopyGrantCommandError = async (output, context) => {
|
|
|
2416
2394
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2417
2395
|
default:
|
|
2418
2396
|
const parsedBody = parsedOutput.body;
|
|
2419
|
-
|
|
2397
|
+
return throwDefaultError({
|
|
2420
2398
|
output,
|
|
2421
2399
|
parsedBody: parsedBody.Error,
|
|
2422
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2423
2400
|
errorCode,
|
|
2424
2401
|
});
|
|
2425
2402
|
}
|
|
@@ -2435,7 +2412,7 @@ const de_CreateSnapshotScheduleCommand = async (output, context) => {
|
|
|
2435
2412
|
$metadata: deserializeMetadata(output),
|
|
2436
2413
|
...contents,
|
|
2437
2414
|
};
|
|
2438
|
-
return
|
|
2415
|
+
return response;
|
|
2439
2416
|
};
|
|
2440
2417
|
exports.de_CreateSnapshotScheduleCommand = de_CreateSnapshotScheduleCommand;
|
|
2441
2418
|
const de_CreateSnapshotScheduleCommandError = async (output, context) => {
|
|
@@ -2465,10 +2442,9 @@ const de_CreateSnapshotScheduleCommandError = async (output, context) => {
|
|
|
2465
2442
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2466
2443
|
default:
|
|
2467
2444
|
const parsedBody = parsedOutput.body;
|
|
2468
|
-
|
|
2445
|
+
return throwDefaultError({
|
|
2469
2446
|
output,
|
|
2470
2447
|
parsedBody: parsedBody.Error,
|
|
2471
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2472
2448
|
errorCode,
|
|
2473
2449
|
});
|
|
2474
2450
|
}
|
|
@@ -2481,7 +2457,7 @@ const de_CreateTagsCommand = async (output, context) => {
|
|
|
2481
2457
|
const response = {
|
|
2482
2458
|
$metadata: deserializeMetadata(output),
|
|
2483
2459
|
};
|
|
2484
|
-
return
|
|
2460
|
+
return response;
|
|
2485
2461
|
};
|
|
2486
2462
|
exports.de_CreateTagsCommand = de_CreateTagsCommand;
|
|
2487
2463
|
const de_CreateTagsCommandError = async (output, context) => {
|
|
@@ -2505,10 +2481,9 @@ const de_CreateTagsCommandError = async (output, context) => {
|
|
|
2505
2481
|
throw await de_TagLimitExceededFaultRes(parsedOutput, context);
|
|
2506
2482
|
default:
|
|
2507
2483
|
const parsedBody = parsedOutput.body;
|
|
2508
|
-
|
|
2484
|
+
return throwDefaultError({
|
|
2509
2485
|
output,
|
|
2510
2486
|
parsedBody: parsedBody.Error,
|
|
2511
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2512
2487
|
errorCode,
|
|
2513
2488
|
});
|
|
2514
2489
|
}
|
|
@@ -2524,7 +2499,7 @@ const de_CreateUsageLimitCommand = async (output, context) => {
|
|
|
2524
2499
|
$metadata: deserializeMetadata(output),
|
|
2525
2500
|
...contents,
|
|
2526
2501
|
};
|
|
2527
|
-
return
|
|
2502
|
+
return response;
|
|
2528
2503
|
};
|
|
2529
2504
|
exports.de_CreateUsageLimitCommand = de_CreateUsageLimitCommand;
|
|
2530
2505
|
const de_CreateUsageLimitCommandError = async (output, context) => {
|
|
@@ -2557,10 +2532,9 @@ const de_CreateUsageLimitCommandError = async (output, context) => {
|
|
|
2557
2532
|
throw await de_UsageLimitAlreadyExistsFaultRes(parsedOutput, context);
|
|
2558
2533
|
default:
|
|
2559
2534
|
const parsedBody = parsedOutput.body;
|
|
2560
|
-
|
|
2535
|
+
return throwDefaultError({
|
|
2561
2536
|
output,
|
|
2562
2537
|
parsedBody: parsedBody.Error,
|
|
2563
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2564
2538
|
errorCode,
|
|
2565
2539
|
});
|
|
2566
2540
|
}
|
|
@@ -2576,7 +2550,7 @@ const de_DeauthorizeDataShareCommand = async (output, context) => {
|
|
|
2576
2550
|
$metadata: deserializeMetadata(output),
|
|
2577
2551
|
...contents,
|
|
2578
2552
|
};
|
|
2579
|
-
return
|
|
2553
|
+
return response;
|
|
2580
2554
|
};
|
|
2581
2555
|
exports.de_DeauthorizeDataShareCommand = de_DeauthorizeDataShareCommand;
|
|
2582
2556
|
const de_DeauthorizeDataShareCommandError = async (output, context) => {
|
|
@@ -2591,10 +2565,9 @@ const de_DeauthorizeDataShareCommandError = async (output, context) => {
|
|
|
2591
2565
|
throw await de_InvalidDataShareFaultRes(parsedOutput, context);
|
|
2592
2566
|
default:
|
|
2593
2567
|
const parsedBody = parsedOutput.body;
|
|
2594
|
-
|
|
2568
|
+
return throwDefaultError({
|
|
2595
2569
|
output,
|
|
2596
2570
|
parsedBody: parsedBody.Error,
|
|
2597
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2598
2571
|
errorCode,
|
|
2599
2572
|
});
|
|
2600
2573
|
}
|
|
@@ -2610,7 +2583,7 @@ const de_DeleteAuthenticationProfileCommand = async (output, context) => {
|
|
|
2610
2583
|
$metadata: deserializeMetadata(output),
|
|
2611
2584
|
...contents,
|
|
2612
2585
|
};
|
|
2613
|
-
return
|
|
2586
|
+
return response;
|
|
2614
2587
|
};
|
|
2615
2588
|
exports.de_DeleteAuthenticationProfileCommand = de_DeleteAuthenticationProfileCommand;
|
|
2616
2589
|
const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
|
|
@@ -2628,10 +2601,9 @@ const de_DeleteAuthenticationProfileCommandError = async (output, context) => {
|
|
|
2628
2601
|
throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
|
|
2629
2602
|
default:
|
|
2630
2603
|
const parsedBody = parsedOutput.body;
|
|
2631
|
-
|
|
2604
|
+
return throwDefaultError({
|
|
2632
2605
|
output,
|
|
2633
2606
|
parsedBody: parsedBody.Error,
|
|
2634
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2635
2607
|
errorCode,
|
|
2636
2608
|
});
|
|
2637
2609
|
}
|
|
@@ -2647,7 +2619,7 @@ const de_DeleteClusterCommand = async (output, context) => {
|
|
|
2647
2619
|
$metadata: deserializeMetadata(output),
|
|
2648
2620
|
...contents,
|
|
2649
2621
|
};
|
|
2650
|
-
return
|
|
2622
|
+
return response;
|
|
2651
2623
|
};
|
|
2652
2624
|
exports.de_DeleteClusterCommand = de_DeleteClusterCommand;
|
|
2653
2625
|
const de_DeleteClusterCommandError = async (output, context) => {
|
|
@@ -2674,10 +2646,9 @@ const de_DeleteClusterCommandError = async (output, context) => {
|
|
|
2674
2646
|
throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
|
|
2675
2647
|
default:
|
|
2676
2648
|
const parsedBody = parsedOutput.body;
|
|
2677
|
-
|
|
2649
|
+
return throwDefaultError({
|
|
2678
2650
|
output,
|
|
2679
2651
|
parsedBody: parsedBody.Error,
|
|
2680
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2681
2652
|
errorCode,
|
|
2682
2653
|
});
|
|
2683
2654
|
}
|
|
@@ -2690,7 +2661,7 @@ const de_DeleteClusterParameterGroupCommand = async (output, context) => {
|
|
|
2690
2661
|
const response = {
|
|
2691
2662
|
$metadata: deserializeMetadata(output),
|
|
2692
2663
|
};
|
|
2693
|
-
return
|
|
2664
|
+
return response;
|
|
2694
2665
|
};
|
|
2695
2666
|
exports.de_DeleteClusterParameterGroupCommand = de_DeleteClusterParameterGroupCommand;
|
|
2696
2667
|
const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -2708,10 +2679,9 @@ const de_DeleteClusterParameterGroupCommandError = async (output, context) => {
|
|
|
2708
2679
|
throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
|
|
2709
2680
|
default:
|
|
2710
2681
|
const parsedBody = parsedOutput.body;
|
|
2711
|
-
|
|
2682
|
+
return throwDefaultError({
|
|
2712
2683
|
output,
|
|
2713
2684
|
parsedBody: parsedBody.Error,
|
|
2714
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2715
2685
|
errorCode,
|
|
2716
2686
|
});
|
|
2717
2687
|
}
|
|
@@ -2724,7 +2694,7 @@ const de_DeleteClusterSecurityGroupCommand = async (output, context) => {
|
|
|
2724
2694
|
const response = {
|
|
2725
2695
|
$metadata: deserializeMetadata(output),
|
|
2726
2696
|
};
|
|
2727
|
-
return
|
|
2697
|
+
return response;
|
|
2728
2698
|
};
|
|
2729
2699
|
exports.de_DeleteClusterSecurityGroupCommand = de_DeleteClusterSecurityGroupCommand;
|
|
2730
2700
|
const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
|
|
@@ -2742,10 +2712,9 @@ const de_DeleteClusterSecurityGroupCommandError = async (output, context) => {
|
|
|
2742
2712
|
throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
|
|
2743
2713
|
default:
|
|
2744
2714
|
const parsedBody = parsedOutput.body;
|
|
2745
|
-
|
|
2715
|
+
return throwDefaultError({
|
|
2746
2716
|
output,
|
|
2747
2717
|
parsedBody: parsedBody.Error,
|
|
2748
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2749
2718
|
errorCode,
|
|
2750
2719
|
});
|
|
2751
2720
|
}
|
|
@@ -2761,7 +2730,7 @@ const de_DeleteClusterSnapshotCommand = async (output, context) => {
|
|
|
2761
2730
|
$metadata: deserializeMetadata(output),
|
|
2762
2731
|
...contents,
|
|
2763
2732
|
};
|
|
2764
|
-
return
|
|
2733
|
+
return response;
|
|
2765
2734
|
};
|
|
2766
2735
|
exports.de_DeleteClusterSnapshotCommand = de_DeleteClusterSnapshotCommand;
|
|
2767
2736
|
const de_DeleteClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -2779,10 +2748,9 @@ const de_DeleteClusterSnapshotCommandError = async (output, context) => {
|
|
|
2779
2748
|
throw await de_InvalidClusterSnapshotStateFaultRes(parsedOutput, context);
|
|
2780
2749
|
default:
|
|
2781
2750
|
const parsedBody = parsedOutput.body;
|
|
2782
|
-
|
|
2751
|
+
return throwDefaultError({
|
|
2783
2752
|
output,
|
|
2784
2753
|
parsedBody: parsedBody.Error,
|
|
2785
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2786
2754
|
errorCode,
|
|
2787
2755
|
});
|
|
2788
2756
|
}
|
|
@@ -2795,7 +2763,7 @@ const de_DeleteClusterSubnetGroupCommand = async (output, context) => {
|
|
|
2795
2763
|
const response = {
|
|
2796
2764
|
$metadata: deserializeMetadata(output),
|
|
2797
2765
|
};
|
|
2798
|
-
return
|
|
2766
|
+
return response;
|
|
2799
2767
|
};
|
|
2800
2768
|
exports.de_DeleteClusterSubnetGroupCommand = de_DeleteClusterSubnetGroupCommand;
|
|
2801
2769
|
const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
|
|
@@ -2816,10 +2784,9 @@ const de_DeleteClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
2816
2784
|
throw await de_InvalidClusterSubnetStateFaultRes(parsedOutput, context);
|
|
2817
2785
|
default:
|
|
2818
2786
|
const parsedBody = parsedOutput.body;
|
|
2819
|
-
|
|
2787
|
+
return throwDefaultError({
|
|
2820
2788
|
output,
|
|
2821
2789
|
parsedBody: parsedBody.Error,
|
|
2822
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2823
2790
|
errorCode,
|
|
2824
2791
|
});
|
|
2825
2792
|
}
|
|
@@ -2835,7 +2802,7 @@ const de_DeleteEndpointAccessCommand = async (output, context) => {
|
|
|
2835
2802
|
$metadata: deserializeMetadata(output),
|
|
2836
2803
|
...contents,
|
|
2837
2804
|
};
|
|
2838
|
-
return
|
|
2805
|
+
return response;
|
|
2839
2806
|
};
|
|
2840
2807
|
exports.de_DeleteEndpointAccessCommand = de_DeleteEndpointAccessCommand;
|
|
2841
2808
|
const de_DeleteEndpointAccessCommandError = async (output, context) => {
|
|
@@ -2862,10 +2829,9 @@ const de_DeleteEndpointAccessCommandError = async (output, context) => {
|
|
|
2862
2829
|
throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
|
|
2863
2830
|
default:
|
|
2864
2831
|
const parsedBody = parsedOutput.body;
|
|
2865
|
-
|
|
2832
|
+
return throwDefaultError({
|
|
2866
2833
|
output,
|
|
2867
2834
|
parsedBody: parsedBody.Error,
|
|
2868
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2869
2835
|
errorCode,
|
|
2870
2836
|
});
|
|
2871
2837
|
}
|
|
@@ -2878,7 +2844,7 @@ const de_DeleteEventSubscriptionCommand = async (output, context) => {
|
|
|
2878
2844
|
const response = {
|
|
2879
2845
|
$metadata: deserializeMetadata(output),
|
|
2880
2846
|
};
|
|
2881
|
-
return
|
|
2847
|
+
return response;
|
|
2882
2848
|
};
|
|
2883
2849
|
exports.de_DeleteEventSubscriptionCommand = de_DeleteEventSubscriptionCommand;
|
|
2884
2850
|
const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -2896,10 +2862,9 @@ const de_DeleteEventSubscriptionCommandError = async (output, context) => {
|
|
|
2896
2862
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
2897
2863
|
default:
|
|
2898
2864
|
const parsedBody = parsedOutput.body;
|
|
2899
|
-
|
|
2865
|
+
return throwDefaultError({
|
|
2900
2866
|
output,
|
|
2901
2867
|
parsedBody: parsedBody.Error,
|
|
2902
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2903
2868
|
errorCode,
|
|
2904
2869
|
});
|
|
2905
2870
|
}
|
|
@@ -2912,7 +2877,7 @@ const de_DeleteHsmClientCertificateCommand = async (output, context) => {
|
|
|
2912
2877
|
const response = {
|
|
2913
2878
|
$metadata: deserializeMetadata(output),
|
|
2914
2879
|
};
|
|
2915
|
-
return
|
|
2880
|
+
return response;
|
|
2916
2881
|
};
|
|
2917
2882
|
exports.de_DeleteHsmClientCertificateCommand = de_DeleteHsmClientCertificateCommand;
|
|
2918
2883
|
const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
|
|
@@ -2930,10 +2895,9 @@ const de_DeleteHsmClientCertificateCommandError = async (output, context) => {
|
|
|
2930
2895
|
throw await de_InvalidHsmClientCertificateStateFaultRes(parsedOutput, context);
|
|
2931
2896
|
default:
|
|
2932
2897
|
const parsedBody = parsedOutput.body;
|
|
2933
|
-
|
|
2898
|
+
return throwDefaultError({
|
|
2934
2899
|
output,
|
|
2935
2900
|
parsedBody: parsedBody.Error,
|
|
2936
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2937
2901
|
errorCode,
|
|
2938
2902
|
});
|
|
2939
2903
|
}
|
|
@@ -2946,7 +2910,7 @@ const de_DeleteHsmConfigurationCommand = async (output, context) => {
|
|
|
2946
2910
|
const response = {
|
|
2947
2911
|
$metadata: deserializeMetadata(output),
|
|
2948
2912
|
};
|
|
2949
|
-
return
|
|
2913
|
+
return response;
|
|
2950
2914
|
};
|
|
2951
2915
|
exports.de_DeleteHsmConfigurationCommand = de_DeleteHsmConfigurationCommand;
|
|
2952
2916
|
const de_DeleteHsmConfigurationCommandError = async (output, context) => {
|
|
@@ -2964,10 +2928,9 @@ const de_DeleteHsmConfigurationCommandError = async (output, context) => {
|
|
|
2964
2928
|
throw await de_InvalidHsmConfigurationStateFaultRes(parsedOutput, context);
|
|
2965
2929
|
default:
|
|
2966
2930
|
const parsedBody = parsedOutput.body;
|
|
2967
|
-
|
|
2931
|
+
return throwDefaultError({
|
|
2968
2932
|
output,
|
|
2969
2933
|
parsedBody: parsedBody.Error,
|
|
2970
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
2971
2934
|
errorCode,
|
|
2972
2935
|
});
|
|
2973
2936
|
}
|
|
@@ -2983,7 +2946,7 @@ const de_DeletePartnerCommand = async (output, context) => {
|
|
|
2983
2946
|
$metadata: deserializeMetadata(output),
|
|
2984
2947
|
...contents,
|
|
2985
2948
|
};
|
|
2986
|
-
return
|
|
2949
|
+
return response;
|
|
2987
2950
|
};
|
|
2988
2951
|
exports.de_DeletePartnerCommand = de_DeletePartnerCommand;
|
|
2989
2952
|
const de_DeletePartnerCommandError = async (output, context) => {
|
|
@@ -3004,10 +2967,9 @@ const de_DeletePartnerCommandError = async (output, context) => {
|
|
|
3004
2967
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
3005
2968
|
default:
|
|
3006
2969
|
const parsedBody = parsedOutput.body;
|
|
3007
|
-
|
|
2970
|
+
return throwDefaultError({
|
|
3008
2971
|
output,
|
|
3009
2972
|
parsedBody: parsedBody.Error,
|
|
3010
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3011
2973
|
errorCode,
|
|
3012
2974
|
});
|
|
3013
2975
|
}
|
|
@@ -3020,7 +2982,7 @@ const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
|
3020
2982
|
const response = {
|
|
3021
2983
|
$metadata: deserializeMetadata(output),
|
|
3022
2984
|
};
|
|
3023
|
-
return
|
|
2985
|
+
return response;
|
|
3024
2986
|
};
|
|
3025
2987
|
exports.de_DeleteScheduledActionCommand = de_DeleteScheduledActionCommand;
|
|
3026
2988
|
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
@@ -3038,10 +3000,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
|
3038
3000
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
3039
3001
|
default:
|
|
3040
3002
|
const parsedBody = parsedOutput.body;
|
|
3041
|
-
|
|
3003
|
+
return throwDefaultError({
|
|
3042
3004
|
output,
|
|
3043
3005
|
parsedBody: parsedBody.Error,
|
|
3044
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3045
3006
|
errorCode,
|
|
3046
3007
|
});
|
|
3047
3008
|
}
|
|
@@ -3054,7 +3015,7 @@ const de_DeleteSnapshotCopyGrantCommand = async (output, context) => {
|
|
|
3054
3015
|
const response = {
|
|
3055
3016
|
$metadata: deserializeMetadata(output),
|
|
3056
3017
|
};
|
|
3057
|
-
return
|
|
3018
|
+
return response;
|
|
3058
3019
|
};
|
|
3059
3020
|
exports.de_DeleteSnapshotCopyGrantCommand = de_DeleteSnapshotCopyGrantCommand;
|
|
3060
3021
|
const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
|
|
@@ -3072,10 +3033,9 @@ const de_DeleteSnapshotCopyGrantCommandError = async (output, context) => {
|
|
|
3072
3033
|
throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
|
|
3073
3034
|
default:
|
|
3074
3035
|
const parsedBody = parsedOutput.body;
|
|
3075
|
-
|
|
3036
|
+
return throwDefaultError({
|
|
3076
3037
|
output,
|
|
3077
3038
|
parsedBody: parsedBody.Error,
|
|
3078
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3079
3039
|
errorCode,
|
|
3080
3040
|
});
|
|
3081
3041
|
}
|
|
@@ -3088,7 +3048,7 @@ const de_DeleteSnapshotScheduleCommand = async (output, context) => {
|
|
|
3088
3048
|
const response = {
|
|
3089
3049
|
$metadata: deserializeMetadata(output),
|
|
3090
3050
|
};
|
|
3091
|
-
return
|
|
3051
|
+
return response;
|
|
3092
3052
|
};
|
|
3093
3053
|
exports.de_DeleteSnapshotScheduleCommand = de_DeleteSnapshotScheduleCommand;
|
|
3094
3054
|
const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
|
|
@@ -3106,10 +3066,9 @@ const de_DeleteSnapshotScheduleCommandError = async (output, context) => {
|
|
|
3106
3066
|
throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
|
|
3107
3067
|
default:
|
|
3108
3068
|
const parsedBody = parsedOutput.body;
|
|
3109
|
-
|
|
3069
|
+
return throwDefaultError({
|
|
3110
3070
|
output,
|
|
3111
3071
|
parsedBody: parsedBody.Error,
|
|
3112
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3113
3072
|
errorCode,
|
|
3114
3073
|
});
|
|
3115
3074
|
}
|
|
@@ -3122,7 +3081,7 @@ const de_DeleteTagsCommand = async (output, context) => {
|
|
|
3122
3081
|
const response = {
|
|
3123
3082
|
$metadata: deserializeMetadata(output),
|
|
3124
3083
|
};
|
|
3125
|
-
return
|
|
3084
|
+
return response;
|
|
3126
3085
|
};
|
|
3127
3086
|
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
3128
3087
|
const de_DeleteTagsCommandError = async (output, context) => {
|
|
@@ -3140,10 +3099,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
|
|
|
3140
3099
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
3141
3100
|
default:
|
|
3142
3101
|
const parsedBody = parsedOutput.body;
|
|
3143
|
-
|
|
3102
|
+
return throwDefaultError({
|
|
3144
3103
|
output,
|
|
3145
3104
|
parsedBody: parsedBody.Error,
|
|
3146
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3147
3105
|
errorCode,
|
|
3148
3106
|
});
|
|
3149
3107
|
}
|
|
@@ -3156,7 +3114,7 @@ const de_DeleteUsageLimitCommand = async (output, context) => {
|
|
|
3156
3114
|
const response = {
|
|
3157
3115
|
$metadata: deserializeMetadata(output),
|
|
3158
3116
|
};
|
|
3159
|
-
return
|
|
3117
|
+
return response;
|
|
3160
3118
|
};
|
|
3161
3119
|
exports.de_DeleteUsageLimitCommand = de_DeleteUsageLimitCommand;
|
|
3162
3120
|
const de_DeleteUsageLimitCommandError = async (output, context) => {
|
|
@@ -3174,10 +3132,9 @@ const de_DeleteUsageLimitCommandError = async (output, context) => {
|
|
|
3174
3132
|
throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
|
|
3175
3133
|
default:
|
|
3176
3134
|
const parsedBody = parsedOutput.body;
|
|
3177
|
-
|
|
3135
|
+
return throwDefaultError({
|
|
3178
3136
|
output,
|
|
3179
3137
|
parsedBody: parsedBody.Error,
|
|
3180
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3181
3138
|
errorCode,
|
|
3182
3139
|
});
|
|
3183
3140
|
}
|
|
@@ -3193,7 +3150,7 @@ const de_DescribeAccountAttributesCommand = async (output, context) => {
|
|
|
3193
3150
|
$metadata: deserializeMetadata(output),
|
|
3194
3151
|
...contents,
|
|
3195
3152
|
};
|
|
3196
|
-
return
|
|
3153
|
+
return response;
|
|
3197
3154
|
};
|
|
3198
3155
|
exports.de_DescribeAccountAttributesCommand = de_DescribeAccountAttributesCommand;
|
|
3199
3156
|
const de_DescribeAccountAttributesCommandError = async (output, context) => {
|
|
@@ -3203,10 +3160,9 @@ const de_DescribeAccountAttributesCommandError = async (output, context) => {
|
|
|
3203
3160
|
};
|
|
3204
3161
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3205
3162
|
const parsedBody = parsedOutput.body;
|
|
3206
|
-
|
|
3163
|
+
return throwDefaultError({
|
|
3207
3164
|
output,
|
|
3208
3165
|
parsedBody: parsedBody.Error,
|
|
3209
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3210
3166
|
errorCode,
|
|
3211
3167
|
});
|
|
3212
3168
|
};
|
|
@@ -3221,7 +3177,7 @@ const de_DescribeAuthenticationProfilesCommand = async (output, context) => {
|
|
|
3221
3177
|
$metadata: deserializeMetadata(output),
|
|
3222
3178
|
...contents,
|
|
3223
3179
|
};
|
|
3224
|
-
return
|
|
3180
|
+
return response;
|
|
3225
3181
|
};
|
|
3226
3182
|
exports.de_DescribeAuthenticationProfilesCommand = de_DescribeAuthenticationProfilesCommand;
|
|
3227
3183
|
const de_DescribeAuthenticationProfilesCommandError = async (output, context) => {
|
|
@@ -3239,10 +3195,9 @@ const de_DescribeAuthenticationProfilesCommandError = async (output, context) =>
|
|
|
3239
3195
|
throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
|
|
3240
3196
|
default:
|
|
3241
3197
|
const parsedBody = parsedOutput.body;
|
|
3242
|
-
|
|
3198
|
+
return throwDefaultError({
|
|
3243
3199
|
output,
|
|
3244
3200
|
parsedBody: parsedBody.Error,
|
|
3245
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3246
3201
|
errorCode,
|
|
3247
3202
|
});
|
|
3248
3203
|
}
|
|
@@ -3258,7 +3213,7 @@ const de_DescribeClusterDbRevisionsCommand = async (output, context) => {
|
|
|
3258
3213
|
$metadata: deserializeMetadata(output),
|
|
3259
3214
|
...contents,
|
|
3260
3215
|
};
|
|
3261
|
-
return
|
|
3216
|
+
return response;
|
|
3262
3217
|
};
|
|
3263
3218
|
exports.de_DescribeClusterDbRevisionsCommand = de_DescribeClusterDbRevisionsCommand;
|
|
3264
3219
|
const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
|
|
@@ -3276,10 +3231,9 @@ const de_DescribeClusterDbRevisionsCommandError = async (output, context) => {
|
|
|
3276
3231
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
3277
3232
|
default:
|
|
3278
3233
|
const parsedBody = parsedOutput.body;
|
|
3279
|
-
|
|
3234
|
+
return throwDefaultError({
|
|
3280
3235
|
output,
|
|
3281
3236
|
parsedBody: parsedBody.Error,
|
|
3282
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3283
3237
|
errorCode,
|
|
3284
3238
|
});
|
|
3285
3239
|
}
|
|
@@ -3295,7 +3249,7 @@ const de_DescribeClusterParameterGroupsCommand = async (output, context) => {
|
|
|
3295
3249
|
$metadata: deserializeMetadata(output),
|
|
3296
3250
|
...contents,
|
|
3297
3251
|
};
|
|
3298
|
-
return
|
|
3252
|
+
return response;
|
|
3299
3253
|
};
|
|
3300
3254
|
exports.de_DescribeClusterParameterGroupsCommand = de_DescribeClusterParameterGroupsCommand;
|
|
3301
3255
|
const de_DescribeClusterParameterGroupsCommandError = async (output, context) => {
|
|
@@ -3313,10 +3267,9 @@ const de_DescribeClusterParameterGroupsCommandError = async (output, context) =>
|
|
|
3313
3267
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3314
3268
|
default:
|
|
3315
3269
|
const parsedBody = parsedOutput.body;
|
|
3316
|
-
|
|
3270
|
+
return throwDefaultError({
|
|
3317
3271
|
output,
|
|
3318
3272
|
parsedBody: parsedBody.Error,
|
|
3319
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3320
3273
|
errorCode,
|
|
3321
3274
|
});
|
|
3322
3275
|
}
|
|
@@ -3332,7 +3285,7 @@ const de_DescribeClusterParametersCommand = async (output, context) => {
|
|
|
3332
3285
|
$metadata: deserializeMetadata(output),
|
|
3333
3286
|
...contents,
|
|
3334
3287
|
};
|
|
3335
|
-
return
|
|
3288
|
+
return response;
|
|
3336
3289
|
};
|
|
3337
3290
|
exports.de_DescribeClusterParametersCommand = de_DescribeClusterParametersCommand;
|
|
3338
3291
|
const de_DescribeClusterParametersCommandError = async (output, context) => {
|
|
@@ -3347,10 +3300,9 @@ const de_DescribeClusterParametersCommandError = async (output, context) => {
|
|
|
3347
3300
|
throw await de_ClusterParameterGroupNotFoundFaultRes(parsedOutput, context);
|
|
3348
3301
|
default:
|
|
3349
3302
|
const parsedBody = parsedOutput.body;
|
|
3350
|
-
|
|
3303
|
+
return throwDefaultError({
|
|
3351
3304
|
output,
|
|
3352
3305
|
parsedBody: parsedBody.Error,
|
|
3353
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3354
3306
|
errorCode,
|
|
3355
3307
|
});
|
|
3356
3308
|
}
|
|
@@ -3366,7 +3318,7 @@ const de_DescribeClustersCommand = async (output, context) => {
|
|
|
3366
3318
|
$metadata: deserializeMetadata(output),
|
|
3367
3319
|
...contents,
|
|
3368
3320
|
};
|
|
3369
|
-
return
|
|
3321
|
+
return response;
|
|
3370
3322
|
};
|
|
3371
3323
|
exports.de_DescribeClustersCommand = de_DescribeClustersCommand;
|
|
3372
3324
|
const de_DescribeClustersCommandError = async (output, context) => {
|
|
@@ -3384,10 +3336,9 @@ const de_DescribeClustersCommandError = async (output, context) => {
|
|
|
3384
3336
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3385
3337
|
default:
|
|
3386
3338
|
const parsedBody = parsedOutput.body;
|
|
3387
|
-
|
|
3339
|
+
return throwDefaultError({
|
|
3388
3340
|
output,
|
|
3389
3341
|
parsedBody: parsedBody.Error,
|
|
3390
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3391
3342
|
errorCode,
|
|
3392
3343
|
});
|
|
3393
3344
|
}
|
|
@@ -3403,7 +3354,7 @@ const de_DescribeClusterSecurityGroupsCommand = async (output, context) => {
|
|
|
3403
3354
|
$metadata: deserializeMetadata(output),
|
|
3404
3355
|
...contents,
|
|
3405
3356
|
};
|
|
3406
|
-
return
|
|
3357
|
+
return response;
|
|
3407
3358
|
};
|
|
3408
3359
|
exports.de_DescribeClusterSecurityGroupsCommand = de_DescribeClusterSecurityGroupsCommand;
|
|
3409
3360
|
const de_DescribeClusterSecurityGroupsCommandError = async (output, context) => {
|
|
@@ -3421,10 +3372,9 @@ const de_DescribeClusterSecurityGroupsCommandError = async (output, context) =>
|
|
|
3421
3372
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3422
3373
|
default:
|
|
3423
3374
|
const parsedBody = parsedOutput.body;
|
|
3424
|
-
|
|
3375
|
+
return throwDefaultError({
|
|
3425
3376
|
output,
|
|
3426
3377
|
parsedBody: parsedBody.Error,
|
|
3427
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3428
3378
|
errorCode,
|
|
3429
3379
|
});
|
|
3430
3380
|
}
|
|
@@ -3440,7 +3390,7 @@ const de_DescribeClusterSnapshotsCommand = async (output, context) => {
|
|
|
3440
3390
|
$metadata: deserializeMetadata(output),
|
|
3441
3391
|
...contents,
|
|
3442
3392
|
};
|
|
3443
|
-
return
|
|
3393
|
+
return response;
|
|
3444
3394
|
};
|
|
3445
3395
|
exports.de_DescribeClusterSnapshotsCommand = de_DescribeClusterSnapshotsCommand;
|
|
3446
3396
|
const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
|
|
@@ -3464,10 +3414,9 @@ const de_DescribeClusterSnapshotsCommandError = async (output, context) => {
|
|
|
3464
3414
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
3465
3415
|
default:
|
|
3466
3416
|
const parsedBody = parsedOutput.body;
|
|
3467
|
-
|
|
3417
|
+
return throwDefaultError({
|
|
3468
3418
|
output,
|
|
3469
3419
|
parsedBody: parsedBody.Error,
|
|
3470
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3471
3420
|
errorCode,
|
|
3472
3421
|
});
|
|
3473
3422
|
}
|
|
@@ -3483,7 +3432,7 @@ const de_DescribeClusterSubnetGroupsCommand = async (output, context) => {
|
|
|
3483
3432
|
$metadata: deserializeMetadata(output),
|
|
3484
3433
|
...contents,
|
|
3485
3434
|
};
|
|
3486
|
-
return
|
|
3435
|
+
return response;
|
|
3487
3436
|
};
|
|
3488
3437
|
exports.de_DescribeClusterSubnetGroupsCommand = de_DescribeClusterSubnetGroupsCommand;
|
|
3489
3438
|
const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
|
|
@@ -3501,10 +3450,9 @@ const de_DescribeClusterSubnetGroupsCommandError = async (output, context) => {
|
|
|
3501
3450
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3502
3451
|
default:
|
|
3503
3452
|
const parsedBody = parsedOutput.body;
|
|
3504
|
-
|
|
3453
|
+
return throwDefaultError({
|
|
3505
3454
|
output,
|
|
3506
3455
|
parsedBody: parsedBody.Error,
|
|
3507
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3508
3456
|
errorCode,
|
|
3509
3457
|
});
|
|
3510
3458
|
}
|
|
@@ -3520,7 +3468,7 @@ const de_DescribeClusterTracksCommand = async (output, context) => {
|
|
|
3520
3468
|
$metadata: deserializeMetadata(output),
|
|
3521
3469
|
...contents,
|
|
3522
3470
|
};
|
|
3523
|
-
return
|
|
3471
|
+
return response;
|
|
3524
3472
|
};
|
|
3525
3473
|
exports.de_DescribeClusterTracksCommand = de_DescribeClusterTracksCommand;
|
|
3526
3474
|
const de_DescribeClusterTracksCommandError = async (output, context) => {
|
|
@@ -3538,10 +3486,9 @@ const de_DescribeClusterTracksCommandError = async (output, context) => {
|
|
|
3538
3486
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
3539
3487
|
default:
|
|
3540
3488
|
const parsedBody = parsedOutput.body;
|
|
3541
|
-
|
|
3489
|
+
return throwDefaultError({
|
|
3542
3490
|
output,
|
|
3543
3491
|
parsedBody: parsedBody.Error,
|
|
3544
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3545
3492
|
errorCode,
|
|
3546
3493
|
});
|
|
3547
3494
|
}
|
|
@@ -3557,7 +3504,7 @@ const de_DescribeClusterVersionsCommand = async (output, context) => {
|
|
|
3557
3504
|
$metadata: deserializeMetadata(output),
|
|
3558
3505
|
...contents,
|
|
3559
3506
|
};
|
|
3560
|
-
return
|
|
3507
|
+
return response;
|
|
3561
3508
|
};
|
|
3562
3509
|
exports.de_DescribeClusterVersionsCommand = de_DescribeClusterVersionsCommand;
|
|
3563
3510
|
const de_DescribeClusterVersionsCommandError = async (output, context) => {
|
|
@@ -3567,10 +3514,9 @@ const de_DescribeClusterVersionsCommandError = async (output, context) => {
|
|
|
3567
3514
|
};
|
|
3568
3515
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3569
3516
|
const parsedBody = parsedOutput.body;
|
|
3570
|
-
|
|
3517
|
+
return throwDefaultError({
|
|
3571
3518
|
output,
|
|
3572
3519
|
parsedBody: parsedBody.Error,
|
|
3573
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3574
3520
|
errorCode,
|
|
3575
3521
|
});
|
|
3576
3522
|
};
|
|
@@ -3585,7 +3531,7 @@ const de_DescribeDataSharesCommand = async (output, context) => {
|
|
|
3585
3531
|
$metadata: deserializeMetadata(output),
|
|
3586
3532
|
...contents,
|
|
3587
3533
|
};
|
|
3588
|
-
return
|
|
3534
|
+
return response;
|
|
3589
3535
|
};
|
|
3590
3536
|
exports.de_DescribeDataSharesCommand = de_DescribeDataSharesCommand;
|
|
3591
3537
|
const de_DescribeDataSharesCommandError = async (output, context) => {
|
|
@@ -3600,10 +3546,9 @@ const de_DescribeDataSharesCommandError = async (output, context) => {
|
|
|
3600
3546
|
throw await de_InvalidDataShareFaultRes(parsedOutput, context);
|
|
3601
3547
|
default:
|
|
3602
3548
|
const parsedBody = parsedOutput.body;
|
|
3603
|
-
|
|
3549
|
+
return throwDefaultError({
|
|
3604
3550
|
output,
|
|
3605
3551
|
parsedBody: parsedBody.Error,
|
|
3606
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3607
3552
|
errorCode,
|
|
3608
3553
|
});
|
|
3609
3554
|
}
|
|
@@ -3619,7 +3564,7 @@ const de_DescribeDataSharesForConsumerCommand = async (output, context) => {
|
|
|
3619
3564
|
$metadata: deserializeMetadata(output),
|
|
3620
3565
|
...contents,
|
|
3621
3566
|
};
|
|
3622
|
-
return
|
|
3567
|
+
return response;
|
|
3623
3568
|
};
|
|
3624
3569
|
exports.de_DescribeDataSharesForConsumerCommand = de_DescribeDataSharesForConsumerCommand;
|
|
3625
3570
|
const de_DescribeDataSharesForConsumerCommandError = async (output, context) => {
|
|
@@ -3634,10 +3579,9 @@ const de_DescribeDataSharesForConsumerCommandError = async (output, context) =>
|
|
|
3634
3579
|
throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
|
|
3635
3580
|
default:
|
|
3636
3581
|
const parsedBody = parsedOutput.body;
|
|
3637
|
-
|
|
3582
|
+
return throwDefaultError({
|
|
3638
3583
|
output,
|
|
3639
3584
|
parsedBody: parsedBody.Error,
|
|
3640
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3641
3585
|
errorCode,
|
|
3642
3586
|
});
|
|
3643
3587
|
}
|
|
@@ -3653,7 +3597,7 @@ const de_DescribeDataSharesForProducerCommand = async (output, context) => {
|
|
|
3653
3597
|
$metadata: deserializeMetadata(output),
|
|
3654
3598
|
...contents,
|
|
3655
3599
|
};
|
|
3656
|
-
return
|
|
3600
|
+
return response;
|
|
3657
3601
|
};
|
|
3658
3602
|
exports.de_DescribeDataSharesForProducerCommand = de_DescribeDataSharesForProducerCommand;
|
|
3659
3603
|
const de_DescribeDataSharesForProducerCommandError = async (output, context) => {
|
|
@@ -3668,10 +3612,9 @@ const de_DescribeDataSharesForProducerCommandError = async (output, context) =>
|
|
|
3668
3612
|
throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
|
|
3669
3613
|
default:
|
|
3670
3614
|
const parsedBody = parsedOutput.body;
|
|
3671
|
-
|
|
3615
|
+
return throwDefaultError({
|
|
3672
3616
|
output,
|
|
3673
3617
|
parsedBody: parsedBody.Error,
|
|
3674
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3675
3618
|
errorCode,
|
|
3676
3619
|
});
|
|
3677
3620
|
}
|
|
@@ -3687,7 +3630,7 @@ const de_DescribeDefaultClusterParametersCommand = async (output, context) => {
|
|
|
3687
3630
|
$metadata: deserializeMetadata(output),
|
|
3688
3631
|
...contents,
|
|
3689
3632
|
};
|
|
3690
|
-
return
|
|
3633
|
+
return response;
|
|
3691
3634
|
};
|
|
3692
3635
|
exports.de_DescribeDefaultClusterParametersCommand = de_DescribeDefaultClusterParametersCommand;
|
|
3693
3636
|
const de_DescribeDefaultClusterParametersCommandError = async (output, context) => {
|
|
@@ -3697,10 +3640,9 @@ const de_DescribeDefaultClusterParametersCommandError = async (output, context)
|
|
|
3697
3640
|
};
|
|
3698
3641
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3699
3642
|
const parsedBody = parsedOutput.body;
|
|
3700
|
-
|
|
3643
|
+
return throwDefaultError({
|
|
3701
3644
|
output,
|
|
3702
3645
|
parsedBody: parsedBody.Error,
|
|
3703
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3704
3646
|
errorCode,
|
|
3705
3647
|
});
|
|
3706
3648
|
};
|
|
@@ -3715,7 +3657,7 @@ const de_DescribeEndpointAccessCommand = async (output, context) => {
|
|
|
3715
3657
|
$metadata: deserializeMetadata(output),
|
|
3716
3658
|
...contents,
|
|
3717
3659
|
};
|
|
3718
|
-
return
|
|
3660
|
+
return response;
|
|
3719
3661
|
};
|
|
3720
3662
|
exports.de_DescribeEndpointAccessCommand = de_DescribeEndpointAccessCommand;
|
|
3721
3663
|
const de_DescribeEndpointAccessCommandError = async (output, context) => {
|
|
@@ -3736,10 +3678,9 @@ const de_DescribeEndpointAccessCommandError = async (output, context) => {
|
|
|
3736
3678
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
3737
3679
|
default:
|
|
3738
3680
|
const parsedBody = parsedOutput.body;
|
|
3739
|
-
|
|
3681
|
+
return throwDefaultError({
|
|
3740
3682
|
output,
|
|
3741
3683
|
parsedBody: parsedBody.Error,
|
|
3742
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3743
3684
|
errorCode,
|
|
3744
3685
|
});
|
|
3745
3686
|
}
|
|
@@ -3755,7 +3696,7 @@ const de_DescribeEndpointAuthorizationCommand = async (output, context) => {
|
|
|
3755
3696
|
$metadata: deserializeMetadata(output),
|
|
3756
3697
|
...contents,
|
|
3757
3698
|
};
|
|
3758
|
-
return
|
|
3699
|
+
return response;
|
|
3759
3700
|
};
|
|
3760
3701
|
exports.de_DescribeEndpointAuthorizationCommand = de_DescribeEndpointAuthorizationCommand;
|
|
3761
3702
|
const de_DescribeEndpointAuthorizationCommandError = async (output, context) => {
|
|
@@ -3773,10 +3714,9 @@ const de_DescribeEndpointAuthorizationCommandError = async (output, context) =>
|
|
|
3773
3714
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
3774
3715
|
default:
|
|
3775
3716
|
const parsedBody = parsedOutput.body;
|
|
3776
|
-
|
|
3717
|
+
return throwDefaultError({
|
|
3777
3718
|
output,
|
|
3778
3719
|
parsedBody: parsedBody.Error,
|
|
3779
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3780
3720
|
errorCode,
|
|
3781
3721
|
});
|
|
3782
3722
|
}
|
|
@@ -3792,7 +3732,7 @@ const de_DescribeEventCategoriesCommand = async (output, context) => {
|
|
|
3792
3732
|
$metadata: deserializeMetadata(output),
|
|
3793
3733
|
...contents,
|
|
3794
3734
|
};
|
|
3795
|
-
return
|
|
3735
|
+
return response;
|
|
3796
3736
|
};
|
|
3797
3737
|
exports.de_DescribeEventCategoriesCommand = de_DescribeEventCategoriesCommand;
|
|
3798
3738
|
const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
@@ -3802,10 +3742,9 @@ const de_DescribeEventCategoriesCommandError = async (output, context) => {
|
|
|
3802
3742
|
};
|
|
3803
3743
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3804
3744
|
const parsedBody = parsedOutput.body;
|
|
3805
|
-
|
|
3745
|
+
return throwDefaultError({
|
|
3806
3746
|
output,
|
|
3807
3747
|
parsedBody: parsedBody.Error,
|
|
3808
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3809
3748
|
errorCode,
|
|
3810
3749
|
});
|
|
3811
3750
|
};
|
|
@@ -3820,7 +3759,7 @@ const de_DescribeEventsCommand = async (output, context) => {
|
|
|
3820
3759
|
$metadata: deserializeMetadata(output),
|
|
3821
3760
|
...contents,
|
|
3822
3761
|
};
|
|
3823
|
-
return
|
|
3762
|
+
return response;
|
|
3824
3763
|
};
|
|
3825
3764
|
exports.de_DescribeEventsCommand = de_DescribeEventsCommand;
|
|
3826
3765
|
const de_DescribeEventsCommandError = async (output, context) => {
|
|
@@ -3830,10 +3769,9 @@ const de_DescribeEventsCommandError = async (output, context) => {
|
|
|
3830
3769
|
};
|
|
3831
3770
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
3832
3771
|
const parsedBody = parsedOutput.body;
|
|
3833
|
-
|
|
3772
|
+
return throwDefaultError({
|
|
3834
3773
|
output,
|
|
3835
3774
|
parsedBody: parsedBody.Error,
|
|
3836
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3837
3775
|
errorCode,
|
|
3838
3776
|
});
|
|
3839
3777
|
};
|
|
@@ -3848,7 +3786,7 @@ const de_DescribeEventSubscriptionsCommand = async (output, context) => {
|
|
|
3848
3786
|
$metadata: deserializeMetadata(output),
|
|
3849
3787
|
...contents,
|
|
3850
3788
|
};
|
|
3851
|
-
return
|
|
3789
|
+
return response;
|
|
3852
3790
|
};
|
|
3853
3791
|
exports.de_DescribeEventSubscriptionsCommand = de_DescribeEventSubscriptionsCommand;
|
|
3854
3792
|
const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
@@ -3866,10 +3804,9 @@ const de_DescribeEventSubscriptionsCommandError = async (output, context) => {
|
|
|
3866
3804
|
throw await de_SubscriptionNotFoundFaultRes(parsedOutput, context);
|
|
3867
3805
|
default:
|
|
3868
3806
|
const parsedBody = parsedOutput.body;
|
|
3869
|
-
|
|
3807
|
+
return throwDefaultError({
|
|
3870
3808
|
output,
|
|
3871
3809
|
parsedBody: parsedBody.Error,
|
|
3872
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3873
3810
|
errorCode,
|
|
3874
3811
|
});
|
|
3875
3812
|
}
|
|
@@ -3885,7 +3822,7 @@ const de_DescribeHsmClientCertificatesCommand = async (output, context) => {
|
|
|
3885
3822
|
$metadata: deserializeMetadata(output),
|
|
3886
3823
|
...contents,
|
|
3887
3824
|
};
|
|
3888
|
-
return
|
|
3825
|
+
return response;
|
|
3889
3826
|
};
|
|
3890
3827
|
exports.de_DescribeHsmClientCertificatesCommand = de_DescribeHsmClientCertificatesCommand;
|
|
3891
3828
|
const de_DescribeHsmClientCertificatesCommandError = async (output, context) => {
|
|
@@ -3903,10 +3840,9 @@ const de_DescribeHsmClientCertificatesCommandError = async (output, context) =>
|
|
|
3903
3840
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3904
3841
|
default:
|
|
3905
3842
|
const parsedBody = parsedOutput.body;
|
|
3906
|
-
|
|
3843
|
+
return throwDefaultError({
|
|
3907
3844
|
output,
|
|
3908
3845
|
parsedBody: parsedBody.Error,
|
|
3909
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3910
3846
|
errorCode,
|
|
3911
3847
|
});
|
|
3912
3848
|
}
|
|
@@ -3922,7 +3858,7 @@ const de_DescribeHsmConfigurationsCommand = async (output, context) => {
|
|
|
3922
3858
|
$metadata: deserializeMetadata(output),
|
|
3923
3859
|
...contents,
|
|
3924
3860
|
};
|
|
3925
|
-
return
|
|
3861
|
+
return response;
|
|
3926
3862
|
};
|
|
3927
3863
|
exports.de_DescribeHsmConfigurationsCommand = de_DescribeHsmConfigurationsCommand;
|
|
3928
3864
|
const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
|
|
@@ -3940,10 +3876,9 @@ const de_DescribeHsmConfigurationsCommandError = async (output, context) => {
|
|
|
3940
3876
|
throw await de_InvalidTagFaultRes(parsedOutput, context);
|
|
3941
3877
|
default:
|
|
3942
3878
|
const parsedBody = parsedOutput.body;
|
|
3943
|
-
|
|
3879
|
+
return throwDefaultError({
|
|
3944
3880
|
output,
|
|
3945
3881
|
parsedBody: parsedBody.Error,
|
|
3946
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3947
3882
|
errorCode,
|
|
3948
3883
|
});
|
|
3949
3884
|
}
|
|
@@ -3959,7 +3894,7 @@ const de_DescribeLoggingStatusCommand = async (output, context) => {
|
|
|
3959
3894
|
$metadata: deserializeMetadata(output),
|
|
3960
3895
|
...contents,
|
|
3961
3896
|
};
|
|
3962
|
-
return
|
|
3897
|
+
return response;
|
|
3963
3898
|
};
|
|
3964
3899
|
exports.de_DescribeLoggingStatusCommand = de_DescribeLoggingStatusCommand;
|
|
3965
3900
|
const de_DescribeLoggingStatusCommandError = async (output, context) => {
|
|
@@ -3974,10 +3909,9 @@ const de_DescribeLoggingStatusCommandError = async (output, context) => {
|
|
|
3974
3909
|
throw await de_ClusterNotFoundFaultRes(parsedOutput, context);
|
|
3975
3910
|
default:
|
|
3976
3911
|
const parsedBody = parsedOutput.body;
|
|
3977
|
-
|
|
3912
|
+
return throwDefaultError({
|
|
3978
3913
|
output,
|
|
3979
3914
|
parsedBody: parsedBody.Error,
|
|
3980
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
3981
3915
|
errorCode,
|
|
3982
3916
|
});
|
|
3983
3917
|
}
|
|
@@ -3993,7 +3927,7 @@ const de_DescribeNodeConfigurationOptionsCommand = async (output, context) => {
|
|
|
3993
3927
|
$metadata: deserializeMetadata(output),
|
|
3994
3928
|
...contents,
|
|
3995
3929
|
};
|
|
3996
|
-
return
|
|
3930
|
+
return response;
|
|
3997
3931
|
};
|
|
3998
3932
|
exports.de_DescribeNodeConfigurationOptionsCommand = de_DescribeNodeConfigurationOptionsCommand;
|
|
3999
3933
|
const de_DescribeNodeConfigurationOptionsCommandError = async (output, context) => {
|
|
@@ -4020,10 +3954,9 @@ const de_DescribeNodeConfigurationOptionsCommandError = async (output, context)
|
|
|
4020
3954
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4021
3955
|
default:
|
|
4022
3956
|
const parsedBody = parsedOutput.body;
|
|
4023
|
-
|
|
3957
|
+
return throwDefaultError({
|
|
4024
3958
|
output,
|
|
4025
3959
|
parsedBody: parsedBody.Error,
|
|
4026
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4027
3960
|
errorCode,
|
|
4028
3961
|
});
|
|
4029
3962
|
}
|
|
@@ -4039,7 +3972,7 @@ const de_DescribeOrderableClusterOptionsCommand = async (output, context) => {
|
|
|
4039
3972
|
$metadata: deserializeMetadata(output),
|
|
4040
3973
|
...contents,
|
|
4041
3974
|
};
|
|
4042
|
-
return
|
|
3975
|
+
return response;
|
|
4043
3976
|
};
|
|
4044
3977
|
exports.de_DescribeOrderableClusterOptionsCommand = de_DescribeOrderableClusterOptionsCommand;
|
|
4045
3978
|
const de_DescribeOrderableClusterOptionsCommandError = async (output, context) => {
|
|
@@ -4049,10 +3982,9 @@ const de_DescribeOrderableClusterOptionsCommandError = async (output, context) =
|
|
|
4049
3982
|
};
|
|
4050
3983
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4051
3984
|
const parsedBody = parsedOutput.body;
|
|
4052
|
-
|
|
3985
|
+
return throwDefaultError({
|
|
4053
3986
|
output,
|
|
4054
3987
|
parsedBody: parsedBody.Error,
|
|
4055
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4056
3988
|
errorCode,
|
|
4057
3989
|
});
|
|
4058
3990
|
};
|
|
@@ -4067,7 +3999,7 @@ const de_DescribePartnersCommand = async (output, context) => {
|
|
|
4067
3999
|
$metadata: deserializeMetadata(output),
|
|
4068
4000
|
...contents,
|
|
4069
4001
|
};
|
|
4070
|
-
return
|
|
4002
|
+
return response;
|
|
4071
4003
|
};
|
|
4072
4004
|
exports.de_DescribePartnersCommand = de_DescribePartnersCommand;
|
|
4073
4005
|
const de_DescribePartnersCommandError = async (output, context) => {
|
|
@@ -4085,10 +4017,9 @@ const de_DescribePartnersCommandError = async (output, context) => {
|
|
|
4085
4017
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
4086
4018
|
default:
|
|
4087
4019
|
const parsedBody = parsedOutput.body;
|
|
4088
|
-
|
|
4020
|
+
return throwDefaultError({
|
|
4089
4021
|
output,
|
|
4090
4022
|
parsedBody: parsedBody.Error,
|
|
4091
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4092
4023
|
errorCode,
|
|
4093
4024
|
});
|
|
4094
4025
|
}
|
|
@@ -4104,7 +4035,7 @@ const de_DescribeReservedNodeExchangeStatusCommand = async (output, context) =>
|
|
|
4104
4035
|
$metadata: deserializeMetadata(output),
|
|
4105
4036
|
...contents,
|
|
4106
4037
|
};
|
|
4107
|
-
return
|
|
4038
|
+
return response;
|
|
4108
4039
|
};
|
|
4109
4040
|
exports.de_DescribeReservedNodeExchangeStatusCommand = de_DescribeReservedNodeExchangeStatusCommand;
|
|
4110
4041
|
const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context) => {
|
|
@@ -4125,10 +4056,9 @@ const de_DescribeReservedNodeExchangeStatusCommandError = async (output, context
|
|
|
4125
4056
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4126
4057
|
default:
|
|
4127
4058
|
const parsedBody = parsedOutput.body;
|
|
4128
|
-
|
|
4059
|
+
return throwDefaultError({
|
|
4129
4060
|
output,
|
|
4130
4061
|
parsedBody: parsedBody.Error,
|
|
4131
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4132
4062
|
errorCode,
|
|
4133
4063
|
});
|
|
4134
4064
|
}
|
|
@@ -4144,7 +4074,7 @@ const de_DescribeReservedNodeOfferingsCommand = async (output, context) => {
|
|
|
4144
4074
|
$metadata: deserializeMetadata(output),
|
|
4145
4075
|
...contents,
|
|
4146
4076
|
};
|
|
4147
|
-
return
|
|
4077
|
+
return response;
|
|
4148
4078
|
};
|
|
4149
4079
|
exports.de_DescribeReservedNodeOfferingsCommand = de_DescribeReservedNodeOfferingsCommand;
|
|
4150
4080
|
const de_DescribeReservedNodeOfferingsCommandError = async (output, context) => {
|
|
@@ -4165,10 +4095,9 @@ const de_DescribeReservedNodeOfferingsCommandError = async (output, context) =>
|
|
|
4165
4095
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4166
4096
|
default:
|
|
4167
4097
|
const parsedBody = parsedOutput.body;
|
|
4168
|
-
|
|
4098
|
+
return throwDefaultError({
|
|
4169
4099
|
output,
|
|
4170
4100
|
parsedBody: parsedBody.Error,
|
|
4171
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4172
4101
|
errorCode,
|
|
4173
4102
|
});
|
|
4174
4103
|
}
|
|
@@ -4184,7 +4113,7 @@ const de_DescribeReservedNodesCommand = async (output, context) => {
|
|
|
4184
4113
|
$metadata: deserializeMetadata(output),
|
|
4185
4114
|
...contents,
|
|
4186
4115
|
};
|
|
4187
|
-
return
|
|
4116
|
+
return response;
|
|
4188
4117
|
};
|
|
4189
4118
|
exports.de_DescribeReservedNodesCommand = de_DescribeReservedNodesCommand;
|
|
4190
4119
|
const de_DescribeReservedNodesCommandError = async (output, context) => {
|
|
@@ -4202,10 +4131,9 @@ const de_DescribeReservedNodesCommandError = async (output, context) => {
|
|
|
4202
4131
|
throw await de_ReservedNodeNotFoundFaultRes(parsedOutput, context);
|
|
4203
4132
|
default:
|
|
4204
4133
|
const parsedBody = parsedOutput.body;
|
|
4205
|
-
|
|
4134
|
+
return throwDefaultError({
|
|
4206
4135
|
output,
|
|
4207
4136
|
parsedBody: parsedBody.Error,
|
|
4208
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4209
4137
|
errorCode,
|
|
4210
4138
|
});
|
|
4211
4139
|
}
|
|
@@ -4221,7 +4149,7 @@ const de_DescribeResizeCommand = async (output, context) => {
|
|
|
4221
4149
|
$metadata: deserializeMetadata(output),
|
|
4222
4150
|
...contents,
|
|
4223
4151
|
};
|
|
4224
|
-
return
|
|
4152
|
+
return response;
|
|
4225
4153
|
};
|
|
4226
4154
|
exports.de_DescribeResizeCommand = de_DescribeResizeCommand;
|
|
4227
4155
|
const de_DescribeResizeCommandError = async (output, context) => {
|
|
@@ -4239,10 +4167,9 @@ const de_DescribeResizeCommandError = async (output, context) => {
|
|
|
4239
4167
|
throw await de_ResizeNotFoundFaultRes(parsedOutput, context);
|
|
4240
4168
|
default:
|
|
4241
4169
|
const parsedBody = parsedOutput.body;
|
|
4242
|
-
|
|
4170
|
+
return throwDefaultError({
|
|
4243
4171
|
output,
|
|
4244
4172
|
parsedBody: parsedBody.Error,
|
|
4245
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4246
4173
|
errorCode,
|
|
4247
4174
|
});
|
|
4248
4175
|
}
|
|
@@ -4258,7 +4185,7 @@ const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
|
4258
4185
|
$metadata: deserializeMetadata(output),
|
|
4259
4186
|
...contents,
|
|
4260
4187
|
};
|
|
4261
|
-
return
|
|
4188
|
+
return response;
|
|
4262
4189
|
};
|
|
4263
4190
|
exports.de_DescribeScheduledActionsCommand = de_DescribeScheduledActionsCommand;
|
|
4264
4191
|
const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
@@ -4276,10 +4203,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
|
4276
4203
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
4277
4204
|
default:
|
|
4278
4205
|
const parsedBody = parsedOutput.body;
|
|
4279
|
-
|
|
4206
|
+
return throwDefaultError({
|
|
4280
4207
|
output,
|
|
4281
4208
|
parsedBody: parsedBody.Error,
|
|
4282
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4283
4209
|
errorCode,
|
|
4284
4210
|
});
|
|
4285
4211
|
}
|
|
@@ -4295,7 +4221,7 @@ const de_DescribeSnapshotCopyGrantsCommand = async (output, context) => {
|
|
|
4295
4221
|
$metadata: deserializeMetadata(output),
|
|
4296
4222
|
...contents,
|
|
4297
4223
|
};
|
|
4298
|
-
return
|
|
4224
|
+
return response;
|
|
4299
4225
|
};
|
|
4300
4226
|
exports.de_DescribeSnapshotCopyGrantsCommand = de_DescribeSnapshotCopyGrantsCommand;
|
|
4301
4227
|
const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
|
|
@@ -4313,10 +4239,9 @@ const de_DescribeSnapshotCopyGrantsCommandError = async (output, context) => {
|
|
|
4313
4239
|
throw await de_SnapshotCopyGrantNotFoundFaultRes(parsedOutput, context);
|
|
4314
4240
|
default:
|
|
4315
4241
|
const parsedBody = parsedOutput.body;
|
|
4316
|
-
|
|
4242
|
+
return throwDefaultError({
|
|
4317
4243
|
output,
|
|
4318
4244
|
parsedBody: parsedBody.Error,
|
|
4319
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4320
4245
|
errorCode,
|
|
4321
4246
|
});
|
|
4322
4247
|
}
|
|
@@ -4332,7 +4257,7 @@ const de_DescribeSnapshotSchedulesCommand = async (output, context) => {
|
|
|
4332
4257
|
$metadata: deserializeMetadata(output),
|
|
4333
4258
|
...contents,
|
|
4334
4259
|
};
|
|
4335
|
-
return
|
|
4260
|
+
return response;
|
|
4336
4261
|
};
|
|
4337
4262
|
exports.de_DescribeSnapshotSchedulesCommand = de_DescribeSnapshotSchedulesCommand;
|
|
4338
4263
|
const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
|
|
@@ -4342,10 +4267,9 @@ const de_DescribeSnapshotSchedulesCommandError = async (output, context) => {
|
|
|
4342
4267
|
};
|
|
4343
4268
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4344
4269
|
const parsedBody = parsedOutput.body;
|
|
4345
|
-
|
|
4270
|
+
return throwDefaultError({
|
|
4346
4271
|
output,
|
|
4347
4272
|
parsedBody: parsedBody.Error,
|
|
4348
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4349
4273
|
errorCode,
|
|
4350
4274
|
});
|
|
4351
4275
|
};
|
|
@@ -4360,7 +4284,7 @@ const de_DescribeStorageCommand = async (output, context) => {
|
|
|
4360
4284
|
$metadata: deserializeMetadata(output),
|
|
4361
4285
|
...contents,
|
|
4362
4286
|
};
|
|
4363
|
-
return
|
|
4287
|
+
return response;
|
|
4364
4288
|
};
|
|
4365
4289
|
exports.de_DescribeStorageCommand = de_DescribeStorageCommand;
|
|
4366
4290
|
const de_DescribeStorageCommandError = async (output, context) => {
|
|
@@ -4370,10 +4294,9 @@ const de_DescribeStorageCommandError = async (output, context) => {
|
|
|
4370
4294
|
};
|
|
4371
4295
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
4372
4296
|
const parsedBody = parsedOutput.body;
|
|
4373
|
-
|
|
4297
|
+
return throwDefaultError({
|
|
4374
4298
|
output,
|
|
4375
4299
|
parsedBody: parsedBody.Error,
|
|
4376
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4377
4300
|
errorCode,
|
|
4378
4301
|
});
|
|
4379
4302
|
};
|
|
@@ -4388,7 +4311,7 @@ const de_DescribeTableRestoreStatusCommand = async (output, context) => {
|
|
|
4388
4311
|
$metadata: deserializeMetadata(output),
|
|
4389
4312
|
...contents,
|
|
4390
4313
|
};
|
|
4391
|
-
return
|
|
4314
|
+
return response;
|
|
4392
4315
|
};
|
|
4393
4316
|
exports.de_DescribeTableRestoreStatusCommand = de_DescribeTableRestoreStatusCommand;
|
|
4394
4317
|
const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
|
|
@@ -4406,10 +4329,9 @@ const de_DescribeTableRestoreStatusCommandError = async (output, context) => {
|
|
|
4406
4329
|
throw await de_TableRestoreNotFoundFaultRes(parsedOutput, context);
|
|
4407
4330
|
default:
|
|
4408
4331
|
const parsedBody = parsedOutput.body;
|
|
4409
|
-
|
|
4332
|
+
return throwDefaultError({
|
|
4410
4333
|
output,
|
|
4411
4334
|
parsedBody: parsedBody.Error,
|
|
4412
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4413
4335
|
errorCode,
|
|
4414
4336
|
});
|
|
4415
4337
|
}
|
|
@@ -4425,7 +4347,7 @@ const de_DescribeTagsCommand = async (output, context) => {
|
|
|
4425
4347
|
$metadata: deserializeMetadata(output),
|
|
4426
4348
|
...contents,
|
|
4427
4349
|
};
|
|
4428
|
-
return
|
|
4350
|
+
return response;
|
|
4429
4351
|
};
|
|
4430
4352
|
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
4431
4353
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
@@ -4443,10 +4365,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
4443
4365
|
throw await de_ResourceNotFoundFaultRes(parsedOutput, context);
|
|
4444
4366
|
default:
|
|
4445
4367
|
const parsedBody = parsedOutput.body;
|
|
4446
|
-
|
|
4368
|
+
return throwDefaultError({
|
|
4447
4369
|
output,
|
|
4448
4370
|
parsedBody: parsedBody.Error,
|
|
4449
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4450
4371
|
errorCode,
|
|
4451
4372
|
});
|
|
4452
4373
|
}
|
|
@@ -4462,7 +4383,7 @@ const de_DescribeUsageLimitsCommand = async (output, context) => {
|
|
|
4462
4383
|
$metadata: deserializeMetadata(output),
|
|
4463
4384
|
...contents,
|
|
4464
4385
|
};
|
|
4465
|
-
return
|
|
4386
|
+
return response;
|
|
4466
4387
|
};
|
|
4467
4388
|
exports.de_DescribeUsageLimitsCommand = de_DescribeUsageLimitsCommand;
|
|
4468
4389
|
const de_DescribeUsageLimitsCommandError = async (output, context) => {
|
|
@@ -4480,10 +4401,9 @@ const de_DescribeUsageLimitsCommandError = async (output, context) => {
|
|
|
4480
4401
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4481
4402
|
default:
|
|
4482
4403
|
const parsedBody = parsedOutput.body;
|
|
4483
|
-
|
|
4404
|
+
return throwDefaultError({
|
|
4484
4405
|
output,
|
|
4485
4406
|
parsedBody: parsedBody.Error,
|
|
4486
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4487
4407
|
errorCode,
|
|
4488
4408
|
});
|
|
4489
4409
|
}
|
|
@@ -4499,7 +4419,7 @@ const de_DisableLoggingCommand = async (output, context) => {
|
|
|
4499
4419
|
$metadata: deserializeMetadata(output),
|
|
4500
4420
|
...contents,
|
|
4501
4421
|
};
|
|
4502
|
-
return
|
|
4422
|
+
return response;
|
|
4503
4423
|
};
|
|
4504
4424
|
exports.de_DisableLoggingCommand = de_DisableLoggingCommand;
|
|
4505
4425
|
const de_DisableLoggingCommandError = async (output, context) => {
|
|
@@ -4517,10 +4437,9 @@ const de_DisableLoggingCommandError = async (output, context) => {
|
|
|
4517
4437
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
4518
4438
|
default:
|
|
4519
4439
|
const parsedBody = parsedOutput.body;
|
|
4520
|
-
|
|
4440
|
+
return throwDefaultError({
|
|
4521
4441
|
output,
|
|
4522
4442
|
parsedBody: parsedBody.Error,
|
|
4523
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4524
4443
|
errorCode,
|
|
4525
4444
|
});
|
|
4526
4445
|
}
|
|
@@ -4536,7 +4455,7 @@ const de_DisableSnapshotCopyCommand = async (output, context) => {
|
|
|
4536
4455
|
$metadata: deserializeMetadata(output),
|
|
4537
4456
|
...contents,
|
|
4538
4457
|
};
|
|
4539
|
-
return
|
|
4458
|
+
return response;
|
|
4540
4459
|
};
|
|
4541
4460
|
exports.de_DisableSnapshotCopyCommand = de_DisableSnapshotCopyCommand;
|
|
4542
4461
|
const de_DisableSnapshotCopyCommandError = async (output, context) => {
|
|
@@ -4560,10 +4479,9 @@ const de_DisableSnapshotCopyCommandError = async (output, context) => {
|
|
|
4560
4479
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
4561
4480
|
default:
|
|
4562
4481
|
const parsedBody = parsedOutput.body;
|
|
4563
|
-
|
|
4482
|
+
return throwDefaultError({
|
|
4564
4483
|
output,
|
|
4565
4484
|
parsedBody: parsedBody.Error,
|
|
4566
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4567
4485
|
errorCode,
|
|
4568
4486
|
});
|
|
4569
4487
|
}
|
|
@@ -4579,7 +4497,7 @@ const de_DisassociateDataShareConsumerCommand = async (output, context) => {
|
|
|
4579
4497
|
$metadata: deserializeMetadata(output),
|
|
4580
4498
|
...contents,
|
|
4581
4499
|
};
|
|
4582
|
-
return
|
|
4500
|
+
return response;
|
|
4583
4501
|
};
|
|
4584
4502
|
exports.de_DisassociateDataShareConsumerCommand = de_DisassociateDataShareConsumerCommand;
|
|
4585
4503
|
const de_DisassociateDataShareConsumerCommandError = async (output, context) => {
|
|
@@ -4597,10 +4515,9 @@ const de_DisassociateDataShareConsumerCommandError = async (output, context) =>
|
|
|
4597
4515
|
throw await de_InvalidNamespaceFaultRes(parsedOutput, context);
|
|
4598
4516
|
default:
|
|
4599
4517
|
const parsedBody = parsedOutput.body;
|
|
4600
|
-
|
|
4518
|
+
return throwDefaultError({
|
|
4601
4519
|
output,
|
|
4602
4520
|
parsedBody: parsedBody.Error,
|
|
4603
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4604
4521
|
errorCode,
|
|
4605
4522
|
});
|
|
4606
4523
|
}
|
|
@@ -4616,7 +4533,7 @@ const de_EnableLoggingCommand = async (output, context) => {
|
|
|
4616
4533
|
$metadata: deserializeMetadata(output),
|
|
4617
4534
|
...contents,
|
|
4618
4535
|
};
|
|
4619
|
-
return
|
|
4536
|
+
return response;
|
|
4620
4537
|
};
|
|
4621
4538
|
exports.de_EnableLoggingCommand = de_EnableLoggingCommand;
|
|
4622
4539
|
const de_EnableLoggingCommandError = async (output, context) => {
|
|
@@ -4646,10 +4563,9 @@ const de_EnableLoggingCommandError = async (output, context) => {
|
|
|
4646
4563
|
throw await de_InvalidS3KeyPrefixFaultRes(parsedOutput, context);
|
|
4647
4564
|
default:
|
|
4648
4565
|
const parsedBody = parsedOutput.body;
|
|
4649
|
-
|
|
4566
|
+
return throwDefaultError({
|
|
4650
4567
|
output,
|
|
4651
4568
|
parsedBody: parsedBody.Error,
|
|
4652
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4653
4569
|
errorCode,
|
|
4654
4570
|
});
|
|
4655
4571
|
}
|
|
@@ -4665,7 +4581,7 @@ const de_EnableSnapshotCopyCommand = async (output, context) => {
|
|
|
4665
4581
|
$metadata: deserializeMetadata(output),
|
|
4666
4582
|
...contents,
|
|
4667
4583
|
};
|
|
4668
|
-
return
|
|
4584
|
+
return response;
|
|
4669
4585
|
};
|
|
4670
4586
|
exports.de_EnableSnapshotCopyCommand = de_EnableSnapshotCopyCommand;
|
|
4671
4587
|
const de_EnableSnapshotCopyCommandError = async (output, context) => {
|
|
@@ -4710,10 +4626,9 @@ const de_EnableSnapshotCopyCommandError = async (output, context) => {
|
|
|
4710
4626
|
throw await de_UnknownSnapshotCopyRegionFaultRes(parsedOutput, context);
|
|
4711
4627
|
default:
|
|
4712
4628
|
const parsedBody = parsedOutput.body;
|
|
4713
|
-
|
|
4629
|
+
return throwDefaultError({
|
|
4714
4630
|
output,
|
|
4715
4631
|
parsedBody: parsedBody.Error,
|
|
4716
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4717
4632
|
errorCode,
|
|
4718
4633
|
});
|
|
4719
4634
|
}
|
|
@@ -4729,7 +4644,7 @@ const de_GetClusterCredentialsCommand = async (output, context) => {
|
|
|
4729
4644
|
$metadata: deserializeMetadata(output),
|
|
4730
4645
|
...contents,
|
|
4731
4646
|
};
|
|
4732
|
-
return
|
|
4647
|
+
return response;
|
|
4733
4648
|
};
|
|
4734
4649
|
exports.de_GetClusterCredentialsCommand = de_GetClusterCredentialsCommand;
|
|
4735
4650
|
const de_GetClusterCredentialsCommandError = async (output, context) => {
|
|
@@ -4747,10 +4662,9 @@ const de_GetClusterCredentialsCommandError = async (output, context) => {
|
|
|
4747
4662
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4748
4663
|
default:
|
|
4749
4664
|
const parsedBody = parsedOutput.body;
|
|
4750
|
-
|
|
4665
|
+
return throwDefaultError({
|
|
4751
4666
|
output,
|
|
4752
4667
|
parsedBody: parsedBody.Error,
|
|
4753
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4754
4668
|
errorCode,
|
|
4755
4669
|
});
|
|
4756
4670
|
}
|
|
@@ -4766,7 +4680,7 @@ const de_GetClusterCredentialsWithIAMCommand = async (output, context) => {
|
|
|
4766
4680
|
$metadata: deserializeMetadata(output),
|
|
4767
4681
|
...contents,
|
|
4768
4682
|
};
|
|
4769
|
-
return
|
|
4683
|
+
return response;
|
|
4770
4684
|
};
|
|
4771
4685
|
exports.de_GetClusterCredentialsWithIAMCommand = de_GetClusterCredentialsWithIAMCommand;
|
|
4772
4686
|
const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
|
|
@@ -4784,10 +4698,9 @@ const de_GetClusterCredentialsWithIAMCommandError = async (output, context) => {
|
|
|
4784
4698
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4785
4699
|
default:
|
|
4786
4700
|
const parsedBody = parsedOutput.body;
|
|
4787
|
-
|
|
4701
|
+
return throwDefaultError({
|
|
4788
4702
|
output,
|
|
4789
4703
|
parsedBody: parsedBody.Error,
|
|
4790
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4791
4704
|
errorCode,
|
|
4792
4705
|
});
|
|
4793
4706
|
}
|
|
@@ -4803,7 +4716,7 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommand = async (output, con
|
|
|
4803
4716
|
$metadata: deserializeMetadata(output),
|
|
4804
4717
|
...contents,
|
|
4805
4718
|
};
|
|
4806
|
-
return
|
|
4719
|
+
return response;
|
|
4807
4720
|
};
|
|
4808
4721
|
exports.de_GetReservedNodeExchangeConfigurationOptionsCommand = de_GetReservedNodeExchangeConfigurationOptionsCommand;
|
|
4809
4722
|
const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output, context) => {
|
|
@@ -4839,10 +4752,9 @@ const de_GetReservedNodeExchangeConfigurationOptionsCommandError = async (output
|
|
|
4839
4752
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4840
4753
|
default:
|
|
4841
4754
|
const parsedBody = parsedOutput.body;
|
|
4842
|
-
|
|
4755
|
+
return throwDefaultError({
|
|
4843
4756
|
output,
|
|
4844
4757
|
parsedBody: parsedBody.Error,
|
|
4845
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4846
4758
|
errorCode,
|
|
4847
4759
|
});
|
|
4848
4760
|
}
|
|
@@ -4858,7 +4770,7 @@ const de_GetReservedNodeExchangeOfferingsCommand = async (output, context) => {
|
|
|
4858
4770
|
$metadata: deserializeMetadata(output),
|
|
4859
4771
|
...contents,
|
|
4860
4772
|
};
|
|
4861
|
-
return
|
|
4773
|
+
return response;
|
|
4862
4774
|
};
|
|
4863
4775
|
exports.de_GetReservedNodeExchangeOfferingsCommand = de_GetReservedNodeExchangeOfferingsCommand;
|
|
4864
4776
|
const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context) => {
|
|
@@ -4888,10 +4800,9 @@ const de_GetReservedNodeExchangeOfferingsCommandError = async (output, context)
|
|
|
4888
4800
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4889
4801
|
default:
|
|
4890
4802
|
const parsedBody = parsedOutput.body;
|
|
4891
|
-
|
|
4803
|
+
return throwDefaultError({
|
|
4892
4804
|
output,
|
|
4893
4805
|
parsedBody: parsedBody.Error,
|
|
4894
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4895
4806
|
errorCode,
|
|
4896
4807
|
});
|
|
4897
4808
|
}
|
|
@@ -4907,7 +4818,7 @@ const de_ModifyAquaConfigurationCommand = async (output, context) => {
|
|
|
4907
4818
|
$metadata: deserializeMetadata(output),
|
|
4908
4819
|
...contents,
|
|
4909
4820
|
};
|
|
4910
|
-
return
|
|
4821
|
+
return response;
|
|
4911
4822
|
};
|
|
4912
4823
|
exports.de_ModifyAquaConfigurationCommand = de_ModifyAquaConfigurationCommand;
|
|
4913
4824
|
const de_ModifyAquaConfigurationCommandError = async (output, context) => {
|
|
@@ -4928,10 +4839,9 @@ const de_ModifyAquaConfigurationCommandError = async (output, context) => {
|
|
|
4928
4839
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
4929
4840
|
default:
|
|
4930
4841
|
const parsedBody = parsedOutput.body;
|
|
4931
|
-
|
|
4842
|
+
return throwDefaultError({
|
|
4932
4843
|
output,
|
|
4933
4844
|
parsedBody: parsedBody.Error,
|
|
4934
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4935
4845
|
errorCode,
|
|
4936
4846
|
});
|
|
4937
4847
|
}
|
|
@@ -4947,7 +4857,7 @@ const de_ModifyAuthenticationProfileCommand = async (output, context) => {
|
|
|
4947
4857
|
$metadata: deserializeMetadata(output),
|
|
4948
4858
|
...contents,
|
|
4949
4859
|
};
|
|
4950
|
-
return
|
|
4860
|
+
return response;
|
|
4951
4861
|
};
|
|
4952
4862
|
exports.de_ModifyAuthenticationProfileCommand = de_ModifyAuthenticationProfileCommand;
|
|
4953
4863
|
const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
|
|
@@ -4968,10 +4878,9 @@ const de_ModifyAuthenticationProfileCommandError = async (output, context) => {
|
|
|
4968
4878
|
throw await de_InvalidAuthenticationProfileRequestFaultRes(parsedOutput, context);
|
|
4969
4879
|
default:
|
|
4970
4880
|
const parsedBody = parsedOutput.body;
|
|
4971
|
-
|
|
4881
|
+
return throwDefaultError({
|
|
4972
4882
|
output,
|
|
4973
4883
|
parsedBody: parsedBody.Error,
|
|
4974
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
4975
4884
|
errorCode,
|
|
4976
4885
|
});
|
|
4977
4886
|
}
|
|
@@ -4987,7 +4896,7 @@ const de_ModifyClusterCommand = async (output, context) => {
|
|
|
4987
4896
|
$metadata: deserializeMetadata(output),
|
|
4988
4897
|
...contents,
|
|
4989
4898
|
};
|
|
4990
|
-
return
|
|
4899
|
+
return response;
|
|
4991
4900
|
};
|
|
4992
4901
|
exports.de_ModifyClusterCommand = de_ModifyClusterCommand;
|
|
4993
4902
|
const de_ModifyClusterCommandError = async (output, context) => {
|
|
@@ -5056,10 +4965,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
|
|
|
5056
4965
|
throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
|
|
5057
4966
|
default:
|
|
5058
4967
|
const parsedBody = parsedOutput.body;
|
|
5059
|
-
|
|
4968
|
+
return throwDefaultError({
|
|
5060
4969
|
output,
|
|
5061
4970
|
parsedBody: parsedBody.Error,
|
|
5062
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5063
4971
|
errorCode,
|
|
5064
4972
|
});
|
|
5065
4973
|
}
|
|
@@ -5075,7 +4983,7 @@ const de_ModifyClusterDbRevisionCommand = async (output, context) => {
|
|
|
5075
4983
|
$metadata: deserializeMetadata(output),
|
|
5076
4984
|
...contents,
|
|
5077
4985
|
};
|
|
5078
|
-
return
|
|
4986
|
+
return response;
|
|
5079
4987
|
};
|
|
5080
4988
|
exports.de_ModifyClusterDbRevisionCommand = de_ModifyClusterDbRevisionCommand;
|
|
5081
4989
|
const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
|
|
@@ -5096,10 +5004,9 @@ const de_ModifyClusterDbRevisionCommandError = async (output, context) => {
|
|
|
5096
5004
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5097
5005
|
default:
|
|
5098
5006
|
const parsedBody = parsedOutput.body;
|
|
5099
|
-
|
|
5007
|
+
return throwDefaultError({
|
|
5100
5008
|
output,
|
|
5101
5009
|
parsedBody: parsedBody.Error,
|
|
5102
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5103
5010
|
errorCode,
|
|
5104
5011
|
});
|
|
5105
5012
|
}
|
|
@@ -5115,7 +5022,7 @@ const de_ModifyClusterIamRolesCommand = async (output, context) => {
|
|
|
5115
5022
|
$metadata: deserializeMetadata(output),
|
|
5116
5023
|
...contents,
|
|
5117
5024
|
};
|
|
5118
|
-
return
|
|
5025
|
+
return response;
|
|
5119
5026
|
};
|
|
5120
5027
|
exports.de_ModifyClusterIamRolesCommand = de_ModifyClusterIamRolesCommand;
|
|
5121
5028
|
const de_ModifyClusterIamRolesCommandError = async (output, context) => {
|
|
@@ -5133,10 +5040,9 @@ const de_ModifyClusterIamRolesCommandError = async (output, context) => {
|
|
|
5133
5040
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5134
5041
|
default:
|
|
5135
5042
|
const parsedBody = parsedOutput.body;
|
|
5136
|
-
|
|
5043
|
+
return throwDefaultError({
|
|
5137
5044
|
output,
|
|
5138
5045
|
parsedBody: parsedBody.Error,
|
|
5139
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5140
5046
|
errorCode,
|
|
5141
5047
|
});
|
|
5142
5048
|
}
|
|
@@ -5152,7 +5058,7 @@ const de_ModifyClusterMaintenanceCommand = async (output, context) => {
|
|
|
5152
5058
|
$metadata: deserializeMetadata(output),
|
|
5153
5059
|
...contents,
|
|
5154
5060
|
};
|
|
5155
|
-
return
|
|
5061
|
+
return response;
|
|
5156
5062
|
};
|
|
5157
5063
|
exports.de_ModifyClusterMaintenanceCommand = de_ModifyClusterMaintenanceCommand;
|
|
5158
5064
|
const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
|
|
@@ -5170,10 +5076,9 @@ const de_ModifyClusterMaintenanceCommandError = async (output, context) => {
|
|
|
5170
5076
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5171
5077
|
default:
|
|
5172
5078
|
const parsedBody = parsedOutput.body;
|
|
5173
|
-
|
|
5079
|
+
return throwDefaultError({
|
|
5174
5080
|
output,
|
|
5175
5081
|
parsedBody: parsedBody.Error,
|
|
5176
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5177
5082
|
errorCode,
|
|
5178
5083
|
});
|
|
5179
5084
|
}
|
|
@@ -5189,7 +5094,7 @@ const de_ModifyClusterParameterGroupCommand = async (output, context) => {
|
|
|
5189
5094
|
$metadata: deserializeMetadata(output),
|
|
5190
5095
|
...contents,
|
|
5191
5096
|
};
|
|
5192
|
-
return
|
|
5097
|
+
return response;
|
|
5193
5098
|
};
|
|
5194
5099
|
exports.de_ModifyClusterParameterGroupCommand = de_ModifyClusterParameterGroupCommand;
|
|
5195
5100
|
const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -5207,10 +5112,9 @@ const de_ModifyClusterParameterGroupCommandError = async (output, context) => {
|
|
|
5207
5112
|
throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
|
|
5208
5113
|
default:
|
|
5209
5114
|
const parsedBody = parsedOutput.body;
|
|
5210
|
-
|
|
5115
|
+
return throwDefaultError({
|
|
5211
5116
|
output,
|
|
5212
5117
|
parsedBody: parsedBody.Error,
|
|
5213
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5214
5118
|
errorCode,
|
|
5215
5119
|
});
|
|
5216
5120
|
}
|
|
@@ -5226,7 +5130,7 @@ const de_ModifyClusterSnapshotCommand = async (output, context) => {
|
|
|
5226
5130
|
$metadata: deserializeMetadata(output),
|
|
5227
5131
|
...contents,
|
|
5228
5132
|
};
|
|
5229
|
-
return
|
|
5133
|
+
return response;
|
|
5230
5134
|
};
|
|
5231
5135
|
exports.de_ModifyClusterSnapshotCommand = de_ModifyClusterSnapshotCommand;
|
|
5232
5136
|
const de_ModifyClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -5247,10 +5151,9 @@ const de_ModifyClusterSnapshotCommandError = async (output, context) => {
|
|
|
5247
5151
|
throw await de_InvalidRetentionPeriodFaultRes(parsedOutput, context);
|
|
5248
5152
|
default:
|
|
5249
5153
|
const parsedBody = parsedOutput.body;
|
|
5250
|
-
|
|
5154
|
+
return throwDefaultError({
|
|
5251
5155
|
output,
|
|
5252
5156
|
parsedBody: parsedBody.Error,
|
|
5253
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5254
5157
|
errorCode,
|
|
5255
5158
|
});
|
|
5256
5159
|
}
|
|
@@ -5263,7 +5166,7 @@ const de_ModifyClusterSnapshotScheduleCommand = async (output, context) => {
|
|
|
5263
5166
|
const response = {
|
|
5264
5167
|
$metadata: deserializeMetadata(output),
|
|
5265
5168
|
};
|
|
5266
|
-
return
|
|
5169
|
+
return response;
|
|
5267
5170
|
};
|
|
5268
5171
|
exports.de_ModifyClusterSnapshotScheduleCommand = de_ModifyClusterSnapshotScheduleCommand;
|
|
5269
5172
|
const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) => {
|
|
@@ -5284,10 +5187,9 @@ const de_ModifyClusterSnapshotScheduleCommandError = async (output, context) =>
|
|
|
5284
5187
|
throw await de_SnapshotScheduleNotFoundFaultRes(parsedOutput, context);
|
|
5285
5188
|
default:
|
|
5286
5189
|
const parsedBody = parsedOutput.body;
|
|
5287
|
-
|
|
5190
|
+
return throwDefaultError({
|
|
5288
5191
|
output,
|
|
5289
5192
|
parsedBody: parsedBody.Error,
|
|
5290
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5291
5193
|
errorCode,
|
|
5292
5194
|
});
|
|
5293
5195
|
}
|
|
@@ -5303,7 +5205,7 @@ const de_ModifyClusterSubnetGroupCommand = async (output, context) => {
|
|
|
5303
5205
|
$metadata: deserializeMetadata(output),
|
|
5304
5206
|
...contents,
|
|
5305
5207
|
};
|
|
5306
|
-
return
|
|
5208
|
+
return response;
|
|
5307
5209
|
};
|
|
5308
5210
|
exports.de_ModifyClusterSubnetGroupCommand = de_ModifyClusterSubnetGroupCommand;
|
|
5309
5211
|
const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
|
|
@@ -5333,10 +5235,9 @@ const de_ModifyClusterSubnetGroupCommandError = async (output, context) => {
|
|
|
5333
5235
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
5334
5236
|
default:
|
|
5335
5237
|
const parsedBody = parsedOutput.body;
|
|
5336
|
-
|
|
5238
|
+
return throwDefaultError({
|
|
5337
5239
|
output,
|
|
5338
5240
|
parsedBody: parsedBody.Error,
|
|
5339
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5340
5241
|
errorCode,
|
|
5341
5242
|
});
|
|
5342
5243
|
}
|
|
@@ -5352,7 +5253,7 @@ const de_ModifyEndpointAccessCommand = async (output, context) => {
|
|
|
5352
5253
|
$metadata: deserializeMetadata(output),
|
|
5353
5254
|
...contents,
|
|
5354
5255
|
};
|
|
5355
|
-
return
|
|
5256
|
+
return response;
|
|
5356
5257
|
};
|
|
5357
5258
|
exports.de_ModifyEndpointAccessCommand = de_ModifyEndpointAccessCommand;
|
|
5358
5259
|
const de_ModifyEndpointAccessCommandError = async (output, context) => {
|
|
@@ -5382,10 +5283,9 @@ const de_ModifyEndpointAccessCommandError = async (output, context) => {
|
|
|
5382
5283
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
5383
5284
|
default:
|
|
5384
5285
|
const parsedBody = parsedOutput.body;
|
|
5385
|
-
|
|
5286
|
+
return throwDefaultError({
|
|
5386
5287
|
output,
|
|
5387
5288
|
parsedBody: parsedBody.Error,
|
|
5388
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5389
5289
|
errorCode,
|
|
5390
5290
|
});
|
|
5391
5291
|
}
|
|
@@ -5401,7 +5301,7 @@ const de_ModifyEventSubscriptionCommand = async (output, context) => {
|
|
|
5401
5301
|
$metadata: deserializeMetadata(output),
|
|
5402
5302
|
...contents,
|
|
5403
5303
|
};
|
|
5404
|
-
return
|
|
5304
|
+
return response;
|
|
5405
5305
|
};
|
|
5406
5306
|
exports.de_ModifyEventSubscriptionCommand = de_ModifyEventSubscriptionCommand;
|
|
5407
5307
|
const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
@@ -5440,10 +5340,9 @@ const de_ModifyEventSubscriptionCommandError = async (output, context) => {
|
|
|
5440
5340
|
throw await de_SubscriptionSeverityNotFoundFaultRes(parsedOutput, context);
|
|
5441
5341
|
default:
|
|
5442
5342
|
const parsedBody = parsedOutput.body;
|
|
5443
|
-
|
|
5343
|
+
return throwDefaultError({
|
|
5444
5344
|
output,
|
|
5445
5345
|
parsedBody: parsedBody.Error,
|
|
5446
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5447
5346
|
errorCode,
|
|
5448
5347
|
});
|
|
5449
5348
|
}
|
|
@@ -5459,7 +5358,7 @@ const de_ModifyScheduledActionCommand = async (output, context) => {
|
|
|
5459
5358
|
$metadata: deserializeMetadata(output),
|
|
5460
5359
|
...contents,
|
|
5461
5360
|
};
|
|
5462
|
-
return
|
|
5361
|
+
return response;
|
|
5463
5362
|
};
|
|
5464
5363
|
exports.de_ModifyScheduledActionCommand = de_ModifyScheduledActionCommand;
|
|
5465
5364
|
const de_ModifyScheduledActionCommandError = async (output, context) => {
|
|
@@ -5486,10 +5385,9 @@ const de_ModifyScheduledActionCommandError = async (output, context) => {
|
|
|
5486
5385
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
5487
5386
|
default:
|
|
5488
5387
|
const parsedBody = parsedOutput.body;
|
|
5489
|
-
|
|
5388
|
+
return throwDefaultError({
|
|
5490
5389
|
output,
|
|
5491
5390
|
parsedBody: parsedBody.Error,
|
|
5492
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5493
5391
|
errorCode,
|
|
5494
5392
|
});
|
|
5495
5393
|
}
|
|
@@ -5505,7 +5403,7 @@ const de_ModifySnapshotCopyRetentionPeriodCommand = async (output, context) => {
|
|
|
5505
5403
|
$metadata: deserializeMetadata(output),
|
|
5506
5404
|
...contents,
|
|
5507
5405
|
};
|
|
5508
|
-
return
|
|
5406
|
+
return response;
|
|
5509
5407
|
};
|
|
5510
5408
|
exports.de_ModifySnapshotCopyRetentionPeriodCommand = de_ModifySnapshotCopyRetentionPeriodCommand;
|
|
5511
5409
|
const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context) => {
|
|
@@ -5532,10 +5430,9 @@ const de_ModifySnapshotCopyRetentionPeriodCommandError = async (output, context)
|
|
|
5532
5430
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
5533
5431
|
default:
|
|
5534
5432
|
const parsedBody = parsedOutput.body;
|
|
5535
|
-
|
|
5433
|
+
return throwDefaultError({
|
|
5536
5434
|
output,
|
|
5537
5435
|
parsedBody: parsedBody.Error,
|
|
5538
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5539
5436
|
errorCode,
|
|
5540
5437
|
});
|
|
5541
5438
|
}
|
|
@@ -5551,7 +5448,7 @@ const de_ModifySnapshotScheduleCommand = async (output, context) => {
|
|
|
5551
5448
|
$metadata: deserializeMetadata(output),
|
|
5552
5449
|
...contents,
|
|
5553
5450
|
};
|
|
5554
|
-
return
|
|
5451
|
+
return response;
|
|
5555
5452
|
};
|
|
5556
5453
|
exports.de_ModifySnapshotScheduleCommand = de_ModifySnapshotScheduleCommand;
|
|
5557
5454
|
const de_ModifySnapshotScheduleCommandError = async (output, context) => {
|
|
@@ -5572,10 +5469,9 @@ const de_ModifySnapshotScheduleCommandError = async (output, context) => {
|
|
|
5572
5469
|
throw await de_SnapshotScheduleUpdateInProgressFaultRes(parsedOutput, context);
|
|
5573
5470
|
default:
|
|
5574
5471
|
const parsedBody = parsedOutput.body;
|
|
5575
|
-
|
|
5472
|
+
return throwDefaultError({
|
|
5576
5473
|
output,
|
|
5577
5474
|
parsedBody: parsedBody.Error,
|
|
5578
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5579
5475
|
errorCode,
|
|
5580
5476
|
});
|
|
5581
5477
|
}
|
|
@@ -5591,7 +5487,7 @@ const de_ModifyUsageLimitCommand = async (output, context) => {
|
|
|
5591
5487
|
$metadata: deserializeMetadata(output),
|
|
5592
5488
|
...contents,
|
|
5593
5489
|
};
|
|
5594
|
-
return
|
|
5490
|
+
return response;
|
|
5595
5491
|
};
|
|
5596
5492
|
exports.de_ModifyUsageLimitCommand = de_ModifyUsageLimitCommand;
|
|
5597
5493
|
const de_ModifyUsageLimitCommandError = async (output, context) => {
|
|
@@ -5612,10 +5508,9 @@ const de_ModifyUsageLimitCommandError = async (output, context) => {
|
|
|
5612
5508
|
throw await de_UsageLimitNotFoundFaultRes(parsedOutput, context);
|
|
5613
5509
|
default:
|
|
5614
5510
|
const parsedBody = parsedOutput.body;
|
|
5615
|
-
|
|
5511
|
+
return throwDefaultError({
|
|
5616
5512
|
output,
|
|
5617
5513
|
parsedBody: parsedBody.Error,
|
|
5618
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5619
5514
|
errorCode,
|
|
5620
5515
|
});
|
|
5621
5516
|
}
|
|
@@ -5631,7 +5526,7 @@ const de_PauseClusterCommand = async (output, context) => {
|
|
|
5631
5526
|
$metadata: deserializeMetadata(output),
|
|
5632
5527
|
...contents,
|
|
5633
5528
|
};
|
|
5634
|
-
return
|
|
5529
|
+
return response;
|
|
5635
5530
|
};
|
|
5636
5531
|
exports.de_PauseClusterCommand = de_PauseClusterCommand;
|
|
5637
5532
|
const de_PauseClusterCommandError = async (output, context) => {
|
|
@@ -5649,10 +5544,9 @@ const de_PauseClusterCommandError = async (output, context) => {
|
|
|
5649
5544
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5650
5545
|
default:
|
|
5651
5546
|
const parsedBody = parsedOutput.body;
|
|
5652
|
-
|
|
5547
|
+
return throwDefaultError({
|
|
5653
5548
|
output,
|
|
5654
5549
|
parsedBody: parsedBody.Error,
|
|
5655
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5656
5550
|
errorCode,
|
|
5657
5551
|
});
|
|
5658
5552
|
}
|
|
@@ -5668,7 +5562,7 @@ const de_PurchaseReservedNodeOfferingCommand = async (output, context) => {
|
|
|
5668
5562
|
$metadata: deserializeMetadata(output),
|
|
5669
5563
|
...contents,
|
|
5670
5564
|
};
|
|
5671
|
-
return
|
|
5565
|
+
return response;
|
|
5672
5566
|
};
|
|
5673
5567
|
exports.de_PurchaseReservedNodeOfferingCommand = de_PurchaseReservedNodeOfferingCommand;
|
|
5674
5568
|
const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
|
|
@@ -5692,10 +5586,9 @@ const de_PurchaseReservedNodeOfferingCommandError = async (output, context) => {
|
|
|
5692
5586
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
5693
5587
|
default:
|
|
5694
5588
|
const parsedBody = parsedOutput.body;
|
|
5695
|
-
|
|
5589
|
+
return throwDefaultError({
|
|
5696
5590
|
output,
|
|
5697
5591
|
parsedBody: parsedBody.Error,
|
|
5698
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5699
5592
|
errorCode,
|
|
5700
5593
|
});
|
|
5701
5594
|
}
|
|
@@ -5711,7 +5604,7 @@ const de_RebootClusterCommand = async (output, context) => {
|
|
|
5711
5604
|
$metadata: deserializeMetadata(output),
|
|
5712
5605
|
...contents,
|
|
5713
5606
|
};
|
|
5714
|
-
return
|
|
5607
|
+
return response;
|
|
5715
5608
|
};
|
|
5716
5609
|
exports.de_RebootClusterCommand = de_RebootClusterCommand;
|
|
5717
5610
|
const de_RebootClusterCommandError = async (output, context) => {
|
|
@@ -5729,10 +5622,9 @@ const de_RebootClusterCommandError = async (output, context) => {
|
|
|
5729
5622
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
5730
5623
|
default:
|
|
5731
5624
|
const parsedBody = parsedOutput.body;
|
|
5732
|
-
|
|
5625
|
+
return throwDefaultError({
|
|
5733
5626
|
output,
|
|
5734
5627
|
parsedBody: parsedBody.Error,
|
|
5735
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5736
5628
|
errorCode,
|
|
5737
5629
|
});
|
|
5738
5630
|
}
|
|
@@ -5748,7 +5640,7 @@ const de_RejectDataShareCommand = async (output, context) => {
|
|
|
5748
5640
|
$metadata: deserializeMetadata(output),
|
|
5749
5641
|
...contents,
|
|
5750
5642
|
};
|
|
5751
|
-
return
|
|
5643
|
+
return response;
|
|
5752
5644
|
};
|
|
5753
5645
|
exports.de_RejectDataShareCommand = de_RejectDataShareCommand;
|
|
5754
5646
|
const de_RejectDataShareCommandError = async (output, context) => {
|
|
@@ -5763,10 +5655,9 @@ const de_RejectDataShareCommandError = async (output, context) => {
|
|
|
5763
5655
|
throw await de_InvalidDataShareFaultRes(parsedOutput, context);
|
|
5764
5656
|
default:
|
|
5765
5657
|
const parsedBody = parsedOutput.body;
|
|
5766
|
-
|
|
5658
|
+
return throwDefaultError({
|
|
5767
5659
|
output,
|
|
5768
5660
|
parsedBody: parsedBody.Error,
|
|
5769
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5770
5661
|
errorCode,
|
|
5771
5662
|
});
|
|
5772
5663
|
}
|
|
@@ -5782,7 +5673,7 @@ const de_ResetClusterParameterGroupCommand = async (output, context) => {
|
|
|
5782
5673
|
$metadata: deserializeMetadata(output),
|
|
5783
5674
|
...contents,
|
|
5784
5675
|
};
|
|
5785
|
-
return
|
|
5676
|
+
return response;
|
|
5786
5677
|
};
|
|
5787
5678
|
exports.de_ResetClusterParameterGroupCommand = de_ResetClusterParameterGroupCommand;
|
|
5788
5679
|
const de_ResetClusterParameterGroupCommandError = async (output, context) => {
|
|
@@ -5800,10 +5691,9 @@ const de_ResetClusterParameterGroupCommandError = async (output, context) => {
|
|
|
5800
5691
|
throw await de_InvalidClusterParameterGroupStateFaultRes(parsedOutput, context);
|
|
5801
5692
|
default:
|
|
5802
5693
|
const parsedBody = parsedOutput.body;
|
|
5803
|
-
|
|
5694
|
+
return throwDefaultError({
|
|
5804
5695
|
output,
|
|
5805
5696
|
parsedBody: parsedBody.Error,
|
|
5806
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5807
5697
|
errorCode,
|
|
5808
5698
|
});
|
|
5809
5699
|
}
|
|
@@ -5819,7 +5709,7 @@ const de_ResizeClusterCommand = async (output, context) => {
|
|
|
5819
5709
|
$metadata: deserializeMetadata(output),
|
|
5820
5710
|
...contents,
|
|
5821
5711
|
};
|
|
5822
|
-
return
|
|
5712
|
+
return response;
|
|
5823
5713
|
};
|
|
5824
5714
|
exports.de_ResizeClusterCommand = de_ResizeClusterCommand;
|
|
5825
5715
|
const de_ResizeClusterCommandError = async (output, context) => {
|
|
@@ -5876,10 +5766,9 @@ const de_ResizeClusterCommandError = async (output, context) => {
|
|
|
5876
5766
|
throw await de_UnsupportedOptionFaultRes(parsedOutput, context);
|
|
5877
5767
|
default:
|
|
5878
5768
|
const parsedBody = parsedOutput.body;
|
|
5879
|
-
|
|
5769
|
+
return throwDefaultError({
|
|
5880
5770
|
output,
|
|
5881
5771
|
parsedBody: parsedBody.Error,
|
|
5882
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
5883
5772
|
errorCode,
|
|
5884
5773
|
});
|
|
5885
5774
|
}
|
|
@@ -5895,7 +5784,7 @@ const de_RestoreFromClusterSnapshotCommand = async (output, context) => {
|
|
|
5895
5784
|
$metadata: deserializeMetadata(output),
|
|
5896
5785
|
...contents,
|
|
5897
5786
|
};
|
|
5898
|
-
return
|
|
5787
|
+
return response;
|
|
5899
5788
|
};
|
|
5900
5789
|
exports.de_RestoreFromClusterSnapshotCommand = de_RestoreFromClusterSnapshotCommand;
|
|
5901
5790
|
const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -6003,10 +5892,9 @@ const de_RestoreFromClusterSnapshotCommandError = async (output, context) => {
|
|
|
6003
5892
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6004
5893
|
default:
|
|
6005
5894
|
const parsedBody = parsedOutput.body;
|
|
6006
|
-
|
|
5895
|
+
return throwDefaultError({
|
|
6007
5896
|
output,
|
|
6008
5897
|
parsedBody: parsedBody.Error,
|
|
6009
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6010
5898
|
errorCode,
|
|
6011
5899
|
});
|
|
6012
5900
|
}
|
|
@@ -6022,7 +5910,7 @@ const de_RestoreTableFromClusterSnapshotCommand = async (output, context) => {
|
|
|
6022
5910
|
$metadata: deserializeMetadata(output),
|
|
6023
5911
|
...contents,
|
|
6024
5912
|
};
|
|
6025
|
-
return
|
|
5913
|
+
return response;
|
|
6026
5914
|
};
|
|
6027
5915
|
exports.de_RestoreTableFromClusterSnapshotCommand = de_RestoreTableFromClusterSnapshotCommand;
|
|
6028
5916
|
const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) => {
|
|
@@ -6055,10 +5943,9 @@ const de_RestoreTableFromClusterSnapshotCommandError = async (output, context) =
|
|
|
6055
5943
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6056
5944
|
default:
|
|
6057
5945
|
const parsedBody = parsedOutput.body;
|
|
6058
|
-
|
|
5946
|
+
return throwDefaultError({
|
|
6059
5947
|
output,
|
|
6060
5948
|
parsedBody: parsedBody.Error,
|
|
6061
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6062
5949
|
errorCode,
|
|
6063
5950
|
});
|
|
6064
5951
|
}
|
|
@@ -6074,7 +5961,7 @@ const de_ResumeClusterCommand = async (output, context) => {
|
|
|
6074
5961
|
$metadata: deserializeMetadata(output),
|
|
6075
5962
|
...contents,
|
|
6076
5963
|
};
|
|
6077
|
-
return
|
|
5964
|
+
return response;
|
|
6078
5965
|
};
|
|
6079
5966
|
exports.de_ResumeClusterCommand = de_ResumeClusterCommand;
|
|
6080
5967
|
const de_ResumeClusterCommandError = async (output, context) => {
|
|
@@ -6095,10 +5982,9 @@ const de_ResumeClusterCommandError = async (output, context) => {
|
|
|
6095
5982
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
6096
5983
|
default:
|
|
6097
5984
|
const parsedBody = parsedOutput.body;
|
|
6098
|
-
|
|
5985
|
+
return throwDefaultError({
|
|
6099
5986
|
output,
|
|
6100
5987
|
parsedBody: parsedBody.Error,
|
|
6101
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6102
5988
|
errorCode,
|
|
6103
5989
|
});
|
|
6104
5990
|
}
|
|
@@ -6114,7 +6000,7 @@ const de_RevokeClusterSecurityGroupIngressCommand = async (output, context) => {
|
|
|
6114
6000
|
$metadata: deserializeMetadata(output),
|
|
6115
6001
|
...contents,
|
|
6116
6002
|
};
|
|
6117
|
-
return
|
|
6003
|
+
return response;
|
|
6118
6004
|
};
|
|
6119
6005
|
exports.de_RevokeClusterSecurityGroupIngressCommand = de_RevokeClusterSecurityGroupIngressCommand;
|
|
6120
6006
|
const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context) => {
|
|
@@ -6135,10 +6021,9 @@ const de_RevokeClusterSecurityGroupIngressCommandError = async (output, context)
|
|
|
6135
6021
|
throw await de_InvalidClusterSecurityGroupStateFaultRes(parsedOutput, context);
|
|
6136
6022
|
default:
|
|
6137
6023
|
const parsedBody = parsedOutput.body;
|
|
6138
|
-
|
|
6024
|
+
return throwDefaultError({
|
|
6139
6025
|
output,
|
|
6140
6026
|
parsedBody: parsedBody.Error,
|
|
6141
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6142
6027
|
errorCode,
|
|
6143
6028
|
});
|
|
6144
6029
|
}
|
|
@@ -6154,7 +6039,7 @@ const de_RevokeEndpointAccessCommand = async (output, context) => {
|
|
|
6154
6039
|
$metadata: deserializeMetadata(output),
|
|
6155
6040
|
...contents,
|
|
6156
6041
|
};
|
|
6157
|
-
return
|
|
6042
|
+
return response;
|
|
6158
6043
|
};
|
|
6159
6044
|
exports.de_RevokeEndpointAccessCommand = de_RevokeEndpointAccessCommand;
|
|
6160
6045
|
const de_RevokeEndpointAccessCommandError = async (output, context) => {
|
|
@@ -6187,10 +6072,9 @@ const de_RevokeEndpointAccessCommandError = async (output, context) => {
|
|
|
6187
6072
|
throw await de_InvalidEndpointStateFaultRes(parsedOutput, context);
|
|
6188
6073
|
default:
|
|
6189
6074
|
const parsedBody = parsedOutput.body;
|
|
6190
|
-
|
|
6075
|
+
return throwDefaultError({
|
|
6191
6076
|
output,
|
|
6192
6077
|
parsedBody: parsedBody.Error,
|
|
6193
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6194
6078
|
errorCode,
|
|
6195
6079
|
});
|
|
6196
6080
|
}
|
|
@@ -6206,7 +6090,7 @@ const de_RevokeSnapshotAccessCommand = async (output, context) => {
|
|
|
6206
6090
|
$metadata: deserializeMetadata(output),
|
|
6207
6091
|
...contents,
|
|
6208
6092
|
};
|
|
6209
|
-
return
|
|
6093
|
+
return response;
|
|
6210
6094
|
};
|
|
6211
6095
|
exports.de_RevokeSnapshotAccessCommand = de_RevokeSnapshotAccessCommand;
|
|
6212
6096
|
const de_RevokeSnapshotAccessCommandError = async (output, context) => {
|
|
@@ -6230,10 +6114,9 @@ const de_RevokeSnapshotAccessCommandError = async (output, context) => {
|
|
|
6230
6114
|
throw await de_UnsupportedOperationFaultRes(parsedOutput, context);
|
|
6231
6115
|
default:
|
|
6232
6116
|
const parsedBody = parsedOutput.body;
|
|
6233
|
-
|
|
6117
|
+
return throwDefaultError({
|
|
6234
6118
|
output,
|
|
6235
6119
|
parsedBody: parsedBody.Error,
|
|
6236
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6237
6120
|
errorCode,
|
|
6238
6121
|
});
|
|
6239
6122
|
}
|
|
@@ -6249,7 +6132,7 @@ const de_RotateEncryptionKeyCommand = async (output, context) => {
|
|
|
6249
6132
|
$metadata: deserializeMetadata(output),
|
|
6250
6133
|
...contents,
|
|
6251
6134
|
};
|
|
6252
|
-
return
|
|
6135
|
+
return response;
|
|
6253
6136
|
};
|
|
6254
6137
|
exports.de_RotateEncryptionKeyCommand = de_RotateEncryptionKeyCommand;
|
|
6255
6138
|
const de_RotateEncryptionKeyCommandError = async (output, context) => {
|
|
@@ -6270,10 +6153,9 @@ const de_RotateEncryptionKeyCommandError = async (output, context) => {
|
|
|
6270
6153
|
throw await de_InvalidClusterStateFaultRes(parsedOutput, context);
|
|
6271
6154
|
default:
|
|
6272
6155
|
const parsedBody = parsedOutput.body;
|
|
6273
|
-
|
|
6156
|
+
return throwDefaultError({
|
|
6274
6157
|
output,
|
|
6275
6158
|
parsedBody: parsedBody.Error,
|
|
6276
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6277
6159
|
errorCode,
|
|
6278
6160
|
});
|
|
6279
6161
|
}
|
|
@@ -6289,7 +6171,7 @@ const de_UpdatePartnerStatusCommand = async (output, context) => {
|
|
|
6289
6171
|
$metadata: deserializeMetadata(output),
|
|
6290
6172
|
...contents,
|
|
6291
6173
|
};
|
|
6292
|
-
return
|
|
6174
|
+
return response;
|
|
6293
6175
|
};
|
|
6294
6176
|
exports.de_UpdatePartnerStatusCommand = de_UpdatePartnerStatusCommand;
|
|
6295
6177
|
const de_UpdatePartnerStatusCommandError = async (output, context) => {
|
|
@@ -6310,10 +6192,9 @@ const de_UpdatePartnerStatusCommandError = async (output, context) => {
|
|
|
6310
6192
|
throw await de_UnauthorizedPartnerIntegrationFaultRes(parsedOutput, context);
|
|
6311
6193
|
default:
|
|
6312
6194
|
const parsedBody = parsedOutput.body;
|
|
6313
|
-
|
|
6195
|
+
return throwDefaultError({
|
|
6314
6196
|
output,
|
|
6315
6197
|
parsedBody: parsedBody.Error,
|
|
6316
|
-
exceptionCtor: RedshiftServiceException_1.RedshiftServiceException,
|
|
6317
6198
|
errorCode,
|
|
6318
6199
|
});
|
|
6319
6200
|
}
|
|
@@ -14240,6 +14121,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
14240
14121
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
14241
14122
|
};
|
|
14242
14123
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
14124
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(RedshiftServiceException_1.RedshiftServiceException);
|
|
14243
14125
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
14244
14126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
14245
14127
|
const contents = {
|