@aws-sdk/client-eks 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +99 -1711
- package/dist-es/protocols/Aws_restJson1.js +110 -1722
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1612,7 +1612,7 @@ var se_UpdatePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (input
|
|
|
1612
1612
|
}, "se_UpdatePodIdentityAssociationCommand");
|
|
1613
1613
|
var de_AssociateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1614
1614
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1615
|
-
return
|
|
1615
|
+
return de_CommandError(output, context);
|
|
1616
1616
|
}
|
|
1617
1617
|
const contents = (0, import_smithy_client.map)({
|
|
1618
1618
|
$metadata: deserializeMetadata(output)
|
|
@@ -1626,37 +1626,9 @@ var de_AssociateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1626
1626
|
Object.assign(contents, doc);
|
|
1627
1627
|
return contents;
|
|
1628
1628
|
}, "de_AssociateAccessPolicyCommand");
|
|
1629
|
-
var de_AssociateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1630
|
-
const parsedOutput = {
|
|
1631
|
-
...output,
|
|
1632
|
-
body: await parseErrorBody(output.body, context)
|
|
1633
|
-
};
|
|
1634
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1635
|
-
switch (errorCode) {
|
|
1636
|
-
case "InvalidParameterException":
|
|
1637
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1638
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "InvalidRequestException":
|
|
1640
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1641
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ResourceNotFoundException":
|
|
1643
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1644
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ServerException":
|
|
1646
|
-
case "com.amazonaws.eks#ServerException":
|
|
1647
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
}, "de_AssociateAccessPolicyCommandError");
|
|
1657
1629
|
var de_AssociateEncryptionConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
1630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
1631
|
+
return de_CommandError(output, context);
|
|
1660
1632
|
}
|
|
1661
1633
|
const contents = (0, import_smithy_client.map)({
|
|
1662
1634
|
$metadata: deserializeMetadata(output)
|
|
@@ -1668,43 +1640,9 @@ var de_AssociateEncryptionConfigCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1668
1640
|
Object.assign(contents, doc);
|
|
1669
1641
|
return contents;
|
|
1670
1642
|
}, "de_AssociateEncryptionConfigCommand");
|
|
1671
|
-
var de_AssociateEncryptionConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1672
|
-
const parsedOutput = {
|
|
1673
|
-
...output,
|
|
1674
|
-
body: await parseErrorBody(output.body, context)
|
|
1675
|
-
};
|
|
1676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1677
|
-
switch (errorCode) {
|
|
1678
|
-
case "ClientException":
|
|
1679
|
-
case "com.amazonaws.eks#ClientException":
|
|
1680
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "InvalidParameterException":
|
|
1682
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1683
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "InvalidRequestException":
|
|
1685
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1686
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1687
|
-
case "ResourceInUseException":
|
|
1688
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
1689
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "ResourceNotFoundException":
|
|
1691
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "ServerException":
|
|
1694
|
-
case "com.amazonaws.eks#ServerException":
|
|
1695
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1696
|
-
default:
|
|
1697
|
-
const parsedBody = parsedOutput.body;
|
|
1698
|
-
return throwDefaultError({
|
|
1699
|
-
output,
|
|
1700
|
-
parsedBody,
|
|
1701
|
-
errorCode
|
|
1702
|
-
});
|
|
1703
|
-
}
|
|
1704
|
-
}, "de_AssociateEncryptionConfigCommandError");
|
|
1705
1643
|
var de_AssociateIdentityProviderConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1706
1644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1707
|
-
return
|
|
1645
|
+
return de_CommandError(output, context);
|
|
1708
1646
|
}
|
|
1709
1647
|
const contents = (0, import_smithy_client.map)({
|
|
1710
1648
|
$metadata: deserializeMetadata(output)
|
|
@@ -1717,43 +1655,9 @@ var de_AssociateIdentityProviderConfigCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1717
1655
|
Object.assign(contents, doc);
|
|
1718
1656
|
return contents;
|
|
1719
1657
|
}, "de_AssociateIdentityProviderConfigCommand");
|
|
1720
|
-
var de_AssociateIdentityProviderConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1721
|
-
const parsedOutput = {
|
|
1722
|
-
...output,
|
|
1723
|
-
body: await parseErrorBody(output.body, context)
|
|
1724
|
-
};
|
|
1725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
-
switch (errorCode) {
|
|
1727
|
-
case "ClientException":
|
|
1728
|
-
case "com.amazonaws.eks#ClientException":
|
|
1729
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "InvalidParameterException":
|
|
1731
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1732
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1733
|
-
case "InvalidRequestException":
|
|
1734
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1735
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ResourceInUseException":
|
|
1737
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
1738
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ResourceNotFoundException":
|
|
1740
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ServerException":
|
|
1743
|
-
case "com.amazonaws.eks#ServerException":
|
|
1744
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
}, "de_AssociateIdentityProviderConfigCommandError");
|
|
1754
1658
|
var de_CreateAccessEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
1659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1756
|
-
return
|
|
1660
|
+
return de_CommandError(output, context);
|
|
1757
1661
|
}
|
|
1758
1662
|
const contents = (0, import_smithy_client.map)({
|
|
1759
1663
|
$metadata: deserializeMetadata(output)
|
|
@@ -1765,43 +1669,9 @@ var de_CreateAccessEntryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1765
1669
|
Object.assign(contents, doc);
|
|
1766
1670
|
return contents;
|
|
1767
1671
|
}, "de_CreateAccessEntryCommand");
|
|
1768
|
-
var de_CreateAccessEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context)
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "InvalidParameterException":
|
|
1776
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1777
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "InvalidRequestException":
|
|
1779
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1780
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ResourceInUseException":
|
|
1782
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
1783
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ResourceLimitExceededException":
|
|
1785
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1786
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ResourceNotFoundException":
|
|
1788
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1789
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "ServerException":
|
|
1791
|
-
case "com.amazonaws.eks#ServerException":
|
|
1792
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1793
|
-
default:
|
|
1794
|
-
const parsedBody = parsedOutput.body;
|
|
1795
|
-
return throwDefaultError({
|
|
1796
|
-
output,
|
|
1797
|
-
parsedBody,
|
|
1798
|
-
errorCode
|
|
1799
|
-
});
|
|
1800
|
-
}
|
|
1801
|
-
}, "de_CreateAccessEntryCommandError");
|
|
1802
1672
|
var de_CreateAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1803
1673
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1804
|
-
return
|
|
1674
|
+
return de_CommandError(output, context);
|
|
1805
1675
|
}
|
|
1806
1676
|
const contents = (0, import_smithy_client.map)({
|
|
1807
1677
|
$metadata: deserializeMetadata(output)
|
|
@@ -1813,43 +1683,9 @@ var de_CreateAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1813
1683
|
Object.assign(contents, doc);
|
|
1814
1684
|
return contents;
|
|
1815
1685
|
}, "de_CreateAddonCommand");
|
|
1816
|
-
var de_CreateAddonCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1817
|
-
const parsedOutput = {
|
|
1818
|
-
...output,
|
|
1819
|
-
body: await parseErrorBody(output.body, context)
|
|
1820
|
-
};
|
|
1821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
|
-
switch (errorCode) {
|
|
1823
|
-
case "ClientException":
|
|
1824
|
-
case "com.amazonaws.eks#ClientException":
|
|
1825
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "InvalidParameterException":
|
|
1827
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1828
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "InvalidRequestException":
|
|
1830
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1831
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "ResourceInUseException":
|
|
1833
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
1834
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ResourceNotFoundException":
|
|
1836
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
1837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ServerException":
|
|
1839
|
-
case "com.amazonaws.eks#ServerException":
|
|
1840
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1841
|
-
default:
|
|
1842
|
-
const parsedBody = parsedOutput.body;
|
|
1843
|
-
return throwDefaultError({
|
|
1844
|
-
output,
|
|
1845
|
-
parsedBody,
|
|
1846
|
-
errorCode
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
}, "de_CreateAddonCommandError");
|
|
1850
1686
|
var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1851
1687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
|
-
return
|
|
1688
|
+
return de_CommandError(output, context);
|
|
1853
1689
|
}
|
|
1854
1690
|
const contents = (0, import_smithy_client.map)({
|
|
1855
1691
|
$metadata: deserializeMetadata(output)
|
|
@@ -1861,46 +1697,9 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1861
1697
|
Object.assign(contents, doc);
|
|
1862
1698
|
return contents;
|
|
1863
1699
|
}, "de_CreateClusterCommand");
|
|
1864
|
-
var de_CreateClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1865
|
-
const parsedOutput = {
|
|
1866
|
-
...output,
|
|
1867
|
-
body: await parseErrorBody(output.body, context)
|
|
1868
|
-
};
|
|
1869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
|
-
switch (errorCode) {
|
|
1871
|
-
case "ClientException":
|
|
1872
|
-
case "com.amazonaws.eks#ClientException":
|
|
1873
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "InvalidParameterException":
|
|
1875
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1876
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ResourceInUseException":
|
|
1878
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
1879
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ResourceLimitExceededException":
|
|
1881
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1882
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "ServerException":
|
|
1884
|
-
case "com.amazonaws.eks#ServerException":
|
|
1885
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ServiceUnavailableException":
|
|
1887
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1889
|
-
case "UnsupportedAvailabilityZoneException":
|
|
1890
|
-
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1891
|
-
throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
|
|
1892
|
-
default:
|
|
1893
|
-
const parsedBody = parsedOutput.body;
|
|
1894
|
-
return throwDefaultError({
|
|
1895
|
-
output,
|
|
1896
|
-
parsedBody,
|
|
1897
|
-
errorCode
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
}, "de_CreateClusterCommandError");
|
|
1901
1700
|
var de_CreateEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1902
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1903
|
-
return
|
|
1702
|
+
return de_CommandError(output, context);
|
|
1904
1703
|
}
|
|
1905
1704
|
const contents = (0, import_smithy_client.map)({
|
|
1906
1705
|
$metadata: deserializeMetadata(output)
|
|
@@ -1912,40 +1711,9 @@ var de_CreateEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1912
1711
|
Object.assign(contents, doc);
|
|
1913
1712
|
return contents;
|
|
1914
1713
|
}, "de_CreateEksAnywhereSubscriptionCommand");
|
|
1915
|
-
var de_CreateEksAnywhereSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context)
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "ClientException":
|
|
1923
|
-
case "com.amazonaws.eks#ClientException":
|
|
1924
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InvalidParameterException":
|
|
1926
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1927
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ResourceLimitExceededException":
|
|
1929
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1930
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "ServerException":
|
|
1932
|
-
case "com.amazonaws.eks#ServerException":
|
|
1933
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ServiceUnavailableException":
|
|
1935
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
1936
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
}, "de_CreateEksAnywhereSubscriptionCommandError");
|
|
1946
1714
|
var de_CreateFargateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1947
1715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1948
|
-
return
|
|
1716
|
+
return de_CommandError(output, context);
|
|
1949
1717
|
}
|
|
1950
1718
|
const contents = (0, import_smithy_client.map)({
|
|
1951
1719
|
$metadata: deserializeMetadata(output)
|
|
@@ -1957,43 +1725,9 @@ var de_CreateFargateProfileCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1957
1725
|
Object.assign(contents, doc);
|
|
1958
1726
|
return contents;
|
|
1959
1727
|
}, "de_CreateFargateProfileCommand");
|
|
1960
|
-
var de_CreateFargateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
|
-
const parsedOutput = {
|
|
1962
|
-
...output,
|
|
1963
|
-
body: await parseErrorBody(output.body, context)
|
|
1964
|
-
};
|
|
1965
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1966
|
-
switch (errorCode) {
|
|
1967
|
-
case "ClientException":
|
|
1968
|
-
case "com.amazonaws.eks#ClientException":
|
|
1969
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "InvalidParameterException":
|
|
1971
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
1972
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "InvalidRequestException":
|
|
1974
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
1975
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ResourceLimitExceededException":
|
|
1977
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
1978
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1979
|
-
case "ServerException":
|
|
1980
|
-
case "com.amazonaws.eks#ServerException":
|
|
1981
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "UnsupportedAvailabilityZoneException":
|
|
1983
|
-
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
1984
|
-
throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
|
|
1985
|
-
default:
|
|
1986
|
-
const parsedBody = parsedOutput.body;
|
|
1987
|
-
return throwDefaultError({
|
|
1988
|
-
output,
|
|
1989
|
-
parsedBody,
|
|
1990
|
-
errorCode
|
|
1991
|
-
});
|
|
1992
|
-
}
|
|
1993
|
-
}, "de_CreateFargateProfileCommandError");
|
|
1994
1728
|
var de_CreateNodegroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1995
1729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1996
|
-
return
|
|
1730
|
+
return de_CommandError(output, context);
|
|
1997
1731
|
}
|
|
1998
1732
|
const contents = (0, import_smithy_client.map)({
|
|
1999
1733
|
$metadata: deserializeMetadata(output)
|
|
@@ -2005,46 +1739,9 @@ var de_CreateNodegroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2005
1739
|
Object.assign(contents, doc);
|
|
2006
1740
|
return contents;
|
|
2007
1741
|
}, "de_CreateNodegroupCommand");
|
|
2008
|
-
var de_CreateNodegroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2009
|
-
const parsedOutput = {
|
|
2010
|
-
...output,
|
|
2011
|
-
body: await parseErrorBody(output.body, context)
|
|
2012
|
-
};
|
|
2013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2014
|
-
switch (errorCode) {
|
|
2015
|
-
case "ClientException":
|
|
2016
|
-
case "com.amazonaws.eks#ClientException":
|
|
2017
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "InvalidParameterException":
|
|
2019
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2020
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "InvalidRequestException":
|
|
2022
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2023
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ResourceInUseException":
|
|
2025
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
2026
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "ResourceLimitExceededException":
|
|
2028
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
2029
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "ServerException":
|
|
2031
|
-
case "com.amazonaws.eks#ServerException":
|
|
2032
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ServiceUnavailableException":
|
|
2034
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2035
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, "de_CreateNodegroupCommandError");
|
|
2045
1742
|
var de_CreatePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
1744
|
+
return de_CommandError(output, context);
|
|
2048
1745
|
}
|
|
2049
1746
|
const contents = (0, import_smithy_client.map)({
|
|
2050
1747
|
$metadata: deserializeMetadata(output)
|
|
@@ -2056,43 +1753,9 @@ var de_CreatePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2056
1753
|
Object.assign(contents, doc);
|
|
2057
1754
|
return contents;
|
|
2058
1755
|
}, "de_CreatePodIdentityAssociationCommand");
|
|
2059
|
-
var de_CreatePodIdentityAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2060
|
-
const parsedOutput = {
|
|
2061
|
-
...output,
|
|
2062
|
-
body: await parseErrorBody(output.body, context)
|
|
2063
|
-
};
|
|
2064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
|
-
switch (errorCode) {
|
|
2066
|
-
case "InvalidParameterException":
|
|
2067
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2068
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InvalidRequestException":
|
|
2070
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2071
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ResourceInUseException":
|
|
2073
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
2074
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ResourceLimitExceededException":
|
|
2076
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
2077
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceNotFoundException":
|
|
2079
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ServerException":
|
|
2082
|
-
case "com.amazonaws.eks#ServerException":
|
|
2083
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2084
|
-
default:
|
|
2085
|
-
const parsedBody = parsedOutput.body;
|
|
2086
|
-
return throwDefaultError({
|
|
2087
|
-
output,
|
|
2088
|
-
parsedBody,
|
|
2089
|
-
errorCode
|
|
2090
|
-
});
|
|
2091
|
-
}
|
|
2092
|
-
}, "de_CreatePodIdentityAssociationCommandError");
|
|
2093
1756
|
var de_DeleteAccessEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
1757
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2095
|
-
return
|
|
1758
|
+
return de_CommandError(output, context);
|
|
2096
1759
|
}
|
|
2097
1760
|
const contents = (0, import_smithy_client.map)({
|
|
2098
1761
|
$metadata: deserializeMetadata(output)
|
|
@@ -2100,34 +1763,9 @@ var de_DeleteAccessEntryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2100
1763
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2101
1764
|
return contents;
|
|
2102
1765
|
}, "de_DeleteAccessEntryCommand");
|
|
2103
|
-
var de_DeleteAccessEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2104
|
-
const parsedOutput = {
|
|
2105
|
-
...output,
|
|
2106
|
-
body: await parseErrorBody(output.body, context)
|
|
2107
|
-
};
|
|
2108
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2109
|
-
switch (errorCode) {
|
|
2110
|
-
case "InvalidRequestException":
|
|
2111
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2112
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ResourceNotFoundException":
|
|
2114
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2115
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "ServerException":
|
|
2117
|
-
case "com.amazonaws.eks#ServerException":
|
|
2118
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2119
|
-
default:
|
|
2120
|
-
const parsedBody = parsedOutput.body;
|
|
2121
|
-
return throwDefaultError({
|
|
2122
|
-
output,
|
|
2123
|
-
parsedBody,
|
|
2124
|
-
errorCode
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
}, "de_DeleteAccessEntryCommandError");
|
|
2128
1766
|
var de_DeleteAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
1767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
|
-
return
|
|
1768
|
+
return de_CommandError(output, context);
|
|
2131
1769
|
}
|
|
2132
1770
|
const contents = (0, import_smithy_client.map)({
|
|
2133
1771
|
$metadata: deserializeMetadata(output)
|
|
@@ -2139,40 +1777,9 @@ var de_DeleteAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2139
1777
|
Object.assign(contents, doc);
|
|
2140
1778
|
return contents;
|
|
2141
1779
|
}, "de_DeleteAddonCommand");
|
|
2142
|
-
var de_DeleteAddonCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2143
|
-
const parsedOutput = {
|
|
2144
|
-
...output,
|
|
2145
|
-
body: await parseErrorBody(output.body, context)
|
|
2146
|
-
};
|
|
2147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
|
-
switch (errorCode) {
|
|
2149
|
-
case "ClientException":
|
|
2150
|
-
case "com.amazonaws.eks#ClientException":
|
|
2151
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "InvalidParameterException":
|
|
2153
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2154
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "InvalidRequestException":
|
|
2156
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2157
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ResourceNotFoundException":
|
|
2159
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2160
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ServerException":
|
|
2162
|
-
case "com.amazonaws.eks#ServerException":
|
|
2163
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2164
|
-
default:
|
|
2165
|
-
const parsedBody = parsedOutput.body;
|
|
2166
|
-
return throwDefaultError({
|
|
2167
|
-
output,
|
|
2168
|
-
parsedBody,
|
|
2169
|
-
errorCode
|
|
2170
|
-
});
|
|
2171
|
-
}
|
|
2172
|
-
}, "de_DeleteAddonCommandError");
|
|
2173
1780
|
var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2174
1781
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2175
|
-
return
|
|
1782
|
+
return de_CommandError(output, context);
|
|
2176
1783
|
}
|
|
2177
1784
|
const contents = (0, import_smithy_client.map)({
|
|
2178
1785
|
$metadata: deserializeMetadata(output)
|
|
@@ -2184,40 +1791,9 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2184
1791
|
Object.assign(contents, doc);
|
|
2185
1792
|
return contents;
|
|
2186
1793
|
}, "de_DeleteClusterCommand");
|
|
2187
|
-
var de_DeleteClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2188
|
-
const parsedOutput = {
|
|
2189
|
-
...output,
|
|
2190
|
-
body: await parseErrorBody(output.body, context)
|
|
2191
|
-
};
|
|
2192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2193
|
-
switch (errorCode) {
|
|
2194
|
-
case "ClientException":
|
|
2195
|
-
case "com.amazonaws.eks#ClientException":
|
|
2196
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceInUseException":
|
|
2198
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
2199
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ResourceNotFoundException":
|
|
2201
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "ServerException":
|
|
2204
|
-
case "com.amazonaws.eks#ServerException":
|
|
2205
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "ServiceUnavailableException":
|
|
2207
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2208
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2209
|
-
default:
|
|
2210
|
-
const parsedBody = parsedOutput.body;
|
|
2211
|
-
return throwDefaultError({
|
|
2212
|
-
output,
|
|
2213
|
-
parsedBody,
|
|
2214
|
-
errorCode
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
}, "de_DeleteClusterCommandError");
|
|
2218
1794
|
var de_DeleteEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2219
1795
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
1796
|
+
return de_CommandError(output, context);
|
|
2221
1797
|
}
|
|
2222
1798
|
const contents = (0, import_smithy_client.map)({
|
|
2223
1799
|
$metadata: deserializeMetadata(output)
|
|
@@ -2229,37 +1805,9 @@ var de_DeleteEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2229
1805
|
Object.assign(contents, doc);
|
|
2230
1806
|
return contents;
|
|
2231
1807
|
}, "de_DeleteEksAnywhereSubscriptionCommand");
|
|
2232
|
-
var de_DeleteEksAnywhereSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2233
|
-
const parsedOutput = {
|
|
2234
|
-
...output,
|
|
2235
|
-
body: await parseErrorBody(output.body, context)
|
|
2236
|
-
};
|
|
2237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "ClientException":
|
|
2240
|
-
case "com.amazonaws.eks#ClientException":
|
|
2241
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "InvalidRequestException":
|
|
2243
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2244
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ResourceNotFoundException":
|
|
2246
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ServerException":
|
|
2249
|
-
case "com.amazonaws.eks#ServerException":
|
|
2250
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
}, "de_DeleteEksAnywhereSubscriptionCommandError");
|
|
2260
1808
|
var de_DeleteFargateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
1809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2262
|
-
return
|
|
1810
|
+
return de_CommandError(output, context);
|
|
2263
1811
|
}
|
|
2264
1812
|
const contents = (0, import_smithy_client.map)({
|
|
2265
1813
|
$metadata: deserializeMetadata(output)
|
|
@@ -2271,37 +1819,9 @@ var de_DeleteFargateProfileCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2271
1819
|
Object.assign(contents, doc);
|
|
2272
1820
|
return contents;
|
|
2273
1821
|
}, "de_DeleteFargateProfileCommand");
|
|
2274
|
-
var de_DeleteFargateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context)
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "ClientException":
|
|
2282
|
-
case "com.amazonaws.eks#ClientException":
|
|
2283
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "InvalidParameterException":
|
|
2285
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2286
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "ResourceNotFoundException":
|
|
2288
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ServerException":
|
|
2291
|
-
case "com.amazonaws.eks#ServerException":
|
|
2292
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2293
|
-
default:
|
|
2294
|
-
const parsedBody = parsedOutput.body;
|
|
2295
|
-
return throwDefaultError({
|
|
2296
|
-
output,
|
|
2297
|
-
parsedBody,
|
|
2298
|
-
errorCode
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
}, "de_DeleteFargateProfileCommandError");
|
|
2302
1822
|
var de_DeleteNodegroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2303
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2304
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
2305
1825
|
}
|
|
2306
1826
|
const contents = (0, import_smithy_client.map)({
|
|
2307
1827
|
$metadata: deserializeMetadata(output)
|
|
@@ -2313,43 +1833,9 @@ var de_DeleteNodegroupCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2313
1833
|
Object.assign(contents, doc);
|
|
2314
1834
|
return contents;
|
|
2315
1835
|
}, "de_DeleteNodegroupCommand");
|
|
2316
|
-
var de_DeleteNodegroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context)
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "ClientException":
|
|
2324
|
-
case "com.amazonaws.eks#ClientException":
|
|
2325
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "InvalidParameterException":
|
|
2327
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2328
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "ResourceInUseException":
|
|
2330
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
2331
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "ResourceNotFoundException":
|
|
2333
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ServerException":
|
|
2336
|
-
case "com.amazonaws.eks#ServerException":
|
|
2337
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "ServiceUnavailableException":
|
|
2339
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2340
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2341
|
-
default:
|
|
2342
|
-
const parsedBody = parsedOutput.body;
|
|
2343
|
-
return throwDefaultError({
|
|
2344
|
-
output,
|
|
2345
|
-
parsedBody,
|
|
2346
|
-
errorCode
|
|
2347
|
-
});
|
|
2348
|
-
}
|
|
2349
|
-
}, "de_DeleteNodegroupCommandError");
|
|
2350
1836
|
var de_DeletePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
1837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2352
|
-
return
|
|
1838
|
+
return de_CommandError(output, context);
|
|
2353
1839
|
}
|
|
2354
1840
|
const contents = (0, import_smithy_client.map)({
|
|
2355
1841
|
$metadata: deserializeMetadata(output)
|
|
@@ -2361,37 +1847,9 @@ var de_DeletePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2361
1847
|
Object.assign(contents, doc);
|
|
2362
1848
|
return contents;
|
|
2363
1849
|
}, "de_DeletePodIdentityAssociationCommand");
|
|
2364
|
-
var de_DeletePodIdentityAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2365
|
-
const parsedOutput = {
|
|
2366
|
-
...output,
|
|
2367
|
-
body: await parseErrorBody(output.body, context)
|
|
2368
|
-
};
|
|
2369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2370
|
-
switch (errorCode) {
|
|
2371
|
-
case "InvalidParameterException":
|
|
2372
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2373
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "InvalidRequestException":
|
|
2375
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2376
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2377
|
-
case "ResourceNotFoundException":
|
|
2378
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2380
|
-
case "ServerException":
|
|
2381
|
-
case "com.amazonaws.eks#ServerException":
|
|
2382
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2383
|
-
default:
|
|
2384
|
-
const parsedBody = parsedOutput.body;
|
|
2385
|
-
return throwDefaultError({
|
|
2386
|
-
output,
|
|
2387
|
-
parsedBody,
|
|
2388
|
-
errorCode
|
|
2389
|
-
});
|
|
2390
|
-
}
|
|
2391
|
-
}, "de_DeletePodIdentityAssociationCommandError");
|
|
2392
1850
|
var de_DeregisterClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2393
1851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2394
|
-
return
|
|
1852
|
+
return de_CommandError(output, context);
|
|
2395
1853
|
}
|
|
2396
1854
|
const contents = (0, import_smithy_client.map)({
|
|
2397
1855
|
$metadata: deserializeMetadata(output)
|
|
@@ -2403,43 +1861,9 @@ var de_DeregisterClusterCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2403
1861
|
Object.assign(contents, doc);
|
|
2404
1862
|
return contents;
|
|
2405
1863
|
}, "de_DeregisterClusterCommand");
|
|
2406
|
-
var de_DeregisterClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context)
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
switch (errorCode) {
|
|
2413
|
-
case "AccessDeniedException":
|
|
2414
|
-
case "com.amazonaws.eks#AccessDeniedException":
|
|
2415
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "ClientException":
|
|
2417
|
-
case "com.amazonaws.eks#ClientException":
|
|
2418
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ResourceInUseException":
|
|
2420
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
2421
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ResourceNotFoundException":
|
|
2423
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2424
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ServerException":
|
|
2426
|
-
case "com.amazonaws.eks#ServerException":
|
|
2427
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2428
|
-
case "ServiceUnavailableException":
|
|
2429
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2430
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2431
|
-
default:
|
|
2432
|
-
const parsedBody = parsedOutput.body;
|
|
2433
|
-
return throwDefaultError({
|
|
2434
|
-
output,
|
|
2435
|
-
parsedBody,
|
|
2436
|
-
errorCode
|
|
2437
|
-
});
|
|
2438
|
-
}
|
|
2439
|
-
}, "de_DeregisterClusterCommandError");
|
|
2440
1864
|
var de_DescribeAccessEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2441
1865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2442
|
-
return
|
|
1866
|
+
return de_CommandError(output, context);
|
|
2443
1867
|
}
|
|
2444
1868
|
const contents = (0, import_smithy_client.map)({
|
|
2445
1869
|
$metadata: deserializeMetadata(output)
|
|
@@ -2451,34 +1875,9 @@ var de_DescribeAccessEntryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2451
1875
|
Object.assign(contents, doc);
|
|
2452
1876
|
return contents;
|
|
2453
1877
|
}, "de_DescribeAccessEntryCommand");
|
|
2454
|
-
var de_DescribeAccessEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2455
|
-
const parsedOutput = {
|
|
2456
|
-
...output,
|
|
2457
|
-
body: await parseErrorBody(output.body, context)
|
|
2458
|
-
};
|
|
2459
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2460
|
-
switch (errorCode) {
|
|
2461
|
-
case "InvalidRequestException":
|
|
2462
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2463
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ResourceNotFoundException":
|
|
2465
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2466
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ServerException":
|
|
2468
|
-
case "com.amazonaws.eks#ServerException":
|
|
2469
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2470
|
-
default:
|
|
2471
|
-
const parsedBody = parsedOutput.body;
|
|
2472
|
-
return throwDefaultError({
|
|
2473
|
-
output,
|
|
2474
|
-
parsedBody,
|
|
2475
|
-
errorCode
|
|
2476
|
-
});
|
|
2477
|
-
}
|
|
2478
|
-
}, "de_DescribeAccessEntryCommandError");
|
|
2479
1878
|
var de_DescribeAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2480
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2481
|
-
return
|
|
1880
|
+
return de_CommandError(output, context);
|
|
2482
1881
|
}
|
|
2483
1882
|
const contents = (0, import_smithy_client.map)({
|
|
2484
1883
|
$metadata: deserializeMetadata(output)
|
|
@@ -2490,40 +1889,9 @@ var de_DescribeAddonCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2490
1889
|
Object.assign(contents, doc);
|
|
2491
1890
|
return contents;
|
|
2492
1891
|
}, "de_DescribeAddonCommand");
|
|
2493
|
-
var de_DescribeAddonCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2494
|
-
const parsedOutput = {
|
|
2495
|
-
...output,
|
|
2496
|
-
body: await parseErrorBody(output.body, context)
|
|
2497
|
-
};
|
|
2498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2499
|
-
switch (errorCode) {
|
|
2500
|
-
case "ClientException":
|
|
2501
|
-
case "com.amazonaws.eks#ClientException":
|
|
2502
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "InvalidParameterException":
|
|
2504
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2505
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "InvalidRequestException":
|
|
2507
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2508
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "ResourceNotFoundException":
|
|
2510
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "ServerException":
|
|
2513
|
-
case "com.amazonaws.eks#ServerException":
|
|
2514
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2515
|
-
default:
|
|
2516
|
-
const parsedBody = parsedOutput.body;
|
|
2517
|
-
return throwDefaultError({
|
|
2518
|
-
output,
|
|
2519
|
-
parsedBody,
|
|
2520
|
-
errorCode
|
|
2521
|
-
});
|
|
2522
|
-
}
|
|
2523
|
-
}, "de_DescribeAddonCommandError");
|
|
2524
1892
|
var de_DescribeAddonConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2525
1893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2526
|
-
return
|
|
1894
|
+
return de_CommandError(output, context);
|
|
2527
1895
|
}
|
|
2528
1896
|
const contents = (0, import_smithy_client.map)({
|
|
2529
1897
|
$metadata: deserializeMetadata(output)
|
|
@@ -2537,34 +1905,9 @@ var de_DescribeAddonConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2537
1905
|
Object.assign(contents, doc);
|
|
2538
1906
|
return contents;
|
|
2539
1907
|
}, "de_DescribeAddonConfigurationCommand");
|
|
2540
|
-
var de_DescribeAddonConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2541
|
-
const parsedOutput = {
|
|
2542
|
-
...output,
|
|
2543
|
-
body: await parseErrorBody(output.body, context)
|
|
2544
|
-
};
|
|
2545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2546
|
-
switch (errorCode) {
|
|
2547
|
-
case "InvalidParameterException":
|
|
2548
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2549
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2550
|
-
case "ResourceNotFoundException":
|
|
2551
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2552
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2553
|
-
case "ServerException":
|
|
2554
|
-
case "com.amazonaws.eks#ServerException":
|
|
2555
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2556
|
-
default:
|
|
2557
|
-
const parsedBody = parsedOutput.body;
|
|
2558
|
-
return throwDefaultError({
|
|
2559
|
-
output,
|
|
2560
|
-
parsedBody,
|
|
2561
|
-
errorCode
|
|
2562
|
-
});
|
|
2563
|
-
}
|
|
2564
|
-
}, "de_DescribeAddonConfigurationCommandError");
|
|
2565
1908
|
var de_DescribeAddonVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2566
1909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2567
|
-
return
|
|
1910
|
+
return de_CommandError(output, context);
|
|
2568
1911
|
}
|
|
2569
1912
|
const contents = (0, import_smithy_client.map)({
|
|
2570
1913
|
$metadata: deserializeMetadata(output)
|
|
@@ -2577,34 +1920,9 @@ var de_DescribeAddonVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2577
1920
|
Object.assign(contents, doc);
|
|
2578
1921
|
return contents;
|
|
2579
1922
|
}, "de_DescribeAddonVersionsCommand");
|
|
2580
|
-
var de_DescribeAddonVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2581
|
-
const parsedOutput = {
|
|
2582
|
-
...output,
|
|
2583
|
-
body: await parseErrorBody(output.body, context)
|
|
2584
|
-
};
|
|
2585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
|
-
switch (errorCode) {
|
|
2587
|
-
case "InvalidParameterException":
|
|
2588
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2589
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ResourceNotFoundException":
|
|
2591
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2592
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ServerException":
|
|
2594
|
-
case "com.amazonaws.eks#ServerException":
|
|
2595
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody,
|
|
2601
|
-
errorCode
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
}, "de_DescribeAddonVersionsCommandError");
|
|
2605
1923
|
var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2606
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2607
|
-
return
|
|
1925
|
+
return de_CommandError(output, context);
|
|
2608
1926
|
}
|
|
2609
1927
|
const contents = (0, import_smithy_client.map)({
|
|
2610
1928
|
$metadata: deserializeMetadata(output)
|
|
@@ -2616,37 +1934,9 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2616
1934
|
Object.assign(contents, doc);
|
|
2617
1935
|
return contents;
|
|
2618
1936
|
}, "de_DescribeClusterCommand");
|
|
2619
|
-
var de_DescribeClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2620
|
-
const parsedOutput = {
|
|
2621
|
-
...output,
|
|
2622
|
-
body: await parseErrorBody(output.body, context)
|
|
2623
|
-
};
|
|
2624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
-
switch (errorCode) {
|
|
2626
|
-
case "ClientException":
|
|
2627
|
-
case "com.amazonaws.eks#ClientException":
|
|
2628
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "ResourceNotFoundException":
|
|
2630
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2631
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "ServerException":
|
|
2633
|
-
case "com.amazonaws.eks#ServerException":
|
|
2634
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ServiceUnavailableException":
|
|
2636
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2637
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
}, "de_DescribeClusterCommandError");
|
|
2647
1937
|
var de_DescribeEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2648
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2649
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
2650
1940
|
}
|
|
2651
1941
|
const contents = (0, import_smithy_client.map)({
|
|
2652
1942
|
$metadata: deserializeMetadata(output)
|
|
@@ -2658,37 +1948,9 @@ var de_DescribeEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2658
1948
|
Object.assign(contents, doc);
|
|
2659
1949
|
return contents;
|
|
2660
1950
|
}, "de_DescribeEksAnywhereSubscriptionCommand");
|
|
2661
|
-
var de_DescribeEksAnywhereSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context)
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "ClientException":
|
|
2669
|
-
case "com.amazonaws.eks#ClientException":
|
|
2670
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "ResourceNotFoundException":
|
|
2672
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "ServerException":
|
|
2675
|
-
case "com.amazonaws.eks#ServerException":
|
|
2676
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ServiceUnavailableException":
|
|
2678
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2679
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
}, "de_DescribeEksAnywhereSubscriptionCommandError");
|
|
2689
1951
|
var de_DescribeFargateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
1952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2691
|
-
return
|
|
1953
|
+
return de_CommandError(output, context);
|
|
2692
1954
|
}
|
|
2693
1955
|
const contents = (0, import_smithy_client.map)({
|
|
2694
1956
|
$metadata: deserializeMetadata(output)
|
|
@@ -2700,37 +1962,9 @@ var de_DescribeFargateProfileCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2700
1962
|
Object.assign(contents, doc);
|
|
2701
1963
|
return contents;
|
|
2702
1964
|
}, "de_DescribeFargateProfileCommand");
|
|
2703
|
-
var de_DescribeFargateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context)
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "ClientException":
|
|
2711
|
-
case "com.amazonaws.eks#ClientException":
|
|
2712
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "InvalidParameterException":
|
|
2714
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2715
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "ResourceNotFoundException":
|
|
2717
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "ServerException":
|
|
2720
|
-
case "com.amazonaws.eks#ServerException":
|
|
2721
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2722
|
-
default:
|
|
2723
|
-
const parsedBody = parsedOutput.body;
|
|
2724
|
-
return throwDefaultError({
|
|
2725
|
-
output,
|
|
2726
|
-
parsedBody,
|
|
2727
|
-
errorCode
|
|
2728
|
-
});
|
|
2729
|
-
}
|
|
2730
|
-
}, "de_DescribeFargateProfileCommandError");
|
|
2731
1965
|
var de_DescribeIdentityProviderConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2732
1966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
|
-
return
|
|
1967
|
+
return de_CommandError(output, context);
|
|
2734
1968
|
}
|
|
2735
1969
|
const contents = (0, import_smithy_client.map)({
|
|
2736
1970
|
$metadata: deserializeMetadata(output)
|
|
@@ -2742,40 +1976,9 @@ var de_DescribeIdentityProviderConfigCommand = /* @__PURE__ */ __name(async (out
|
|
|
2742
1976
|
Object.assign(contents, doc);
|
|
2743
1977
|
return contents;
|
|
2744
1978
|
}, "de_DescribeIdentityProviderConfigCommand");
|
|
2745
|
-
var de_DescribeIdentityProviderConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
|
-
const parsedOutput = {
|
|
2747
|
-
...output,
|
|
2748
|
-
body: await parseErrorBody(output.body, context)
|
|
2749
|
-
};
|
|
2750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
-
switch (errorCode) {
|
|
2752
|
-
case "ClientException":
|
|
2753
|
-
case "com.amazonaws.eks#ClientException":
|
|
2754
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "InvalidParameterException":
|
|
2756
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2757
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "ResourceNotFoundException":
|
|
2759
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2760
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2761
|
-
case "ServerException":
|
|
2762
|
-
case "com.amazonaws.eks#ServerException":
|
|
2763
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ServiceUnavailableException":
|
|
2765
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2766
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2767
|
-
default:
|
|
2768
|
-
const parsedBody = parsedOutput.body;
|
|
2769
|
-
return throwDefaultError({
|
|
2770
|
-
output,
|
|
2771
|
-
parsedBody,
|
|
2772
|
-
errorCode
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
}, "de_DescribeIdentityProviderConfigCommandError");
|
|
2776
1979
|
var de_DescribeInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2777
1980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
1981
|
+
return de_CommandError(output, context);
|
|
2779
1982
|
}
|
|
2780
1983
|
const contents = (0, import_smithy_client.map)({
|
|
2781
1984
|
$metadata: deserializeMetadata(output)
|
|
@@ -2787,37 +1990,9 @@ var de_DescribeInsightCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2787
1990
|
Object.assign(contents, doc);
|
|
2788
1991
|
return contents;
|
|
2789
1992
|
}, "de_DescribeInsightCommand");
|
|
2790
|
-
var de_DescribeInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
|
-
const parsedOutput = {
|
|
2792
|
-
...output,
|
|
2793
|
-
body: await parseErrorBody(output.body, context)
|
|
2794
|
-
};
|
|
2795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "InvalidParameterException":
|
|
2798
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2799
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "InvalidRequestException":
|
|
2801
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2802
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ResourceNotFoundException":
|
|
2804
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "ServerException":
|
|
2807
|
-
case "com.amazonaws.eks#ServerException":
|
|
2808
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2809
|
-
default:
|
|
2810
|
-
const parsedBody = parsedOutput.body;
|
|
2811
|
-
return throwDefaultError({
|
|
2812
|
-
output,
|
|
2813
|
-
parsedBody,
|
|
2814
|
-
errorCode
|
|
2815
|
-
});
|
|
2816
|
-
}
|
|
2817
|
-
}, "de_DescribeInsightCommandError");
|
|
2818
1993
|
var de_DescribeNodegroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2819
1994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2820
|
-
return
|
|
1995
|
+
return de_CommandError(output, context);
|
|
2821
1996
|
}
|
|
2822
1997
|
const contents = (0, import_smithy_client.map)({
|
|
2823
1998
|
$metadata: deserializeMetadata(output)
|
|
@@ -2829,40 +2004,9 @@ var de_DescribeNodegroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2829
2004
|
Object.assign(contents, doc);
|
|
2830
2005
|
return contents;
|
|
2831
2006
|
}, "de_DescribeNodegroupCommand");
|
|
2832
|
-
var de_DescribeNodegroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2833
|
-
const parsedOutput = {
|
|
2834
|
-
...output,
|
|
2835
|
-
body: await parseErrorBody(output.body, context)
|
|
2836
|
-
};
|
|
2837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2838
|
-
switch (errorCode) {
|
|
2839
|
-
case "ClientException":
|
|
2840
|
-
case "com.amazonaws.eks#ClientException":
|
|
2841
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "InvalidParameterException":
|
|
2843
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2844
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ResourceNotFoundException":
|
|
2846
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2847
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "ServerException":
|
|
2849
|
-
case "com.amazonaws.eks#ServerException":
|
|
2850
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ServiceUnavailableException":
|
|
2852
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2853
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
}, "de_DescribeNodegroupCommandError");
|
|
2863
2007
|
var de_DescribePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2864
2008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2865
|
-
return
|
|
2009
|
+
return de_CommandError(output, context);
|
|
2866
2010
|
}
|
|
2867
2011
|
const contents = (0, import_smithy_client.map)({
|
|
2868
2012
|
$metadata: deserializeMetadata(output)
|
|
@@ -2874,37 +2018,9 @@ var de_DescribePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2874
2018
|
Object.assign(contents, doc);
|
|
2875
2019
|
return contents;
|
|
2876
2020
|
}, "de_DescribePodIdentityAssociationCommand");
|
|
2877
|
-
var de_DescribePodIdentityAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context)
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "InvalidParameterException":
|
|
2885
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2886
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InvalidRequestException":
|
|
2888
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2889
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "ResourceNotFoundException":
|
|
2891
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ServerException":
|
|
2894
|
-
case "com.amazonaws.eks#ServerException":
|
|
2895
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2896
|
-
default:
|
|
2897
|
-
const parsedBody = parsedOutput.body;
|
|
2898
|
-
return throwDefaultError({
|
|
2899
|
-
output,
|
|
2900
|
-
parsedBody,
|
|
2901
|
-
errorCode
|
|
2902
|
-
});
|
|
2903
|
-
}
|
|
2904
|
-
}, "de_DescribePodIdentityAssociationCommandError");
|
|
2905
2021
|
var de_DescribeUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2906
2022
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2907
|
-
return
|
|
2023
|
+
return de_CommandError(output, context);
|
|
2908
2024
|
}
|
|
2909
2025
|
const contents = (0, import_smithy_client.map)({
|
|
2910
2026
|
$metadata: deserializeMetadata(output)
|
|
@@ -2916,37 +2032,9 @@ var de_DescribeUpdateCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2916
2032
|
Object.assign(contents, doc);
|
|
2917
2033
|
return contents;
|
|
2918
2034
|
}, "de_DescribeUpdateCommand");
|
|
2919
|
-
var de_DescribeUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context)
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "ClientException":
|
|
2927
|
-
case "com.amazonaws.eks#ClientException":
|
|
2928
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "InvalidParameterException":
|
|
2930
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
2931
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "ResourceNotFoundException":
|
|
2933
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2934
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "ServerException":
|
|
2936
|
-
case "com.amazonaws.eks#ServerException":
|
|
2937
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2938
|
-
default:
|
|
2939
|
-
const parsedBody = parsedOutput.body;
|
|
2940
|
-
return throwDefaultError({
|
|
2941
|
-
output,
|
|
2942
|
-
parsedBody,
|
|
2943
|
-
errorCode
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
2946
|
-
}, "de_DescribeUpdateCommandError");
|
|
2947
2035
|
var de_DisassociateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
2036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2949
|
-
return
|
|
2037
|
+
return de_CommandError(output, context);
|
|
2950
2038
|
}
|
|
2951
2039
|
const contents = (0, import_smithy_client.map)({
|
|
2952
2040
|
$metadata: deserializeMetadata(output)
|
|
@@ -2954,34 +2042,9 @@ var de_DisassociateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2954
2042
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2955
2043
|
return contents;
|
|
2956
2044
|
}, "de_DisassociateAccessPolicyCommand");
|
|
2957
|
-
var de_DisassociateAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2958
|
-
const parsedOutput = {
|
|
2959
|
-
...output,
|
|
2960
|
-
body: await parseErrorBody(output.body, context)
|
|
2961
|
-
};
|
|
2962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
-
switch (errorCode) {
|
|
2964
|
-
case "InvalidRequestException":
|
|
2965
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
2966
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "ResourceNotFoundException":
|
|
2968
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
2969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "ServerException":
|
|
2971
|
-
case "com.amazonaws.eks#ServerException":
|
|
2972
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2973
|
-
default:
|
|
2974
|
-
const parsedBody = parsedOutput.body;
|
|
2975
|
-
return throwDefaultError({
|
|
2976
|
-
output,
|
|
2977
|
-
parsedBody,
|
|
2978
|
-
errorCode
|
|
2979
|
-
});
|
|
2980
|
-
}
|
|
2981
|
-
}, "de_DisassociateAccessPolicyCommandError");
|
|
2982
2045
|
var de_DisassociateIdentityProviderConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2983
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2984
|
-
return
|
|
2047
|
+
return de_CommandError(output, context);
|
|
2985
2048
|
}
|
|
2986
2049
|
const contents = (0, import_smithy_client.map)({
|
|
2987
2050
|
$metadata: deserializeMetadata(output)
|
|
@@ -2993,43 +2056,9 @@ var de_DisassociateIdentityProviderConfigCommand = /* @__PURE__ */ __name(async
|
|
|
2993
2056
|
Object.assign(contents, doc);
|
|
2994
2057
|
return contents;
|
|
2995
2058
|
}, "de_DisassociateIdentityProviderConfigCommand");
|
|
2996
|
-
var de_DisassociateIdentityProviderConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2997
|
-
const parsedOutput = {
|
|
2998
|
-
...output,
|
|
2999
|
-
body: await parseErrorBody(output.body, context)
|
|
3000
|
-
};
|
|
3001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3002
|
-
switch (errorCode) {
|
|
3003
|
-
case "ClientException":
|
|
3004
|
-
case "com.amazonaws.eks#ClientException":
|
|
3005
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "InvalidParameterException":
|
|
3007
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3008
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "InvalidRequestException":
|
|
3010
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3011
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3012
|
-
case "ResourceInUseException":
|
|
3013
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3014
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3015
|
-
case "ResourceNotFoundException":
|
|
3016
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "ServerException":
|
|
3019
|
-
case "com.amazonaws.eks#ServerException":
|
|
3020
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
}, "de_DisassociateIdentityProviderConfigCommandError");
|
|
3030
2059
|
var de_ListAccessEntriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3031
2060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3032
|
-
return
|
|
2061
|
+
return de_CommandError(output, context);
|
|
3033
2062
|
}
|
|
3034
2063
|
const contents = (0, import_smithy_client.map)({
|
|
3035
2064
|
$metadata: deserializeMetadata(output)
|
|
@@ -3042,37 +2071,9 @@ var de_ListAccessEntriesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3042
2071
|
Object.assign(contents, doc);
|
|
3043
2072
|
return contents;
|
|
3044
2073
|
}, "de_ListAccessEntriesCommand");
|
|
3045
|
-
var de_ListAccessEntriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3046
|
-
const parsedOutput = {
|
|
3047
|
-
...output,
|
|
3048
|
-
body: await parseErrorBody(output.body, context)
|
|
3049
|
-
};
|
|
3050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3051
|
-
switch (errorCode) {
|
|
3052
|
-
case "InvalidParameterException":
|
|
3053
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3054
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "InvalidRequestException":
|
|
3056
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3057
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ResourceNotFoundException":
|
|
3059
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "ServerException":
|
|
3062
|
-
case "com.amazonaws.eks#ServerException":
|
|
3063
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3064
|
-
default:
|
|
3065
|
-
const parsedBody = parsedOutput.body;
|
|
3066
|
-
return throwDefaultError({
|
|
3067
|
-
output,
|
|
3068
|
-
parsedBody,
|
|
3069
|
-
errorCode
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
}, "de_ListAccessEntriesCommandError");
|
|
3073
2074
|
var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3074
2075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3075
|
-
return
|
|
2076
|
+
return de_CommandError(output, context);
|
|
3076
2077
|
}
|
|
3077
2078
|
const contents = (0, import_smithy_client.map)({
|
|
3078
2079
|
$metadata: deserializeMetadata(output)
|
|
@@ -3085,28 +2086,9 @@ var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3085
2086
|
Object.assign(contents, doc);
|
|
3086
2087
|
return contents;
|
|
3087
2088
|
}, "de_ListAccessPoliciesCommand");
|
|
3088
|
-
var de_ListAccessPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3089
|
-
const parsedOutput = {
|
|
3090
|
-
...output,
|
|
3091
|
-
body: await parseErrorBody(output.body, context)
|
|
3092
|
-
};
|
|
3093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
-
switch (errorCode) {
|
|
3095
|
-
case "ServerException":
|
|
3096
|
-
case "com.amazonaws.eks#ServerException":
|
|
3097
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3098
|
-
default:
|
|
3099
|
-
const parsedBody = parsedOutput.body;
|
|
3100
|
-
return throwDefaultError({
|
|
3101
|
-
output,
|
|
3102
|
-
parsedBody,
|
|
3103
|
-
errorCode
|
|
3104
|
-
});
|
|
3105
|
-
}
|
|
3106
|
-
}, "de_ListAccessPoliciesCommandError");
|
|
3107
2089
|
var de_ListAddonsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3108
2090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3109
|
-
return
|
|
2091
|
+
return de_CommandError(output, context);
|
|
3110
2092
|
}
|
|
3111
2093
|
const contents = (0, import_smithy_client.map)({
|
|
3112
2094
|
$metadata: deserializeMetadata(output)
|
|
@@ -3119,40 +2101,9 @@ var de_ListAddonsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3119
2101
|
Object.assign(contents, doc);
|
|
3120
2102
|
return contents;
|
|
3121
2103
|
}, "de_ListAddonsCommand");
|
|
3122
|
-
var de_ListAddonsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3123
|
-
const parsedOutput = {
|
|
3124
|
-
...output,
|
|
3125
|
-
body: await parseErrorBody(output.body, context)
|
|
3126
|
-
};
|
|
3127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
|
-
switch (errorCode) {
|
|
3129
|
-
case "ClientException":
|
|
3130
|
-
case "com.amazonaws.eks#ClientException":
|
|
3131
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "InvalidParameterException":
|
|
3133
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3134
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "InvalidRequestException":
|
|
3136
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3137
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "ResourceNotFoundException":
|
|
3139
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3140
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "ServerException":
|
|
3142
|
-
case "com.amazonaws.eks#ServerException":
|
|
3143
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3144
|
-
default:
|
|
3145
|
-
const parsedBody = parsedOutput.body;
|
|
3146
|
-
return throwDefaultError({
|
|
3147
|
-
output,
|
|
3148
|
-
parsedBody,
|
|
3149
|
-
errorCode
|
|
3150
|
-
});
|
|
3151
|
-
}
|
|
3152
|
-
}, "de_ListAddonsCommandError");
|
|
3153
2104
|
var de_ListAssociatedAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3154
2105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3155
|
-
return
|
|
2106
|
+
return de_CommandError(output, context);
|
|
3156
2107
|
}
|
|
3157
2108
|
const contents = (0, import_smithy_client.map)({
|
|
3158
2109
|
$metadata: deserializeMetadata(output)
|
|
@@ -3167,34 +2118,9 @@ var de_ListAssociatedAccessPoliciesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3167
2118
|
Object.assign(contents, doc);
|
|
3168
2119
|
return contents;
|
|
3169
2120
|
}, "de_ListAssociatedAccessPoliciesCommand");
|
|
3170
|
-
var de_ListAssociatedAccessPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3171
|
-
const parsedOutput = {
|
|
3172
|
-
...output,
|
|
3173
|
-
body: await parseErrorBody(output.body, context)
|
|
3174
|
-
};
|
|
3175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3176
|
-
switch (errorCode) {
|
|
3177
|
-
case "InvalidRequestException":
|
|
3178
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3179
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ResourceNotFoundException":
|
|
3181
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "ServerException":
|
|
3184
|
-
case "com.amazonaws.eks#ServerException":
|
|
3185
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3186
|
-
default:
|
|
3187
|
-
const parsedBody = parsedOutput.body;
|
|
3188
|
-
return throwDefaultError({
|
|
3189
|
-
output,
|
|
3190
|
-
parsedBody,
|
|
3191
|
-
errorCode
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
}, "de_ListAssociatedAccessPoliciesCommandError");
|
|
3195
2121
|
var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3196
2122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3197
|
-
return
|
|
2123
|
+
return de_CommandError(output, context);
|
|
3198
2124
|
}
|
|
3199
2125
|
const contents = (0, import_smithy_client.map)({
|
|
3200
2126
|
$metadata: deserializeMetadata(output)
|
|
@@ -3207,37 +2133,9 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3207
2133
|
Object.assign(contents, doc);
|
|
3208
2134
|
return contents;
|
|
3209
2135
|
}, "de_ListClustersCommand");
|
|
3210
|
-
var de_ListClustersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3211
|
-
const parsedOutput = {
|
|
3212
|
-
...output,
|
|
3213
|
-
body: await parseErrorBody(output.body, context)
|
|
3214
|
-
};
|
|
3215
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3216
|
-
switch (errorCode) {
|
|
3217
|
-
case "ClientException":
|
|
3218
|
-
case "com.amazonaws.eks#ClientException":
|
|
3219
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "InvalidParameterException":
|
|
3221
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3222
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3223
|
-
case "ServerException":
|
|
3224
|
-
case "com.amazonaws.eks#ServerException":
|
|
3225
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3226
|
-
case "ServiceUnavailableException":
|
|
3227
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3228
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3229
|
-
default:
|
|
3230
|
-
const parsedBody = parsedOutput.body;
|
|
3231
|
-
return throwDefaultError({
|
|
3232
|
-
output,
|
|
3233
|
-
parsedBody,
|
|
3234
|
-
errorCode
|
|
3235
|
-
});
|
|
3236
|
-
}
|
|
3237
|
-
}, "de_ListClustersCommandError");
|
|
3238
2136
|
var de_ListEksAnywhereSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3239
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3240
|
-
return
|
|
2138
|
+
return de_CommandError(output, context);
|
|
3241
2139
|
}
|
|
3242
2140
|
const contents = (0, import_smithy_client.map)({
|
|
3243
2141
|
$metadata: deserializeMetadata(output)
|
|
@@ -3250,37 +2148,9 @@ var de_ListEksAnywhereSubscriptionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3250
2148
|
Object.assign(contents, doc);
|
|
3251
2149
|
return contents;
|
|
3252
2150
|
}, "de_ListEksAnywhereSubscriptionsCommand");
|
|
3253
|
-
var de_ListEksAnywhereSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3254
|
-
const parsedOutput = {
|
|
3255
|
-
...output,
|
|
3256
|
-
body: await parseErrorBody(output.body, context)
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "ClientException":
|
|
3261
|
-
case "com.amazonaws.eks#ClientException":
|
|
3262
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "InvalidParameterException":
|
|
3264
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3265
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ServerException":
|
|
3267
|
-
case "com.amazonaws.eks#ServerException":
|
|
3268
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "ServiceUnavailableException":
|
|
3270
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3271
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3272
|
-
default:
|
|
3273
|
-
const parsedBody = parsedOutput.body;
|
|
3274
|
-
return throwDefaultError({
|
|
3275
|
-
output,
|
|
3276
|
-
parsedBody,
|
|
3277
|
-
errorCode
|
|
3278
|
-
});
|
|
3279
|
-
}
|
|
3280
|
-
}, "de_ListEksAnywhereSubscriptionsCommandError");
|
|
3281
2151
|
var de_ListFargateProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3282
2152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3283
|
-
return
|
|
2153
|
+
return de_CommandError(output, context);
|
|
3284
2154
|
}
|
|
3285
2155
|
const contents = (0, import_smithy_client.map)({
|
|
3286
2156
|
$metadata: deserializeMetadata(output)
|
|
@@ -3293,37 +2163,9 @@ var de_ListFargateProfilesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3293
2163
|
Object.assign(contents, doc);
|
|
3294
2164
|
return contents;
|
|
3295
2165
|
}, "de_ListFargateProfilesCommand");
|
|
3296
|
-
var de_ListFargateProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3297
|
-
const parsedOutput = {
|
|
3298
|
-
...output,
|
|
3299
|
-
body: await parseErrorBody(output.body, context)
|
|
3300
|
-
};
|
|
3301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
-
switch (errorCode) {
|
|
3303
|
-
case "ClientException":
|
|
3304
|
-
case "com.amazonaws.eks#ClientException":
|
|
3305
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "InvalidParameterException":
|
|
3307
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3308
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ResourceNotFoundException":
|
|
3310
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ServerException":
|
|
3313
|
-
case "com.amazonaws.eks#ServerException":
|
|
3314
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
}, "de_ListFargateProfilesCommandError");
|
|
3324
2166
|
var de_ListIdentityProviderConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
2167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3326
|
-
return
|
|
2168
|
+
return de_CommandError(output, context);
|
|
3327
2169
|
}
|
|
3328
2170
|
const contents = (0, import_smithy_client.map)({
|
|
3329
2171
|
$metadata: deserializeMetadata(output)
|
|
@@ -3336,40 +2178,9 @@ var de_ListIdentityProviderConfigsCommand = /* @__PURE__ */ __name(async (output
|
|
|
3336
2178
|
Object.assign(contents, doc);
|
|
3337
2179
|
return contents;
|
|
3338
2180
|
}, "de_ListIdentityProviderConfigsCommand");
|
|
3339
|
-
var de_ListIdentityProviderConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3340
|
-
const parsedOutput = {
|
|
3341
|
-
...output,
|
|
3342
|
-
body: await parseErrorBody(output.body, context)
|
|
3343
|
-
};
|
|
3344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
|
-
switch (errorCode) {
|
|
3346
|
-
case "ClientException":
|
|
3347
|
-
case "com.amazonaws.eks#ClientException":
|
|
3348
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3349
|
-
case "InvalidParameterException":
|
|
3350
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3351
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "ResourceNotFoundException":
|
|
3353
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3354
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "ServerException":
|
|
3356
|
-
case "com.amazonaws.eks#ServerException":
|
|
3357
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "ServiceUnavailableException":
|
|
3359
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3360
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3361
|
-
default:
|
|
3362
|
-
const parsedBody = parsedOutput.body;
|
|
3363
|
-
return throwDefaultError({
|
|
3364
|
-
output,
|
|
3365
|
-
parsedBody,
|
|
3366
|
-
errorCode
|
|
3367
|
-
});
|
|
3368
|
-
}
|
|
3369
|
-
}, "de_ListIdentityProviderConfigsCommandError");
|
|
3370
2181
|
var de_ListInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3371
2182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3372
|
-
return
|
|
2183
|
+
return de_CommandError(output, context);
|
|
3373
2184
|
}
|
|
3374
2185
|
const contents = (0, import_smithy_client.map)({
|
|
3375
2186
|
$metadata: deserializeMetadata(output)
|
|
@@ -3382,37 +2193,9 @@ var de_ListInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3382
2193
|
Object.assign(contents, doc);
|
|
3383
2194
|
return contents;
|
|
3384
2195
|
}, "de_ListInsightsCommand");
|
|
3385
|
-
var de_ListInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3386
|
-
const parsedOutput = {
|
|
3387
|
-
...output,
|
|
3388
|
-
body: await parseErrorBody(output.body, context)
|
|
3389
|
-
};
|
|
3390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
|
-
switch (errorCode) {
|
|
3392
|
-
case "InvalidParameterException":
|
|
3393
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3394
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3395
|
-
case "InvalidRequestException":
|
|
3396
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3397
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "ResourceNotFoundException":
|
|
3399
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3400
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3401
|
-
case "ServerException":
|
|
3402
|
-
case "com.amazonaws.eks#ServerException":
|
|
3403
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3404
|
-
default:
|
|
3405
|
-
const parsedBody = parsedOutput.body;
|
|
3406
|
-
return throwDefaultError({
|
|
3407
|
-
output,
|
|
3408
|
-
parsedBody,
|
|
3409
|
-
errorCode
|
|
3410
|
-
});
|
|
3411
|
-
}
|
|
3412
|
-
}, "de_ListInsightsCommandError");
|
|
3413
2196
|
var de_ListNodegroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3414
2197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3415
|
-
return
|
|
2198
|
+
return de_CommandError(output, context);
|
|
3416
2199
|
}
|
|
3417
2200
|
const contents = (0, import_smithy_client.map)({
|
|
3418
2201
|
$metadata: deserializeMetadata(output)
|
|
@@ -3425,40 +2208,9 @@ var de_ListNodegroupsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3425
2208
|
Object.assign(contents, doc);
|
|
3426
2209
|
return contents;
|
|
3427
2210
|
}, "de_ListNodegroupsCommand");
|
|
3428
|
-
var de_ListNodegroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3429
|
-
const parsedOutput = {
|
|
3430
|
-
...output,
|
|
3431
|
-
body: await parseErrorBody(output.body, context)
|
|
3432
|
-
};
|
|
3433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
|
-
switch (errorCode) {
|
|
3435
|
-
case "ClientException":
|
|
3436
|
-
case "com.amazonaws.eks#ClientException":
|
|
3437
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "InvalidParameterException":
|
|
3439
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3440
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ResourceNotFoundException":
|
|
3442
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3443
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "ServerException":
|
|
3445
|
-
case "com.amazonaws.eks#ServerException":
|
|
3446
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "ServiceUnavailableException":
|
|
3448
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3449
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3450
|
-
default:
|
|
3451
|
-
const parsedBody = parsedOutput.body;
|
|
3452
|
-
return throwDefaultError({
|
|
3453
|
-
output,
|
|
3454
|
-
parsedBody,
|
|
3455
|
-
errorCode
|
|
3456
|
-
});
|
|
3457
|
-
}
|
|
3458
|
-
}, "de_ListNodegroupsCommandError");
|
|
3459
2211
|
var de_ListPodIdentityAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
2212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3461
|
-
return
|
|
2213
|
+
return de_CommandError(output, context);
|
|
3462
2214
|
}
|
|
3463
2215
|
const contents = (0, import_smithy_client.map)({
|
|
3464
2216
|
$metadata: deserializeMetadata(output)
|
|
@@ -3471,37 +2223,9 @@ var de_ListPodIdentityAssociationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
3471
2223
|
Object.assign(contents, doc);
|
|
3472
2224
|
return contents;
|
|
3473
2225
|
}, "de_ListPodIdentityAssociationsCommand");
|
|
3474
|
-
var de_ListPodIdentityAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
|
-
const parsedOutput = {
|
|
3476
|
-
...output,
|
|
3477
|
-
body: await parseErrorBody(output.body, context)
|
|
3478
|
-
};
|
|
3479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
|
-
switch (errorCode) {
|
|
3481
|
-
case "InvalidParameterException":
|
|
3482
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3483
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "InvalidRequestException":
|
|
3485
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3486
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "ResourceNotFoundException":
|
|
3488
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3489
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "ServerException":
|
|
3491
|
-
case "com.amazonaws.eks#ServerException":
|
|
3492
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3493
|
-
default:
|
|
3494
|
-
const parsedBody = parsedOutput.body;
|
|
3495
|
-
return throwDefaultError({
|
|
3496
|
-
output,
|
|
3497
|
-
parsedBody,
|
|
3498
|
-
errorCode
|
|
3499
|
-
});
|
|
3500
|
-
}
|
|
3501
|
-
}, "de_ListPodIdentityAssociationsCommandError");
|
|
3502
2226
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3503
2227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3504
|
-
return
|
|
2228
|
+
return de_CommandError(output, context);
|
|
3505
2229
|
}
|
|
3506
2230
|
const contents = (0, import_smithy_client.map)({
|
|
3507
2231
|
$metadata: deserializeMetadata(output)
|
|
@@ -3513,31 +2237,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3513
2237
|
Object.assign(contents, doc);
|
|
3514
2238
|
return contents;
|
|
3515
2239
|
}, "de_ListTagsForResourceCommand");
|
|
3516
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3517
|
-
const parsedOutput = {
|
|
3518
|
-
...output,
|
|
3519
|
-
body: await parseErrorBody(output.body, context)
|
|
3520
|
-
};
|
|
3521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3522
|
-
switch (errorCode) {
|
|
3523
|
-
case "BadRequestException":
|
|
3524
|
-
case "com.amazonaws.eks#BadRequestException":
|
|
3525
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "NotFoundException":
|
|
3527
|
-
case "com.amazonaws.eks#NotFoundException":
|
|
3528
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3529
|
-
default:
|
|
3530
|
-
const parsedBody = parsedOutput.body;
|
|
3531
|
-
return throwDefaultError({
|
|
3532
|
-
output,
|
|
3533
|
-
parsedBody,
|
|
3534
|
-
errorCode
|
|
3535
|
-
});
|
|
3536
|
-
}
|
|
3537
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3538
2240
|
var de_ListUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3539
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3540
|
-
return
|
|
2242
|
+
return de_CommandError(output, context);
|
|
3541
2243
|
}
|
|
3542
2244
|
const contents = (0, import_smithy_client.map)({
|
|
3543
2245
|
$metadata: deserializeMetadata(output)
|
|
@@ -3550,37 +2252,9 @@ var de_ListUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3550
2252
|
Object.assign(contents, doc);
|
|
3551
2253
|
return contents;
|
|
3552
2254
|
}, "de_ListUpdatesCommand");
|
|
3553
|
-
var de_ListUpdatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3554
|
-
const parsedOutput = {
|
|
3555
|
-
...output,
|
|
3556
|
-
body: await parseErrorBody(output.body, context)
|
|
3557
|
-
};
|
|
3558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3559
|
-
switch (errorCode) {
|
|
3560
|
-
case "ClientException":
|
|
3561
|
-
case "com.amazonaws.eks#ClientException":
|
|
3562
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3563
|
-
case "InvalidParameterException":
|
|
3564
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3565
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3566
|
-
case "ResourceNotFoundException":
|
|
3567
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "ServerException":
|
|
3570
|
-
case "com.amazonaws.eks#ServerException":
|
|
3571
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3572
|
-
default:
|
|
3573
|
-
const parsedBody = parsedOutput.body;
|
|
3574
|
-
return throwDefaultError({
|
|
3575
|
-
output,
|
|
3576
|
-
parsedBody,
|
|
3577
|
-
errorCode
|
|
3578
|
-
});
|
|
3579
|
-
}
|
|
3580
|
-
}, "de_ListUpdatesCommandError");
|
|
3581
2255
|
var de_RegisterClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3582
2256
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3583
|
-
return
|
|
2257
|
+
return de_CommandError(output, context);
|
|
3584
2258
|
}
|
|
3585
2259
|
const contents = (0, import_smithy_client.map)({
|
|
3586
2260
|
$metadata: deserializeMetadata(output)
|
|
@@ -3592,113 +2266,29 @@ var de_RegisterClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3592
2266
|
Object.assign(contents, doc);
|
|
3593
2267
|
return contents;
|
|
3594
2268
|
}, "de_RegisterClusterCommand");
|
|
3595
|
-
var de_RegisterClusterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3596
|
-
const parsedOutput = {
|
|
3597
|
-
...output,
|
|
3598
|
-
body: await parseErrorBody(output.body, context)
|
|
3599
|
-
};
|
|
3600
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3601
|
-
switch (errorCode) {
|
|
3602
|
-
case "AccessDeniedException":
|
|
3603
|
-
case "com.amazonaws.eks#AccessDeniedException":
|
|
3604
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3605
|
-
case "ClientException":
|
|
3606
|
-
case "com.amazonaws.eks#ClientException":
|
|
3607
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "InvalidParameterException":
|
|
3609
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3610
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "ResourceInUseException":
|
|
3612
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3613
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3614
|
-
case "ResourceLimitExceededException":
|
|
3615
|
-
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
3616
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
3617
|
-
case "ResourcePropagationDelayException":
|
|
3618
|
-
case "com.amazonaws.eks#ResourcePropagationDelayException":
|
|
3619
|
-
throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
|
|
3620
|
-
case "ServerException":
|
|
3621
|
-
case "com.amazonaws.eks#ServerException":
|
|
3622
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3623
|
-
case "ServiceUnavailableException":
|
|
3624
|
-
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
3625
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3626
|
-
default:
|
|
3627
|
-
const parsedBody = parsedOutput.body;
|
|
3628
|
-
return throwDefaultError({
|
|
3629
|
-
output,
|
|
3630
|
-
parsedBody,
|
|
3631
|
-
errorCode
|
|
3632
|
-
});
|
|
3633
|
-
}
|
|
3634
|
-
}, "de_RegisterClusterCommandError");
|
|
3635
2269
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3636
2270
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3637
|
-
return
|
|
3638
|
-
}
|
|
3639
|
-
const contents = (0, import_smithy_client.map)({
|
|
3640
|
-
$metadata: deserializeMetadata(output)
|
|
3641
|
-
});
|
|
3642
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3643
|
-
return contents;
|
|
3644
|
-
}, "de_TagResourceCommand");
|
|
3645
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3646
|
-
const parsedOutput = {
|
|
3647
|
-
...output,
|
|
3648
|
-
body: await parseErrorBody(output.body, context)
|
|
3649
|
-
};
|
|
3650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3651
|
-
switch (errorCode) {
|
|
3652
|
-
case "BadRequestException":
|
|
3653
|
-
case "com.amazonaws.eks#BadRequestException":
|
|
3654
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3655
|
-
case "NotFoundException":
|
|
3656
|
-
case "com.amazonaws.eks#NotFoundException":
|
|
3657
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3658
|
-
default:
|
|
3659
|
-
const parsedBody = parsedOutput.body;
|
|
3660
|
-
return throwDefaultError({
|
|
3661
|
-
output,
|
|
3662
|
-
parsedBody,
|
|
3663
|
-
errorCode
|
|
3664
|
-
});
|
|
3665
|
-
}
|
|
3666
|
-
}, "de_TagResourceCommandError");
|
|
3667
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3668
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3669
|
-
return de_UntagResourceCommandError(output, context);
|
|
2271
|
+
return de_CommandError(output, context);
|
|
3670
2272
|
}
|
|
3671
|
-
const contents = (0, import_smithy_client.map)({
|
|
3672
|
-
$metadata: deserializeMetadata(output)
|
|
3673
|
-
});
|
|
3674
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3675
|
-
return contents;
|
|
3676
|
-
}, "
|
|
3677
|
-
var
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
body: await parseErrorBody(output.body, context)
|
|
3681
|
-
};
|
|
3682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3683
|
-
switch (errorCode) {
|
|
3684
|
-
case "BadRequestException":
|
|
3685
|
-
case "com.amazonaws.eks#BadRequestException":
|
|
3686
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "NotFoundException":
|
|
3688
|
-
case "com.amazonaws.eks#NotFoundException":
|
|
3689
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3690
|
-
default:
|
|
3691
|
-
const parsedBody = parsedOutput.body;
|
|
3692
|
-
return throwDefaultError({
|
|
3693
|
-
output,
|
|
3694
|
-
parsedBody,
|
|
3695
|
-
errorCode
|
|
3696
|
-
});
|
|
2273
|
+
const contents = (0, import_smithy_client.map)({
|
|
2274
|
+
$metadata: deserializeMetadata(output)
|
|
2275
|
+
});
|
|
2276
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2277
|
+
return contents;
|
|
2278
|
+
}, "de_TagResourceCommand");
|
|
2279
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2281
|
+
return de_CommandError(output, context);
|
|
3697
2282
|
}
|
|
3698
|
-
|
|
2283
|
+
const contents = (0, import_smithy_client.map)({
|
|
2284
|
+
$metadata: deserializeMetadata(output)
|
|
2285
|
+
});
|
|
2286
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2287
|
+
return contents;
|
|
2288
|
+
}, "de_UntagResourceCommand");
|
|
3699
2289
|
var de_UpdateAccessEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3700
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3701
|
-
return
|
|
2291
|
+
return de_CommandError(output, context);
|
|
3702
2292
|
}
|
|
3703
2293
|
const contents = (0, import_smithy_client.map)({
|
|
3704
2294
|
$metadata: deserializeMetadata(output)
|
|
@@ -3710,37 +2300,9 @@ var de_UpdateAccessEntryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3710
2300
|
Object.assign(contents, doc);
|
|
3711
2301
|
return contents;
|
|
3712
2302
|
}, "de_UpdateAccessEntryCommand");
|
|
3713
|
-
var de_UpdateAccessEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3714
|
-
const parsedOutput = {
|
|
3715
|
-
...output,
|
|
3716
|
-
body: await parseErrorBody(output.body, context)
|
|
3717
|
-
};
|
|
3718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3719
|
-
switch (errorCode) {
|
|
3720
|
-
case "InvalidParameterException":
|
|
3721
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3722
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3723
|
-
case "InvalidRequestException":
|
|
3724
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3725
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3726
|
-
case "ResourceNotFoundException":
|
|
3727
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3728
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3729
|
-
case "ServerException":
|
|
3730
|
-
case "com.amazonaws.eks#ServerException":
|
|
3731
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3732
|
-
default:
|
|
3733
|
-
const parsedBody = parsedOutput.body;
|
|
3734
|
-
return throwDefaultError({
|
|
3735
|
-
output,
|
|
3736
|
-
parsedBody,
|
|
3737
|
-
errorCode
|
|
3738
|
-
});
|
|
3739
|
-
}
|
|
3740
|
-
}, "de_UpdateAccessEntryCommandError");
|
|
3741
2303
|
var de_UpdateAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3742
2304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3743
|
-
return
|
|
2305
|
+
return de_CommandError(output, context);
|
|
3744
2306
|
}
|
|
3745
2307
|
const contents = (0, import_smithy_client.map)({
|
|
3746
2308
|
$metadata: deserializeMetadata(output)
|
|
@@ -3752,43 +2314,9 @@ var de_UpdateAddonCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3752
2314
|
Object.assign(contents, doc);
|
|
3753
2315
|
return contents;
|
|
3754
2316
|
}, "de_UpdateAddonCommand");
|
|
3755
|
-
var de_UpdateAddonCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
|
-
const parsedOutput = {
|
|
3757
|
-
...output,
|
|
3758
|
-
body: await parseErrorBody(output.body, context)
|
|
3759
|
-
};
|
|
3760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3761
|
-
switch (errorCode) {
|
|
3762
|
-
case "ClientException":
|
|
3763
|
-
case "com.amazonaws.eks#ClientException":
|
|
3764
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "InvalidParameterException":
|
|
3766
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3767
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "InvalidRequestException":
|
|
3769
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3770
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "ResourceInUseException":
|
|
3772
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3773
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3774
|
-
case "ResourceNotFoundException":
|
|
3775
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3776
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3777
|
-
case "ServerException":
|
|
3778
|
-
case "com.amazonaws.eks#ServerException":
|
|
3779
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3780
|
-
default:
|
|
3781
|
-
const parsedBody = parsedOutput.body;
|
|
3782
|
-
return throwDefaultError({
|
|
3783
|
-
output,
|
|
3784
|
-
parsedBody,
|
|
3785
|
-
errorCode
|
|
3786
|
-
});
|
|
3787
|
-
}
|
|
3788
|
-
}, "de_UpdateAddonCommandError");
|
|
3789
2317
|
var de_UpdateClusterConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3790
2318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3791
|
-
return
|
|
2319
|
+
return de_CommandError(output, context);
|
|
3792
2320
|
}
|
|
3793
2321
|
const contents = (0, import_smithy_client.map)({
|
|
3794
2322
|
$metadata: deserializeMetadata(output)
|
|
@@ -3800,43 +2328,9 @@ var de_UpdateClusterConfigCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3800
2328
|
Object.assign(contents, doc);
|
|
3801
2329
|
return contents;
|
|
3802
2330
|
}, "de_UpdateClusterConfigCommand");
|
|
3803
|
-
var de_UpdateClusterConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3804
|
-
const parsedOutput = {
|
|
3805
|
-
...output,
|
|
3806
|
-
body: await parseErrorBody(output.body, context)
|
|
3807
|
-
};
|
|
3808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3809
|
-
switch (errorCode) {
|
|
3810
|
-
case "ClientException":
|
|
3811
|
-
case "com.amazonaws.eks#ClientException":
|
|
3812
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3813
|
-
case "InvalidParameterException":
|
|
3814
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3815
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3816
|
-
case "InvalidRequestException":
|
|
3817
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3818
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3819
|
-
case "ResourceInUseException":
|
|
3820
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3821
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3822
|
-
case "ResourceNotFoundException":
|
|
3823
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3824
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3825
|
-
case "ServerException":
|
|
3826
|
-
case "com.amazonaws.eks#ServerException":
|
|
3827
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3828
|
-
default:
|
|
3829
|
-
const parsedBody = parsedOutput.body;
|
|
3830
|
-
return throwDefaultError({
|
|
3831
|
-
output,
|
|
3832
|
-
parsedBody,
|
|
3833
|
-
errorCode
|
|
3834
|
-
});
|
|
3835
|
-
}
|
|
3836
|
-
}, "de_UpdateClusterConfigCommandError");
|
|
3837
2331
|
var de_UpdateClusterVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3838
2332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3839
|
-
return
|
|
2333
|
+
return de_CommandError(output, context);
|
|
3840
2334
|
}
|
|
3841
2335
|
const contents = (0, import_smithy_client.map)({
|
|
3842
2336
|
$metadata: deserializeMetadata(output)
|
|
@@ -3848,43 +2342,9 @@ var de_UpdateClusterVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3848
2342
|
Object.assign(contents, doc);
|
|
3849
2343
|
return contents;
|
|
3850
2344
|
}, "de_UpdateClusterVersionCommand");
|
|
3851
|
-
var de_UpdateClusterVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3852
|
-
const parsedOutput = {
|
|
3853
|
-
...output,
|
|
3854
|
-
body: await parseErrorBody(output.body, context)
|
|
3855
|
-
};
|
|
3856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3857
|
-
switch (errorCode) {
|
|
3858
|
-
case "ClientException":
|
|
3859
|
-
case "com.amazonaws.eks#ClientException":
|
|
3860
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3861
|
-
case "InvalidParameterException":
|
|
3862
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3863
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3864
|
-
case "InvalidRequestException":
|
|
3865
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3866
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3867
|
-
case "ResourceInUseException":
|
|
3868
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3869
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3870
|
-
case "ResourceNotFoundException":
|
|
3871
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3872
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3873
|
-
case "ServerException":
|
|
3874
|
-
case "com.amazonaws.eks#ServerException":
|
|
3875
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3876
|
-
default:
|
|
3877
|
-
const parsedBody = parsedOutput.body;
|
|
3878
|
-
return throwDefaultError({
|
|
3879
|
-
output,
|
|
3880
|
-
parsedBody,
|
|
3881
|
-
errorCode
|
|
3882
|
-
});
|
|
3883
|
-
}
|
|
3884
|
-
}, "de_UpdateClusterVersionCommandError");
|
|
3885
2345
|
var de_UpdateEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3886
2346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3887
|
-
return
|
|
2347
|
+
return de_CommandError(output, context);
|
|
3888
2348
|
}
|
|
3889
2349
|
const contents = (0, import_smithy_client.map)({
|
|
3890
2350
|
$metadata: deserializeMetadata(output)
|
|
@@ -3896,40 +2356,9 @@ var de_UpdateEksAnywhereSubscriptionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3896
2356
|
Object.assign(contents, doc);
|
|
3897
2357
|
return contents;
|
|
3898
2358
|
}, "de_UpdateEksAnywhereSubscriptionCommand");
|
|
3899
|
-
var de_UpdateEksAnywhereSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3900
|
-
const parsedOutput = {
|
|
3901
|
-
...output,
|
|
3902
|
-
body: await parseErrorBody(output.body, context)
|
|
3903
|
-
};
|
|
3904
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3905
|
-
switch (errorCode) {
|
|
3906
|
-
case "ClientException":
|
|
3907
|
-
case "com.amazonaws.eks#ClientException":
|
|
3908
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3909
|
-
case "InvalidParameterException":
|
|
3910
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3911
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3912
|
-
case "InvalidRequestException":
|
|
3913
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3914
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3915
|
-
case "ResourceNotFoundException":
|
|
3916
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3918
|
-
case "ServerException":
|
|
3919
|
-
case "com.amazonaws.eks#ServerException":
|
|
3920
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3921
|
-
default:
|
|
3922
|
-
const parsedBody = parsedOutput.body;
|
|
3923
|
-
return throwDefaultError({
|
|
3924
|
-
output,
|
|
3925
|
-
parsedBody,
|
|
3926
|
-
errorCode
|
|
3927
|
-
});
|
|
3928
|
-
}
|
|
3929
|
-
}, "de_UpdateEksAnywhereSubscriptionCommandError");
|
|
3930
2359
|
var de_UpdateNodegroupConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3931
2360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3932
|
-
return
|
|
2361
|
+
return de_CommandError(output, context);
|
|
3933
2362
|
}
|
|
3934
2363
|
const contents = (0, import_smithy_client.map)({
|
|
3935
2364
|
$metadata: deserializeMetadata(output)
|
|
@@ -3941,43 +2370,9 @@ var de_UpdateNodegroupConfigCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3941
2370
|
Object.assign(contents, doc);
|
|
3942
2371
|
return contents;
|
|
3943
2372
|
}, "de_UpdateNodegroupConfigCommand");
|
|
3944
|
-
var de_UpdateNodegroupConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3945
|
-
const parsedOutput = {
|
|
3946
|
-
...output,
|
|
3947
|
-
body: await parseErrorBody(output.body, context)
|
|
3948
|
-
};
|
|
3949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3950
|
-
switch (errorCode) {
|
|
3951
|
-
case "ClientException":
|
|
3952
|
-
case "com.amazonaws.eks#ClientException":
|
|
3953
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InvalidParameterException":
|
|
3955
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
3956
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "InvalidRequestException":
|
|
3958
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
3959
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ResourceInUseException":
|
|
3961
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
3962
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "ResourceNotFoundException":
|
|
3964
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
3965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3966
|
-
case "ServerException":
|
|
3967
|
-
case "com.amazonaws.eks#ServerException":
|
|
3968
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
3969
|
-
default:
|
|
3970
|
-
const parsedBody = parsedOutput.body;
|
|
3971
|
-
return throwDefaultError({
|
|
3972
|
-
output,
|
|
3973
|
-
parsedBody,
|
|
3974
|
-
errorCode
|
|
3975
|
-
});
|
|
3976
|
-
}
|
|
3977
|
-
}, "de_UpdateNodegroupConfigCommandError");
|
|
3978
2373
|
var de_UpdateNodegroupVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3979
2374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3980
|
-
return
|
|
2375
|
+
return de_CommandError(output, context);
|
|
3981
2376
|
}
|
|
3982
2377
|
const contents = (0, import_smithy_client.map)({
|
|
3983
2378
|
$metadata: deserializeMetadata(output)
|
|
@@ -3989,43 +2384,9 @@ var de_UpdateNodegroupVersionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3989
2384
|
Object.assign(contents, doc);
|
|
3990
2385
|
return contents;
|
|
3991
2386
|
}, "de_UpdateNodegroupVersionCommand");
|
|
3992
|
-
var de_UpdateNodegroupVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3993
|
-
const parsedOutput = {
|
|
3994
|
-
...output,
|
|
3995
|
-
body: await parseErrorBody(output.body, context)
|
|
3996
|
-
};
|
|
3997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3998
|
-
switch (errorCode) {
|
|
3999
|
-
case "ClientException":
|
|
4000
|
-
case "com.amazonaws.eks#ClientException":
|
|
4001
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4002
|
-
case "InvalidParameterException":
|
|
4003
|
-
case "com.amazonaws.eks#InvalidParameterException":
|
|
4004
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4005
|
-
case "InvalidRequestException":
|
|
4006
|
-
case "com.amazonaws.eks#InvalidRequestException":
|
|
4007
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4008
|
-
case "ResourceInUseException":
|
|
4009
|
-
case "com.amazonaws.eks#ResourceInUseException":
|
|
4010
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
4011
|
-
case "ResourceNotFoundException":
|
|
4012
|
-
case "com.amazonaws.eks#ResourceNotFoundException":
|
|
4013
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "ServerException":
|
|
4015
|
-
case "com.amazonaws.eks#ServerException":
|
|
4016
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
4017
|
-
default:
|
|
4018
|
-
const parsedBody = parsedOutput.body;
|
|
4019
|
-
return throwDefaultError({
|
|
4020
|
-
output,
|
|
4021
|
-
parsedBody,
|
|
4022
|
-
errorCode
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
}, "de_UpdateNodegroupVersionCommandError");
|
|
4026
2387
|
var de_UpdatePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4027
2388
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4028
|
-
return
|
|
2389
|
+
return de_CommandError(output, context);
|
|
4029
2390
|
}
|
|
4030
2391
|
const contents = (0, import_smithy_client.map)({
|
|
4031
2392
|
$metadata: deserializeMetadata(output)
|
|
@@ -4037,7 +2398,7 @@ var de_UpdatePodIdentityAssociationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4037
2398
|
Object.assign(contents, doc);
|
|
4038
2399
|
return contents;
|
|
4039
2400
|
}, "de_UpdatePodIdentityAssociationCommand");
|
|
4040
|
-
var
|
|
2401
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4041
2402
|
const parsedOutput = {
|
|
4042
2403
|
...output,
|
|
4043
2404
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4056,6 +2417,33 @@ var de_UpdatePodIdentityAssociationCommandError = /* @__PURE__ */ __name(async (
|
|
|
4056
2417
|
case "ServerException":
|
|
4057
2418
|
case "com.amazonaws.eks#ServerException":
|
|
4058
2419
|
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
2420
|
+
case "ClientException":
|
|
2421
|
+
case "com.amazonaws.eks#ClientException":
|
|
2422
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2423
|
+
case "ResourceInUseException":
|
|
2424
|
+
case "com.amazonaws.eks#ResourceInUseException":
|
|
2425
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2426
|
+
case "ResourceLimitExceededException":
|
|
2427
|
+
case "com.amazonaws.eks#ResourceLimitExceededException":
|
|
2428
|
+
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2429
|
+
case "ServiceUnavailableException":
|
|
2430
|
+
case "com.amazonaws.eks#ServiceUnavailableException":
|
|
2431
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2432
|
+
case "UnsupportedAvailabilityZoneException":
|
|
2433
|
+
case "com.amazonaws.eks#UnsupportedAvailabilityZoneException":
|
|
2434
|
+
throw await de_UnsupportedAvailabilityZoneExceptionRes(parsedOutput, context);
|
|
2435
|
+
case "AccessDeniedException":
|
|
2436
|
+
case "com.amazonaws.eks#AccessDeniedException":
|
|
2437
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2438
|
+
case "BadRequestException":
|
|
2439
|
+
case "com.amazonaws.eks#BadRequestException":
|
|
2440
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2441
|
+
case "NotFoundException":
|
|
2442
|
+
case "com.amazonaws.eks#NotFoundException":
|
|
2443
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2444
|
+
case "ResourcePropagationDelayException":
|
|
2445
|
+
case "com.amazonaws.eks#ResourcePropagationDelayException":
|
|
2446
|
+
throw await de_ResourcePropagationDelayExceptionRes(parsedOutput, context);
|
|
4059
2447
|
default:
|
|
4060
2448
|
const parsedBody = parsedOutput.body;
|
|
4061
2449
|
return throwDefaultError({
|
|
@@ -4064,7 +2452,7 @@ var de_UpdatePodIdentityAssociationCommandError = /* @__PURE__ */ __name(async (
|
|
|
4064
2452
|
errorCode
|
|
4065
2453
|
});
|
|
4066
2454
|
}
|
|
4067
|
-
}, "
|
|
2455
|
+
}, "de_CommandError");
|
|
4068
2456
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(EKSServiceException);
|
|
4069
2457
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4070
2458
|
const contents = (0, import_smithy_client.map)({});
|