@aws-sdk/client-kms 3.503.1 → 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 +206 -1938
- package/dist-es/protocols/Aws_json1_1.js +387 -2119
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1639,7 +1639,7 @@ var se_VerifyMacCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1639
1639
|
}, "se_VerifyMacCommand");
|
|
1640
1640
|
var de_CancelKeyDeletionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1641
1641
|
if (output.statusCode >= 300) {
|
|
1642
|
-
return
|
|
1642
|
+
return de_CommandError(output, context);
|
|
1643
1643
|
}
|
|
1644
1644
|
const data = await parseBody(output.body, context);
|
|
1645
1645
|
let contents = {};
|
|
@@ -1650,40 +1650,9 @@ var de_CancelKeyDeletionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1650
1650
|
};
|
|
1651
1651
|
return response;
|
|
1652
1652
|
}, "de_CancelKeyDeletionCommand");
|
|
1653
|
-
var de_CancelKeyDeletionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context)
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "DependencyTimeoutException":
|
|
1661
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
1662
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "InvalidArnException":
|
|
1664
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
1665
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "KMSInternalException":
|
|
1667
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1668
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "KMSInvalidStateException":
|
|
1670
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1671
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1672
|
-
case "NotFoundException":
|
|
1673
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
1674
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1675
|
-
default:
|
|
1676
|
-
const parsedBody = parsedOutput.body;
|
|
1677
|
-
return throwDefaultError({
|
|
1678
|
-
output,
|
|
1679
|
-
parsedBody,
|
|
1680
|
-
errorCode
|
|
1681
|
-
});
|
|
1682
|
-
}
|
|
1683
|
-
}, "de_CancelKeyDeletionCommandError");
|
|
1684
1653
|
var de_ConnectCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
1654
|
if (output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1655
|
+
return de_CommandError(output, context);
|
|
1687
1656
|
}
|
|
1688
1657
|
const data = await parseBody(output.body, context);
|
|
1689
1658
|
let contents = {};
|
|
@@ -1694,40 +1663,9 @@ var de_ConnectCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1694
1663
|
};
|
|
1695
1664
|
return response;
|
|
1696
1665
|
}, "de_ConnectCustomKeyStoreCommand");
|
|
1697
|
-
var de_ConnectCustomKeyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1698
|
-
const parsedOutput = {
|
|
1699
|
-
...output,
|
|
1700
|
-
body: await parseErrorBody(output.body, context)
|
|
1701
|
-
};
|
|
1702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
|
-
switch (errorCode) {
|
|
1704
|
-
case "CloudHsmClusterInvalidConfigurationException":
|
|
1705
|
-
case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
|
|
1706
|
-
throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "CloudHsmClusterNotActiveException":
|
|
1708
|
-
case "com.amazonaws.kms#CloudHsmClusterNotActiveException":
|
|
1709
|
-
throw await de_CloudHsmClusterNotActiveExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "CustomKeyStoreInvalidStateException":
|
|
1711
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
1712
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "CustomKeyStoreNotFoundException":
|
|
1714
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
1715
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "KMSInternalException":
|
|
1717
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1718
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
}, "de_ConnectCustomKeyStoreCommandError");
|
|
1728
1666
|
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1729
1667
|
if (output.statusCode >= 300) {
|
|
1730
|
-
return
|
|
1668
|
+
return de_CommandError(output, context);
|
|
1731
1669
|
}
|
|
1732
1670
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1733
1671
|
const response = {
|
|
@@ -1735,46 +1673,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1735
1673
|
};
|
|
1736
1674
|
return response;
|
|
1737
1675
|
}, "de_CreateAliasCommand");
|
|
1738
|
-
var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
|
-
const parsedOutput = {
|
|
1740
|
-
...output,
|
|
1741
|
-
body: await parseErrorBody(output.body, context)
|
|
1742
|
-
};
|
|
1743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
-
switch (errorCode) {
|
|
1745
|
-
case "AlreadyExistsException":
|
|
1746
|
-
case "com.amazonaws.kms#AlreadyExistsException":
|
|
1747
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "DependencyTimeoutException":
|
|
1749
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
1750
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "InvalidAliasNameException":
|
|
1752
|
-
case "com.amazonaws.kms#InvalidAliasNameException":
|
|
1753
|
-
throw await de_InvalidAliasNameExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "KMSInternalException":
|
|
1755
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1756
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "KMSInvalidStateException":
|
|
1758
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1759
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "LimitExceededException":
|
|
1761
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
1762
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "NotFoundException":
|
|
1764
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
1765
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1766
|
-
default:
|
|
1767
|
-
const parsedBody = parsedOutput.body;
|
|
1768
|
-
return throwDefaultError({
|
|
1769
|
-
output,
|
|
1770
|
-
parsedBody,
|
|
1771
|
-
errorCode
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
}, "de_CreateAliasCommandError");
|
|
1775
1676
|
var de_CreateCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1776
1677
|
if (output.statusCode >= 300) {
|
|
1777
|
-
return
|
|
1678
|
+
return de_CommandError(output, context);
|
|
1778
1679
|
}
|
|
1779
1680
|
const data = await parseBody(output.body, context);
|
|
1780
1681
|
let contents = {};
|
|
@@ -1785,76 +1686,9 @@ var de_CreateCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1785
1686
|
};
|
|
1786
1687
|
return response;
|
|
1787
1688
|
}, "de_CreateCustomKeyStoreCommand");
|
|
1788
|
-
var de_CreateCustomKeyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1789
|
-
const parsedOutput = {
|
|
1790
|
-
...output,
|
|
1791
|
-
body: await parseErrorBody(output.body, context)
|
|
1792
|
-
};
|
|
1793
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1794
|
-
switch (errorCode) {
|
|
1795
|
-
case "CloudHsmClusterInUseException":
|
|
1796
|
-
case "com.amazonaws.kms#CloudHsmClusterInUseException":
|
|
1797
|
-
throw await de_CloudHsmClusterInUseExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "CloudHsmClusterInvalidConfigurationException":
|
|
1799
|
-
case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
|
|
1800
|
-
throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "CloudHsmClusterNotActiveException":
|
|
1802
|
-
case "com.amazonaws.kms#CloudHsmClusterNotActiveException":
|
|
1803
|
-
throw await de_CloudHsmClusterNotActiveExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "CloudHsmClusterNotFoundException":
|
|
1805
|
-
case "com.amazonaws.kms#CloudHsmClusterNotFoundException":
|
|
1806
|
-
throw await de_CloudHsmClusterNotFoundExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "CustomKeyStoreNameInUseException":
|
|
1808
|
-
case "com.amazonaws.kms#CustomKeyStoreNameInUseException":
|
|
1809
|
-
throw await de_CustomKeyStoreNameInUseExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "IncorrectTrustAnchorException":
|
|
1811
|
-
case "com.amazonaws.kms#IncorrectTrustAnchorException":
|
|
1812
|
-
throw await de_IncorrectTrustAnchorExceptionRes(parsedOutput, context);
|
|
1813
|
-
case "KMSInternalException":
|
|
1814
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1815
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "LimitExceededException":
|
|
1817
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
1818
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "XksProxyIncorrectAuthenticationCredentialException":
|
|
1820
|
-
case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
|
|
1821
|
-
throw await de_XksProxyIncorrectAuthenticationCredentialExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "XksProxyInvalidConfigurationException":
|
|
1823
|
-
case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
|
|
1824
|
-
throw await de_XksProxyInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "XksProxyInvalidResponseException":
|
|
1826
|
-
case "com.amazonaws.kms#XksProxyInvalidResponseException":
|
|
1827
|
-
throw await de_XksProxyInvalidResponseExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "XksProxyUriEndpointInUseException":
|
|
1829
|
-
case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
|
|
1830
|
-
throw await de_XksProxyUriEndpointInUseExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "XksProxyUriInUseException":
|
|
1832
|
-
case "com.amazonaws.kms#XksProxyUriInUseException":
|
|
1833
|
-
throw await de_XksProxyUriInUseExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "XksProxyUriUnreachableException":
|
|
1835
|
-
case "com.amazonaws.kms#XksProxyUriUnreachableException":
|
|
1836
|
-
throw await de_XksProxyUriUnreachableExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "XksProxyVpcEndpointServiceInUseException":
|
|
1838
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
|
|
1839
|
-
throw await de_XksProxyVpcEndpointServiceInUseExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
1841
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
1842
|
-
throw await de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "XksProxyVpcEndpointServiceNotFoundException":
|
|
1844
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
|
|
1845
|
-
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
1846
|
-
default:
|
|
1847
|
-
const parsedBody = parsedOutput.body;
|
|
1848
|
-
return throwDefaultError({
|
|
1849
|
-
output,
|
|
1850
|
-
parsedBody,
|
|
1851
|
-
errorCode
|
|
1852
|
-
});
|
|
1853
|
-
}
|
|
1854
|
-
}, "de_CreateCustomKeyStoreCommandError");
|
|
1855
1689
|
var de_CreateGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1856
1690
|
if (output.statusCode >= 300) {
|
|
1857
|
-
return
|
|
1691
|
+
return de_CommandError(output, context);
|
|
1858
1692
|
}
|
|
1859
1693
|
const data = await parseBody(output.body, context);
|
|
1860
1694
|
let contents = {};
|
|
@@ -1865,52 +1699,9 @@ var de_CreateGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1865
1699
|
};
|
|
1866
1700
|
return response;
|
|
1867
1701
|
}, "de_CreateGrantCommand");
|
|
1868
|
-
var de_CreateGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1869
|
-
const parsedOutput = {
|
|
1870
|
-
...output,
|
|
1871
|
-
body: await parseErrorBody(output.body, context)
|
|
1872
|
-
};
|
|
1873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
-
switch (errorCode) {
|
|
1875
|
-
case "DependencyTimeoutException":
|
|
1876
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
1877
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "DisabledException":
|
|
1879
|
-
case "com.amazonaws.kms#DisabledException":
|
|
1880
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "DryRunOperationException":
|
|
1882
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
1883
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InvalidArnException":
|
|
1885
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
1886
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "InvalidGrantTokenException":
|
|
1888
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
1889
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "KMSInternalException":
|
|
1891
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1892
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "KMSInvalidStateException":
|
|
1894
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
1895
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "LimitExceededException":
|
|
1897
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
1898
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "NotFoundException":
|
|
1900
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
1901
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1902
|
-
default:
|
|
1903
|
-
const parsedBody = parsedOutput.body;
|
|
1904
|
-
return throwDefaultError({
|
|
1905
|
-
output,
|
|
1906
|
-
parsedBody,
|
|
1907
|
-
errorCode
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
}, "de_CreateGrantCommandError");
|
|
1911
1702
|
var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1912
1703
|
if (output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1704
|
+
return de_CommandError(output, context);
|
|
1914
1705
|
}
|
|
1915
1706
|
const data = await parseBody(output.body, context);
|
|
1916
1707
|
let contents = {};
|
|
@@ -1921,64 +1712,9 @@ var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1921
1712
|
};
|
|
1922
1713
|
return response;
|
|
1923
1714
|
}, "de_CreateKeyCommand");
|
|
1924
|
-
var de_CreateKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1925
|
-
const parsedOutput = {
|
|
1926
|
-
...output,
|
|
1927
|
-
body: await parseErrorBody(output.body, context)
|
|
1928
|
-
};
|
|
1929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
|
-
switch (errorCode) {
|
|
1931
|
-
case "CloudHsmClusterInvalidConfigurationException":
|
|
1932
|
-
case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
|
|
1933
|
-
throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "CustomKeyStoreInvalidStateException":
|
|
1935
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
1936
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "CustomKeyStoreNotFoundException":
|
|
1938
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
1939
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "DependencyTimeoutException":
|
|
1941
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
1942
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "InvalidArnException":
|
|
1944
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
1945
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "KMSInternalException":
|
|
1947
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
1948
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "LimitExceededException":
|
|
1950
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
1951
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "MalformedPolicyDocumentException":
|
|
1953
|
-
case "com.amazonaws.kms#MalformedPolicyDocumentException":
|
|
1954
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "TagException":
|
|
1956
|
-
case "com.amazonaws.kms#TagException":
|
|
1957
|
-
throw await de_TagExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "UnsupportedOperationException":
|
|
1959
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
1960
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "XksKeyAlreadyInUseException":
|
|
1962
|
-
case "com.amazonaws.kms#XksKeyAlreadyInUseException":
|
|
1963
|
-
throw await de_XksKeyAlreadyInUseExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "XksKeyInvalidConfigurationException":
|
|
1965
|
-
case "com.amazonaws.kms#XksKeyInvalidConfigurationException":
|
|
1966
|
-
throw await de_XksKeyInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "XksKeyNotFoundException":
|
|
1968
|
-
case "com.amazonaws.kms#XksKeyNotFoundException":
|
|
1969
|
-
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
default:
|
|
1971
|
-
const parsedBody = parsedOutput.body;
|
|
1972
|
-
return throwDefaultError({
|
|
1973
|
-
output,
|
|
1974
|
-
parsedBody,
|
|
1975
|
-
errorCode
|
|
1976
|
-
});
|
|
1977
|
-
}
|
|
1978
|
-
}, "de_CreateKeyCommandError");
|
|
1979
1715
|
var de_DecryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1980
1716
|
if (output.statusCode >= 300) {
|
|
1981
|
-
return
|
|
1717
|
+
return de_CommandError(output, context);
|
|
1982
1718
|
}
|
|
1983
1719
|
const data = await parseBody(output.body, context);
|
|
1984
1720
|
let contents = {};
|
|
@@ -1989,58 +1725,9 @@ var de_DecryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1989
1725
|
};
|
|
1990
1726
|
return response;
|
|
1991
1727
|
}, "de_DecryptCommand");
|
|
1992
|
-
var de_DecryptCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1993
|
-
const parsedOutput = {
|
|
1994
|
-
...output,
|
|
1995
|
-
body: await parseErrorBody(output.body, context)
|
|
1996
|
-
};
|
|
1997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1998
|
-
switch (errorCode) {
|
|
1999
|
-
case "DependencyTimeoutException":
|
|
2000
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2001
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "DisabledException":
|
|
2003
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2004
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "DryRunOperationException":
|
|
2006
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2007
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2008
|
-
case "IncorrectKeyException":
|
|
2009
|
-
case "com.amazonaws.kms#IncorrectKeyException":
|
|
2010
|
-
throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "InvalidCiphertextException":
|
|
2012
|
-
case "com.amazonaws.kms#InvalidCiphertextException":
|
|
2013
|
-
throw await de_InvalidCiphertextExceptionRes(parsedOutput, context);
|
|
2014
|
-
case "InvalidGrantTokenException":
|
|
2015
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2016
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2017
|
-
case "InvalidKeyUsageException":
|
|
2018
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2019
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "KMSInternalException":
|
|
2021
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2022
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "KMSInvalidStateException":
|
|
2024
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2025
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "KeyUnavailableException":
|
|
2027
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2028
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "NotFoundException":
|
|
2030
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2031
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2032
|
-
default:
|
|
2033
|
-
const parsedBody = parsedOutput.body;
|
|
2034
|
-
return throwDefaultError({
|
|
2035
|
-
output,
|
|
2036
|
-
parsedBody,
|
|
2037
|
-
errorCode
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
}, "de_DecryptCommandError");
|
|
2041
1728
|
var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2042
1729
|
if (output.statusCode >= 300) {
|
|
2043
|
-
return
|
|
1730
|
+
return de_CommandError(output, context);
|
|
2044
1731
|
}
|
|
2045
1732
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2046
1733
|
const response = {
|
|
@@ -2048,37 +1735,9 @@ var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2048
1735
|
};
|
|
2049
1736
|
return response;
|
|
2050
1737
|
}, "de_DeleteAliasCommand");
|
|
2051
|
-
var de_DeleteAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2052
|
-
const parsedOutput = {
|
|
2053
|
-
...output,
|
|
2054
|
-
body: await parseErrorBody(output.body, context)
|
|
2055
|
-
};
|
|
2056
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2057
|
-
switch (errorCode) {
|
|
2058
|
-
case "DependencyTimeoutException":
|
|
2059
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2060
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "KMSInternalException":
|
|
2062
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2063
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "KMSInvalidStateException":
|
|
2065
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2066
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "NotFoundException":
|
|
2068
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2069
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
}, "de_DeleteAliasCommandError");
|
|
2079
1738
|
var de_DeleteCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2080
1739
|
if (output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
1740
|
+
return de_CommandError(output, context);
|
|
2082
1741
|
}
|
|
2083
1742
|
const data = await parseBody(output.body, context);
|
|
2084
1743
|
let contents = {};
|
|
@@ -2089,37 +1748,9 @@ var de_DeleteCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2089
1748
|
};
|
|
2090
1749
|
return response;
|
|
2091
1750
|
}, "de_DeleteCustomKeyStoreCommand");
|
|
2092
|
-
var de_DeleteCustomKeyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2093
|
-
const parsedOutput = {
|
|
2094
|
-
...output,
|
|
2095
|
-
body: await parseErrorBody(output.body, context)
|
|
2096
|
-
};
|
|
2097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2098
|
-
switch (errorCode) {
|
|
2099
|
-
case "CustomKeyStoreHasCMKsException":
|
|
2100
|
-
case "com.amazonaws.kms#CustomKeyStoreHasCMKsException":
|
|
2101
|
-
throw await de_CustomKeyStoreHasCMKsExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "CustomKeyStoreInvalidStateException":
|
|
2103
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
2104
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "CustomKeyStoreNotFoundException":
|
|
2106
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
2107
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "KMSInternalException":
|
|
2109
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2110
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody,
|
|
2116
|
-
errorCode
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
}, "de_DeleteCustomKeyStoreCommandError");
|
|
2120
1751
|
var de_DeleteImportedKeyMaterialCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2121
1752
|
if (output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1753
|
+
return de_CommandError(output, context);
|
|
2123
1754
|
}
|
|
2124
1755
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2125
1756
|
const response = {
|
|
@@ -2127,43 +1758,9 @@ var de_DeleteImportedKeyMaterialCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2127
1758
|
};
|
|
2128
1759
|
return response;
|
|
2129
1760
|
}, "de_DeleteImportedKeyMaterialCommand");
|
|
2130
|
-
var de_DeleteImportedKeyMaterialCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context)
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "DependencyTimeoutException":
|
|
2138
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2139
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InvalidArnException":
|
|
2141
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2142
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "KMSInternalException":
|
|
2144
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2145
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "KMSInvalidStateException":
|
|
2147
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2148
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "NotFoundException":
|
|
2150
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2151
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2152
|
-
case "UnsupportedOperationException":
|
|
2153
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2154
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2155
|
-
default:
|
|
2156
|
-
const parsedBody = parsedOutput.body;
|
|
2157
|
-
return throwDefaultError({
|
|
2158
|
-
output,
|
|
2159
|
-
parsedBody,
|
|
2160
|
-
errorCode
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
}, "de_DeleteImportedKeyMaterialCommandError");
|
|
2164
1761
|
var de_DescribeCustomKeyStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2165
1762
|
if (output.statusCode >= 300) {
|
|
2166
|
-
return
|
|
1763
|
+
return de_CommandError(output, context);
|
|
2167
1764
|
}
|
|
2168
1765
|
const data = await parseBody(output.body, context);
|
|
2169
1766
|
let contents = {};
|
|
@@ -2174,34 +1771,9 @@ var de_DescribeCustomKeyStoresCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2174
1771
|
};
|
|
2175
1772
|
return response;
|
|
2176
1773
|
}, "de_DescribeCustomKeyStoresCommand");
|
|
2177
|
-
var de_DescribeCustomKeyStoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2178
|
-
const parsedOutput = {
|
|
2179
|
-
...output,
|
|
2180
|
-
body: await parseErrorBody(output.body, context)
|
|
2181
|
-
};
|
|
2182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2183
|
-
switch (errorCode) {
|
|
2184
|
-
case "CustomKeyStoreNotFoundException":
|
|
2185
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
2186
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "InvalidMarkerException":
|
|
2188
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
2189
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "KMSInternalException":
|
|
2191
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2192
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
return throwDefaultError({
|
|
2196
|
-
output,
|
|
2197
|
-
parsedBody,
|
|
2198
|
-
errorCode
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
}, "de_DescribeCustomKeyStoresCommandError");
|
|
2202
1774
|
var de_DescribeKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2203
1775
|
if (output.statusCode >= 300) {
|
|
2204
|
-
return
|
|
1776
|
+
return de_CommandError(output, context);
|
|
2205
1777
|
}
|
|
2206
1778
|
const data = await parseBody(output.body, context);
|
|
2207
1779
|
let contents = {};
|
|
@@ -2212,37 +1784,9 @@ var de_DescribeKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2212
1784
|
};
|
|
2213
1785
|
return response;
|
|
2214
1786
|
}, "de_DescribeKeyCommand");
|
|
2215
|
-
var de_DescribeKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
|
-
const parsedOutput = {
|
|
2217
|
-
...output,
|
|
2218
|
-
body: await parseErrorBody(output.body, context)
|
|
2219
|
-
};
|
|
2220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2221
|
-
switch (errorCode) {
|
|
2222
|
-
case "DependencyTimeoutException":
|
|
2223
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2224
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "InvalidArnException":
|
|
2226
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2227
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "KMSInternalException":
|
|
2229
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2230
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2231
|
-
case "NotFoundException":
|
|
2232
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2233
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2234
|
-
default:
|
|
2235
|
-
const parsedBody = parsedOutput.body;
|
|
2236
|
-
return throwDefaultError({
|
|
2237
|
-
output,
|
|
2238
|
-
parsedBody,
|
|
2239
|
-
errorCode
|
|
2240
|
-
});
|
|
2241
|
-
}
|
|
2242
|
-
}, "de_DescribeKeyCommandError");
|
|
2243
1787
|
var de_DisableKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2244
1788
|
if (output.statusCode >= 300) {
|
|
2245
|
-
return
|
|
1789
|
+
return de_CommandError(output, context);
|
|
2246
1790
|
}
|
|
2247
1791
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2248
1792
|
const response = {
|
|
@@ -2250,40 +1794,9 @@ var de_DisableKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2250
1794
|
};
|
|
2251
1795
|
return response;
|
|
2252
1796
|
}, "de_DisableKeyCommand");
|
|
2253
|
-
var de_DisableKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2254
|
-
const parsedOutput = {
|
|
2255
|
-
...output,
|
|
2256
|
-
body: await parseErrorBody(output.body, context)
|
|
2257
|
-
};
|
|
2258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2259
|
-
switch (errorCode) {
|
|
2260
|
-
case "DependencyTimeoutException":
|
|
2261
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2262
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "InvalidArnException":
|
|
2264
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2265
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "KMSInternalException":
|
|
2267
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2268
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2269
|
-
case "KMSInvalidStateException":
|
|
2270
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2271
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2272
|
-
case "NotFoundException":
|
|
2273
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2274
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2275
|
-
default:
|
|
2276
|
-
const parsedBody = parsedOutput.body;
|
|
2277
|
-
return throwDefaultError({
|
|
2278
|
-
output,
|
|
2279
|
-
parsedBody,
|
|
2280
|
-
errorCode
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
}, "de_DisableKeyCommandError");
|
|
2284
1797
|
var de_DisableKeyRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2285
1798
|
if (output.statusCode >= 300) {
|
|
2286
|
-
return
|
|
1799
|
+
return de_CommandError(output, context);
|
|
2287
1800
|
}
|
|
2288
1801
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2289
1802
|
const response = {
|
|
@@ -2291,46 +1804,9 @@ var de_DisableKeyRotationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2291
1804
|
};
|
|
2292
1805
|
return response;
|
|
2293
1806
|
}, "de_DisableKeyRotationCommand");
|
|
2294
|
-
var de_DisableKeyRotationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2295
|
-
const parsedOutput = {
|
|
2296
|
-
...output,
|
|
2297
|
-
body: await parseErrorBody(output.body, context)
|
|
2298
|
-
};
|
|
2299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2300
|
-
switch (errorCode) {
|
|
2301
|
-
case "DependencyTimeoutException":
|
|
2302
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2303
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "DisabledException":
|
|
2305
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2306
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "InvalidArnException":
|
|
2308
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2309
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "KMSInternalException":
|
|
2311
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2312
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "KMSInvalidStateException":
|
|
2314
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2315
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "NotFoundException":
|
|
2317
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2318
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "UnsupportedOperationException":
|
|
2320
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2321
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2322
|
-
default:
|
|
2323
|
-
const parsedBody = parsedOutput.body;
|
|
2324
|
-
return throwDefaultError({
|
|
2325
|
-
output,
|
|
2326
|
-
parsedBody,
|
|
2327
|
-
errorCode
|
|
2328
|
-
});
|
|
2329
|
-
}
|
|
2330
|
-
}, "de_DisableKeyRotationCommandError");
|
|
2331
1807
|
var de_DisconnectCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2332
1808
|
if (output.statusCode >= 300) {
|
|
2333
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
2334
1810
|
}
|
|
2335
1811
|
const data = await parseBody(output.body, context);
|
|
2336
1812
|
let contents = {};
|
|
@@ -2341,78 +1817,19 @@ var de_DisconnectCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2341
1817
|
};
|
|
2342
1818
|
return response;
|
|
2343
1819
|
}, "de_DisconnectCustomKeyStoreCommand");
|
|
2344
|
-
var
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
const
|
|
2350
|
-
|
|
2351
|
-
case "CustomKeyStoreInvalidStateException":
|
|
2352
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
2353
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "CustomKeyStoreNotFoundException":
|
|
2355
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
2356
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "KMSInternalException":
|
|
2358
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2359
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2360
|
-
default:
|
|
2361
|
-
const parsedBody = parsedOutput.body;
|
|
2362
|
-
return throwDefaultError({
|
|
2363
|
-
output,
|
|
2364
|
-
parsedBody,
|
|
2365
|
-
errorCode
|
|
2366
|
-
});
|
|
2367
|
-
}
|
|
2368
|
-
}, "de_DisconnectCustomKeyStoreCommandError");
|
|
2369
|
-
var de_EnableKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
|
-
if (output.statusCode >= 300) {
|
|
2371
|
-
return de_EnableKeyCommandError(output, context);
|
|
2372
|
-
}
|
|
2373
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2374
|
-
const response = {
|
|
2375
|
-
$metadata: deserializeMetadata(output)
|
|
1820
|
+
var de_EnableKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1821
|
+
if (output.statusCode >= 300) {
|
|
1822
|
+
return de_CommandError(output, context);
|
|
1823
|
+
}
|
|
1824
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1825
|
+
const response = {
|
|
1826
|
+
$metadata: deserializeMetadata(output)
|
|
2376
1827
|
};
|
|
2377
1828
|
return response;
|
|
2378
1829
|
}, "de_EnableKeyCommand");
|
|
2379
|
-
var de_EnableKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2380
|
-
const parsedOutput = {
|
|
2381
|
-
...output,
|
|
2382
|
-
body: await parseErrorBody(output.body, context)
|
|
2383
|
-
};
|
|
2384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2385
|
-
switch (errorCode) {
|
|
2386
|
-
case "DependencyTimeoutException":
|
|
2387
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2388
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "InvalidArnException":
|
|
2390
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2391
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "KMSInternalException":
|
|
2393
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2394
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "KMSInvalidStateException":
|
|
2396
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2397
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "LimitExceededException":
|
|
2399
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
2400
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "NotFoundException":
|
|
2402
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2403
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2404
|
-
default:
|
|
2405
|
-
const parsedBody = parsedOutput.body;
|
|
2406
|
-
return throwDefaultError({
|
|
2407
|
-
output,
|
|
2408
|
-
parsedBody,
|
|
2409
|
-
errorCode
|
|
2410
|
-
});
|
|
2411
|
-
}
|
|
2412
|
-
}, "de_EnableKeyCommandError");
|
|
2413
1830
|
var de_EnableKeyRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2414
1831
|
if (output.statusCode >= 300) {
|
|
2415
|
-
return
|
|
1832
|
+
return de_CommandError(output, context);
|
|
2416
1833
|
}
|
|
2417
1834
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2418
1835
|
const response = {
|
|
@@ -2420,46 +1837,9 @@ var de_EnableKeyRotationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2420
1837
|
};
|
|
2421
1838
|
return response;
|
|
2422
1839
|
}, "de_EnableKeyRotationCommand");
|
|
2423
|
-
var de_EnableKeyRotationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2424
|
-
const parsedOutput = {
|
|
2425
|
-
...output,
|
|
2426
|
-
body: await parseErrorBody(output.body, context)
|
|
2427
|
-
};
|
|
2428
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2429
|
-
switch (errorCode) {
|
|
2430
|
-
case "DependencyTimeoutException":
|
|
2431
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2432
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "DisabledException":
|
|
2434
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2435
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "InvalidArnException":
|
|
2437
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2438
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "KMSInternalException":
|
|
2440
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2441
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "KMSInvalidStateException":
|
|
2443
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2444
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "NotFoundException":
|
|
2446
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2447
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "UnsupportedOperationException":
|
|
2449
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2450
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2451
|
-
default:
|
|
2452
|
-
const parsedBody = parsedOutput.body;
|
|
2453
|
-
return throwDefaultError({
|
|
2454
|
-
output,
|
|
2455
|
-
parsedBody,
|
|
2456
|
-
errorCode
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
}, "de_EnableKeyRotationCommandError");
|
|
2460
1840
|
var de_EncryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2461
1841
|
if (output.statusCode >= 300) {
|
|
2462
|
-
return
|
|
1842
|
+
return de_CommandError(output, context);
|
|
2463
1843
|
}
|
|
2464
1844
|
const data = await parseBody(output.body, context);
|
|
2465
1845
|
let contents = {};
|
|
@@ -2470,52 +1850,9 @@ var de_EncryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2470
1850
|
};
|
|
2471
1851
|
return response;
|
|
2472
1852
|
}, "de_EncryptCommand");
|
|
2473
|
-
var de_EncryptCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2474
|
-
const parsedOutput = {
|
|
2475
|
-
...output,
|
|
2476
|
-
body: await parseErrorBody(output.body, context)
|
|
2477
|
-
};
|
|
2478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
|
-
switch (errorCode) {
|
|
2480
|
-
case "DependencyTimeoutException":
|
|
2481
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2482
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "DisabledException":
|
|
2484
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2485
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "DryRunOperationException":
|
|
2487
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2488
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "InvalidGrantTokenException":
|
|
2490
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2491
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "InvalidKeyUsageException":
|
|
2493
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2494
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "KMSInternalException":
|
|
2496
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2497
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "KMSInvalidStateException":
|
|
2499
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2500
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "KeyUnavailableException":
|
|
2502
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2503
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "NotFoundException":
|
|
2505
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2506
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2507
|
-
default:
|
|
2508
|
-
const parsedBody = parsedOutput.body;
|
|
2509
|
-
return throwDefaultError({
|
|
2510
|
-
output,
|
|
2511
|
-
parsedBody,
|
|
2512
|
-
errorCode
|
|
2513
|
-
});
|
|
2514
|
-
}
|
|
2515
|
-
}, "de_EncryptCommandError");
|
|
2516
1853
|
var de_GenerateDataKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
1854
|
if (output.statusCode >= 300) {
|
|
2518
|
-
return
|
|
1855
|
+
return de_CommandError(output, context);
|
|
2519
1856
|
}
|
|
2520
1857
|
const data = await parseBody(output.body, context);
|
|
2521
1858
|
let contents = {};
|
|
@@ -2526,52 +1863,9 @@ var de_GenerateDataKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2526
1863
|
};
|
|
2527
1864
|
return response;
|
|
2528
1865
|
}, "de_GenerateDataKeyCommand");
|
|
2529
|
-
var de_GenerateDataKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2530
|
-
const parsedOutput = {
|
|
2531
|
-
...output,
|
|
2532
|
-
body: await parseErrorBody(output.body, context)
|
|
2533
|
-
};
|
|
2534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
-
switch (errorCode) {
|
|
2536
|
-
case "DependencyTimeoutException":
|
|
2537
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2538
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "DisabledException":
|
|
2540
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2541
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "DryRunOperationException":
|
|
2543
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2544
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "InvalidGrantTokenException":
|
|
2546
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2547
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InvalidKeyUsageException":
|
|
2549
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2550
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "KMSInternalException":
|
|
2552
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2553
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "KMSInvalidStateException":
|
|
2555
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2556
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "KeyUnavailableException":
|
|
2558
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2559
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2560
|
-
case "NotFoundException":
|
|
2561
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2562
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2563
|
-
default:
|
|
2564
|
-
const parsedBody = parsedOutput.body;
|
|
2565
|
-
return throwDefaultError({
|
|
2566
|
-
output,
|
|
2567
|
-
parsedBody,
|
|
2568
|
-
errorCode
|
|
2569
|
-
});
|
|
2570
|
-
}
|
|
2571
|
-
}, "de_GenerateDataKeyCommandError");
|
|
2572
1866
|
var de_GenerateDataKeyPairCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2573
1867
|
if (output.statusCode >= 300) {
|
|
2574
|
-
return
|
|
1868
|
+
return de_CommandError(output, context);
|
|
2575
1869
|
}
|
|
2576
1870
|
const data = await parseBody(output.body, context);
|
|
2577
1871
|
let contents = {};
|
|
@@ -2582,55 +1876,9 @@ var de_GenerateDataKeyPairCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2582
1876
|
};
|
|
2583
1877
|
return response;
|
|
2584
1878
|
}, "de_GenerateDataKeyPairCommand");
|
|
2585
|
-
var de_GenerateDataKeyPairCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2586
|
-
const parsedOutput = {
|
|
2587
|
-
...output,
|
|
2588
|
-
body: await parseErrorBody(output.body, context)
|
|
2589
|
-
};
|
|
2590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
-
switch (errorCode) {
|
|
2592
|
-
case "DependencyTimeoutException":
|
|
2593
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2594
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "DisabledException":
|
|
2596
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2597
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "DryRunOperationException":
|
|
2599
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2600
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "InvalidGrantTokenException":
|
|
2602
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2603
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "InvalidKeyUsageException":
|
|
2605
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2606
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "KMSInternalException":
|
|
2608
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2609
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "KMSInvalidStateException":
|
|
2611
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2612
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "KeyUnavailableException":
|
|
2614
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2615
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "NotFoundException":
|
|
2617
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2618
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "UnsupportedOperationException":
|
|
2620
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2621
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
return throwDefaultError({
|
|
2625
|
-
output,
|
|
2626
|
-
parsedBody,
|
|
2627
|
-
errorCode
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
}, "de_GenerateDataKeyPairCommandError");
|
|
2631
1879
|
var de_GenerateDataKeyPairWithoutPlaintextCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
1880
|
if (output.statusCode >= 300) {
|
|
2633
|
-
return
|
|
1881
|
+
return de_CommandError(output, context);
|
|
2634
1882
|
}
|
|
2635
1883
|
const data = await parseBody(output.body, context);
|
|
2636
1884
|
let contents = {};
|
|
@@ -2641,55 +1889,9 @@ var de_GenerateDataKeyPairWithoutPlaintextCommand = /* @__PURE__ */ __name(async
|
|
|
2641
1889
|
};
|
|
2642
1890
|
return response;
|
|
2643
1891
|
}, "de_GenerateDataKeyPairWithoutPlaintextCommand");
|
|
2644
|
-
var de_GenerateDataKeyPairWithoutPlaintextCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2645
|
-
const parsedOutput = {
|
|
2646
|
-
...output,
|
|
2647
|
-
body: await parseErrorBody(output.body, context)
|
|
2648
|
-
};
|
|
2649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
|
-
switch (errorCode) {
|
|
2651
|
-
case "DependencyTimeoutException":
|
|
2652
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2653
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "DisabledException":
|
|
2655
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2656
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "DryRunOperationException":
|
|
2658
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2659
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "InvalidGrantTokenException":
|
|
2661
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2662
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "InvalidKeyUsageException":
|
|
2664
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2665
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "KMSInternalException":
|
|
2667
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2668
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "KMSInvalidStateException":
|
|
2670
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2671
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "KeyUnavailableException":
|
|
2673
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2674
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "NotFoundException":
|
|
2676
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2677
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "UnsupportedOperationException":
|
|
2679
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2680
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2681
|
-
default:
|
|
2682
|
-
const parsedBody = parsedOutput.body;
|
|
2683
|
-
return throwDefaultError({
|
|
2684
|
-
output,
|
|
2685
|
-
parsedBody,
|
|
2686
|
-
errorCode
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
}, "de_GenerateDataKeyPairWithoutPlaintextCommandError");
|
|
2690
1892
|
var de_GenerateDataKeyWithoutPlaintextCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2691
1893
|
if (output.statusCode >= 300) {
|
|
2692
|
-
return
|
|
1894
|
+
return de_CommandError(output, context);
|
|
2693
1895
|
}
|
|
2694
1896
|
const data = await parseBody(output.body, context);
|
|
2695
1897
|
let contents = {};
|
|
@@ -2700,52 +1902,9 @@ var de_GenerateDataKeyWithoutPlaintextCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2700
1902
|
};
|
|
2701
1903
|
return response;
|
|
2702
1904
|
}, "de_GenerateDataKeyWithoutPlaintextCommand");
|
|
2703
|
-
var de_GenerateDataKeyWithoutPlaintextCommandError = /* @__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 "DependencyTimeoutException":
|
|
2711
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2712
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "DisabledException":
|
|
2714
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2715
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "DryRunOperationException":
|
|
2717
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2718
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "InvalidGrantTokenException":
|
|
2720
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2721
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "InvalidKeyUsageException":
|
|
2723
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2724
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "KMSInternalException":
|
|
2726
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2727
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "KMSInvalidStateException":
|
|
2729
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2730
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "KeyUnavailableException":
|
|
2732
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2733
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2734
|
-
case "NotFoundException":
|
|
2735
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2736
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2737
|
-
default:
|
|
2738
|
-
const parsedBody = parsedOutput.body;
|
|
2739
|
-
return throwDefaultError({
|
|
2740
|
-
output,
|
|
2741
|
-
parsedBody,
|
|
2742
|
-
errorCode
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
}, "de_GenerateDataKeyWithoutPlaintextCommandError");
|
|
2746
1905
|
var de_GenerateMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2747
1906
|
if (output.statusCode >= 300) {
|
|
2748
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
2749
1908
|
}
|
|
2750
1909
|
const data = await parseBody(output.body, context);
|
|
2751
1910
|
let contents = {};
|
|
@@ -2756,49 +1915,9 @@ var de_GenerateMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2756
1915
|
};
|
|
2757
1916
|
return response;
|
|
2758
1917
|
}, "de_GenerateMacCommand");
|
|
2759
|
-
var de_GenerateMacCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2760
|
-
const parsedOutput = {
|
|
2761
|
-
...output,
|
|
2762
|
-
body: await parseErrorBody(output.body, context)
|
|
2763
|
-
};
|
|
2764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
|
-
switch (errorCode) {
|
|
2766
|
-
case "DisabledException":
|
|
2767
|
-
case "com.amazonaws.kms#DisabledException":
|
|
2768
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "DryRunOperationException":
|
|
2770
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
2771
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "InvalidGrantTokenException":
|
|
2773
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
2774
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2775
|
-
case "InvalidKeyUsageException":
|
|
2776
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
2777
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
2778
|
-
case "KMSInternalException":
|
|
2779
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2780
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "KMSInvalidStateException":
|
|
2782
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2783
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2784
|
-
case "KeyUnavailableException":
|
|
2785
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
2786
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
2787
|
-
case "NotFoundException":
|
|
2788
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2789
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2790
|
-
default:
|
|
2791
|
-
const parsedBody = parsedOutput.body;
|
|
2792
|
-
return throwDefaultError({
|
|
2793
|
-
output,
|
|
2794
|
-
parsedBody,
|
|
2795
|
-
errorCode
|
|
2796
|
-
});
|
|
2797
|
-
}
|
|
2798
|
-
}, "de_GenerateMacCommandError");
|
|
2799
1918
|
var de_GenerateRandomCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2800
1919
|
if (output.statusCode >= 300) {
|
|
2801
|
-
return
|
|
1920
|
+
return de_CommandError(output, context);
|
|
2802
1921
|
}
|
|
2803
1922
|
const data = await parseBody(output.body, context);
|
|
2804
1923
|
let contents = {};
|
|
@@ -2809,40 +1928,9 @@ var de_GenerateRandomCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2809
1928
|
};
|
|
2810
1929
|
return response;
|
|
2811
1930
|
}, "de_GenerateRandomCommand");
|
|
2812
|
-
var de_GenerateRandomCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2813
|
-
const parsedOutput = {
|
|
2814
|
-
...output,
|
|
2815
|
-
body: await parseErrorBody(output.body, context)
|
|
2816
|
-
};
|
|
2817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
|
-
switch (errorCode) {
|
|
2819
|
-
case "CustomKeyStoreInvalidStateException":
|
|
2820
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
2821
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "CustomKeyStoreNotFoundException":
|
|
2823
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
2824
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "DependencyTimeoutException":
|
|
2826
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2827
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "KMSInternalException":
|
|
2829
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2830
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "UnsupportedOperationException":
|
|
2832
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2833
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
}, "de_GenerateRandomCommandError");
|
|
2843
1931
|
var de_GetKeyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2844
1932
|
if (output.statusCode >= 300) {
|
|
2845
|
-
return
|
|
1933
|
+
return de_CommandError(output, context);
|
|
2846
1934
|
}
|
|
2847
1935
|
const data = await parseBody(output.body, context);
|
|
2848
1936
|
let contents = {};
|
|
@@ -2853,40 +1941,9 @@ var de_GetKeyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2853
1941
|
};
|
|
2854
1942
|
return response;
|
|
2855
1943
|
}, "de_GetKeyPolicyCommand");
|
|
2856
|
-
var de_GetKeyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2857
|
-
const parsedOutput = {
|
|
2858
|
-
...output,
|
|
2859
|
-
body: await parseErrorBody(output.body, context)
|
|
2860
|
-
};
|
|
2861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2862
|
-
switch (errorCode) {
|
|
2863
|
-
case "DependencyTimeoutException":
|
|
2864
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2865
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2866
|
-
case "InvalidArnException":
|
|
2867
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2868
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2869
|
-
case "KMSInternalException":
|
|
2870
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2871
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2872
|
-
case "KMSInvalidStateException":
|
|
2873
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2874
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2875
|
-
case "NotFoundException":
|
|
2876
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2877
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2878
|
-
default:
|
|
2879
|
-
const parsedBody = parsedOutput.body;
|
|
2880
|
-
return throwDefaultError({
|
|
2881
|
-
output,
|
|
2882
|
-
parsedBody,
|
|
2883
|
-
errorCode
|
|
2884
|
-
});
|
|
2885
|
-
}
|
|
2886
|
-
}, "de_GetKeyPolicyCommandError");
|
|
2887
1944
|
var de_GetKeyRotationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2888
1945
|
if (output.statusCode >= 300) {
|
|
2889
|
-
return
|
|
1946
|
+
return de_CommandError(output, context);
|
|
2890
1947
|
}
|
|
2891
1948
|
const data = await parseBody(output.body, context);
|
|
2892
1949
|
let contents = {};
|
|
@@ -2897,43 +1954,9 @@ var de_GetKeyRotationStatusCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2897
1954
|
};
|
|
2898
1955
|
return response;
|
|
2899
1956
|
}, "de_GetKeyRotationStatusCommand");
|
|
2900
|
-
var de_GetKeyRotationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2901
|
-
const parsedOutput = {
|
|
2902
|
-
...output,
|
|
2903
|
-
body: await parseErrorBody(output.body, context)
|
|
2904
|
-
};
|
|
2905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2906
|
-
switch (errorCode) {
|
|
2907
|
-
case "DependencyTimeoutException":
|
|
2908
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2909
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2910
|
-
case "InvalidArnException":
|
|
2911
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2912
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2913
|
-
case "KMSInternalException":
|
|
2914
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2915
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2916
|
-
case "KMSInvalidStateException":
|
|
2917
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2918
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2919
|
-
case "NotFoundException":
|
|
2920
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2921
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2922
|
-
case "UnsupportedOperationException":
|
|
2923
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2924
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2925
|
-
default:
|
|
2926
|
-
const parsedBody = parsedOutput.body;
|
|
2927
|
-
return throwDefaultError({
|
|
2928
|
-
output,
|
|
2929
|
-
parsedBody,
|
|
2930
|
-
errorCode
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
}, "de_GetKeyRotationStatusCommandError");
|
|
2934
1957
|
var de_GetParametersForImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2935
1958
|
if (output.statusCode >= 300) {
|
|
2936
|
-
return
|
|
1959
|
+
return de_CommandError(output, context);
|
|
2937
1960
|
}
|
|
2938
1961
|
const data = await parseBody(output.body, context);
|
|
2939
1962
|
let contents = {};
|
|
@@ -2944,43 +1967,9 @@ var de_GetParametersForImportCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2944
1967
|
};
|
|
2945
1968
|
return response;
|
|
2946
1969
|
}, "de_GetParametersForImportCommand");
|
|
2947
|
-
var de_GetParametersForImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
|
-
const parsedOutput = {
|
|
2949
|
-
...output,
|
|
2950
|
-
body: await parseErrorBody(output.body, context)
|
|
2951
|
-
};
|
|
2952
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2953
|
-
switch (errorCode) {
|
|
2954
|
-
case "DependencyTimeoutException":
|
|
2955
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2956
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "InvalidArnException":
|
|
2958
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
2959
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "KMSInternalException":
|
|
2961
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
2962
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2963
|
-
case "KMSInvalidStateException":
|
|
2964
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2965
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2966
|
-
case "NotFoundException":
|
|
2967
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
2968
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "UnsupportedOperationException":
|
|
2970
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2971
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2972
|
-
default:
|
|
2973
|
-
const parsedBody = parsedOutput.body;
|
|
2974
|
-
return throwDefaultError({
|
|
2975
|
-
output,
|
|
2976
|
-
parsedBody,
|
|
2977
|
-
errorCode
|
|
2978
|
-
});
|
|
2979
|
-
}
|
|
2980
|
-
}, "de_GetParametersForImportCommandError");
|
|
2981
1970
|
var de_GetPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2982
1971
|
if (output.statusCode >= 300) {
|
|
2983
|
-
return
|
|
1972
|
+
return de_CommandError(output, context);
|
|
2984
1973
|
}
|
|
2985
1974
|
const data = await parseBody(output.body, context);
|
|
2986
1975
|
let contents = {};
|
|
@@ -2991,55 +1980,9 @@ var de_GetPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2991
1980
|
};
|
|
2992
1981
|
return response;
|
|
2993
1982
|
}, "de_GetPublicKeyCommand");
|
|
2994
|
-
var de_GetPublicKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2995
|
-
const parsedOutput = {
|
|
2996
|
-
...output,
|
|
2997
|
-
body: await parseErrorBody(output.body, context)
|
|
2998
|
-
};
|
|
2999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3000
|
-
switch (errorCode) {
|
|
3001
|
-
case "DependencyTimeoutException":
|
|
3002
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3003
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "DisabledException":
|
|
3005
|
-
case "com.amazonaws.kms#DisabledException":
|
|
3006
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "InvalidArnException":
|
|
3008
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3009
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3010
|
-
case "InvalidGrantTokenException":
|
|
3011
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
3012
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "InvalidKeyUsageException":
|
|
3014
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
3015
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "KMSInternalException":
|
|
3017
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3018
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3019
|
-
case "KMSInvalidStateException":
|
|
3020
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3021
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "KeyUnavailableException":
|
|
3023
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
3024
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "NotFoundException":
|
|
3026
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3027
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "UnsupportedOperationException":
|
|
3029
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
3030
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3031
|
-
default:
|
|
3032
|
-
const parsedBody = parsedOutput.body;
|
|
3033
|
-
return throwDefaultError({
|
|
3034
|
-
output,
|
|
3035
|
-
parsedBody,
|
|
3036
|
-
errorCode
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
}, "de_GetPublicKeyCommandError");
|
|
3040
1983
|
var de_ImportKeyMaterialCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
1984
|
if (output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
1985
|
+
return de_CommandError(output, context);
|
|
3043
1986
|
}
|
|
3044
1987
|
const data = await parseBody(output.body, context);
|
|
3045
1988
|
let contents = {};
|
|
@@ -3050,55 +1993,9 @@ var de_ImportKeyMaterialCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3050
1993
|
};
|
|
3051
1994
|
return response;
|
|
3052
1995
|
}, "de_ImportKeyMaterialCommand");
|
|
3053
|
-
var de_ImportKeyMaterialCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3054
|
-
const parsedOutput = {
|
|
3055
|
-
...output,
|
|
3056
|
-
body: await parseErrorBody(output.body, context)
|
|
3057
|
-
};
|
|
3058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3059
|
-
switch (errorCode) {
|
|
3060
|
-
case "DependencyTimeoutException":
|
|
3061
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3062
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ExpiredImportTokenException":
|
|
3064
|
-
case "com.amazonaws.kms#ExpiredImportTokenException":
|
|
3065
|
-
throw await de_ExpiredImportTokenExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "IncorrectKeyMaterialException":
|
|
3067
|
-
case "com.amazonaws.kms#IncorrectKeyMaterialException":
|
|
3068
|
-
throw await de_IncorrectKeyMaterialExceptionRes(parsedOutput, context);
|
|
3069
|
-
case "InvalidArnException":
|
|
3070
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3071
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3072
|
-
case "InvalidCiphertextException":
|
|
3073
|
-
case "com.amazonaws.kms#InvalidCiphertextException":
|
|
3074
|
-
throw await de_InvalidCiphertextExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InvalidImportTokenException":
|
|
3076
|
-
case "com.amazonaws.kms#InvalidImportTokenException":
|
|
3077
|
-
throw await de_InvalidImportTokenExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "KMSInternalException":
|
|
3079
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3080
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "KMSInvalidStateException":
|
|
3082
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3083
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "NotFoundException":
|
|
3085
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3086
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3087
|
-
case "UnsupportedOperationException":
|
|
3088
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
3089
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3090
|
-
default:
|
|
3091
|
-
const parsedBody = parsedOutput.body;
|
|
3092
|
-
return throwDefaultError({
|
|
3093
|
-
output,
|
|
3094
|
-
parsedBody,
|
|
3095
|
-
errorCode
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
}, "de_ImportKeyMaterialCommandError");
|
|
3099
1996
|
var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3100
1997
|
if (output.statusCode >= 300) {
|
|
3101
|
-
return
|
|
1998
|
+
return de_CommandError(output, context);
|
|
3102
1999
|
}
|
|
3103
2000
|
const data = await parseBody(output.body, context);
|
|
3104
2001
|
let contents = {};
|
|
@@ -3109,40 +2006,9 @@ var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3109
2006
|
};
|
|
3110
2007
|
return response;
|
|
3111
2008
|
}, "de_ListAliasesCommand");
|
|
3112
|
-
var de_ListAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3113
|
-
const parsedOutput = {
|
|
3114
|
-
...output,
|
|
3115
|
-
body: await parseErrorBody(output.body, context)
|
|
3116
|
-
};
|
|
3117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3118
|
-
switch (errorCode) {
|
|
3119
|
-
case "DependencyTimeoutException":
|
|
3120
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3121
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "InvalidArnException":
|
|
3123
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3124
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3125
|
-
case "InvalidMarkerException":
|
|
3126
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
3127
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
3128
|
-
case "KMSInternalException":
|
|
3129
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3130
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "NotFoundException":
|
|
3132
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3133
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3134
|
-
default:
|
|
3135
|
-
const parsedBody = parsedOutput.body;
|
|
3136
|
-
return throwDefaultError({
|
|
3137
|
-
output,
|
|
3138
|
-
parsedBody,
|
|
3139
|
-
errorCode
|
|
3140
|
-
});
|
|
3141
|
-
}
|
|
3142
|
-
}, "de_ListAliasesCommandError");
|
|
3143
2009
|
var de_ListGrantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3144
2010
|
if (output.statusCode >= 300) {
|
|
3145
|
-
return
|
|
2011
|
+
return de_CommandError(output, context);
|
|
3146
2012
|
}
|
|
3147
2013
|
const data = await parseBody(output.body, context);
|
|
3148
2014
|
let contents = {};
|
|
@@ -3153,46 +2019,9 @@ var de_ListGrantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3153
2019
|
};
|
|
3154
2020
|
return response;
|
|
3155
2021
|
}, "de_ListGrantsCommand");
|
|
3156
|
-
var de_ListGrantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3157
|
-
const parsedOutput = {
|
|
3158
|
-
...output,
|
|
3159
|
-
body: await parseErrorBody(output.body, context)
|
|
3160
|
-
};
|
|
3161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3162
|
-
switch (errorCode) {
|
|
3163
|
-
case "DependencyTimeoutException":
|
|
3164
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3165
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "InvalidArnException":
|
|
3167
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3168
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "InvalidGrantIdException":
|
|
3170
|
-
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
3171
|
-
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "InvalidMarkerException":
|
|
3173
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
3174
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "KMSInternalException":
|
|
3176
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3177
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "KMSInvalidStateException":
|
|
3179
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3180
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "NotFoundException":
|
|
3182
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3183
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
-
default:
|
|
3185
|
-
const parsedBody = parsedOutput.body;
|
|
3186
|
-
return throwDefaultError({
|
|
3187
|
-
output,
|
|
3188
|
-
parsedBody,
|
|
3189
|
-
errorCode
|
|
3190
|
-
});
|
|
3191
|
-
}
|
|
3192
|
-
}, "de_ListGrantsCommandError");
|
|
3193
2022
|
var de_ListKeyPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3194
2023
|
if (output.statusCode >= 300) {
|
|
3195
|
-
return
|
|
2024
|
+
return de_CommandError(output, context);
|
|
3196
2025
|
}
|
|
3197
2026
|
const data = await parseBody(output.body, context);
|
|
3198
2027
|
let contents = {};
|
|
@@ -3203,40 +2032,9 @@ var de_ListKeyPoliciesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3203
2032
|
};
|
|
3204
2033
|
return response;
|
|
3205
2034
|
}, "de_ListKeyPoliciesCommand");
|
|
3206
|
-
var de_ListKeyPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3207
|
-
const parsedOutput = {
|
|
3208
|
-
...output,
|
|
3209
|
-
body: await parseErrorBody(output.body, context)
|
|
3210
|
-
};
|
|
3211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
|
-
switch (errorCode) {
|
|
3213
|
-
case "DependencyTimeoutException":
|
|
3214
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3215
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "InvalidArnException":
|
|
3217
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3218
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "KMSInternalException":
|
|
3220
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3221
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "KMSInvalidStateException":
|
|
3223
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3224
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "NotFoundException":
|
|
3226
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3227
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3228
|
-
default:
|
|
3229
|
-
const parsedBody = parsedOutput.body;
|
|
3230
|
-
return throwDefaultError({
|
|
3231
|
-
output,
|
|
3232
|
-
parsedBody,
|
|
3233
|
-
errorCode
|
|
3234
|
-
});
|
|
3235
|
-
}
|
|
3236
|
-
}, "de_ListKeyPoliciesCommandError");
|
|
3237
2035
|
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3238
2036
|
if (output.statusCode >= 300) {
|
|
3239
|
-
return
|
|
2037
|
+
return de_CommandError(output, context);
|
|
3240
2038
|
}
|
|
3241
2039
|
const data = await parseBody(output.body, context);
|
|
3242
2040
|
let contents = {};
|
|
@@ -3247,34 +2045,9 @@ var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3247
2045
|
};
|
|
3248
2046
|
return response;
|
|
3249
2047
|
}, "de_ListKeysCommand");
|
|
3250
|
-
var de_ListKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3251
|
-
const parsedOutput = {
|
|
3252
|
-
...output,
|
|
3253
|
-
body: await parseErrorBody(output.body, context)
|
|
3254
|
-
};
|
|
3255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
|
-
switch (errorCode) {
|
|
3257
|
-
case "DependencyTimeoutException":
|
|
3258
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3259
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "InvalidMarkerException":
|
|
3261
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
3262
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "KMSInternalException":
|
|
3264
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3265
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3266
|
-
default:
|
|
3267
|
-
const parsedBody = parsedOutput.body;
|
|
3268
|
-
return throwDefaultError({
|
|
3269
|
-
output,
|
|
3270
|
-
parsedBody,
|
|
3271
|
-
errorCode
|
|
3272
|
-
});
|
|
3273
|
-
}
|
|
3274
|
-
}, "de_ListKeysCommandError");
|
|
3275
2048
|
var de_ListResourceTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3276
2049
|
if (output.statusCode >= 300) {
|
|
3277
|
-
return
|
|
2050
|
+
return de_CommandError(output, context);
|
|
3278
2051
|
}
|
|
3279
2052
|
const data = await parseBody(output.body, context);
|
|
3280
2053
|
let contents = {};
|
|
@@ -3285,37 +2058,9 @@ var de_ListResourceTagsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3285
2058
|
};
|
|
3286
2059
|
return response;
|
|
3287
2060
|
}, "de_ListResourceTagsCommand");
|
|
3288
|
-
var de_ListResourceTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context)
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "InvalidArnException":
|
|
3296
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3297
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "InvalidMarkerException":
|
|
3299
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
3300
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "KMSInternalException":
|
|
3302
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3303
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "NotFoundException":
|
|
3305
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3306
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3307
|
-
default:
|
|
3308
|
-
const parsedBody = parsedOutput.body;
|
|
3309
|
-
return throwDefaultError({
|
|
3310
|
-
output,
|
|
3311
|
-
parsedBody,
|
|
3312
|
-
errorCode
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
3315
|
-
}, "de_ListResourceTagsCommandError");
|
|
3316
2061
|
var de_ListRetirableGrantsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3317
2062
|
if (output.statusCode >= 300) {
|
|
3318
|
-
return
|
|
2063
|
+
return de_CommandError(output, context);
|
|
3319
2064
|
}
|
|
3320
2065
|
const data = await parseBody(output.body, context);
|
|
3321
2066
|
let contents = {};
|
|
@@ -3326,40 +2071,9 @@ var de_ListRetirableGrantsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3326
2071
|
};
|
|
3327
2072
|
return response;
|
|
3328
2073
|
}, "de_ListRetirableGrantsCommand");
|
|
3329
|
-
var de_ListRetirableGrantsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3330
|
-
const parsedOutput = {
|
|
3331
|
-
...output,
|
|
3332
|
-
body: await parseErrorBody(output.body, context)
|
|
3333
|
-
};
|
|
3334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3335
|
-
switch (errorCode) {
|
|
3336
|
-
case "DependencyTimeoutException":
|
|
3337
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3338
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "InvalidArnException":
|
|
3340
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3341
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "InvalidMarkerException":
|
|
3343
|
-
case "com.amazonaws.kms#InvalidMarkerException":
|
|
3344
|
-
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "KMSInternalException":
|
|
3346
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3347
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "NotFoundException":
|
|
3349
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3350
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3351
|
-
default:
|
|
3352
|
-
const parsedBody = parsedOutput.body;
|
|
3353
|
-
return throwDefaultError({
|
|
3354
|
-
output,
|
|
3355
|
-
parsedBody,
|
|
3356
|
-
errorCode
|
|
3357
|
-
});
|
|
3358
|
-
}
|
|
3359
|
-
}, "de_ListRetirableGrantsCommandError");
|
|
3360
2074
|
var de_PutKeyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3361
2075
|
if (output.statusCode >= 300) {
|
|
3362
|
-
return
|
|
2076
|
+
return de_CommandError(output, context);
|
|
3363
2077
|
}
|
|
3364
2078
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3365
2079
|
const response = {
|
|
@@ -3367,49 +2081,9 @@ var de_PutKeyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3367
2081
|
};
|
|
3368
2082
|
return response;
|
|
3369
2083
|
}, "de_PutKeyPolicyCommand");
|
|
3370
|
-
var de_PutKeyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3371
|
-
const parsedOutput = {
|
|
3372
|
-
...output,
|
|
3373
|
-
body: await parseErrorBody(output.body, context)
|
|
3374
|
-
};
|
|
3375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3376
|
-
switch (errorCode) {
|
|
3377
|
-
case "DependencyTimeoutException":
|
|
3378
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3379
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "InvalidArnException":
|
|
3381
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3382
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "KMSInternalException":
|
|
3384
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3385
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "KMSInvalidStateException":
|
|
3387
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3388
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "LimitExceededException":
|
|
3390
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
3391
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3392
|
-
case "MalformedPolicyDocumentException":
|
|
3393
|
-
case "com.amazonaws.kms#MalformedPolicyDocumentException":
|
|
3394
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
3395
|
-
case "NotFoundException":
|
|
3396
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3397
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3398
|
-
case "UnsupportedOperationException":
|
|
3399
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
3400
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3401
|
-
default:
|
|
3402
|
-
const parsedBody = parsedOutput.body;
|
|
3403
|
-
return throwDefaultError({
|
|
3404
|
-
output,
|
|
3405
|
-
parsedBody,
|
|
3406
|
-
errorCode
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
}, "de_PutKeyPolicyCommandError");
|
|
3410
2084
|
var de_ReEncryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3411
2085
|
if (output.statusCode >= 300) {
|
|
3412
|
-
return
|
|
2086
|
+
return de_CommandError(output, context);
|
|
3413
2087
|
}
|
|
3414
2088
|
const data = await parseBody(output.body, context);
|
|
3415
2089
|
let contents = {};
|
|
@@ -3420,117 +2094,22 @@ var de_ReEncryptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3420
2094
|
};
|
|
3421
2095
|
return response;
|
|
3422
2096
|
}, "de_ReEncryptCommand");
|
|
3423
|
-
var
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
case "DisabledException":
|
|
3434
|
-
case "com.amazonaws.kms#DisabledException":
|
|
3435
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
3436
|
-
case "DryRunOperationException":
|
|
3437
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
3438
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
3439
|
-
case "IncorrectKeyException":
|
|
3440
|
-
case "com.amazonaws.kms#IncorrectKeyException":
|
|
3441
|
-
throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
|
|
3442
|
-
case "InvalidCiphertextException":
|
|
3443
|
-
case "com.amazonaws.kms#InvalidCiphertextException":
|
|
3444
|
-
throw await de_InvalidCiphertextExceptionRes(parsedOutput, context);
|
|
3445
|
-
case "InvalidGrantTokenException":
|
|
3446
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
3447
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
3448
|
-
case "InvalidKeyUsageException":
|
|
3449
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
3450
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "KMSInternalException":
|
|
3452
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3453
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "KMSInvalidStateException":
|
|
3455
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3456
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "KeyUnavailableException":
|
|
3458
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
3459
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "NotFoundException":
|
|
3461
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3462
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3463
|
-
default:
|
|
3464
|
-
const parsedBody = parsedOutput.body;
|
|
3465
|
-
return throwDefaultError({
|
|
3466
|
-
output,
|
|
3467
|
-
parsedBody,
|
|
3468
|
-
errorCode
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3471
|
-
}, "de_ReEncryptCommandError");
|
|
3472
|
-
var de_ReplicateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3473
|
-
if (output.statusCode >= 300) {
|
|
3474
|
-
return de_ReplicateKeyCommandError(output, context);
|
|
3475
|
-
}
|
|
3476
|
-
const data = await parseBody(output.body, context);
|
|
3477
|
-
let contents = {};
|
|
3478
|
-
contents = de_ReplicateKeyResponse(data, context);
|
|
3479
|
-
const response = {
|
|
3480
|
-
$metadata: deserializeMetadata(output),
|
|
3481
|
-
...contents
|
|
2097
|
+
var de_ReplicateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
|
+
if (output.statusCode >= 300) {
|
|
2099
|
+
return de_CommandError(output, context);
|
|
2100
|
+
}
|
|
2101
|
+
const data = await parseBody(output.body, context);
|
|
2102
|
+
let contents = {};
|
|
2103
|
+
contents = de_ReplicateKeyResponse(data, context);
|
|
2104
|
+
const response = {
|
|
2105
|
+
$metadata: deserializeMetadata(output),
|
|
2106
|
+
...contents
|
|
3482
2107
|
};
|
|
3483
2108
|
return response;
|
|
3484
2109
|
}, "de_ReplicateKeyCommand");
|
|
3485
|
-
var de_ReplicateKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3486
|
-
const parsedOutput = {
|
|
3487
|
-
...output,
|
|
3488
|
-
body: await parseErrorBody(output.body, context)
|
|
3489
|
-
};
|
|
3490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3491
|
-
switch (errorCode) {
|
|
3492
|
-
case "AlreadyExistsException":
|
|
3493
|
-
case "com.amazonaws.kms#AlreadyExistsException":
|
|
3494
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "DisabledException":
|
|
3496
|
-
case "com.amazonaws.kms#DisabledException":
|
|
3497
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "InvalidArnException":
|
|
3499
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3500
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3501
|
-
case "KMSInternalException":
|
|
3502
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3503
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3504
|
-
case "KMSInvalidStateException":
|
|
3505
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3506
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3507
|
-
case "LimitExceededException":
|
|
3508
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
3509
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3510
|
-
case "MalformedPolicyDocumentException":
|
|
3511
|
-
case "com.amazonaws.kms#MalformedPolicyDocumentException":
|
|
3512
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
3513
|
-
case "NotFoundException":
|
|
3514
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3515
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3516
|
-
case "TagException":
|
|
3517
|
-
case "com.amazonaws.kms#TagException":
|
|
3518
|
-
throw await de_TagExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "UnsupportedOperationException":
|
|
3520
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
3521
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3522
|
-
default:
|
|
3523
|
-
const parsedBody = parsedOutput.body;
|
|
3524
|
-
return throwDefaultError({
|
|
3525
|
-
output,
|
|
3526
|
-
parsedBody,
|
|
3527
|
-
errorCode
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
}, "de_ReplicateKeyCommandError");
|
|
3531
2110
|
var de_RetireGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3532
2111
|
if (output.statusCode >= 300) {
|
|
3533
|
-
return
|
|
2112
|
+
return de_CommandError(output, context);
|
|
3534
2113
|
}
|
|
3535
2114
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3536
2115
|
const response = {
|
|
@@ -3538,49 +2117,9 @@ var de_RetireGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3538
2117
|
};
|
|
3539
2118
|
return response;
|
|
3540
2119
|
}, "de_RetireGrantCommand");
|
|
3541
|
-
var de_RetireGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3542
|
-
const parsedOutput = {
|
|
3543
|
-
...output,
|
|
3544
|
-
body: await parseErrorBody(output.body, context)
|
|
3545
|
-
};
|
|
3546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
|
-
switch (errorCode) {
|
|
3548
|
-
case "DependencyTimeoutException":
|
|
3549
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3550
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3551
|
-
case "DryRunOperationException":
|
|
3552
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
3553
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
3554
|
-
case "InvalidArnException":
|
|
3555
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3556
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3557
|
-
case "InvalidGrantIdException":
|
|
3558
|
-
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
3559
|
-
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
3560
|
-
case "InvalidGrantTokenException":
|
|
3561
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
3562
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
3563
|
-
case "KMSInternalException":
|
|
3564
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3565
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3566
|
-
case "KMSInvalidStateException":
|
|
3567
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3568
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "NotFoundException":
|
|
3570
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3571
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3572
|
-
default:
|
|
3573
|
-
const parsedBody = parsedOutput.body;
|
|
3574
|
-
return throwDefaultError({
|
|
3575
|
-
output,
|
|
3576
|
-
parsedBody,
|
|
3577
|
-
errorCode
|
|
3578
|
-
});
|
|
3579
|
-
}
|
|
3580
|
-
}, "de_RetireGrantCommandError");
|
|
3581
2120
|
var de_RevokeGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3582
2121
|
if (output.statusCode >= 300) {
|
|
3583
|
-
return
|
|
2122
|
+
return de_CommandError(output, context);
|
|
3584
2123
|
}
|
|
3585
2124
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3586
2125
|
const response = {
|
|
@@ -3588,46 +2127,9 @@ var de_RevokeGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3588
2127
|
};
|
|
3589
2128
|
return response;
|
|
3590
2129
|
}, "de_RevokeGrantCommand");
|
|
3591
|
-
var de_RevokeGrantCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3592
|
-
const parsedOutput = {
|
|
3593
|
-
...output,
|
|
3594
|
-
body: await parseErrorBody(output.body, context)
|
|
3595
|
-
};
|
|
3596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3597
|
-
switch (errorCode) {
|
|
3598
|
-
case "DependencyTimeoutException":
|
|
3599
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3600
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3601
|
-
case "DryRunOperationException":
|
|
3602
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
3603
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
3604
|
-
case "InvalidArnException":
|
|
3605
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3606
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InvalidGrantIdException":
|
|
3608
|
-
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
3609
|
-
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "KMSInternalException":
|
|
3611
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3612
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "KMSInvalidStateException":
|
|
3614
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3615
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "NotFoundException":
|
|
3617
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3618
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3619
|
-
default:
|
|
3620
|
-
const parsedBody = parsedOutput.body;
|
|
3621
|
-
return throwDefaultError({
|
|
3622
|
-
output,
|
|
3623
|
-
parsedBody,
|
|
3624
|
-
errorCode
|
|
3625
|
-
});
|
|
3626
|
-
}
|
|
3627
|
-
}, "de_RevokeGrantCommandError");
|
|
3628
2130
|
var de_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
2131
|
if (output.statusCode >= 300) {
|
|
3630
|
-
return
|
|
2132
|
+
return de_CommandError(output, context);
|
|
3631
2133
|
}
|
|
3632
2134
|
const data = await parseBody(output.body, context);
|
|
3633
2135
|
let contents = {};
|
|
@@ -3638,40 +2140,9 @@ var de_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3638
2140
|
};
|
|
3639
2141
|
return response;
|
|
3640
2142
|
}, "de_ScheduleKeyDeletionCommand");
|
|
3641
|
-
var de_ScheduleKeyDeletionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3642
|
-
const parsedOutput = {
|
|
3643
|
-
...output,
|
|
3644
|
-
body: await parseErrorBody(output.body, context)
|
|
3645
|
-
};
|
|
3646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3647
|
-
switch (errorCode) {
|
|
3648
|
-
case "DependencyTimeoutException":
|
|
3649
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3650
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3651
|
-
case "InvalidArnException":
|
|
3652
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3653
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3654
|
-
case "KMSInternalException":
|
|
3655
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3656
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3657
|
-
case "KMSInvalidStateException":
|
|
3658
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3659
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3660
|
-
case "NotFoundException":
|
|
3661
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3662
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3663
|
-
default:
|
|
3664
|
-
const parsedBody = parsedOutput.body;
|
|
3665
|
-
return throwDefaultError({
|
|
3666
|
-
output,
|
|
3667
|
-
parsedBody,
|
|
3668
|
-
errorCode
|
|
3669
|
-
});
|
|
3670
|
-
}
|
|
3671
|
-
}, "de_ScheduleKeyDeletionCommandError");
|
|
3672
2143
|
var de_SignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3673
2144
|
if (output.statusCode >= 300) {
|
|
3674
|
-
return
|
|
2145
|
+
return de_CommandError(output, context);
|
|
3675
2146
|
}
|
|
3676
2147
|
const data = await parseBody(output.body, context);
|
|
3677
2148
|
let contents = {};
|
|
@@ -3682,52 +2153,9 @@ var de_SignCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3682
2153
|
};
|
|
3683
2154
|
return response;
|
|
3684
2155
|
}, "de_SignCommand");
|
|
3685
|
-
var de_SignCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3686
|
-
const parsedOutput = {
|
|
3687
|
-
...output,
|
|
3688
|
-
body: await parseErrorBody(output.body, context)
|
|
3689
|
-
};
|
|
3690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
|
-
switch (errorCode) {
|
|
3692
|
-
case "DependencyTimeoutException":
|
|
3693
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3694
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3695
|
-
case "DisabledException":
|
|
3696
|
-
case "com.amazonaws.kms#DisabledException":
|
|
3697
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
3698
|
-
case "DryRunOperationException":
|
|
3699
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
3700
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "InvalidGrantTokenException":
|
|
3702
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
3703
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "InvalidKeyUsageException":
|
|
3705
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
3706
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "KMSInternalException":
|
|
3708
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3709
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "KMSInvalidStateException":
|
|
3711
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3712
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "KeyUnavailableException":
|
|
3714
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
3715
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
3716
|
-
case "NotFoundException":
|
|
3717
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3718
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3719
|
-
default:
|
|
3720
|
-
const parsedBody = parsedOutput.body;
|
|
3721
|
-
return throwDefaultError({
|
|
3722
|
-
output,
|
|
3723
|
-
parsedBody,
|
|
3724
|
-
errorCode
|
|
3725
|
-
});
|
|
3726
|
-
}
|
|
3727
|
-
}, "de_SignCommandError");
|
|
3728
2156
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3729
2157
|
if (output.statusCode >= 300) {
|
|
3730
|
-
return
|
|
2158
|
+
return de_CommandError(output, context);
|
|
3731
2159
|
}
|
|
3732
2160
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3733
2161
|
const response = {
|
|
@@ -3735,43 +2163,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3735
2163
|
};
|
|
3736
2164
|
return response;
|
|
3737
2165
|
}, "de_TagResourceCommand");
|
|
3738
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3739
|
-
const parsedOutput = {
|
|
3740
|
-
...output,
|
|
3741
|
-
body: await parseErrorBody(output.body, context)
|
|
3742
|
-
};
|
|
3743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3744
|
-
switch (errorCode) {
|
|
3745
|
-
case "InvalidArnException":
|
|
3746
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3747
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "KMSInternalException":
|
|
3749
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3750
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "KMSInvalidStateException":
|
|
3752
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3753
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "LimitExceededException":
|
|
3755
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
3756
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "NotFoundException":
|
|
3758
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3759
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "TagException":
|
|
3761
|
-
case "com.amazonaws.kms#TagException":
|
|
3762
|
-
throw await de_TagExceptionRes(parsedOutput, context);
|
|
3763
|
-
default:
|
|
3764
|
-
const parsedBody = parsedOutput.body;
|
|
3765
|
-
return throwDefaultError({
|
|
3766
|
-
output,
|
|
3767
|
-
parsedBody,
|
|
3768
|
-
errorCode
|
|
3769
|
-
});
|
|
3770
|
-
}
|
|
3771
|
-
}, "de_TagResourceCommandError");
|
|
3772
2166
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3773
2167
|
if (output.statusCode >= 300) {
|
|
3774
|
-
return
|
|
2168
|
+
return de_CommandError(output, context);
|
|
3775
2169
|
}
|
|
3776
2170
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3777
2171
|
const response = {
|
|
@@ -3779,161 +2173,32 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3779
2173
|
};
|
|
3780
2174
|
return response;
|
|
3781
2175
|
}, "de_UntagResourceCommand");
|
|
3782
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3783
|
-
const parsedOutput = {
|
|
3784
|
-
...output,
|
|
3785
|
-
body: await parseErrorBody(output.body, context)
|
|
3786
|
-
};
|
|
3787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
|
-
switch (errorCode) {
|
|
3789
|
-
case "InvalidArnException":
|
|
3790
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3791
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "KMSInternalException":
|
|
3793
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3794
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3795
|
-
case "KMSInvalidStateException":
|
|
3796
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3797
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "NotFoundException":
|
|
3799
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3800
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3801
|
-
case "TagException":
|
|
3802
|
-
case "com.amazonaws.kms#TagException":
|
|
3803
|
-
throw await de_TagExceptionRes(parsedOutput, context);
|
|
3804
|
-
default:
|
|
3805
|
-
const parsedBody = parsedOutput.body;
|
|
3806
|
-
return throwDefaultError({
|
|
3807
|
-
output,
|
|
3808
|
-
parsedBody,
|
|
3809
|
-
errorCode
|
|
3810
|
-
});
|
|
3811
|
-
}
|
|
3812
|
-
}, "de_UntagResourceCommandError");
|
|
3813
2176
|
var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3814
2177
|
if (output.statusCode >= 300) {
|
|
3815
|
-
return
|
|
2178
|
+
return de_CommandError(output, context);
|
|
3816
2179
|
}
|
|
3817
2180
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3818
2181
|
const response = {
|
|
3819
2182
|
$metadata: deserializeMetadata(output)
|
|
3820
2183
|
};
|
|
3821
|
-
return response;
|
|
3822
|
-
}, "de_UpdateAliasCommand");
|
|
3823
|
-
var
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
body: await parseErrorBody(output.body, context)
|
|
3827
|
-
};
|
|
3828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3829
|
-
switch (errorCode) {
|
|
3830
|
-
case "DependencyTimeoutException":
|
|
3831
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3832
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "KMSInternalException":
|
|
3834
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3835
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3836
|
-
case "KMSInvalidStateException":
|
|
3837
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3838
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3839
|
-
case "LimitExceededException":
|
|
3840
|
-
case "com.amazonaws.kms#LimitExceededException":
|
|
3841
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3842
|
-
case "NotFoundException":
|
|
3843
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3844
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3845
|
-
default:
|
|
3846
|
-
const parsedBody = parsedOutput.body;
|
|
3847
|
-
return throwDefaultError({
|
|
3848
|
-
output,
|
|
3849
|
-
parsedBody,
|
|
3850
|
-
errorCode
|
|
3851
|
-
});
|
|
3852
|
-
}
|
|
3853
|
-
}, "de_UpdateAliasCommandError");
|
|
3854
|
-
var de_UpdateCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3855
|
-
if (output.statusCode >= 300) {
|
|
3856
|
-
return de_UpdateCustomKeyStoreCommandError(output, context);
|
|
3857
|
-
}
|
|
3858
|
-
const data = await parseBody(output.body, context);
|
|
3859
|
-
let contents = {};
|
|
3860
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3861
|
-
const response = {
|
|
3862
|
-
$metadata: deserializeMetadata(output),
|
|
3863
|
-
...contents
|
|
3864
|
-
};
|
|
3865
|
-
return response;
|
|
3866
|
-
}, "de_UpdateCustomKeyStoreCommand");
|
|
3867
|
-
var de_UpdateCustomKeyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3868
|
-
const parsedOutput = {
|
|
3869
|
-
...output,
|
|
3870
|
-
body: await parseErrorBody(output.body, context)
|
|
3871
|
-
};
|
|
3872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3873
|
-
switch (errorCode) {
|
|
3874
|
-
case "CloudHsmClusterInvalidConfigurationException":
|
|
3875
|
-
case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
|
|
3876
|
-
throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
3877
|
-
case "CloudHsmClusterNotActiveException":
|
|
3878
|
-
case "com.amazonaws.kms#CloudHsmClusterNotActiveException":
|
|
3879
|
-
throw await de_CloudHsmClusterNotActiveExceptionRes(parsedOutput, context);
|
|
3880
|
-
case "CloudHsmClusterNotFoundException":
|
|
3881
|
-
case "com.amazonaws.kms#CloudHsmClusterNotFoundException":
|
|
3882
|
-
throw await de_CloudHsmClusterNotFoundExceptionRes(parsedOutput, context);
|
|
3883
|
-
case "CloudHsmClusterNotRelatedException":
|
|
3884
|
-
case "com.amazonaws.kms#CloudHsmClusterNotRelatedException":
|
|
3885
|
-
throw await de_CloudHsmClusterNotRelatedExceptionRes(parsedOutput, context);
|
|
3886
|
-
case "CustomKeyStoreInvalidStateException":
|
|
3887
|
-
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
3888
|
-
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
3889
|
-
case "CustomKeyStoreNameInUseException":
|
|
3890
|
-
case "com.amazonaws.kms#CustomKeyStoreNameInUseException":
|
|
3891
|
-
throw await de_CustomKeyStoreNameInUseExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "CustomKeyStoreNotFoundException":
|
|
3893
|
-
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
3894
|
-
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "KMSInternalException":
|
|
3896
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3897
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3898
|
-
case "XksProxyIncorrectAuthenticationCredentialException":
|
|
3899
|
-
case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
|
|
3900
|
-
throw await de_XksProxyIncorrectAuthenticationCredentialExceptionRes(parsedOutput, context);
|
|
3901
|
-
case "XksProxyInvalidConfigurationException":
|
|
3902
|
-
case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
|
|
3903
|
-
throw await de_XksProxyInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
3904
|
-
case "XksProxyInvalidResponseException":
|
|
3905
|
-
case "com.amazonaws.kms#XksProxyInvalidResponseException":
|
|
3906
|
-
throw await de_XksProxyInvalidResponseExceptionRes(parsedOutput, context);
|
|
3907
|
-
case "XksProxyUriEndpointInUseException":
|
|
3908
|
-
case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
|
|
3909
|
-
throw await de_XksProxyUriEndpointInUseExceptionRes(parsedOutput, context);
|
|
3910
|
-
case "XksProxyUriInUseException":
|
|
3911
|
-
case "com.amazonaws.kms#XksProxyUriInUseException":
|
|
3912
|
-
throw await de_XksProxyUriInUseExceptionRes(parsedOutput, context);
|
|
3913
|
-
case "XksProxyUriUnreachableException":
|
|
3914
|
-
case "com.amazonaws.kms#XksProxyUriUnreachableException":
|
|
3915
|
-
throw await de_XksProxyUriUnreachableExceptionRes(parsedOutput, context);
|
|
3916
|
-
case "XksProxyVpcEndpointServiceInUseException":
|
|
3917
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
|
|
3918
|
-
throw await de_XksProxyVpcEndpointServiceInUseExceptionRes(parsedOutput, context);
|
|
3919
|
-
case "XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
3920
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
3921
|
-
throw await de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
3922
|
-
case "XksProxyVpcEndpointServiceNotFoundException":
|
|
3923
|
-
case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
|
|
3924
|
-
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
3925
|
-
default:
|
|
3926
|
-
const parsedBody = parsedOutput.body;
|
|
3927
|
-
return throwDefaultError({
|
|
3928
|
-
output,
|
|
3929
|
-
parsedBody,
|
|
3930
|
-
errorCode
|
|
3931
|
-
});
|
|
2184
|
+
return response;
|
|
2185
|
+
}, "de_UpdateAliasCommand");
|
|
2186
|
+
var de_UpdateCustomKeyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2187
|
+
if (output.statusCode >= 300) {
|
|
2188
|
+
return de_CommandError(output, context);
|
|
3932
2189
|
}
|
|
3933
|
-
|
|
2190
|
+
const data = await parseBody(output.body, context);
|
|
2191
|
+
let contents = {};
|
|
2192
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2193
|
+
const response = {
|
|
2194
|
+
$metadata: deserializeMetadata(output),
|
|
2195
|
+
...contents
|
|
2196
|
+
};
|
|
2197
|
+
return response;
|
|
2198
|
+
}, "de_UpdateCustomKeyStoreCommand");
|
|
3934
2199
|
var de_UpdateKeyDescriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3935
2200
|
if (output.statusCode >= 300) {
|
|
3936
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
3937
2202
|
}
|
|
3938
2203
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3939
2204
|
const response = {
|
|
@@ -3941,40 +2206,9 @@ var de_UpdateKeyDescriptionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3941
2206
|
};
|
|
3942
2207
|
return response;
|
|
3943
2208
|
}, "de_UpdateKeyDescriptionCommand");
|
|
3944
|
-
var de_UpdateKeyDescriptionCommandError = /* @__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 "DependencyTimeoutException":
|
|
3952
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
3953
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InvalidArnException":
|
|
3955
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3956
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "KMSInternalException":
|
|
3958
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
3959
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "KMSInvalidStateException":
|
|
3961
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
3962
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "NotFoundException":
|
|
3964
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
3965
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
}, "de_UpdateKeyDescriptionCommandError");
|
|
3975
2209
|
var de_UpdatePrimaryRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3976
2210
|
if (output.statusCode >= 300) {
|
|
3977
|
-
return
|
|
2211
|
+
return de_CommandError(output, context);
|
|
3978
2212
|
}
|
|
3979
2213
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3980
2214
|
const response = {
|
|
@@ -3982,43 +2216,9 @@ var de_UpdatePrimaryRegionCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3982
2216
|
};
|
|
3983
2217
|
return response;
|
|
3984
2218
|
}, "de_UpdatePrimaryRegionCommand");
|
|
3985
|
-
var de_UpdatePrimaryRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3986
|
-
const parsedOutput = {
|
|
3987
|
-
...output,
|
|
3988
|
-
body: await parseErrorBody(output.body, context)
|
|
3989
|
-
};
|
|
3990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3991
|
-
switch (errorCode) {
|
|
3992
|
-
case "DisabledException":
|
|
3993
|
-
case "com.amazonaws.kms#DisabledException":
|
|
3994
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
3995
|
-
case "InvalidArnException":
|
|
3996
|
-
case "com.amazonaws.kms#InvalidArnException":
|
|
3997
|
-
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
3998
|
-
case "KMSInternalException":
|
|
3999
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
4000
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
4001
|
-
case "KMSInvalidStateException":
|
|
4002
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
4003
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
4004
|
-
case "NotFoundException":
|
|
4005
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
4006
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4007
|
-
case "UnsupportedOperationException":
|
|
4008
|
-
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
4009
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4010
|
-
default:
|
|
4011
|
-
const parsedBody = parsedOutput.body;
|
|
4012
|
-
return throwDefaultError({
|
|
4013
|
-
output,
|
|
4014
|
-
parsedBody,
|
|
4015
|
-
errorCode
|
|
4016
|
-
});
|
|
4017
|
-
}
|
|
4018
|
-
}, "de_UpdatePrimaryRegionCommandError");
|
|
4019
2219
|
var de_VerifyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4020
2220
|
if (output.statusCode >= 300) {
|
|
4021
|
-
return
|
|
2221
|
+
return de_CommandError(output, context);
|
|
4022
2222
|
}
|
|
4023
2223
|
const data = await parseBody(output.body, context);
|
|
4024
2224
|
let contents = {};
|
|
@@ -4029,55 +2229,9 @@ var de_VerifyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4029
2229
|
};
|
|
4030
2230
|
return response;
|
|
4031
2231
|
}, "de_VerifyCommand");
|
|
4032
|
-
var de_VerifyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4033
|
-
const parsedOutput = {
|
|
4034
|
-
...output,
|
|
4035
|
-
body: await parseErrorBody(output.body, context)
|
|
4036
|
-
};
|
|
4037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4038
|
-
switch (errorCode) {
|
|
4039
|
-
case "DependencyTimeoutException":
|
|
4040
|
-
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
4041
|
-
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
4042
|
-
case "DisabledException":
|
|
4043
|
-
case "com.amazonaws.kms#DisabledException":
|
|
4044
|
-
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
4045
|
-
case "DryRunOperationException":
|
|
4046
|
-
case "com.amazonaws.kms#DryRunOperationException":
|
|
4047
|
-
throw await de_DryRunOperationExceptionRes(parsedOutput, context);
|
|
4048
|
-
case "InvalidGrantTokenException":
|
|
4049
|
-
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
4050
|
-
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
4051
|
-
case "InvalidKeyUsageException":
|
|
4052
|
-
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
4053
|
-
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
4054
|
-
case "KMSInternalException":
|
|
4055
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
4056
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
4057
|
-
case "KMSInvalidSignatureException":
|
|
4058
|
-
case "com.amazonaws.kms#KMSInvalidSignatureException":
|
|
4059
|
-
throw await de_KMSInvalidSignatureExceptionRes(parsedOutput, context);
|
|
4060
|
-
case "KMSInvalidStateException":
|
|
4061
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
4062
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
4063
|
-
case "KeyUnavailableException":
|
|
4064
|
-
case "com.amazonaws.kms#KeyUnavailableException":
|
|
4065
|
-
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
4066
|
-
case "NotFoundException":
|
|
4067
|
-
case "com.amazonaws.kms#NotFoundException":
|
|
4068
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
4069
|
-
default:
|
|
4070
|
-
const parsedBody = parsedOutput.body;
|
|
4071
|
-
return throwDefaultError({
|
|
4072
|
-
output,
|
|
4073
|
-
parsedBody,
|
|
4074
|
-
errorCode
|
|
4075
|
-
});
|
|
4076
|
-
}
|
|
4077
|
-
}, "de_VerifyCommandError");
|
|
4078
2232
|
var de_VerifyMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4079
2233
|
if (output.statusCode >= 300) {
|
|
4080
|
-
return
|
|
2234
|
+
return de_CommandError(output, context);
|
|
4081
2235
|
}
|
|
4082
2236
|
const data = await parseBody(output.body, context);
|
|
4083
2237
|
let contents = {};
|
|
@@ -4088,13 +2242,88 @@ var de_VerifyMacCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4088
2242
|
};
|
|
4089
2243
|
return response;
|
|
4090
2244
|
}, "de_VerifyMacCommand");
|
|
4091
|
-
var
|
|
2245
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4092
2246
|
const parsedOutput = {
|
|
4093
2247
|
...output,
|
|
4094
2248
|
body: await parseErrorBody(output.body, context)
|
|
4095
2249
|
};
|
|
4096
2250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4097
2251
|
switch (errorCode) {
|
|
2252
|
+
case "DependencyTimeoutException":
|
|
2253
|
+
case "com.amazonaws.kms#DependencyTimeoutException":
|
|
2254
|
+
throw await de_DependencyTimeoutExceptionRes(parsedOutput, context);
|
|
2255
|
+
case "InvalidArnException":
|
|
2256
|
+
case "com.amazonaws.kms#InvalidArnException":
|
|
2257
|
+
throw await de_InvalidArnExceptionRes(parsedOutput, context);
|
|
2258
|
+
case "KMSInternalException":
|
|
2259
|
+
case "com.amazonaws.kms#KMSInternalException":
|
|
2260
|
+
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
2261
|
+
case "KMSInvalidStateException":
|
|
2262
|
+
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
2263
|
+
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
2264
|
+
case "NotFoundException":
|
|
2265
|
+
case "com.amazonaws.kms#NotFoundException":
|
|
2266
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2267
|
+
case "CloudHsmClusterInvalidConfigurationException":
|
|
2268
|
+
case "com.amazonaws.kms#CloudHsmClusterInvalidConfigurationException":
|
|
2269
|
+
throw await de_CloudHsmClusterInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
2270
|
+
case "CloudHsmClusterNotActiveException":
|
|
2271
|
+
case "com.amazonaws.kms#CloudHsmClusterNotActiveException":
|
|
2272
|
+
throw await de_CloudHsmClusterNotActiveExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "CustomKeyStoreInvalidStateException":
|
|
2274
|
+
case "com.amazonaws.kms#CustomKeyStoreInvalidStateException":
|
|
2275
|
+
throw await de_CustomKeyStoreInvalidStateExceptionRes(parsedOutput, context);
|
|
2276
|
+
case "CustomKeyStoreNotFoundException":
|
|
2277
|
+
case "com.amazonaws.kms#CustomKeyStoreNotFoundException":
|
|
2278
|
+
throw await de_CustomKeyStoreNotFoundExceptionRes(parsedOutput, context);
|
|
2279
|
+
case "AlreadyExistsException":
|
|
2280
|
+
case "com.amazonaws.kms#AlreadyExistsException":
|
|
2281
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2282
|
+
case "InvalidAliasNameException":
|
|
2283
|
+
case "com.amazonaws.kms#InvalidAliasNameException":
|
|
2284
|
+
throw await de_InvalidAliasNameExceptionRes(parsedOutput, context);
|
|
2285
|
+
case "LimitExceededException":
|
|
2286
|
+
case "com.amazonaws.kms#LimitExceededException":
|
|
2287
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2288
|
+
case "CloudHsmClusterInUseException":
|
|
2289
|
+
case "com.amazonaws.kms#CloudHsmClusterInUseException":
|
|
2290
|
+
throw await de_CloudHsmClusterInUseExceptionRes(parsedOutput, context);
|
|
2291
|
+
case "CloudHsmClusterNotFoundException":
|
|
2292
|
+
case "com.amazonaws.kms#CloudHsmClusterNotFoundException":
|
|
2293
|
+
throw await de_CloudHsmClusterNotFoundExceptionRes(parsedOutput, context);
|
|
2294
|
+
case "CustomKeyStoreNameInUseException":
|
|
2295
|
+
case "com.amazonaws.kms#CustomKeyStoreNameInUseException":
|
|
2296
|
+
throw await de_CustomKeyStoreNameInUseExceptionRes(parsedOutput, context);
|
|
2297
|
+
case "IncorrectTrustAnchorException":
|
|
2298
|
+
case "com.amazonaws.kms#IncorrectTrustAnchorException":
|
|
2299
|
+
throw await de_IncorrectTrustAnchorExceptionRes(parsedOutput, context);
|
|
2300
|
+
case "XksProxyIncorrectAuthenticationCredentialException":
|
|
2301
|
+
case "com.amazonaws.kms#XksProxyIncorrectAuthenticationCredentialException":
|
|
2302
|
+
throw await de_XksProxyIncorrectAuthenticationCredentialExceptionRes(parsedOutput, context);
|
|
2303
|
+
case "XksProxyInvalidConfigurationException":
|
|
2304
|
+
case "com.amazonaws.kms#XksProxyInvalidConfigurationException":
|
|
2305
|
+
throw await de_XksProxyInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
2306
|
+
case "XksProxyInvalidResponseException":
|
|
2307
|
+
case "com.amazonaws.kms#XksProxyInvalidResponseException":
|
|
2308
|
+
throw await de_XksProxyInvalidResponseExceptionRes(parsedOutput, context);
|
|
2309
|
+
case "XksProxyUriEndpointInUseException":
|
|
2310
|
+
case "com.amazonaws.kms#XksProxyUriEndpointInUseException":
|
|
2311
|
+
throw await de_XksProxyUriEndpointInUseExceptionRes(parsedOutput, context);
|
|
2312
|
+
case "XksProxyUriInUseException":
|
|
2313
|
+
case "com.amazonaws.kms#XksProxyUriInUseException":
|
|
2314
|
+
throw await de_XksProxyUriInUseExceptionRes(parsedOutput, context);
|
|
2315
|
+
case "XksProxyUriUnreachableException":
|
|
2316
|
+
case "com.amazonaws.kms#XksProxyUriUnreachableException":
|
|
2317
|
+
throw await de_XksProxyUriUnreachableExceptionRes(parsedOutput, context);
|
|
2318
|
+
case "XksProxyVpcEndpointServiceInUseException":
|
|
2319
|
+
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInUseException":
|
|
2320
|
+
throw await de_XksProxyVpcEndpointServiceInUseExceptionRes(parsedOutput, context);
|
|
2321
|
+
case "XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
2322
|
+
case "com.amazonaws.kms#XksProxyVpcEndpointServiceInvalidConfigurationException":
|
|
2323
|
+
throw await de_XksProxyVpcEndpointServiceInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
2324
|
+
case "XksProxyVpcEndpointServiceNotFoundException":
|
|
2325
|
+
case "com.amazonaws.kms#XksProxyVpcEndpointServiceNotFoundException":
|
|
2326
|
+
throw await de_XksProxyVpcEndpointServiceNotFoundExceptionRes(parsedOutput, context);
|
|
4098
2327
|
case "DisabledException":
|
|
4099
2328
|
case "com.amazonaws.kms#DisabledException":
|
|
4100
2329
|
throw await de_DisabledExceptionRes(parsedOutput, context);
|
|
@@ -4104,24 +2333,63 @@ var de_VerifyMacCommandError = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4104
2333
|
case "InvalidGrantTokenException":
|
|
4105
2334
|
case "com.amazonaws.kms#InvalidGrantTokenException":
|
|
4106
2335
|
throw await de_InvalidGrantTokenExceptionRes(parsedOutput, context);
|
|
2336
|
+
case "MalformedPolicyDocumentException":
|
|
2337
|
+
case "com.amazonaws.kms#MalformedPolicyDocumentException":
|
|
2338
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
2339
|
+
case "TagException":
|
|
2340
|
+
case "com.amazonaws.kms#TagException":
|
|
2341
|
+
throw await de_TagExceptionRes(parsedOutput, context);
|
|
2342
|
+
case "UnsupportedOperationException":
|
|
2343
|
+
case "com.amazonaws.kms#UnsupportedOperationException":
|
|
2344
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2345
|
+
case "XksKeyAlreadyInUseException":
|
|
2346
|
+
case "com.amazonaws.kms#XksKeyAlreadyInUseException":
|
|
2347
|
+
throw await de_XksKeyAlreadyInUseExceptionRes(parsedOutput, context);
|
|
2348
|
+
case "XksKeyInvalidConfigurationException":
|
|
2349
|
+
case "com.amazonaws.kms#XksKeyInvalidConfigurationException":
|
|
2350
|
+
throw await de_XksKeyInvalidConfigurationExceptionRes(parsedOutput, context);
|
|
2351
|
+
case "XksKeyNotFoundException":
|
|
2352
|
+
case "com.amazonaws.kms#XksKeyNotFoundException":
|
|
2353
|
+
throw await de_XksKeyNotFoundExceptionRes(parsedOutput, context);
|
|
2354
|
+
case "IncorrectKeyException":
|
|
2355
|
+
case "com.amazonaws.kms#IncorrectKeyException":
|
|
2356
|
+
throw await de_IncorrectKeyExceptionRes(parsedOutput, context);
|
|
2357
|
+
case "InvalidCiphertextException":
|
|
2358
|
+
case "com.amazonaws.kms#InvalidCiphertextException":
|
|
2359
|
+
throw await de_InvalidCiphertextExceptionRes(parsedOutput, context);
|
|
4107
2360
|
case "InvalidKeyUsageException":
|
|
4108
2361
|
case "com.amazonaws.kms#InvalidKeyUsageException":
|
|
4109
2362
|
throw await de_InvalidKeyUsageExceptionRes(parsedOutput, context);
|
|
4110
|
-
case "KMSInternalException":
|
|
4111
|
-
case "com.amazonaws.kms#KMSInternalException":
|
|
4112
|
-
throw await de_KMSInternalExceptionRes(parsedOutput, context);
|
|
4113
|
-
case "KMSInvalidMacException":
|
|
4114
|
-
case "com.amazonaws.kms#KMSInvalidMacException":
|
|
4115
|
-
throw await de_KMSInvalidMacExceptionRes(parsedOutput, context);
|
|
4116
|
-
case "KMSInvalidStateException":
|
|
4117
|
-
case "com.amazonaws.kms#KMSInvalidStateException":
|
|
4118
|
-
throw await de_KMSInvalidStateExceptionRes(parsedOutput, context);
|
|
4119
2363
|
case "KeyUnavailableException":
|
|
4120
2364
|
case "com.amazonaws.kms#KeyUnavailableException":
|
|
4121
2365
|
throw await de_KeyUnavailableExceptionRes(parsedOutput, context);
|
|
4122
|
-
case "
|
|
4123
|
-
case "com.amazonaws.kms#
|
|
4124
|
-
throw await
|
|
2366
|
+
case "CustomKeyStoreHasCMKsException":
|
|
2367
|
+
case "com.amazonaws.kms#CustomKeyStoreHasCMKsException":
|
|
2368
|
+
throw await de_CustomKeyStoreHasCMKsExceptionRes(parsedOutput, context);
|
|
2369
|
+
case "InvalidMarkerException":
|
|
2370
|
+
case "com.amazonaws.kms#InvalidMarkerException":
|
|
2371
|
+
throw await de_InvalidMarkerExceptionRes(parsedOutput, context);
|
|
2372
|
+
case "ExpiredImportTokenException":
|
|
2373
|
+
case "com.amazonaws.kms#ExpiredImportTokenException":
|
|
2374
|
+
throw await de_ExpiredImportTokenExceptionRes(parsedOutput, context);
|
|
2375
|
+
case "IncorrectKeyMaterialException":
|
|
2376
|
+
case "com.amazonaws.kms#IncorrectKeyMaterialException":
|
|
2377
|
+
throw await de_IncorrectKeyMaterialExceptionRes(parsedOutput, context);
|
|
2378
|
+
case "InvalidImportTokenException":
|
|
2379
|
+
case "com.amazonaws.kms#InvalidImportTokenException":
|
|
2380
|
+
throw await de_InvalidImportTokenExceptionRes(parsedOutput, context);
|
|
2381
|
+
case "InvalidGrantIdException":
|
|
2382
|
+
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
2383
|
+
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
2384
|
+
case "CloudHsmClusterNotRelatedException":
|
|
2385
|
+
case "com.amazonaws.kms#CloudHsmClusterNotRelatedException":
|
|
2386
|
+
throw await de_CloudHsmClusterNotRelatedExceptionRes(parsedOutput, context);
|
|
2387
|
+
case "KMSInvalidSignatureException":
|
|
2388
|
+
case "com.amazonaws.kms#KMSInvalidSignatureException":
|
|
2389
|
+
throw await de_KMSInvalidSignatureExceptionRes(parsedOutput, context);
|
|
2390
|
+
case "KMSInvalidMacException":
|
|
2391
|
+
case "com.amazonaws.kms#KMSInvalidMacException":
|
|
2392
|
+
throw await de_KMSInvalidMacExceptionRes(parsedOutput, context);
|
|
4125
2393
|
default:
|
|
4126
2394
|
const parsedBody = parsedOutput.body;
|
|
4127
2395
|
return throwDefaultError({
|
|
@@ -4130,7 +2398,7 @@ var de_VerifyMacCommandError = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4130
2398
|
errorCode
|
|
4131
2399
|
});
|
|
4132
2400
|
}
|
|
4133
|
-
}, "
|
|
2401
|
+
}, "de_CommandError");
|
|
4134
2402
|
var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4135
2403
|
const body = parsedOutput.body;
|
|
4136
2404
|
const deserialized = (0, import_smithy_client._json)(body);
|