@aws-sdk/client-directory-service 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +201 -2265
- package/dist-es/protocols/Aws_json1_1.js +435 -2499
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1678,7 +1678,7 @@ var se_VerifyTrustCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1678
1678
|
}, "se_VerifyTrustCommand");
|
|
1679
1679
|
var de_AcceptSharedDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1680
1680
|
if (output.statusCode >= 300) {
|
|
1681
|
-
return
|
|
1681
|
+
return de_CommandError(output, context);
|
|
1682
1682
|
}
|
|
1683
1683
|
const data = await parseBody(output.body, context);
|
|
1684
1684
|
let contents = {};
|
|
@@ -1689,40 +1689,9 @@ var de_AcceptSharedDirectoryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1689
1689
|
};
|
|
1690
1690
|
return response;
|
|
1691
1691
|
}, "de_AcceptSharedDirectoryCommand");
|
|
1692
|
-
var de_AcceptSharedDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1693
|
-
const parsedOutput = {
|
|
1694
|
-
...output,
|
|
1695
|
-
body: await parseErrorBody(output.body, context)
|
|
1696
|
-
};
|
|
1697
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1698
|
-
switch (errorCode) {
|
|
1699
|
-
case "ClientException":
|
|
1700
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1701
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "DirectoryAlreadySharedException":
|
|
1703
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
1704
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "EntityDoesNotExistException":
|
|
1706
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1707
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InvalidParameterException":
|
|
1709
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1710
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ServiceException":
|
|
1712
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1713
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
}, "de_AcceptSharedDirectoryCommandError");
|
|
1723
1692
|
var de_AddIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1724
1693
|
if (output.statusCode >= 300) {
|
|
1725
|
-
return
|
|
1694
|
+
return de_CommandError(output, context);
|
|
1726
1695
|
}
|
|
1727
1696
|
const data = await parseBody(output.body, context);
|
|
1728
1697
|
let contents = {};
|
|
@@ -1733,46 +1702,9 @@ var de_AddIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1733
1702
|
};
|
|
1734
1703
|
return response;
|
|
1735
1704
|
}, "de_AddIpRoutesCommand");
|
|
1736
|
-
var de_AddIpRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1737
|
-
const parsedOutput = {
|
|
1738
|
-
...output,
|
|
1739
|
-
body: await parseErrorBody(output.body, context)
|
|
1740
|
-
};
|
|
1741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1742
|
-
switch (errorCode) {
|
|
1743
|
-
case "ClientException":
|
|
1744
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1745
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "DirectoryUnavailableException":
|
|
1747
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1748
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1749
|
-
case "EntityAlreadyExistsException":
|
|
1750
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
1751
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1752
|
-
case "EntityDoesNotExistException":
|
|
1753
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1754
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1755
|
-
case "InvalidParameterException":
|
|
1756
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1757
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "IpRouteLimitExceededException":
|
|
1759
|
-
case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
|
|
1760
|
-
throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "ServiceException":
|
|
1762
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1763
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1764
|
-
default:
|
|
1765
|
-
const parsedBody = parsedOutput.body;
|
|
1766
|
-
return throwDefaultError({
|
|
1767
|
-
output,
|
|
1768
|
-
parsedBody,
|
|
1769
|
-
errorCode
|
|
1770
|
-
});
|
|
1771
|
-
}
|
|
1772
|
-
}, "de_AddIpRoutesCommandError");
|
|
1773
1705
|
var de_AddRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1774
1706
|
if (output.statusCode >= 300) {
|
|
1775
|
-
return
|
|
1707
|
+
return de_CommandError(output, context);
|
|
1776
1708
|
}
|
|
1777
1709
|
const data = await parseBody(output.body, context);
|
|
1778
1710
|
let contents = {};
|
|
@@ -1783,55 +1715,9 @@ var de_AddRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1783
1715
|
};
|
|
1784
1716
|
return response;
|
|
1785
1717
|
}, "de_AddRegionCommand");
|
|
1786
|
-
var de_AddRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
|
-
const parsedOutput = {
|
|
1788
|
-
...output,
|
|
1789
|
-
body: await parseErrorBody(output.body, context)
|
|
1790
|
-
};
|
|
1791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
switch (errorCode) {
|
|
1793
|
-
case "AccessDeniedException":
|
|
1794
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
1795
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ClientException":
|
|
1797
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1798
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "DirectoryAlreadyInRegionException":
|
|
1800
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
|
|
1801
|
-
throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "DirectoryDoesNotExistException":
|
|
1803
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
1804
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "DirectoryUnavailableException":
|
|
1806
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
1807
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "EntityDoesNotExistException":
|
|
1809
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1810
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "InvalidParameterException":
|
|
1812
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1813
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "RegionLimitExceededException":
|
|
1815
|
-
case "com.amazonaws.directoryservice#RegionLimitExceededException":
|
|
1816
|
-
throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ServiceException":
|
|
1818
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1819
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "UnsupportedOperationException":
|
|
1821
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
1822
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1823
|
-
default:
|
|
1824
|
-
const parsedBody = parsedOutput.body;
|
|
1825
|
-
return throwDefaultError({
|
|
1826
|
-
output,
|
|
1827
|
-
parsedBody,
|
|
1828
|
-
errorCode
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
}, "de_AddRegionCommandError");
|
|
1832
1718
|
var de_AddTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1833
1719
|
if (output.statusCode >= 300) {
|
|
1834
|
-
return
|
|
1720
|
+
return de_CommandError(output, context);
|
|
1835
1721
|
}
|
|
1836
1722
|
const data = await parseBody(output.body, context);
|
|
1837
1723
|
let contents = {};
|
|
@@ -1842,40 +1728,9 @@ var de_AddTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1842
1728
|
};
|
|
1843
1729
|
return response;
|
|
1844
1730
|
}, "de_AddTagsToResourceCommand");
|
|
1845
|
-
var de_AddTagsToResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1846
|
-
const parsedOutput = {
|
|
1847
|
-
...output,
|
|
1848
|
-
body: await parseErrorBody(output.body, context)
|
|
1849
|
-
};
|
|
1850
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
|
-
switch (errorCode) {
|
|
1852
|
-
case "ClientException":
|
|
1853
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1854
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "EntityDoesNotExistException":
|
|
1856
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1857
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1858
|
-
case "InvalidParameterException":
|
|
1859
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1860
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1861
|
-
case "ServiceException":
|
|
1862
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1863
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1864
|
-
case "TagLimitExceededException":
|
|
1865
|
-
case "com.amazonaws.directoryservice#TagLimitExceededException":
|
|
1866
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
1867
|
-
default:
|
|
1868
|
-
const parsedBody = parsedOutput.body;
|
|
1869
|
-
return throwDefaultError({
|
|
1870
|
-
output,
|
|
1871
|
-
parsedBody,
|
|
1872
|
-
errorCode
|
|
1873
|
-
});
|
|
1874
|
-
}
|
|
1875
|
-
}, "de_AddTagsToResourceCommandError");
|
|
1876
1731
|
var de_CancelSchemaExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1877
1732
|
if (output.statusCode >= 300) {
|
|
1878
|
-
return
|
|
1733
|
+
return de_CommandError(output, context);
|
|
1879
1734
|
}
|
|
1880
1735
|
const data = await parseBody(output.body, context);
|
|
1881
1736
|
let contents = {};
|
|
@@ -1886,34 +1741,9 @@ var de_CancelSchemaExtensionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1886
1741
|
};
|
|
1887
1742
|
return response;
|
|
1888
1743
|
}, "de_CancelSchemaExtensionCommand");
|
|
1889
|
-
var de_CancelSchemaExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1890
|
-
const parsedOutput = {
|
|
1891
|
-
...output,
|
|
1892
|
-
body: await parseErrorBody(output.body, context)
|
|
1893
|
-
};
|
|
1894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1895
|
-
switch (errorCode) {
|
|
1896
|
-
case "ClientException":
|
|
1897
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1898
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "EntityDoesNotExistException":
|
|
1900
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1901
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1902
|
-
case "ServiceException":
|
|
1903
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1904
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1905
|
-
default:
|
|
1906
|
-
const parsedBody = parsedOutput.body;
|
|
1907
|
-
return throwDefaultError({
|
|
1908
|
-
output,
|
|
1909
|
-
parsedBody,
|
|
1910
|
-
errorCode
|
|
1911
|
-
});
|
|
1912
|
-
}
|
|
1913
|
-
}, "de_CancelSchemaExtensionCommandError");
|
|
1914
1744
|
var de_ConnectDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1915
1745
|
if (output.statusCode >= 300) {
|
|
1916
|
-
return
|
|
1746
|
+
return de_CommandError(output, context);
|
|
1917
1747
|
}
|
|
1918
1748
|
const data = await parseBody(output.body, context);
|
|
1919
1749
|
let contents = {};
|
|
@@ -1924,37 +1754,9 @@ var de_ConnectDirectoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1924
1754
|
};
|
|
1925
1755
|
return response;
|
|
1926
1756
|
}, "de_ConnectDirectoryCommand");
|
|
1927
|
-
var de_ConnectDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context)
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "ClientException":
|
|
1935
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1936
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "DirectoryLimitExceededException":
|
|
1938
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
1939
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "InvalidParameterException":
|
|
1941
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1942
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ServiceException":
|
|
1944
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1945
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1946
|
-
default:
|
|
1947
|
-
const parsedBody = parsedOutput.body;
|
|
1948
|
-
return throwDefaultError({
|
|
1949
|
-
output,
|
|
1950
|
-
parsedBody,
|
|
1951
|
-
errorCode
|
|
1952
|
-
});
|
|
1953
|
-
}
|
|
1954
|
-
}, "de_ConnectDirectoryCommandError");
|
|
1955
1757
|
var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1956
1758
|
if (output.statusCode >= 300) {
|
|
1957
|
-
return
|
|
1759
|
+
return de_CommandError(output, context);
|
|
1958
1760
|
}
|
|
1959
1761
|
const data = await parseBody(output.body, context);
|
|
1960
1762
|
let contents = {};
|
|
@@ -1965,40 +1767,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1965
1767
|
};
|
|
1966
1768
|
return response;
|
|
1967
1769
|
}, "de_CreateAliasCommand");
|
|
1968
|
-
var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1969
|
-
const parsedOutput = {
|
|
1970
|
-
...output,
|
|
1971
|
-
body: await parseErrorBody(output.body, context)
|
|
1972
|
-
};
|
|
1973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
|
-
switch (errorCode) {
|
|
1975
|
-
case "ClientException":
|
|
1976
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
1977
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "EntityAlreadyExistsException":
|
|
1979
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
1980
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "EntityDoesNotExistException":
|
|
1982
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
1983
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InvalidParameterException":
|
|
1985
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
1986
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1987
|
-
case "ServiceException":
|
|
1988
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
1989
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1990
|
-
default:
|
|
1991
|
-
const parsedBody = parsedOutput.body;
|
|
1992
|
-
return throwDefaultError({
|
|
1993
|
-
output,
|
|
1994
|
-
parsedBody,
|
|
1995
|
-
errorCode
|
|
1996
|
-
});
|
|
1997
|
-
}
|
|
1998
|
-
}, "de_CreateAliasCommandError");
|
|
1999
1770
|
var de_CreateComputerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2000
1771
|
if (output.statusCode >= 300) {
|
|
2001
|
-
return
|
|
1772
|
+
return de_CommandError(output, context);
|
|
2002
1773
|
}
|
|
2003
1774
|
const data = await parseBody(output.body, context);
|
|
2004
1775
|
let contents = {};
|
|
@@ -2009,49 +1780,9 @@ var de_CreateComputerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2009
1780
|
};
|
|
2010
1781
|
return response;
|
|
2011
1782
|
}, "de_CreateComputerCommand");
|
|
2012
|
-
var de_CreateComputerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2013
|
-
const parsedOutput = {
|
|
2014
|
-
...output,
|
|
2015
|
-
body: await parseErrorBody(output.body, context)
|
|
2016
|
-
};
|
|
2017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
|
-
switch (errorCode) {
|
|
2019
|
-
case "AuthenticationFailedException":
|
|
2020
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2021
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2022
|
-
case "ClientException":
|
|
2023
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2024
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "DirectoryUnavailableException":
|
|
2026
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2027
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "EntityAlreadyExistsException":
|
|
2029
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2030
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "EntityDoesNotExistException":
|
|
2032
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2033
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "InvalidParameterException":
|
|
2035
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2036
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ServiceException":
|
|
2038
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2039
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "UnsupportedOperationException":
|
|
2041
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2042
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2043
|
-
default:
|
|
2044
|
-
const parsedBody = parsedOutput.body;
|
|
2045
|
-
return throwDefaultError({
|
|
2046
|
-
output,
|
|
2047
|
-
parsedBody,
|
|
2048
|
-
errorCode
|
|
2049
|
-
});
|
|
2050
|
-
}
|
|
2051
|
-
}, "de_CreateComputerCommandError");
|
|
2052
1783
|
var de_CreateConditionalForwarderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2053
1784
|
if (output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
1785
|
+
return de_CommandError(output, context);
|
|
2055
1786
|
}
|
|
2056
1787
|
const data = await parseBody(output.body, context);
|
|
2057
1788
|
let contents = {};
|
|
@@ -2062,46 +1793,9 @@ var de_CreateConditionalForwarderCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2062
1793
|
};
|
|
2063
1794
|
return response;
|
|
2064
1795
|
}, "de_CreateConditionalForwarderCommand");
|
|
2065
|
-
var de_CreateConditionalForwarderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2066
|
-
const parsedOutput = {
|
|
2067
|
-
...output,
|
|
2068
|
-
body: await parseErrorBody(output.body, context)
|
|
2069
|
-
};
|
|
2070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
-
switch (errorCode) {
|
|
2072
|
-
case "ClientException":
|
|
2073
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2074
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "DirectoryUnavailableException":
|
|
2076
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2077
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "EntityAlreadyExistsException":
|
|
2079
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2080
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "EntityDoesNotExistException":
|
|
2082
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2083
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "InvalidParameterException":
|
|
2085
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2086
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ServiceException":
|
|
2088
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2089
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "UnsupportedOperationException":
|
|
2091
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2092
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_CreateConditionalForwarderCommandError");
|
|
2102
1796
|
var de_CreateDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1797
|
if (output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1798
|
+
return de_CommandError(output, context);
|
|
2105
1799
|
}
|
|
2106
1800
|
const data = await parseBody(output.body, context);
|
|
2107
1801
|
let contents = {};
|
|
@@ -2112,37 +1806,9 @@ var de_CreateDirectoryCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2112
1806
|
};
|
|
2113
1807
|
return response;
|
|
2114
1808
|
}, "de_CreateDirectoryCommand");
|
|
2115
|
-
var de_CreateDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2116
|
-
const parsedOutput = {
|
|
2117
|
-
...output,
|
|
2118
|
-
body: await parseErrorBody(output.body, context)
|
|
2119
|
-
};
|
|
2120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2121
|
-
switch (errorCode) {
|
|
2122
|
-
case "ClientException":
|
|
2123
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2124
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "DirectoryLimitExceededException":
|
|
2126
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
2127
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "InvalidParameterException":
|
|
2129
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2130
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ServiceException":
|
|
2132
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2133
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2134
|
-
default:
|
|
2135
|
-
const parsedBody = parsedOutput.body;
|
|
2136
|
-
return throwDefaultError({
|
|
2137
|
-
output,
|
|
2138
|
-
parsedBody,
|
|
2139
|
-
errorCode
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
}, "de_CreateDirectoryCommandError");
|
|
2143
1809
|
var de_CreateLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
1810
|
if (output.statusCode >= 300) {
|
|
2145
|
-
return
|
|
1811
|
+
return de_CommandError(output, context);
|
|
2146
1812
|
}
|
|
2147
1813
|
const data = await parseBody(output.body, context);
|
|
2148
1814
|
let contents = {};
|
|
@@ -2153,43 +1819,9 @@ var de_CreateLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2153
1819
|
};
|
|
2154
1820
|
return response;
|
|
2155
1821
|
}, "de_CreateLogSubscriptionCommand");
|
|
2156
|
-
var de_CreateLogSubscriptionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context)
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "ClientException":
|
|
2164
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2165
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "EntityAlreadyExistsException":
|
|
2167
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2168
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "EntityDoesNotExistException":
|
|
2170
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2171
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "InsufficientPermissionsException":
|
|
2173
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2174
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "ServiceException":
|
|
2176
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2177
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2178
|
-
case "UnsupportedOperationException":
|
|
2179
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2180
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2181
|
-
default:
|
|
2182
|
-
const parsedBody = parsedOutput.body;
|
|
2183
|
-
return throwDefaultError({
|
|
2184
|
-
output,
|
|
2185
|
-
parsedBody,
|
|
2186
|
-
errorCode
|
|
2187
|
-
});
|
|
2188
|
-
}
|
|
2189
|
-
}, "de_CreateLogSubscriptionCommandError");
|
|
2190
1822
|
var de_CreateMicrosoftADCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2191
1823
|
if (output.statusCode >= 300) {
|
|
2192
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
2193
1825
|
}
|
|
2194
1826
|
const data = await parseBody(output.body, context);
|
|
2195
1827
|
let contents = {};
|
|
@@ -2200,40 +1832,9 @@ var de_CreateMicrosoftADCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2200
1832
|
};
|
|
2201
1833
|
return response;
|
|
2202
1834
|
}, "de_CreateMicrosoftADCommand");
|
|
2203
|
-
var de_CreateMicrosoftADCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2204
|
-
const parsedOutput = {
|
|
2205
|
-
...output,
|
|
2206
|
-
body: await parseErrorBody(output.body, context)
|
|
2207
|
-
};
|
|
2208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2209
|
-
switch (errorCode) {
|
|
2210
|
-
case "ClientException":
|
|
2211
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2212
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "DirectoryLimitExceededException":
|
|
2214
|
-
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
2215
|
-
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "InvalidParameterException":
|
|
2217
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2218
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "ServiceException":
|
|
2220
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2221
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "UnsupportedOperationException":
|
|
2223
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2224
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2225
|
-
default:
|
|
2226
|
-
const parsedBody = parsedOutput.body;
|
|
2227
|
-
return throwDefaultError({
|
|
2228
|
-
output,
|
|
2229
|
-
parsedBody,
|
|
2230
|
-
errorCode
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
}, "de_CreateMicrosoftADCommandError");
|
|
2234
1835
|
var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2235
1836
|
if (output.statusCode >= 300) {
|
|
2236
|
-
return
|
|
1837
|
+
return de_CommandError(output, context);
|
|
2237
1838
|
}
|
|
2238
1839
|
const data = await parseBody(output.body, context);
|
|
2239
1840
|
let contents = {};
|
|
@@ -2244,40 +1845,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2244
1845
|
};
|
|
2245
1846
|
return response;
|
|
2246
1847
|
}, "de_CreateSnapshotCommand");
|
|
2247
|
-
var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2248
|
-
const parsedOutput = {
|
|
2249
|
-
...output,
|
|
2250
|
-
body: await parseErrorBody(output.body, context)
|
|
2251
|
-
};
|
|
2252
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
-
switch (errorCode) {
|
|
2254
|
-
case "ClientException":
|
|
2255
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2256
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "EntityDoesNotExistException":
|
|
2258
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2259
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "InvalidParameterException":
|
|
2261
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2262
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "ServiceException":
|
|
2264
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2265
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2266
|
-
case "SnapshotLimitExceededException":
|
|
2267
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
2268
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
2269
|
-
default:
|
|
2270
|
-
const parsedBody = parsedOutput.body;
|
|
2271
|
-
return throwDefaultError({
|
|
2272
|
-
output,
|
|
2273
|
-
parsedBody,
|
|
2274
|
-
errorCode
|
|
2275
|
-
});
|
|
2276
|
-
}
|
|
2277
|
-
}, "de_CreateSnapshotCommandError");
|
|
2278
1848
|
var de_CreateTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2279
1849
|
if (output.statusCode >= 300) {
|
|
2280
|
-
return
|
|
1850
|
+
return de_CommandError(output, context);
|
|
2281
1851
|
}
|
|
2282
1852
|
const data = await parseBody(output.body, context);
|
|
2283
1853
|
let contents = {};
|
|
@@ -2288,43 +1858,9 @@ var de_CreateTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2288
1858
|
};
|
|
2289
1859
|
return response;
|
|
2290
1860
|
}, "de_CreateTrustCommand");
|
|
2291
|
-
var de_CreateTrustCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2292
|
-
const parsedOutput = {
|
|
2293
|
-
...output,
|
|
2294
|
-
body: await parseErrorBody(output.body, context)
|
|
2295
|
-
};
|
|
2296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2297
|
-
switch (errorCode) {
|
|
2298
|
-
case "ClientException":
|
|
2299
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2300
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "EntityAlreadyExistsException":
|
|
2302
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2303
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "EntityDoesNotExistException":
|
|
2305
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2306
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2307
|
-
case "InvalidParameterException":
|
|
2308
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2309
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2310
|
-
case "ServiceException":
|
|
2311
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2312
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "UnsupportedOperationException":
|
|
2314
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2315
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2316
|
-
default:
|
|
2317
|
-
const parsedBody = parsedOutput.body;
|
|
2318
|
-
return throwDefaultError({
|
|
2319
|
-
output,
|
|
2320
|
-
parsedBody,
|
|
2321
|
-
errorCode
|
|
2322
|
-
});
|
|
2323
|
-
}
|
|
2324
|
-
}, "de_CreateTrustCommandError");
|
|
2325
1861
|
var de_DeleteConditionalForwarderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2326
1862
|
if (output.statusCode >= 300) {
|
|
2327
|
-
return
|
|
1863
|
+
return de_CommandError(output, context);
|
|
2328
1864
|
}
|
|
2329
1865
|
const data = await parseBody(output.body, context);
|
|
2330
1866
|
let contents = {};
|
|
@@ -2335,43 +1871,9 @@ var de_DeleteConditionalForwarderCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2335
1871
|
};
|
|
2336
1872
|
return response;
|
|
2337
1873
|
}, "de_DeleteConditionalForwarderCommand");
|
|
2338
|
-
var de_DeleteConditionalForwarderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
|
-
const parsedOutput = {
|
|
2340
|
-
...output,
|
|
2341
|
-
body: await parseErrorBody(output.body, context)
|
|
2342
|
-
};
|
|
2343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
|
-
switch (errorCode) {
|
|
2345
|
-
case "ClientException":
|
|
2346
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2347
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "DirectoryUnavailableException":
|
|
2349
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2350
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "EntityDoesNotExistException":
|
|
2352
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2353
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "InvalidParameterException":
|
|
2355
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2356
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ServiceException":
|
|
2358
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2359
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "UnsupportedOperationException":
|
|
2361
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2362
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2363
|
-
default:
|
|
2364
|
-
const parsedBody = parsedOutput.body;
|
|
2365
|
-
return throwDefaultError({
|
|
2366
|
-
output,
|
|
2367
|
-
parsedBody,
|
|
2368
|
-
errorCode
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
}, "de_DeleteConditionalForwarderCommandError");
|
|
2372
1874
|
var de_DeleteDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2373
1875
|
if (output.statusCode >= 300) {
|
|
2374
|
-
return
|
|
1876
|
+
return de_CommandError(output, context);
|
|
2375
1877
|
}
|
|
2376
1878
|
const data = await parseBody(output.body, context);
|
|
2377
1879
|
let contents = {};
|
|
@@ -2382,34 +1884,9 @@ var de_DeleteDirectoryCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2382
1884
|
};
|
|
2383
1885
|
return response;
|
|
2384
1886
|
}, "de_DeleteDirectoryCommand");
|
|
2385
|
-
var de_DeleteDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2386
|
-
const parsedOutput = {
|
|
2387
|
-
...output,
|
|
2388
|
-
body: await parseErrorBody(output.body, context)
|
|
2389
|
-
};
|
|
2390
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2391
|
-
switch (errorCode) {
|
|
2392
|
-
case "ClientException":
|
|
2393
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2394
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "EntityDoesNotExistException":
|
|
2396
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2397
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "ServiceException":
|
|
2399
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2400
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2401
|
-
default:
|
|
2402
|
-
const parsedBody = parsedOutput.body;
|
|
2403
|
-
return throwDefaultError({
|
|
2404
|
-
output,
|
|
2405
|
-
parsedBody,
|
|
2406
|
-
errorCode
|
|
2407
|
-
});
|
|
2408
|
-
}
|
|
2409
|
-
}, "de_DeleteDirectoryCommandError");
|
|
2410
1887
|
var de_DeleteLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2411
1888
|
if (output.statusCode >= 300) {
|
|
2412
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
2413
1890
|
}
|
|
2414
1891
|
const data = await parseBody(output.body, context);
|
|
2415
1892
|
let contents = {};
|
|
@@ -2420,78 +1897,22 @@ var de_DeleteLogSubscriptionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2420
1897
|
};
|
|
2421
1898
|
return response;
|
|
2422
1899
|
}, "de_DeleteLogSubscriptionCommand");
|
|
2423
|
-
var
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
case "EntityDoesNotExistException":
|
|
2434
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2435
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ServiceException":
|
|
2437
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2438
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "UnsupportedOperationException":
|
|
2440
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2441
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2442
|
-
default:
|
|
2443
|
-
const parsedBody = parsedOutput.body;
|
|
2444
|
-
return throwDefaultError({
|
|
2445
|
-
output,
|
|
2446
|
-
parsedBody,
|
|
2447
|
-
errorCode
|
|
2448
|
-
});
|
|
2449
|
-
}
|
|
2450
|
-
}, "de_DeleteLogSubscriptionCommandError");
|
|
2451
|
-
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2452
|
-
if (output.statusCode >= 300) {
|
|
2453
|
-
return de_DeleteSnapshotCommandError(output, context);
|
|
2454
|
-
}
|
|
2455
|
-
const data = await parseBody(output.body, context);
|
|
2456
|
-
let contents = {};
|
|
2457
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2458
|
-
const response = {
|
|
2459
|
-
$metadata: deserializeMetadata(output),
|
|
2460
|
-
...contents
|
|
1900
|
+
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1901
|
+
if (output.statusCode >= 300) {
|
|
1902
|
+
return de_CommandError(output, context);
|
|
1903
|
+
}
|
|
1904
|
+
const data = await parseBody(output.body, context);
|
|
1905
|
+
let contents = {};
|
|
1906
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1907
|
+
const response = {
|
|
1908
|
+
$metadata: deserializeMetadata(output),
|
|
1909
|
+
...contents
|
|
2461
1910
|
};
|
|
2462
1911
|
return response;
|
|
2463
1912
|
}, "de_DeleteSnapshotCommand");
|
|
2464
|
-
var de_DeleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2465
|
-
const parsedOutput = {
|
|
2466
|
-
...output,
|
|
2467
|
-
body: await parseErrorBody(output.body, context)
|
|
2468
|
-
};
|
|
2469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
-
switch (errorCode) {
|
|
2471
|
-
case "ClientException":
|
|
2472
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2473
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "EntityDoesNotExistException":
|
|
2475
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2476
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "InvalidParameterException":
|
|
2478
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2479
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "ServiceException":
|
|
2481
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2482
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2483
|
-
default:
|
|
2484
|
-
const parsedBody = parsedOutput.body;
|
|
2485
|
-
return throwDefaultError({
|
|
2486
|
-
output,
|
|
2487
|
-
parsedBody,
|
|
2488
|
-
errorCode
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
}, "de_DeleteSnapshotCommandError");
|
|
2492
1913
|
var de_DeleteTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2493
1914
|
if (output.statusCode >= 300) {
|
|
2494
|
-
return
|
|
1915
|
+
return de_CommandError(output, context);
|
|
2495
1916
|
}
|
|
2496
1917
|
const data = await parseBody(output.body, context);
|
|
2497
1918
|
let contents = {};
|
|
@@ -2502,40 +1923,9 @@ var de_DeleteTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2502
1923
|
};
|
|
2503
1924
|
return response;
|
|
2504
1925
|
}, "de_DeleteTrustCommand");
|
|
2505
|
-
var de_DeleteTrustCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2506
|
-
const parsedOutput = {
|
|
2507
|
-
...output,
|
|
2508
|
-
body: await parseErrorBody(output.body, context)
|
|
2509
|
-
};
|
|
2510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
|
-
switch (errorCode) {
|
|
2512
|
-
case "ClientException":
|
|
2513
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2514
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "EntityDoesNotExistException":
|
|
2516
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2517
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "InvalidParameterException":
|
|
2519
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2520
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "ServiceException":
|
|
2522
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2523
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "UnsupportedOperationException":
|
|
2525
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2526
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2527
|
-
default:
|
|
2528
|
-
const parsedBody = parsedOutput.body;
|
|
2529
|
-
return throwDefaultError({
|
|
2530
|
-
output,
|
|
2531
|
-
parsedBody,
|
|
2532
|
-
errorCode
|
|
2533
|
-
});
|
|
2534
|
-
}
|
|
2535
|
-
}, "de_DeleteTrustCommandError");
|
|
2536
1926
|
var de_DeregisterCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2537
1927
|
if (output.statusCode >= 300) {
|
|
2538
|
-
return
|
|
1928
|
+
return de_CommandError(output, context);
|
|
2539
1929
|
}
|
|
2540
1930
|
const data = await parseBody(output.body, context);
|
|
2541
1931
|
let contents = {};
|
|
@@ -2546,49 +1936,9 @@ var de_DeregisterCertificateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2546
1936
|
};
|
|
2547
1937
|
return response;
|
|
2548
1938
|
}, "de_DeregisterCertificateCommand");
|
|
2549
|
-
var de_DeregisterCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2550
|
-
const parsedOutput = {
|
|
2551
|
-
...output,
|
|
2552
|
-
body: await parseErrorBody(output.body, context)
|
|
2553
|
-
};
|
|
2554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2555
|
-
switch (errorCode) {
|
|
2556
|
-
case "CertificateDoesNotExistException":
|
|
2557
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
2558
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "CertificateInUseException":
|
|
2560
|
-
case "com.amazonaws.directoryservice#CertificateInUseException":
|
|
2561
|
-
throw await de_CertificateInUseExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "ClientException":
|
|
2563
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2564
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "DirectoryDoesNotExistException":
|
|
2566
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2567
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "DirectoryUnavailableException":
|
|
2569
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2570
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "InvalidParameterException":
|
|
2572
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2573
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "ServiceException":
|
|
2575
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2576
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "UnsupportedOperationException":
|
|
2578
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2579
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2580
|
-
default:
|
|
2581
|
-
const parsedBody = parsedOutput.body;
|
|
2582
|
-
return throwDefaultError({
|
|
2583
|
-
output,
|
|
2584
|
-
parsedBody,
|
|
2585
|
-
errorCode
|
|
2586
|
-
});
|
|
2587
|
-
}
|
|
2588
|
-
}, "de_DeregisterCertificateCommandError");
|
|
2589
1939
|
var de_DeregisterEventTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2590
1940
|
if (output.statusCode >= 300) {
|
|
2591
|
-
return
|
|
1941
|
+
return de_CommandError(output, context);
|
|
2592
1942
|
}
|
|
2593
1943
|
const data = await parseBody(output.body, context);
|
|
2594
1944
|
let contents = {};
|
|
@@ -2599,37 +1949,9 @@ var de_DeregisterEventTopicCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2599
1949
|
};
|
|
2600
1950
|
return response;
|
|
2601
1951
|
}, "de_DeregisterEventTopicCommand");
|
|
2602
|
-
var de_DeregisterEventTopicCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2603
|
-
const parsedOutput = {
|
|
2604
|
-
...output,
|
|
2605
|
-
body: await parseErrorBody(output.body, context)
|
|
2606
|
-
};
|
|
2607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
-
switch (errorCode) {
|
|
2609
|
-
case "ClientException":
|
|
2610
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2611
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "EntityDoesNotExistException":
|
|
2613
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2614
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "InvalidParameterException":
|
|
2616
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2617
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ServiceException":
|
|
2619
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2620
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2621
|
-
default:
|
|
2622
|
-
const parsedBody = parsedOutput.body;
|
|
2623
|
-
return throwDefaultError({
|
|
2624
|
-
output,
|
|
2625
|
-
parsedBody,
|
|
2626
|
-
errorCode
|
|
2627
|
-
});
|
|
2628
|
-
}
|
|
2629
|
-
}, "de_DeregisterEventTopicCommandError");
|
|
2630
1952
|
var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2631
1953
|
if (output.statusCode >= 300) {
|
|
2632
|
-
return
|
|
1954
|
+
return de_CommandError(output, context);
|
|
2633
1955
|
}
|
|
2634
1956
|
const data = await parseBody(output.body, context);
|
|
2635
1957
|
let contents = {};
|
|
@@ -2640,43 +1962,9 @@ var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2640
1962
|
};
|
|
2641
1963
|
return response;
|
|
2642
1964
|
}, "de_DescribeCertificateCommand");
|
|
2643
|
-
var de_DescribeCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2644
|
-
const parsedOutput = {
|
|
2645
|
-
...output,
|
|
2646
|
-
body: await parseErrorBody(output.body, context)
|
|
2647
|
-
};
|
|
2648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2649
|
-
switch (errorCode) {
|
|
2650
|
-
case "CertificateDoesNotExistException":
|
|
2651
|
-
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
2652
|
-
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2653
|
-
case "ClientException":
|
|
2654
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2655
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "DirectoryDoesNotExistException":
|
|
2657
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2658
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "InvalidParameterException":
|
|
2660
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2661
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "ServiceException":
|
|
2663
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2664
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "UnsupportedOperationException":
|
|
2666
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2667
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2668
|
-
default:
|
|
2669
|
-
const parsedBody = parsedOutput.body;
|
|
2670
|
-
return throwDefaultError({
|
|
2671
|
-
output,
|
|
2672
|
-
parsedBody,
|
|
2673
|
-
errorCode
|
|
2674
|
-
});
|
|
2675
|
-
}
|
|
2676
|
-
}, "de_DescribeCertificateCommandError");
|
|
2677
1965
|
var de_DescribeClientAuthenticationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2678
1966
|
if (output.statusCode >= 300) {
|
|
2679
|
-
return
|
|
1967
|
+
return de_CommandError(output, context);
|
|
2680
1968
|
}
|
|
2681
1969
|
const data = await parseBody(output.body, context);
|
|
2682
1970
|
let contents = {};
|
|
@@ -2687,43 +1975,9 @@ var de_DescribeClientAuthenticationSettingsCommand = /* @__PURE__ */ __name(asyn
|
|
|
2687
1975
|
};
|
|
2688
1976
|
return response;
|
|
2689
1977
|
}, "de_DescribeClientAuthenticationSettingsCommand");
|
|
2690
|
-
var de_DescribeClientAuthenticationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2691
|
-
const parsedOutput = {
|
|
2692
|
-
...output,
|
|
2693
|
-
body: await parseErrorBody(output.body, context)
|
|
2694
|
-
};
|
|
2695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
|
-
switch (errorCode) {
|
|
2697
|
-
case "AccessDeniedException":
|
|
2698
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2699
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2700
|
-
case "ClientException":
|
|
2701
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2702
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2703
|
-
case "DirectoryDoesNotExistException":
|
|
2704
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2705
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "InvalidParameterException":
|
|
2707
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2708
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "ServiceException":
|
|
2710
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2711
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "UnsupportedOperationException":
|
|
2713
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2714
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2715
|
-
default:
|
|
2716
|
-
const parsedBody = parsedOutput.body;
|
|
2717
|
-
return throwDefaultError({
|
|
2718
|
-
output,
|
|
2719
|
-
parsedBody,
|
|
2720
|
-
errorCode
|
|
2721
|
-
});
|
|
2722
|
-
}
|
|
2723
|
-
}, "de_DescribeClientAuthenticationSettingsCommandError");
|
|
2724
1978
|
var de_DescribeConditionalForwardersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2725
1979
|
if (output.statusCode >= 300) {
|
|
2726
|
-
return
|
|
1980
|
+
return de_CommandError(output, context);
|
|
2727
1981
|
}
|
|
2728
1982
|
const data = await parseBody(output.body, context);
|
|
2729
1983
|
let contents = {};
|
|
@@ -2734,43 +1988,9 @@ var de_DescribeConditionalForwardersCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2734
1988
|
};
|
|
2735
1989
|
return response;
|
|
2736
1990
|
}, "de_DescribeConditionalForwardersCommand");
|
|
2737
|
-
var de_DescribeConditionalForwardersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2738
|
-
const parsedOutput = {
|
|
2739
|
-
...output,
|
|
2740
|
-
body: await parseErrorBody(output.body, context)
|
|
2741
|
-
};
|
|
2742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
|
-
switch (errorCode) {
|
|
2744
|
-
case "ClientException":
|
|
2745
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2746
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2747
|
-
case "DirectoryUnavailableException":
|
|
2748
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2749
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2750
|
-
case "EntityDoesNotExistException":
|
|
2751
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2752
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2753
|
-
case "InvalidParameterException":
|
|
2754
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2755
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ServiceException":
|
|
2757
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2758
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "UnsupportedOperationException":
|
|
2760
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2761
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2762
|
-
default:
|
|
2763
|
-
const parsedBody = parsedOutput.body;
|
|
2764
|
-
return throwDefaultError({
|
|
2765
|
-
output,
|
|
2766
|
-
parsedBody,
|
|
2767
|
-
errorCode
|
|
2768
|
-
});
|
|
2769
|
-
}
|
|
2770
|
-
}, "de_DescribeConditionalForwardersCommandError");
|
|
2771
1991
|
var de_DescribeDirectoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2772
1992
|
if (output.statusCode >= 300) {
|
|
2773
|
-
return
|
|
1993
|
+
return de_CommandError(output, context);
|
|
2774
1994
|
}
|
|
2775
1995
|
const data = await parseBody(output.body, context);
|
|
2776
1996
|
let contents = {};
|
|
@@ -2781,87 +2001,22 @@ var de_DescribeDirectoriesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2781
2001
|
};
|
|
2782
2002
|
return response;
|
|
2783
2003
|
}, "de_DescribeDirectoriesCommand");
|
|
2784
|
-
var
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
case "EntityDoesNotExistException":
|
|
2795
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2796
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2797
|
-
case "InvalidNextTokenException":
|
|
2798
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2799
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "InvalidParameterException":
|
|
2801
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2802
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ServiceException":
|
|
2804
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2805
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2806
|
-
default:
|
|
2807
|
-
const parsedBody = parsedOutput.body;
|
|
2808
|
-
return throwDefaultError({
|
|
2809
|
-
output,
|
|
2810
|
-
parsedBody,
|
|
2811
|
-
errorCode
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
}, "de_DescribeDirectoriesCommandError");
|
|
2815
|
-
var de_DescribeDomainControllersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2816
|
-
if (output.statusCode >= 300) {
|
|
2817
|
-
return de_DescribeDomainControllersCommandError(output, context);
|
|
2818
|
-
}
|
|
2819
|
-
const data = await parseBody(output.body, context);
|
|
2820
|
-
let contents = {};
|
|
2821
|
-
contents = de_DescribeDomainControllersResult(data, context);
|
|
2822
|
-
const response = {
|
|
2823
|
-
$metadata: deserializeMetadata(output),
|
|
2824
|
-
...contents
|
|
2004
|
+
var de_DescribeDomainControllersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
|
+
if (output.statusCode >= 300) {
|
|
2006
|
+
return de_CommandError(output, context);
|
|
2007
|
+
}
|
|
2008
|
+
const data = await parseBody(output.body, context);
|
|
2009
|
+
let contents = {};
|
|
2010
|
+
contents = de_DescribeDomainControllersResult(data, context);
|
|
2011
|
+
const response = {
|
|
2012
|
+
$metadata: deserializeMetadata(output),
|
|
2013
|
+
...contents
|
|
2825
2014
|
};
|
|
2826
2015
|
return response;
|
|
2827
2016
|
}, "de_DescribeDomainControllersCommand");
|
|
2828
|
-
var de_DescribeDomainControllersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2829
|
-
const parsedOutput = {
|
|
2830
|
-
...output,
|
|
2831
|
-
body: await parseErrorBody(output.body, context)
|
|
2832
|
-
};
|
|
2833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2834
|
-
switch (errorCode) {
|
|
2835
|
-
case "ClientException":
|
|
2836
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2837
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2838
|
-
case "EntityDoesNotExistException":
|
|
2839
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2840
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2841
|
-
case "InvalidNextTokenException":
|
|
2842
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2843
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2844
|
-
case "InvalidParameterException":
|
|
2845
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2846
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "ServiceException":
|
|
2848
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2849
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "UnsupportedOperationException":
|
|
2851
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2852
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2853
|
-
default:
|
|
2854
|
-
const parsedBody = parsedOutput.body;
|
|
2855
|
-
return throwDefaultError({
|
|
2856
|
-
output,
|
|
2857
|
-
parsedBody,
|
|
2858
|
-
errorCode
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
}, "de_DescribeDomainControllersCommandError");
|
|
2862
2017
|
var de_DescribeEventTopicsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2863
2018
|
if (output.statusCode >= 300) {
|
|
2864
|
-
return
|
|
2019
|
+
return de_CommandError(output, context);
|
|
2865
2020
|
}
|
|
2866
2021
|
const data = await parseBody(output.body, context);
|
|
2867
2022
|
let contents = {};
|
|
@@ -2872,37 +2027,9 @@ var de_DescribeEventTopicsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2872
2027
|
};
|
|
2873
2028
|
return response;
|
|
2874
2029
|
}, "de_DescribeEventTopicsCommand");
|
|
2875
|
-
var de_DescribeEventTopicsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2876
|
-
const parsedOutput = {
|
|
2877
|
-
...output,
|
|
2878
|
-
body: await parseErrorBody(output.body, context)
|
|
2879
|
-
};
|
|
2880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
|
-
switch (errorCode) {
|
|
2882
|
-
case "ClientException":
|
|
2883
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2884
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "EntityDoesNotExistException":
|
|
2886
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
2887
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "InvalidParameterException":
|
|
2889
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2890
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "ServiceException":
|
|
2892
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2893
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2894
|
-
default:
|
|
2895
|
-
const parsedBody = parsedOutput.body;
|
|
2896
|
-
return throwDefaultError({
|
|
2897
|
-
output,
|
|
2898
|
-
parsedBody,
|
|
2899
|
-
errorCode
|
|
2900
|
-
});
|
|
2901
|
-
}
|
|
2902
|
-
}, "de_DescribeEventTopicsCommandError");
|
|
2903
2030
|
var de_DescribeLDAPSSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2904
2031
|
if (output.statusCode >= 300) {
|
|
2905
|
-
return
|
|
2032
|
+
return de_CommandError(output, context);
|
|
2906
2033
|
}
|
|
2907
2034
|
const data = await parseBody(output.body, context);
|
|
2908
2035
|
let contents = {};
|
|
@@ -2913,43 +2040,9 @@ var de_DescribeLDAPSSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2913
2040
|
};
|
|
2914
2041
|
return response;
|
|
2915
2042
|
}, "de_DescribeLDAPSSettingsCommand");
|
|
2916
|
-
var de_DescribeLDAPSSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2917
|
-
const parsedOutput = {
|
|
2918
|
-
...output,
|
|
2919
|
-
body: await parseErrorBody(output.body, context)
|
|
2920
|
-
};
|
|
2921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2922
|
-
switch (errorCode) {
|
|
2923
|
-
case "ClientException":
|
|
2924
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2925
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2926
|
-
case "DirectoryDoesNotExistException":
|
|
2927
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2928
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "InvalidNextTokenException":
|
|
2930
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2931
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "InvalidParameterException":
|
|
2933
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2934
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "ServiceException":
|
|
2936
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2937
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "UnsupportedOperationException":
|
|
2939
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2940
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2941
|
-
default:
|
|
2942
|
-
const parsedBody = parsedOutput.body;
|
|
2943
|
-
return throwDefaultError({
|
|
2944
|
-
output,
|
|
2945
|
-
parsedBody,
|
|
2946
|
-
errorCode
|
|
2947
|
-
});
|
|
2948
|
-
}
|
|
2949
|
-
}, "de_DescribeLDAPSSettingsCommandError");
|
|
2950
2043
|
var de_DescribeRegionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2951
2044
|
if (output.statusCode >= 300) {
|
|
2952
|
-
return
|
|
2045
|
+
return de_CommandError(output, context);
|
|
2953
2046
|
}
|
|
2954
2047
|
const data = await parseBody(output.body, context);
|
|
2955
2048
|
let contents = {};
|
|
@@ -2960,46 +2053,9 @@ var de_DescribeRegionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2960
2053
|
};
|
|
2961
2054
|
return response;
|
|
2962
2055
|
}, "de_DescribeRegionsCommand");
|
|
2963
|
-
var de_DescribeRegionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2964
|
-
const parsedOutput = {
|
|
2965
|
-
...output,
|
|
2966
|
-
body: await parseErrorBody(output.body, context)
|
|
2967
|
-
};
|
|
2968
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2969
|
-
switch (errorCode) {
|
|
2970
|
-
case "AccessDeniedException":
|
|
2971
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2972
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "ClientException":
|
|
2974
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
2975
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "DirectoryDoesNotExistException":
|
|
2977
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2978
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "InvalidNextTokenException":
|
|
2980
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2981
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "InvalidParameterException":
|
|
2983
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
2984
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ServiceException":
|
|
2986
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
2987
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2988
|
-
case "UnsupportedOperationException":
|
|
2989
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
2990
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2991
|
-
default:
|
|
2992
|
-
const parsedBody = parsedOutput.body;
|
|
2993
|
-
return throwDefaultError({
|
|
2994
|
-
output,
|
|
2995
|
-
parsedBody,
|
|
2996
|
-
errorCode
|
|
2997
|
-
});
|
|
2998
|
-
}
|
|
2999
|
-
}, "de_DescribeRegionsCommandError");
|
|
3000
2056
|
var de_DescribeSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3001
2057
|
if (output.statusCode >= 300) {
|
|
3002
|
-
return
|
|
2058
|
+
return de_CommandError(output, context);
|
|
3003
2059
|
}
|
|
3004
2060
|
const data = await parseBody(output.body, context);
|
|
3005
2061
|
let contents = {};
|
|
@@ -3010,43 +2066,9 @@ var de_DescribeSettingsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3010
2066
|
};
|
|
3011
2067
|
return response;
|
|
3012
2068
|
}, "de_DescribeSettingsCommand");
|
|
3013
|
-
var de_DescribeSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3014
|
-
const parsedOutput = {
|
|
3015
|
-
...output,
|
|
3016
|
-
body: await parseErrorBody(output.body, context)
|
|
3017
|
-
};
|
|
3018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
-
switch (errorCode) {
|
|
3020
|
-
case "ClientException":
|
|
3021
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3022
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "DirectoryDoesNotExistException":
|
|
3024
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3025
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "InvalidNextTokenException":
|
|
3027
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3028
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "InvalidParameterException":
|
|
3030
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3031
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "ServiceException":
|
|
3033
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3034
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3035
|
-
case "UnsupportedOperationException":
|
|
3036
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3037
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3038
|
-
default:
|
|
3039
|
-
const parsedBody = parsedOutput.body;
|
|
3040
|
-
return throwDefaultError({
|
|
3041
|
-
output,
|
|
3042
|
-
parsedBody,
|
|
3043
|
-
errorCode
|
|
3044
|
-
});
|
|
3045
|
-
}
|
|
3046
|
-
}, "de_DescribeSettingsCommandError");
|
|
3047
2069
|
var de_DescribeSharedDirectoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3048
2070
|
if (output.statusCode >= 300) {
|
|
3049
|
-
return
|
|
2071
|
+
return de_CommandError(output, context);
|
|
3050
2072
|
}
|
|
3051
2073
|
const data = await parseBody(output.body, context);
|
|
3052
2074
|
let contents = {};
|
|
@@ -3057,43 +2079,9 @@ var de_DescribeSharedDirectoriesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3057
2079
|
};
|
|
3058
2080
|
return response;
|
|
3059
2081
|
}, "de_DescribeSharedDirectoriesCommand");
|
|
3060
|
-
var de_DescribeSharedDirectoriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3061
|
-
const parsedOutput = {
|
|
3062
|
-
...output,
|
|
3063
|
-
body: await parseErrorBody(output.body, context)
|
|
3064
|
-
};
|
|
3065
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3066
|
-
switch (errorCode) {
|
|
3067
|
-
case "ClientException":
|
|
3068
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3069
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3070
|
-
case "EntityDoesNotExistException":
|
|
3071
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3072
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "InvalidNextTokenException":
|
|
3074
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3075
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3076
|
-
case "InvalidParameterException":
|
|
3077
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3078
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3079
|
-
case "ServiceException":
|
|
3080
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3081
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "UnsupportedOperationException":
|
|
3083
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3084
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3085
|
-
default:
|
|
3086
|
-
const parsedBody = parsedOutput.body;
|
|
3087
|
-
return throwDefaultError({
|
|
3088
|
-
output,
|
|
3089
|
-
parsedBody,
|
|
3090
|
-
errorCode
|
|
3091
|
-
});
|
|
3092
|
-
}
|
|
3093
|
-
}, "de_DescribeSharedDirectoriesCommandError");
|
|
3094
2082
|
var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3095
2083
|
if (output.statusCode >= 300) {
|
|
3096
|
-
return
|
|
2084
|
+
return de_CommandError(output, context);
|
|
3097
2085
|
}
|
|
3098
2086
|
const data = await parseBody(output.body, context);
|
|
3099
2087
|
let contents = {};
|
|
@@ -3104,40 +2092,9 @@ var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3104
2092
|
};
|
|
3105
2093
|
return response;
|
|
3106
2094
|
}, "de_DescribeSnapshotsCommand");
|
|
3107
|
-
var de_DescribeSnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3108
|
-
const parsedOutput = {
|
|
3109
|
-
...output,
|
|
3110
|
-
body: await parseErrorBody(output.body, context)
|
|
3111
|
-
};
|
|
3112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
-
switch (errorCode) {
|
|
3114
|
-
case "ClientException":
|
|
3115
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3116
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "EntityDoesNotExistException":
|
|
3118
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3119
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "InvalidNextTokenException":
|
|
3121
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3122
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "InvalidParameterException":
|
|
3124
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3125
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ServiceException":
|
|
3127
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3128
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3129
|
-
default:
|
|
3130
|
-
const parsedBody = parsedOutput.body;
|
|
3131
|
-
return throwDefaultError({
|
|
3132
|
-
output,
|
|
3133
|
-
parsedBody,
|
|
3134
|
-
errorCode
|
|
3135
|
-
});
|
|
3136
|
-
}
|
|
3137
|
-
}, "de_DescribeSnapshotsCommandError");
|
|
3138
2095
|
var de_DescribeTrustsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3139
2096
|
if (output.statusCode >= 300) {
|
|
3140
|
-
return
|
|
2097
|
+
return de_CommandError(output, context);
|
|
3141
2098
|
}
|
|
3142
2099
|
const data = await parseBody(output.body, context);
|
|
3143
2100
|
let contents = {};
|
|
@@ -3148,43 +2105,9 @@ var de_DescribeTrustsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3148
2105
|
};
|
|
3149
2106
|
return response;
|
|
3150
2107
|
}, "de_DescribeTrustsCommand");
|
|
3151
|
-
var de_DescribeTrustsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3152
|
-
const parsedOutput = {
|
|
3153
|
-
...output,
|
|
3154
|
-
body: await parseErrorBody(output.body, context)
|
|
3155
|
-
};
|
|
3156
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3157
|
-
switch (errorCode) {
|
|
3158
|
-
case "ClientException":
|
|
3159
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3160
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3161
|
-
case "EntityDoesNotExistException":
|
|
3162
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3163
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3164
|
-
case "InvalidNextTokenException":
|
|
3165
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3166
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3167
|
-
case "InvalidParameterException":
|
|
3168
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3169
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3170
|
-
case "ServiceException":
|
|
3171
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3172
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3173
|
-
case "UnsupportedOperationException":
|
|
3174
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3175
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3176
|
-
default:
|
|
3177
|
-
const parsedBody = parsedOutput.body;
|
|
3178
|
-
return throwDefaultError({
|
|
3179
|
-
output,
|
|
3180
|
-
parsedBody,
|
|
3181
|
-
errorCode
|
|
3182
|
-
});
|
|
3183
|
-
}
|
|
3184
|
-
}, "de_DescribeTrustsCommandError");
|
|
3185
2108
|
var de_DescribeUpdateDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3186
2109
|
if (output.statusCode >= 300) {
|
|
3187
|
-
return
|
|
2110
|
+
return de_CommandError(output, context);
|
|
3188
2111
|
}
|
|
3189
2112
|
const data = await parseBody(output.body, context);
|
|
3190
2113
|
let contents = {};
|
|
@@ -3195,43 +2118,9 @@ var de_DescribeUpdateDirectoryCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3195
2118
|
};
|
|
3196
2119
|
return response;
|
|
3197
2120
|
}, "de_DescribeUpdateDirectoryCommand");
|
|
3198
|
-
var de_DescribeUpdateDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3199
|
-
const parsedOutput = {
|
|
3200
|
-
...output,
|
|
3201
|
-
body: await parseErrorBody(output.body, context)
|
|
3202
|
-
};
|
|
3203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3204
|
-
switch (errorCode) {
|
|
3205
|
-
case "AccessDeniedException":
|
|
3206
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "ClientException":
|
|
3209
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3210
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "DirectoryDoesNotExistException":
|
|
3212
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3213
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "InvalidNextTokenException":
|
|
3215
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3216
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "InvalidParameterException":
|
|
3218
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3219
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3220
|
-
case "ServiceException":
|
|
3221
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3222
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3223
|
-
default:
|
|
3224
|
-
const parsedBody = parsedOutput.body;
|
|
3225
|
-
return throwDefaultError({
|
|
3226
|
-
output,
|
|
3227
|
-
parsedBody,
|
|
3228
|
-
errorCode
|
|
3229
|
-
});
|
|
3230
|
-
}
|
|
3231
|
-
}, "de_DescribeUpdateDirectoryCommandError");
|
|
3232
2121
|
var de_DisableClientAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3233
2122
|
if (output.statusCode >= 300) {
|
|
3234
|
-
return
|
|
2123
|
+
return de_CommandError(output, context);
|
|
3235
2124
|
}
|
|
3236
2125
|
const data = await parseBody(output.body, context);
|
|
3237
2126
|
let contents = {};
|
|
@@ -3242,43 +2131,9 @@ var de_DisableClientAuthenticationCommand = /* @__PURE__ */ __name(async (output
|
|
|
3242
2131
|
};
|
|
3243
2132
|
return response;
|
|
3244
2133
|
}, "de_DisableClientAuthenticationCommand");
|
|
3245
|
-
var de_DisableClientAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3246
|
-
const parsedOutput = {
|
|
3247
|
-
...output,
|
|
3248
|
-
body: await parseErrorBody(output.body, context)
|
|
3249
|
-
};
|
|
3250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
|
-
switch (errorCode) {
|
|
3252
|
-
case "AccessDeniedException":
|
|
3253
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "ClientException":
|
|
3256
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3257
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "DirectoryDoesNotExistException":
|
|
3259
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3260
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "InvalidClientAuthStatusException":
|
|
3262
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
3263
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ServiceException":
|
|
3265
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3266
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "UnsupportedOperationException":
|
|
3268
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3269
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
}, "de_DisableClientAuthenticationCommandError");
|
|
3279
2134
|
var de_DisableLDAPSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3280
2135
|
if (output.statusCode >= 300) {
|
|
3281
|
-
return
|
|
2136
|
+
return de_CommandError(output, context);
|
|
3282
2137
|
}
|
|
3283
2138
|
const data = await parseBody(output.body, context);
|
|
3284
2139
|
let contents = {};
|
|
@@ -3289,46 +2144,9 @@ var de_DisableLDAPSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3289
2144
|
};
|
|
3290
2145
|
return response;
|
|
3291
2146
|
}, "de_DisableLDAPSCommand");
|
|
3292
|
-
var de_DisableLDAPSCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3293
|
-
const parsedOutput = {
|
|
3294
|
-
...output,
|
|
3295
|
-
body: await parseErrorBody(output.body, context)
|
|
3296
|
-
};
|
|
3297
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3298
|
-
switch (errorCode) {
|
|
3299
|
-
case "ClientException":
|
|
3300
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3301
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3302
|
-
case "DirectoryDoesNotExistException":
|
|
3303
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3304
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3305
|
-
case "DirectoryUnavailableException":
|
|
3306
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3307
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "InvalidLDAPSStatusException":
|
|
3309
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
3310
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "InvalidParameterException":
|
|
3312
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3313
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "ServiceException":
|
|
3315
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3316
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "UnsupportedOperationException":
|
|
3318
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3319
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3320
|
-
default:
|
|
3321
|
-
const parsedBody = parsedOutput.body;
|
|
3322
|
-
return throwDefaultError({
|
|
3323
|
-
output,
|
|
3324
|
-
parsedBody,
|
|
3325
|
-
errorCode
|
|
3326
|
-
});
|
|
3327
|
-
}
|
|
3328
|
-
}, "de_DisableLDAPSCommandError");
|
|
3329
2147
|
var de_DisableRadiusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3330
2148
|
if (output.statusCode >= 300) {
|
|
3331
|
-
return
|
|
2149
|
+
return de_CommandError(output, context);
|
|
3332
2150
|
}
|
|
3333
2151
|
const data = await parseBody(output.body, context);
|
|
3334
2152
|
let contents = {};
|
|
@@ -3339,34 +2157,9 @@ var de_DisableRadiusCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3339
2157
|
};
|
|
3340
2158
|
return response;
|
|
3341
2159
|
}, "de_DisableRadiusCommand");
|
|
3342
|
-
var de_DisableRadiusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3343
|
-
const parsedOutput = {
|
|
3344
|
-
...output,
|
|
3345
|
-
body: await parseErrorBody(output.body, context)
|
|
3346
|
-
};
|
|
3347
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
|
-
switch (errorCode) {
|
|
3349
|
-
case "ClientException":
|
|
3350
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3351
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "EntityDoesNotExistException":
|
|
3353
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3354
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "ServiceException":
|
|
3356
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3357
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3358
|
-
default:
|
|
3359
|
-
const parsedBody = parsedOutput.body;
|
|
3360
|
-
return throwDefaultError({
|
|
3361
|
-
output,
|
|
3362
|
-
parsedBody,
|
|
3363
|
-
errorCode
|
|
3364
|
-
});
|
|
3365
|
-
}
|
|
3366
|
-
}, "de_DisableRadiusCommandError");
|
|
3367
2160
|
var de_DisableSsoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3368
2161
|
if (output.statusCode >= 300) {
|
|
3369
|
-
return
|
|
2162
|
+
return de_CommandError(output, context);
|
|
3370
2163
|
}
|
|
3371
2164
|
const data = await parseBody(output.body, context);
|
|
3372
2165
|
let contents = {};
|
|
@@ -3377,40 +2170,9 @@ var de_DisableSsoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3377
2170
|
};
|
|
3378
2171
|
return response;
|
|
3379
2172
|
}, "de_DisableSsoCommand");
|
|
3380
|
-
var de_DisableSsoCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3381
|
-
const parsedOutput = {
|
|
3382
|
-
...output,
|
|
3383
|
-
body: await parseErrorBody(output.body, context)
|
|
3384
|
-
};
|
|
3385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3386
|
-
switch (errorCode) {
|
|
3387
|
-
case "AuthenticationFailedException":
|
|
3388
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
3389
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
3390
|
-
case "ClientException":
|
|
3391
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3392
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3393
|
-
case "EntityDoesNotExistException":
|
|
3394
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3395
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "InsufficientPermissionsException":
|
|
3397
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
3398
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "ServiceException":
|
|
3400
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3401
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3402
|
-
default:
|
|
3403
|
-
const parsedBody = parsedOutput.body;
|
|
3404
|
-
return throwDefaultError({
|
|
3405
|
-
output,
|
|
3406
|
-
parsedBody,
|
|
3407
|
-
errorCode
|
|
3408
|
-
});
|
|
3409
|
-
}
|
|
3410
|
-
}, "de_DisableSsoCommandError");
|
|
3411
2173
|
var de_EnableClientAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3412
2174
|
if (output.statusCode >= 300) {
|
|
3413
|
-
return
|
|
2175
|
+
return de_CommandError(output, context);
|
|
3414
2176
|
}
|
|
3415
2177
|
const data = await parseBody(output.body, context);
|
|
3416
2178
|
let contents = {};
|
|
@@ -3421,46 +2183,9 @@ var de_EnableClientAuthenticationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3421
2183
|
};
|
|
3422
2184
|
return response;
|
|
3423
2185
|
}, "de_EnableClientAuthenticationCommand");
|
|
3424
|
-
var de_EnableClientAuthenticationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3425
|
-
const parsedOutput = {
|
|
3426
|
-
...output,
|
|
3427
|
-
body: await parseErrorBody(output.body, context)
|
|
3428
|
-
};
|
|
3429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3430
|
-
switch (errorCode) {
|
|
3431
|
-
case "AccessDeniedException":
|
|
3432
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
3433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3434
|
-
case "ClientException":
|
|
3435
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3436
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3437
|
-
case "DirectoryDoesNotExistException":
|
|
3438
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3439
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3440
|
-
case "InvalidClientAuthStatusException":
|
|
3441
|
-
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
3442
|
-
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "NoAvailableCertificateException":
|
|
3444
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
3445
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ServiceException":
|
|
3447
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3448
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "UnsupportedOperationException":
|
|
3450
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3451
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3452
|
-
default:
|
|
3453
|
-
const parsedBody = parsedOutput.body;
|
|
3454
|
-
return throwDefaultError({
|
|
3455
|
-
output,
|
|
3456
|
-
parsedBody,
|
|
3457
|
-
errorCode
|
|
3458
|
-
});
|
|
3459
|
-
}
|
|
3460
|
-
}, "de_EnableClientAuthenticationCommandError");
|
|
3461
2186
|
var de_EnableLDAPSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3462
2187
|
if (output.statusCode >= 300) {
|
|
3463
|
-
return
|
|
2188
|
+
return de_CommandError(output, context);
|
|
3464
2189
|
}
|
|
3465
2190
|
const data = await parseBody(output.body, context);
|
|
3466
2191
|
let contents = {};
|
|
@@ -3471,49 +2196,9 @@ var de_EnableLDAPSCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3471
2196
|
};
|
|
3472
2197
|
return response;
|
|
3473
2198
|
}, "de_EnableLDAPSCommand");
|
|
3474
|
-
var de_EnableLDAPSCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3475
|
-
const parsedOutput = {
|
|
3476
|
-
...output,
|
|
3477
|
-
body: await parseErrorBody(output.body, context)
|
|
3478
|
-
};
|
|
3479
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3480
|
-
switch (errorCode) {
|
|
3481
|
-
case "ClientException":
|
|
3482
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3483
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3484
|
-
case "DirectoryDoesNotExistException":
|
|
3485
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3486
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "DirectoryUnavailableException":
|
|
3488
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3489
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "InvalidLDAPSStatusException":
|
|
3491
|
-
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
3492
|
-
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
3493
|
-
case "InvalidParameterException":
|
|
3494
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3495
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "NoAvailableCertificateException":
|
|
3497
|
-
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
3498
|
-
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "ServiceException":
|
|
3500
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3501
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "UnsupportedOperationException":
|
|
3503
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3504
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
}, "de_EnableLDAPSCommandError");
|
|
3514
2199
|
var de_EnableRadiusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3515
2200
|
if (output.statusCode >= 300) {
|
|
3516
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
3517
2202
|
}
|
|
3518
2203
|
const data = await parseBody(output.body, context);
|
|
3519
2204
|
let contents = {};
|
|
@@ -3524,40 +2209,9 @@ var de_EnableRadiusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3524
2209
|
};
|
|
3525
2210
|
return response;
|
|
3526
2211
|
}, "de_EnableRadiusCommand");
|
|
3527
|
-
var de_EnableRadiusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3528
|
-
const parsedOutput = {
|
|
3529
|
-
...output,
|
|
3530
|
-
body: await parseErrorBody(output.body, context)
|
|
3531
|
-
};
|
|
3532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3533
|
-
switch (errorCode) {
|
|
3534
|
-
case "ClientException":
|
|
3535
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3536
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "EntityAlreadyExistsException":
|
|
3538
|
-
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
3539
|
-
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "EntityDoesNotExistException":
|
|
3541
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3542
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "InvalidParameterException":
|
|
3544
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3545
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ServiceException":
|
|
3547
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3548
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3549
|
-
default:
|
|
3550
|
-
const parsedBody = parsedOutput.body;
|
|
3551
|
-
return throwDefaultError({
|
|
3552
|
-
output,
|
|
3553
|
-
parsedBody,
|
|
3554
|
-
errorCode
|
|
3555
|
-
});
|
|
3556
|
-
}
|
|
3557
|
-
}, "de_EnableRadiusCommandError");
|
|
3558
2212
|
var de_EnableSsoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3559
2213
|
if (output.statusCode >= 300) {
|
|
3560
|
-
return
|
|
2214
|
+
return de_CommandError(output, context);
|
|
3561
2215
|
}
|
|
3562
2216
|
const data = await parseBody(output.body, context);
|
|
3563
2217
|
let contents = {};
|
|
@@ -3568,40 +2222,9 @@ var de_EnableSsoCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3568
2222
|
};
|
|
3569
2223
|
return response;
|
|
3570
2224
|
}, "de_EnableSsoCommand");
|
|
3571
|
-
var de_EnableSsoCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3572
|
-
const parsedOutput = {
|
|
3573
|
-
...output,
|
|
3574
|
-
body: await parseErrorBody(output.body, context)
|
|
3575
|
-
};
|
|
3576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3577
|
-
switch (errorCode) {
|
|
3578
|
-
case "AuthenticationFailedException":
|
|
3579
|
-
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
3580
|
-
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
3581
|
-
case "ClientException":
|
|
3582
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3583
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3584
|
-
case "EntityDoesNotExistException":
|
|
3585
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3586
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "InsufficientPermissionsException":
|
|
3588
|
-
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
3589
|
-
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "ServiceException":
|
|
3591
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3592
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3593
|
-
default:
|
|
3594
|
-
const parsedBody = parsedOutput.body;
|
|
3595
|
-
return throwDefaultError({
|
|
3596
|
-
output,
|
|
3597
|
-
parsedBody,
|
|
3598
|
-
errorCode
|
|
3599
|
-
});
|
|
3600
|
-
}
|
|
3601
|
-
}, "de_EnableSsoCommandError");
|
|
3602
2225
|
var de_GetDirectoryLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3603
2226
|
if (output.statusCode >= 300) {
|
|
3604
|
-
return
|
|
2227
|
+
return de_CommandError(output, context);
|
|
3605
2228
|
}
|
|
3606
2229
|
const data = await parseBody(output.body, context);
|
|
3607
2230
|
let contents = {};
|
|
@@ -3612,34 +2235,9 @@ var de_GetDirectoryLimitsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3612
2235
|
};
|
|
3613
2236
|
return response;
|
|
3614
2237
|
}, "de_GetDirectoryLimitsCommand");
|
|
3615
|
-
var de_GetDirectoryLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3616
|
-
const parsedOutput = {
|
|
3617
|
-
...output,
|
|
3618
|
-
body: await parseErrorBody(output.body, context)
|
|
3619
|
-
};
|
|
3620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3621
|
-
switch (errorCode) {
|
|
3622
|
-
case "ClientException":
|
|
3623
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3624
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "EntityDoesNotExistException":
|
|
3626
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3627
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ServiceException":
|
|
3629
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3630
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody,
|
|
3636
|
-
errorCode
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
}, "de_GetDirectoryLimitsCommandError");
|
|
3640
2238
|
var de_GetSnapshotLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3641
2239
|
if (output.statusCode >= 300) {
|
|
3642
|
-
return
|
|
2240
|
+
return de_CommandError(output, context);
|
|
3643
2241
|
}
|
|
3644
2242
|
const data = await parseBody(output.body, context);
|
|
3645
2243
|
let contents = {};
|
|
@@ -3650,34 +2248,9 @@ var de_GetSnapshotLimitsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3650
2248
|
};
|
|
3651
2249
|
return response;
|
|
3652
2250
|
}, "de_GetSnapshotLimitsCommand");
|
|
3653
|
-
var de_GetSnapshotLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3654
|
-
const parsedOutput = {
|
|
3655
|
-
...output,
|
|
3656
|
-
body: await parseErrorBody(output.body, context)
|
|
3657
|
-
};
|
|
3658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3659
|
-
switch (errorCode) {
|
|
3660
|
-
case "ClientException":
|
|
3661
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3662
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "EntityDoesNotExistException":
|
|
3664
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3665
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "ServiceException":
|
|
3667
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3668
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3669
|
-
default:
|
|
3670
|
-
const parsedBody = parsedOutput.body;
|
|
3671
|
-
return throwDefaultError({
|
|
3672
|
-
output,
|
|
3673
|
-
parsedBody,
|
|
3674
|
-
errorCode
|
|
3675
|
-
});
|
|
3676
|
-
}
|
|
3677
|
-
}, "de_GetSnapshotLimitsCommandError");
|
|
3678
2251
|
var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3679
2252
|
if (output.statusCode >= 300) {
|
|
3680
|
-
return
|
|
2253
|
+
return de_CommandError(output, context);
|
|
3681
2254
|
}
|
|
3682
2255
|
const data = await parseBody(output.body, context);
|
|
3683
2256
|
let contents = {};
|
|
@@ -3688,43 +2261,9 @@ var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3688
2261
|
};
|
|
3689
2262
|
return response;
|
|
3690
2263
|
}, "de_ListCertificatesCommand");
|
|
3691
|
-
var de_ListCertificatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3692
|
-
const parsedOutput = {
|
|
3693
|
-
...output,
|
|
3694
|
-
body: await parseErrorBody(output.body, context)
|
|
3695
|
-
};
|
|
3696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3697
|
-
switch (errorCode) {
|
|
3698
|
-
case "ClientException":
|
|
3699
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3700
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "DirectoryDoesNotExistException":
|
|
3702
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3703
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "InvalidNextTokenException":
|
|
3705
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3706
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "InvalidParameterException":
|
|
3708
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3709
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "ServiceException":
|
|
3711
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3712
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3713
|
-
case "UnsupportedOperationException":
|
|
3714
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3715
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3716
|
-
default:
|
|
3717
|
-
const parsedBody = parsedOutput.body;
|
|
3718
|
-
return throwDefaultError({
|
|
3719
|
-
output,
|
|
3720
|
-
parsedBody,
|
|
3721
|
-
errorCode
|
|
3722
|
-
});
|
|
3723
|
-
}
|
|
3724
|
-
}, "de_ListCertificatesCommandError");
|
|
3725
2264
|
var de_ListIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3726
2265
|
if (output.statusCode >= 300) {
|
|
3727
|
-
return
|
|
2266
|
+
return de_CommandError(output, context);
|
|
3728
2267
|
}
|
|
3729
2268
|
const data = await parseBody(output.body, context);
|
|
3730
2269
|
let contents = {};
|
|
@@ -3735,40 +2274,9 @@ var de_ListIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3735
2274
|
};
|
|
3736
2275
|
return response;
|
|
3737
2276
|
}, "de_ListIpRoutesCommand");
|
|
3738
|
-
var de_ListIpRoutesCommandError = /* @__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 "ClientException":
|
|
3746
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3747
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "EntityDoesNotExistException":
|
|
3749
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3750
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "InvalidNextTokenException":
|
|
3752
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3753
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "InvalidParameterException":
|
|
3755
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3756
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3757
|
-
case "ServiceException":
|
|
3758
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3759
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3760
|
-
default:
|
|
3761
|
-
const parsedBody = parsedOutput.body;
|
|
3762
|
-
return throwDefaultError({
|
|
3763
|
-
output,
|
|
3764
|
-
parsedBody,
|
|
3765
|
-
errorCode
|
|
3766
|
-
});
|
|
3767
|
-
}
|
|
3768
|
-
}, "de_ListIpRoutesCommandError");
|
|
3769
2277
|
var de_ListLogSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3770
2278
|
if (output.statusCode >= 300) {
|
|
3771
|
-
return
|
|
2279
|
+
return de_CommandError(output, context);
|
|
3772
2280
|
}
|
|
3773
2281
|
const data = await parseBody(output.body, context);
|
|
3774
2282
|
let contents = {};
|
|
@@ -3779,37 +2287,9 @@ var de_ListLogSubscriptionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3779
2287
|
};
|
|
3780
2288
|
return response;
|
|
3781
2289
|
}, "de_ListLogSubscriptionsCommand");
|
|
3782
|
-
var de_ListLogSubscriptionsCommandError = /* @__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 "ClientException":
|
|
3790
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3791
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "EntityDoesNotExistException":
|
|
3793
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3794
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3795
|
-
case "InvalidNextTokenException":
|
|
3796
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3797
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "ServiceException":
|
|
3799
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3800
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3801
|
-
default:
|
|
3802
|
-
const parsedBody = parsedOutput.body;
|
|
3803
|
-
return throwDefaultError({
|
|
3804
|
-
output,
|
|
3805
|
-
parsedBody,
|
|
3806
|
-
errorCode
|
|
3807
|
-
});
|
|
3808
|
-
}
|
|
3809
|
-
}, "de_ListLogSubscriptionsCommandError");
|
|
3810
2290
|
var de_ListSchemaExtensionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3811
2291
|
if (output.statusCode >= 300) {
|
|
3812
|
-
return
|
|
2292
|
+
return de_CommandError(output, context);
|
|
3813
2293
|
}
|
|
3814
2294
|
const data = await parseBody(output.body, context);
|
|
3815
2295
|
let contents = {};
|
|
@@ -3820,37 +2300,9 @@ var de_ListSchemaExtensionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3820
2300
|
};
|
|
3821
2301
|
return response;
|
|
3822
2302
|
}, "de_ListSchemaExtensionsCommand");
|
|
3823
|
-
var de_ListSchemaExtensionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3824
|
-
const parsedOutput = {
|
|
3825
|
-
...output,
|
|
3826
|
-
body: await parseErrorBody(output.body, context)
|
|
3827
|
-
};
|
|
3828
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3829
|
-
switch (errorCode) {
|
|
3830
|
-
case "ClientException":
|
|
3831
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3832
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "EntityDoesNotExistException":
|
|
3834
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3835
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3836
|
-
case "InvalidNextTokenException":
|
|
3837
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3838
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3839
|
-
case "ServiceException":
|
|
3840
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3841
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3842
|
-
default:
|
|
3843
|
-
const parsedBody = parsedOutput.body;
|
|
3844
|
-
return throwDefaultError({
|
|
3845
|
-
output,
|
|
3846
|
-
parsedBody,
|
|
3847
|
-
errorCode
|
|
3848
|
-
});
|
|
3849
|
-
}
|
|
3850
|
-
}, "de_ListSchemaExtensionsCommandError");
|
|
3851
2303
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3852
2304
|
if (output.statusCode >= 300) {
|
|
3853
|
-
return
|
|
2305
|
+
return de_CommandError(output, context);
|
|
3854
2306
|
}
|
|
3855
2307
|
const data = await parseBody(output.body, context);
|
|
3856
2308
|
let contents = {};
|
|
@@ -3861,40 +2313,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3861
2313
|
};
|
|
3862
2314
|
return response;
|
|
3863
2315
|
}, "de_ListTagsForResourceCommand");
|
|
3864
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3865
|
-
const parsedOutput = {
|
|
3866
|
-
...output,
|
|
3867
|
-
body: await parseErrorBody(output.body, context)
|
|
3868
|
-
};
|
|
3869
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3870
|
-
switch (errorCode) {
|
|
3871
|
-
case "ClientException":
|
|
3872
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3873
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3874
|
-
case "EntityDoesNotExistException":
|
|
3875
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3876
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3877
|
-
case "InvalidNextTokenException":
|
|
3878
|
-
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
3879
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
3880
|
-
case "InvalidParameterException":
|
|
3881
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3882
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3883
|
-
case "ServiceException":
|
|
3884
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3885
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3886
|
-
default:
|
|
3887
|
-
const parsedBody = parsedOutput.body;
|
|
3888
|
-
return throwDefaultError({
|
|
3889
|
-
output,
|
|
3890
|
-
parsedBody,
|
|
3891
|
-
errorCode
|
|
3892
|
-
});
|
|
3893
|
-
}
|
|
3894
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3895
2316
|
var de_RegisterCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3896
2317
|
if (output.statusCode >= 300) {
|
|
3897
|
-
return
|
|
2318
|
+
return de_CommandError(output, context);
|
|
3898
2319
|
}
|
|
3899
2320
|
const data = await parseBody(output.body, context);
|
|
3900
2321
|
let contents = {};
|
|
@@ -3905,93 +2326,22 @@ var de_RegisterCertificateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3905
2326
|
};
|
|
3906
2327
|
return response;
|
|
3907
2328
|
}, "de_RegisterCertificateCommand");
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
case "CertificateLimitExceededException":
|
|
3919
|
-
case "com.amazonaws.directoryservice#CertificateLimitExceededException":
|
|
3920
|
-
throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
|
|
3921
|
-
case "ClientException":
|
|
3922
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3923
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3924
|
-
case "DirectoryDoesNotExistException":
|
|
3925
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
3926
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
3927
|
-
case "DirectoryUnavailableException":
|
|
3928
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
3929
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
3930
|
-
case "InvalidCertificateException":
|
|
3931
|
-
case "com.amazonaws.directoryservice#InvalidCertificateException":
|
|
3932
|
-
throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
|
|
3933
|
-
case "InvalidParameterException":
|
|
3934
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3935
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3936
|
-
case "ServiceException":
|
|
3937
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3938
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3939
|
-
case "UnsupportedOperationException":
|
|
3940
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
3941
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
3942
|
-
default:
|
|
3943
|
-
const parsedBody = parsedOutput.body;
|
|
3944
|
-
return throwDefaultError({
|
|
3945
|
-
output,
|
|
3946
|
-
parsedBody,
|
|
3947
|
-
errorCode
|
|
3948
|
-
});
|
|
3949
|
-
}
|
|
3950
|
-
}, "de_RegisterCertificateCommandError");
|
|
3951
|
-
var de_RegisterEventTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3952
|
-
if (output.statusCode >= 300) {
|
|
3953
|
-
return de_RegisterEventTopicCommandError(output, context);
|
|
3954
|
-
}
|
|
3955
|
-
const data = await parseBody(output.body, context);
|
|
3956
|
-
let contents = {};
|
|
3957
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3958
|
-
const response = {
|
|
3959
|
-
$metadata: deserializeMetadata(output),
|
|
3960
|
-
...contents
|
|
2329
|
+
var de_RegisterEventTopicCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
|
+
if (output.statusCode >= 300) {
|
|
2331
|
+
return de_CommandError(output, context);
|
|
2332
|
+
}
|
|
2333
|
+
const data = await parseBody(output.body, context);
|
|
2334
|
+
let contents = {};
|
|
2335
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2336
|
+
const response = {
|
|
2337
|
+
$metadata: deserializeMetadata(output),
|
|
2338
|
+
...contents
|
|
3961
2339
|
};
|
|
3962
2340
|
return response;
|
|
3963
2341
|
}, "de_RegisterEventTopicCommand");
|
|
3964
|
-
var de_RegisterEventTopicCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3965
|
-
const parsedOutput = {
|
|
3966
|
-
...output,
|
|
3967
|
-
body: await parseErrorBody(output.body, context)
|
|
3968
|
-
};
|
|
3969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3970
|
-
switch (errorCode) {
|
|
3971
|
-
case "ClientException":
|
|
3972
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
3973
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3974
|
-
case "EntityDoesNotExistException":
|
|
3975
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
3976
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "InvalidParameterException":
|
|
3978
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
3979
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "ServiceException":
|
|
3981
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
3982
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3983
|
-
default:
|
|
3984
|
-
const parsedBody = parsedOutput.body;
|
|
3985
|
-
return throwDefaultError({
|
|
3986
|
-
output,
|
|
3987
|
-
parsedBody,
|
|
3988
|
-
errorCode
|
|
3989
|
-
});
|
|
3990
|
-
}
|
|
3991
|
-
}, "de_RegisterEventTopicCommandError");
|
|
3992
2342
|
var de_RejectSharedDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3993
2343
|
if (output.statusCode >= 300) {
|
|
3994
|
-
return
|
|
2344
|
+
return de_CommandError(output, context);
|
|
3995
2345
|
}
|
|
3996
2346
|
const data = await parseBody(output.body, context);
|
|
3997
2347
|
let contents = {};
|
|
@@ -4002,40 +2352,9 @@ var de_RejectSharedDirectoryCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4002
2352
|
};
|
|
4003
2353
|
return response;
|
|
4004
2354
|
}, "de_RejectSharedDirectoryCommand");
|
|
4005
|
-
var de_RejectSharedDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4006
|
-
const parsedOutput = {
|
|
4007
|
-
...output,
|
|
4008
|
-
body: await parseErrorBody(output.body, context)
|
|
4009
|
-
};
|
|
4010
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4011
|
-
switch (errorCode) {
|
|
4012
|
-
case "ClientException":
|
|
4013
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4014
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "DirectoryAlreadySharedException":
|
|
4016
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
4017
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "EntityDoesNotExistException":
|
|
4019
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4020
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4021
|
-
case "InvalidParameterException":
|
|
4022
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4023
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4024
|
-
case "ServiceException":
|
|
4025
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4026
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4027
|
-
default:
|
|
4028
|
-
const parsedBody = parsedOutput.body;
|
|
4029
|
-
return throwDefaultError({
|
|
4030
|
-
output,
|
|
4031
|
-
parsedBody,
|
|
4032
|
-
errorCode
|
|
4033
|
-
});
|
|
4034
|
-
}
|
|
4035
|
-
}, "de_RejectSharedDirectoryCommandError");
|
|
4036
2355
|
var de_RemoveIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4037
2356
|
if (output.statusCode >= 300) {
|
|
4038
|
-
return
|
|
2357
|
+
return de_CommandError(output, context);
|
|
4039
2358
|
}
|
|
4040
2359
|
const data = await parseBody(output.body, context);
|
|
4041
2360
|
let contents = {};
|
|
@@ -4046,40 +2365,9 @@ var de_RemoveIpRoutesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4046
2365
|
};
|
|
4047
2366
|
return response;
|
|
4048
2367
|
}, "de_RemoveIpRoutesCommand");
|
|
4049
|
-
var de_RemoveIpRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4050
|
-
const parsedOutput = {
|
|
4051
|
-
...output,
|
|
4052
|
-
body: await parseErrorBody(output.body, context)
|
|
4053
|
-
};
|
|
4054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4055
|
-
switch (errorCode) {
|
|
4056
|
-
case "ClientException":
|
|
4057
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4058
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4059
|
-
case "DirectoryUnavailableException":
|
|
4060
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4061
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4062
|
-
case "EntityDoesNotExistException":
|
|
4063
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4064
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4065
|
-
case "InvalidParameterException":
|
|
4066
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4067
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "ServiceException":
|
|
4069
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4070
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4071
|
-
default:
|
|
4072
|
-
const parsedBody = parsedOutput.body;
|
|
4073
|
-
return throwDefaultError({
|
|
4074
|
-
output,
|
|
4075
|
-
parsedBody,
|
|
4076
|
-
errorCode
|
|
4077
|
-
});
|
|
4078
|
-
}
|
|
4079
|
-
}, "de_RemoveIpRoutesCommandError");
|
|
4080
2368
|
var de_RemoveRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4081
2369
|
if (output.statusCode >= 300) {
|
|
4082
|
-
return
|
|
2370
|
+
return de_CommandError(output, context);
|
|
4083
2371
|
}
|
|
4084
2372
|
const data = await parseBody(output.body, context);
|
|
4085
2373
|
let contents = {};
|
|
@@ -4090,43 +2378,9 @@ var de_RemoveRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4090
2378
|
};
|
|
4091
2379
|
return response;
|
|
4092
2380
|
}, "de_RemoveRegionCommand");
|
|
4093
|
-
var de_RemoveRegionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4094
|
-
const parsedOutput = {
|
|
4095
|
-
...output,
|
|
4096
|
-
body: await parseErrorBody(output.body, context)
|
|
4097
|
-
};
|
|
4098
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4099
|
-
switch (errorCode) {
|
|
4100
|
-
case "AccessDeniedException":
|
|
4101
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
4102
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4103
|
-
case "ClientException":
|
|
4104
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4105
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4106
|
-
case "DirectoryDoesNotExistException":
|
|
4107
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
4108
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
4109
|
-
case "DirectoryUnavailableException":
|
|
4110
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4111
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4112
|
-
case "ServiceException":
|
|
4113
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4114
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4115
|
-
case "UnsupportedOperationException":
|
|
4116
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4117
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4118
|
-
default:
|
|
4119
|
-
const parsedBody = parsedOutput.body;
|
|
4120
|
-
return throwDefaultError({
|
|
4121
|
-
output,
|
|
4122
|
-
parsedBody,
|
|
4123
|
-
errorCode
|
|
4124
|
-
});
|
|
4125
|
-
}
|
|
4126
|
-
}, "de_RemoveRegionCommandError");
|
|
4127
2381
|
var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4128
2382
|
if (output.statusCode >= 300) {
|
|
4129
|
-
return
|
|
2383
|
+
return de_CommandError(output, context);
|
|
4130
2384
|
}
|
|
4131
2385
|
const data = await parseBody(output.body, context);
|
|
4132
2386
|
let contents = {};
|
|
@@ -4137,37 +2391,9 @@ var de_RemoveTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4137
2391
|
};
|
|
4138
2392
|
return response;
|
|
4139
2393
|
}, "de_RemoveTagsFromResourceCommand");
|
|
4140
|
-
var de_RemoveTagsFromResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4141
|
-
const parsedOutput = {
|
|
4142
|
-
...output,
|
|
4143
|
-
body: await parseErrorBody(output.body, context)
|
|
4144
|
-
};
|
|
4145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4146
|
-
switch (errorCode) {
|
|
4147
|
-
case "ClientException":
|
|
4148
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4149
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "EntityDoesNotExistException":
|
|
4151
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4152
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "InvalidParameterException":
|
|
4154
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4155
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ServiceException":
|
|
4157
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4158
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4159
|
-
default:
|
|
4160
|
-
const parsedBody = parsedOutput.body;
|
|
4161
|
-
return throwDefaultError({
|
|
4162
|
-
output,
|
|
4163
|
-
parsedBody,
|
|
4164
|
-
errorCode
|
|
4165
|
-
});
|
|
4166
|
-
}
|
|
4167
|
-
}, "de_RemoveTagsFromResourceCommandError");
|
|
4168
2394
|
var de_ResetUserPasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4169
2395
|
if (output.statusCode >= 300) {
|
|
4170
|
-
return
|
|
2396
|
+
return de_CommandError(output, context);
|
|
4171
2397
|
}
|
|
4172
2398
|
const data = await parseBody(output.body, context);
|
|
4173
2399
|
let contents = {};
|
|
@@ -4178,46 +2404,9 @@ var de_ResetUserPasswordCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4178
2404
|
};
|
|
4179
2405
|
return response;
|
|
4180
2406
|
}, "de_ResetUserPasswordCommand");
|
|
4181
|
-
var de_ResetUserPasswordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4182
|
-
const parsedOutput = {
|
|
4183
|
-
...output,
|
|
4184
|
-
body: await parseErrorBody(output.body, context)
|
|
4185
|
-
};
|
|
4186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4187
|
-
switch (errorCode) {
|
|
4188
|
-
case "ClientException":
|
|
4189
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4190
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4191
|
-
case "DirectoryUnavailableException":
|
|
4192
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4193
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4194
|
-
case "EntityDoesNotExistException":
|
|
4195
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4196
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4197
|
-
case "InvalidPasswordException":
|
|
4198
|
-
case "com.amazonaws.directoryservice#InvalidPasswordException":
|
|
4199
|
-
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
4200
|
-
case "ServiceException":
|
|
4201
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4202
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4203
|
-
case "UnsupportedOperationException":
|
|
4204
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4205
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4206
|
-
case "UserDoesNotExistException":
|
|
4207
|
-
case "com.amazonaws.directoryservice#UserDoesNotExistException":
|
|
4208
|
-
throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
|
|
4209
|
-
default:
|
|
4210
|
-
const parsedBody = parsedOutput.body;
|
|
4211
|
-
return throwDefaultError({
|
|
4212
|
-
output,
|
|
4213
|
-
parsedBody,
|
|
4214
|
-
errorCode
|
|
4215
|
-
});
|
|
4216
|
-
}
|
|
4217
|
-
}, "de_ResetUserPasswordCommandError");
|
|
4218
2407
|
var de_RestoreFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4219
2408
|
if (output.statusCode >= 300) {
|
|
4220
|
-
return
|
|
2409
|
+
return de_CommandError(output, context);
|
|
4221
2410
|
}
|
|
4222
2411
|
const data = await parseBody(output.body, context);
|
|
4223
2412
|
let contents = {};
|
|
@@ -4228,37 +2417,9 @@ var de_RestoreFromSnapshotCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4228
2417
|
};
|
|
4229
2418
|
return response;
|
|
4230
2419
|
}, "de_RestoreFromSnapshotCommand");
|
|
4231
|
-
var de_RestoreFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4232
|
-
const parsedOutput = {
|
|
4233
|
-
...output,
|
|
4234
|
-
body: await parseErrorBody(output.body, context)
|
|
4235
|
-
};
|
|
4236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4237
|
-
switch (errorCode) {
|
|
4238
|
-
case "ClientException":
|
|
4239
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4240
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4241
|
-
case "EntityDoesNotExistException":
|
|
4242
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4243
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4244
|
-
case "InvalidParameterException":
|
|
4245
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4246
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4247
|
-
case "ServiceException":
|
|
4248
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4249
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4250
|
-
default:
|
|
4251
|
-
const parsedBody = parsedOutput.body;
|
|
4252
|
-
return throwDefaultError({
|
|
4253
|
-
output,
|
|
4254
|
-
parsedBody,
|
|
4255
|
-
errorCode
|
|
4256
|
-
});
|
|
4257
|
-
}
|
|
4258
|
-
}, "de_RestoreFromSnapshotCommandError");
|
|
4259
2420
|
var de_ShareDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4260
2421
|
if (output.statusCode >= 300) {
|
|
4261
|
-
return
|
|
2422
|
+
return de_CommandError(output, context);
|
|
4262
2423
|
}
|
|
4263
2424
|
const data = await parseBody(output.body, context);
|
|
4264
2425
|
let contents = {};
|
|
@@ -4269,102 +2430,22 @@ var de_ShareDirectoryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4269
2430
|
};
|
|
4270
2431
|
return response;
|
|
4271
2432
|
}, "de_ShareDirectoryCommand");
|
|
4272
|
-
var
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
case "ClientException":
|
|
4283
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4284
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "DirectoryAlreadySharedException":
|
|
4286
|
-
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
4287
|
-
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
4288
|
-
case "EntityDoesNotExistException":
|
|
4289
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4290
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4291
|
-
case "InvalidParameterException":
|
|
4292
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4293
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4294
|
-
case "InvalidTargetException":
|
|
4295
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
4296
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
4297
|
-
case "OrganizationsException":
|
|
4298
|
-
case "com.amazonaws.directoryservice#OrganizationsException":
|
|
4299
|
-
throw await de_OrganizationsExceptionRes(parsedOutput, context);
|
|
4300
|
-
case "ServiceException":
|
|
4301
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4302
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4303
|
-
case "ShareLimitExceededException":
|
|
4304
|
-
case "com.amazonaws.directoryservice#ShareLimitExceededException":
|
|
4305
|
-
throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
|
|
4306
|
-
case "UnsupportedOperationException":
|
|
4307
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4308
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4309
|
-
default:
|
|
4310
|
-
const parsedBody = parsedOutput.body;
|
|
4311
|
-
return throwDefaultError({
|
|
4312
|
-
output,
|
|
4313
|
-
parsedBody,
|
|
4314
|
-
errorCode
|
|
4315
|
-
});
|
|
4316
|
-
}
|
|
4317
|
-
}, "de_ShareDirectoryCommandError");
|
|
4318
|
-
var de_StartSchemaExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4319
|
-
if (output.statusCode >= 300) {
|
|
4320
|
-
return de_StartSchemaExtensionCommandError(output, context);
|
|
4321
|
-
}
|
|
4322
|
-
const data = await parseBody(output.body, context);
|
|
4323
|
-
let contents = {};
|
|
4324
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4325
|
-
const response = {
|
|
4326
|
-
$metadata: deserializeMetadata(output),
|
|
4327
|
-
...contents
|
|
2433
|
+
var de_StartSchemaExtensionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2434
|
+
if (output.statusCode >= 300) {
|
|
2435
|
+
return de_CommandError(output, context);
|
|
2436
|
+
}
|
|
2437
|
+
const data = await parseBody(output.body, context);
|
|
2438
|
+
let contents = {};
|
|
2439
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2440
|
+
const response = {
|
|
2441
|
+
$metadata: deserializeMetadata(output),
|
|
2442
|
+
...contents
|
|
4328
2443
|
};
|
|
4329
2444
|
return response;
|
|
4330
2445
|
}, "de_StartSchemaExtensionCommand");
|
|
4331
|
-
var de_StartSchemaExtensionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4332
|
-
const parsedOutput = {
|
|
4333
|
-
...output,
|
|
4334
|
-
body: await parseErrorBody(output.body, context)
|
|
4335
|
-
};
|
|
4336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4337
|
-
switch (errorCode) {
|
|
4338
|
-
case "ClientException":
|
|
4339
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4340
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4341
|
-
case "DirectoryUnavailableException":
|
|
4342
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4343
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4344
|
-
case "EntityDoesNotExistException":
|
|
4345
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4346
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4347
|
-
case "InvalidParameterException":
|
|
4348
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4349
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4350
|
-
case "ServiceException":
|
|
4351
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4352
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4353
|
-
case "SnapshotLimitExceededException":
|
|
4354
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
4355
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
4356
|
-
default:
|
|
4357
|
-
const parsedBody = parsedOutput.body;
|
|
4358
|
-
return throwDefaultError({
|
|
4359
|
-
output,
|
|
4360
|
-
parsedBody,
|
|
4361
|
-
errorCode
|
|
4362
|
-
});
|
|
4363
|
-
}
|
|
4364
|
-
}, "de_StartSchemaExtensionCommandError");
|
|
4365
2446
|
var de_UnshareDirectoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4366
2447
|
if (output.statusCode >= 300) {
|
|
4367
|
-
return
|
|
2448
|
+
return de_CommandError(output, context);
|
|
4368
2449
|
}
|
|
4369
2450
|
const data = await parseBody(output.body, context);
|
|
4370
2451
|
let contents = {};
|
|
@@ -4375,40 +2456,9 @@ var de_UnshareDirectoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4375
2456
|
};
|
|
4376
2457
|
return response;
|
|
4377
2458
|
}, "de_UnshareDirectoryCommand");
|
|
4378
|
-
var de_UnshareDirectoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4379
|
-
const parsedOutput = {
|
|
4380
|
-
...output,
|
|
4381
|
-
body: await parseErrorBody(output.body, context)
|
|
4382
|
-
};
|
|
4383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
|
-
switch (errorCode) {
|
|
4385
|
-
case "ClientException":
|
|
4386
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4387
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4388
|
-
case "DirectoryNotSharedException":
|
|
4389
|
-
case "com.amazonaws.directoryservice#DirectoryNotSharedException":
|
|
4390
|
-
throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
|
|
4391
|
-
case "EntityDoesNotExistException":
|
|
4392
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4393
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4394
|
-
case "InvalidTargetException":
|
|
4395
|
-
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
4396
|
-
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
4397
|
-
case "ServiceException":
|
|
4398
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4399
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4400
|
-
default:
|
|
4401
|
-
const parsedBody = parsedOutput.body;
|
|
4402
|
-
return throwDefaultError({
|
|
4403
|
-
output,
|
|
4404
|
-
parsedBody,
|
|
4405
|
-
errorCode
|
|
4406
|
-
});
|
|
4407
|
-
}
|
|
4408
|
-
}, "de_UnshareDirectoryCommandError");
|
|
4409
2459
|
var de_UpdateConditionalForwarderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4410
2460
|
if (output.statusCode >= 300) {
|
|
4411
|
-
return
|
|
2461
|
+
return de_CommandError(output, context);
|
|
4412
2462
|
}
|
|
4413
2463
|
const data = await parseBody(output.body, context);
|
|
4414
2464
|
let contents = {};
|
|
@@ -4419,43 +2469,9 @@ var de_UpdateConditionalForwarderCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4419
2469
|
};
|
|
4420
2470
|
return response;
|
|
4421
2471
|
}, "de_UpdateConditionalForwarderCommand");
|
|
4422
|
-
var de_UpdateConditionalForwarderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4423
|
-
const parsedOutput = {
|
|
4424
|
-
...output,
|
|
4425
|
-
body: await parseErrorBody(output.body, context)
|
|
4426
|
-
};
|
|
4427
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4428
|
-
switch (errorCode) {
|
|
4429
|
-
case "ClientException":
|
|
4430
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4431
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4432
|
-
case "DirectoryUnavailableException":
|
|
4433
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4434
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4435
|
-
case "EntityDoesNotExistException":
|
|
4436
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4437
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4438
|
-
case "InvalidParameterException":
|
|
4439
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4440
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4441
|
-
case "ServiceException":
|
|
4442
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4443
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4444
|
-
case "UnsupportedOperationException":
|
|
4445
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4446
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4447
|
-
default:
|
|
4448
|
-
const parsedBody = parsedOutput.body;
|
|
4449
|
-
return throwDefaultError({
|
|
4450
|
-
output,
|
|
4451
|
-
parsedBody,
|
|
4452
|
-
errorCode
|
|
4453
|
-
});
|
|
4454
|
-
}
|
|
4455
|
-
}, "de_UpdateConditionalForwarderCommandError");
|
|
4456
2472
|
var de_UpdateDirectorySetupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4457
2473
|
if (output.statusCode >= 300) {
|
|
4458
|
-
return
|
|
2474
|
+
return de_CommandError(output, context);
|
|
4459
2475
|
}
|
|
4460
2476
|
const data = await parseBody(output.body, context);
|
|
4461
2477
|
let contents = {};
|
|
@@ -4466,52 +2482,9 @@ var de_UpdateDirectorySetupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4466
2482
|
};
|
|
4467
2483
|
return response;
|
|
4468
2484
|
}, "de_UpdateDirectorySetupCommand");
|
|
4469
|
-
var de_UpdateDirectorySetupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4470
|
-
const parsedOutput = {
|
|
4471
|
-
...output,
|
|
4472
|
-
body: await parseErrorBody(output.body, context)
|
|
4473
|
-
};
|
|
4474
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4475
|
-
switch (errorCode) {
|
|
4476
|
-
case "AccessDeniedException":
|
|
4477
|
-
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
4478
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4479
|
-
case "ClientException":
|
|
4480
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4481
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4482
|
-
case "DirectoryDoesNotExistException":
|
|
4483
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
4484
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
4485
|
-
case "DirectoryInDesiredStateException":
|
|
4486
|
-
case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
|
|
4487
|
-
throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
|
|
4488
|
-
case "DirectoryUnavailableException":
|
|
4489
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4490
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4491
|
-
case "InvalidParameterException":
|
|
4492
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4493
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4494
|
-
case "ServiceException":
|
|
4495
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4496
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4497
|
-
case "SnapshotLimitExceededException":
|
|
4498
|
-
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
4499
|
-
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
4500
|
-
case "UnsupportedOperationException":
|
|
4501
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4502
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4503
|
-
default:
|
|
4504
|
-
const parsedBody = parsedOutput.body;
|
|
4505
|
-
return throwDefaultError({
|
|
4506
|
-
output,
|
|
4507
|
-
parsedBody,
|
|
4508
|
-
errorCode
|
|
4509
|
-
});
|
|
4510
|
-
}
|
|
4511
|
-
}, "de_UpdateDirectorySetupCommandError");
|
|
4512
2485
|
var de_UpdateNumberOfDomainControllersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4513
2486
|
if (output.statusCode >= 300) {
|
|
4514
|
-
return
|
|
2487
|
+
return de_CommandError(output, context);
|
|
4515
2488
|
}
|
|
4516
2489
|
const data = await parseBody(output.body, context);
|
|
4517
2490
|
let contents = {};
|
|
@@ -4522,46 +2495,9 @@ var de_UpdateNumberOfDomainControllersCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4522
2495
|
};
|
|
4523
2496
|
return response;
|
|
4524
2497
|
}, "de_UpdateNumberOfDomainControllersCommand");
|
|
4525
|
-
var de_UpdateNumberOfDomainControllersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4526
|
-
const parsedOutput = {
|
|
4527
|
-
...output,
|
|
4528
|
-
body: await parseErrorBody(output.body, context)
|
|
4529
|
-
};
|
|
4530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4531
|
-
switch (errorCode) {
|
|
4532
|
-
case "ClientException":
|
|
4533
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4534
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4535
|
-
case "DirectoryUnavailableException":
|
|
4536
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4537
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4538
|
-
case "DomainControllerLimitExceededException":
|
|
4539
|
-
case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
|
|
4540
|
-
throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
|
|
4541
|
-
case "EntityDoesNotExistException":
|
|
4542
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4543
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4544
|
-
case "InvalidParameterException":
|
|
4545
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4546
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4547
|
-
case "ServiceException":
|
|
4548
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4549
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4550
|
-
case "UnsupportedOperationException":
|
|
4551
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4552
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4553
|
-
default:
|
|
4554
|
-
const parsedBody = parsedOutput.body;
|
|
4555
|
-
return throwDefaultError({
|
|
4556
|
-
output,
|
|
4557
|
-
parsedBody,
|
|
4558
|
-
errorCode
|
|
4559
|
-
});
|
|
4560
|
-
}
|
|
4561
|
-
}, "de_UpdateNumberOfDomainControllersCommandError");
|
|
4562
2498
|
var de_UpdateRadiusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4563
2499
|
if (output.statusCode >= 300) {
|
|
4564
|
-
return
|
|
2500
|
+
return de_CommandError(output, context);
|
|
4565
2501
|
}
|
|
4566
2502
|
const data = await parseBody(output.body, context);
|
|
4567
2503
|
let contents = {};
|
|
@@ -4572,37 +2508,9 @@ var de_UpdateRadiusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4572
2508
|
};
|
|
4573
2509
|
return response;
|
|
4574
2510
|
}, "de_UpdateRadiusCommand");
|
|
4575
|
-
var de_UpdateRadiusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4576
|
-
const parsedOutput = {
|
|
4577
|
-
...output,
|
|
4578
|
-
body: await parseErrorBody(output.body, context)
|
|
4579
|
-
};
|
|
4580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4581
|
-
switch (errorCode) {
|
|
4582
|
-
case "ClientException":
|
|
4583
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4584
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4585
|
-
case "EntityDoesNotExistException":
|
|
4586
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4587
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4588
|
-
case "InvalidParameterException":
|
|
4589
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4590
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4591
|
-
case "ServiceException":
|
|
4592
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4593
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4594
|
-
default:
|
|
4595
|
-
const parsedBody = parsedOutput.body;
|
|
4596
|
-
return throwDefaultError({
|
|
4597
|
-
output,
|
|
4598
|
-
parsedBody,
|
|
4599
|
-
errorCode
|
|
4600
|
-
});
|
|
4601
|
-
}
|
|
4602
|
-
}, "de_UpdateRadiusCommandError");
|
|
4603
2511
|
var de_UpdateSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4604
2512
|
if (output.statusCode >= 300) {
|
|
4605
|
-
return
|
|
2513
|
+
return de_CommandError(output, context);
|
|
4606
2514
|
}
|
|
4607
2515
|
const data = await parseBody(output.body, context);
|
|
4608
2516
|
let contents = {};
|
|
@@ -4613,49 +2521,9 @@ var de_UpdateSettingsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4613
2521
|
};
|
|
4614
2522
|
return response;
|
|
4615
2523
|
}, "de_UpdateSettingsCommand");
|
|
4616
|
-
var de_UpdateSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4617
|
-
const parsedOutput = {
|
|
4618
|
-
...output,
|
|
4619
|
-
body: await parseErrorBody(output.body, context)
|
|
4620
|
-
};
|
|
4621
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4622
|
-
switch (errorCode) {
|
|
4623
|
-
case "ClientException":
|
|
4624
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4625
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4626
|
-
case "DirectoryDoesNotExistException":
|
|
4627
|
-
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
4628
|
-
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
4629
|
-
case "DirectoryUnavailableException":
|
|
4630
|
-
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
4631
|
-
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
4632
|
-
case "IncompatibleSettingsException":
|
|
4633
|
-
case "com.amazonaws.directoryservice#IncompatibleSettingsException":
|
|
4634
|
-
throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
|
|
4635
|
-
case "InvalidParameterException":
|
|
4636
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4637
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4638
|
-
case "ServiceException":
|
|
4639
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4640
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4641
|
-
case "UnsupportedOperationException":
|
|
4642
|
-
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4643
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
4644
|
-
case "UnsupportedSettingsException":
|
|
4645
|
-
case "com.amazonaws.directoryservice#UnsupportedSettingsException":
|
|
4646
|
-
throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
|
|
4647
|
-
default:
|
|
4648
|
-
const parsedBody = parsedOutput.body;
|
|
4649
|
-
return throwDefaultError({
|
|
4650
|
-
output,
|
|
4651
|
-
parsedBody,
|
|
4652
|
-
errorCode
|
|
4653
|
-
});
|
|
4654
|
-
}
|
|
4655
|
-
}, "de_UpdateSettingsCommandError");
|
|
4656
2524
|
var de_UpdateTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4657
2525
|
if (output.statusCode >= 300) {
|
|
4658
|
-
return
|
|
2526
|
+
return de_CommandError(output, context);
|
|
4659
2527
|
}
|
|
4660
2528
|
const data = await parseBody(output.body, context);
|
|
4661
2529
|
let contents = {};
|
|
@@ -4666,37 +2534,9 @@ var de_UpdateTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4666
2534
|
};
|
|
4667
2535
|
return response;
|
|
4668
2536
|
}, "de_UpdateTrustCommand");
|
|
4669
|
-
var de_UpdateTrustCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4670
|
-
const parsedOutput = {
|
|
4671
|
-
...output,
|
|
4672
|
-
body: await parseErrorBody(output.body, context)
|
|
4673
|
-
};
|
|
4674
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4675
|
-
switch (errorCode) {
|
|
4676
|
-
case "ClientException":
|
|
4677
|
-
case "com.amazonaws.directoryservice#ClientException":
|
|
4678
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4679
|
-
case "EntityDoesNotExistException":
|
|
4680
|
-
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4681
|
-
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
4682
|
-
case "InvalidParameterException":
|
|
4683
|
-
case "com.amazonaws.directoryservice#InvalidParameterException":
|
|
4684
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4685
|
-
case "ServiceException":
|
|
4686
|
-
case "com.amazonaws.directoryservice#ServiceException":
|
|
4687
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4688
|
-
default:
|
|
4689
|
-
const parsedBody = parsedOutput.body;
|
|
4690
|
-
return throwDefaultError({
|
|
4691
|
-
output,
|
|
4692
|
-
parsedBody,
|
|
4693
|
-
errorCode
|
|
4694
|
-
});
|
|
4695
|
-
}
|
|
4696
|
-
}, "de_UpdateTrustCommandError");
|
|
4697
2537
|
var de_VerifyTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4698
2538
|
if (output.statusCode >= 300) {
|
|
4699
|
-
return
|
|
2539
|
+
return de_CommandError(output, context);
|
|
4700
2540
|
}
|
|
4701
2541
|
const data = await parseBody(output.body, context);
|
|
4702
2542
|
let contents = {};
|
|
@@ -4707,7 +2547,7 @@ var de_VerifyTrustCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4707
2547
|
};
|
|
4708
2548
|
return response;
|
|
4709
2549
|
}, "de_VerifyTrustCommand");
|
|
4710
|
-
var
|
|
2550
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4711
2551
|
const parsedOutput = {
|
|
4712
2552
|
...output,
|
|
4713
2553
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4717,6 +2557,9 @@ var de_VerifyTrustCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
4717
2557
|
case "ClientException":
|
|
4718
2558
|
case "com.amazonaws.directoryservice#ClientException":
|
|
4719
2559
|
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2560
|
+
case "DirectoryAlreadySharedException":
|
|
2561
|
+
case "com.amazonaws.directoryservice#DirectoryAlreadySharedException":
|
|
2562
|
+
throw await de_DirectoryAlreadySharedExceptionRes(parsedOutput, context);
|
|
4720
2563
|
case "EntityDoesNotExistException":
|
|
4721
2564
|
case "com.amazonaws.directoryservice#EntityDoesNotExistException":
|
|
4722
2565
|
throw await de_EntityDoesNotExistExceptionRes(parsedOutput, context);
|
|
@@ -4726,9 +2569,102 @@ var de_VerifyTrustCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
4726
2569
|
case "ServiceException":
|
|
4727
2570
|
case "com.amazonaws.directoryservice#ServiceException":
|
|
4728
2571
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2572
|
+
case "DirectoryUnavailableException":
|
|
2573
|
+
case "com.amazonaws.directoryservice#DirectoryUnavailableException":
|
|
2574
|
+
throw await de_DirectoryUnavailableExceptionRes(parsedOutput, context);
|
|
2575
|
+
case "EntityAlreadyExistsException":
|
|
2576
|
+
case "com.amazonaws.directoryservice#EntityAlreadyExistsException":
|
|
2577
|
+
throw await de_EntityAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2578
|
+
case "IpRouteLimitExceededException":
|
|
2579
|
+
case "com.amazonaws.directoryservice#IpRouteLimitExceededException":
|
|
2580
|
+
throw await de_IpRouteLimitExceededExceptionRes(parsedOutput, context);
|
|
2581
|
+
case "AccessDeniedException":
|
|
2582
|
+
case "com.amazonaws.directoryservice#AccessDeniedException":
|
|
2583
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2584
|
+
case "DirectoryAlreadyInRegionException":
|
|
2585
|
+
case "com.amazonaws.directoryservice#DirectoryAlreadyInRegionException":
|
|
2586
|
+
throw await de_DirectoryAlreadyInRegionExceptionRes(parsedOutput, context);
|
|
2587
|
+
case "DirectoryDoesNotExistException":
|
|
2588
|
+
case "com.amazonaws.directoryservice#DirectoryDoesNotExistException":
|
|
2589
|
+
throw await de_DirectoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
2590
|
+
case "RegionLimitExceededException":
|
|
2591
|
+
case "com.amazonaws.directoryservice#RegionLimitExceededException":
|
|
2592
|
+
throw await de_RegionLimitExceededExceptionRes(parsedOutput, context);
|
|
4729
2593
|
case "UnsupportedOperationException":
|
|
4730
2594
|
case "com.amazonaws.directoryservice#UnsupportedOperationException":
|
|
4731
2595
|
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
2596
|
+
case "TagLimitExceededException":
|
|
2597
|
+
case "com.amazonaws.directoryservice#TagLimitExceededException":
|
|
2598
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
2599
|
+
case "DirectoryLimitExceededException":
|
|
2600
|
+
case "com.amazonaws.directoryservice#DirectoryLimitExceededException":
|
|
2601
|
+
throw await de_DirectoryLimitExceededExceptionRes(parsedOutput, context);
|
|
2602
|
+
case "AuthenticationFailedException":
|
|
2603
|
+
case "com.amazonaws.directoryservice#AuthenticationFailedException":
|
|
2604
|
+
throw await de_AuthenticationFailedExceptionRes(parsedOutput, context);
|
|
2605
|
+
case "InsufficientPermissionsException":
|
|
2606
|
+
case "com.amazonaws.directoryservice#InsufficientPermissionsException":
|
|
2607
|
+
throw await de_InsufficientPermissionsExceptionRes(parsedOutput, context);
|
|
2608
|
+
case "SnapshotLimitExceededException":
|
|
2609
|
+
case "com.amazonaws.directoryservice#SnapshotLimitExceededException":
|
|
2610
|
+
throw await de_SnapshotLimitExceededExceptionRes(parsedOutput, context);
|
|
2611
|
+
case "CertificateDoesNotExistException":
|
|
2612
|
+
case "com.amazonaws.directoryservice#CertificateDoesNotExistException":
|
|
2613
|
+
throw await de_CertificateDoesNotExistExceptionRes(parsedOutput, context);
|
|
2614
|
+
case "CertificateInUseException":
|
|
2615
|
+
case "com.amazonaws.directoryservice#CertificateInUseException":
|
|
2616
|
+
throw await de_CertificateInUseExceptionRes(parsedOutput, context);
|
|
2617
|
+
case "InvalidNextTokenException":
|
|
2618
|
+
case "com.amazonaws.directoryservice#InvalidNextTokenException":
|
|
2619
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2620
|
+
case "InvalidClientAuthStatusException":
|
|
2621
|
+
case "com.amazonaws.directoryservice#InvalidClientAuthStatusException":
|
|
2622
|
+
throw await de_InvalidClientAuthStatusExceptionRes(parsedOutput, context);
|
|
2623
|
+
case "InvalidLDAPSStatusException":
|
|
2624
|
+
case "com.amazonaws.directoryservice#InvalidLDAPSStatusException":
|
|
2625
|
+
throw await de_InvalidLDAPSStatusExceptionRes(parsedOutput, context);
|
|
2626
|
+
case "NoAvailableCertificateException":
|
|
2627
|
+
case "com.amazonaws.directoryservice#NoAvailableCertificateException":
|
|
2628
|
+
throw await de_NoAvailableCertificateExceptionRes(parsedOutput, context);
|
|
2629
|
+
case "CertificateAlreadyExistsException":
|
|
2630
|
+
case "com.amazonaws.directoryservice#CertificateAlreadyExistsException":
|
|
2631
|
+
throw await de_CertificateAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2632
|
+
case "CertificateLimitExceededException":
|
|
2633
|
+
case "com.amazonaws.directoryservice#CertificateLimitExceededException":
|
|
2634
|
+
throw await de_CertificateLimitExceededExceptionRes(parsedOutput, context);
|
|
2635
|
+
case "InvalidCertificateException":
|
|
2636
|
+
case "com.amazonaws.directoryservice#InvalidCertificateException":
|
|
2637
|
+
throw await de_InvalidCertificateExceptionRes(parsedOutput, context);
|
|
2638
|
+
case "InvalidPasswordException":
|
|
2639
|
+
case "com.amazonaws.directoryservice#InvalidPasswordException":
|
|
2640
|
+
throw await de_InvalidPasswordExceptionRes(parsedOutput, context);
|
|
2641
|
+
case "UserDoesNotExistException":
|
|
2642
|
+
case "com.amazonaws.directoryservice#UserDoesNotExistException":
|
|
2643
|
+
throw await de_UserDoesNotExistExceptionRes(parsedOutput, context);
|
|
2644
|
+
case "InvalidTargetException":
|
|
2645
|
+
case "com.amazonaws.directoryservice#InvalidTargetException":
|
|
2646
|
+
throw await de_InvalidTargetExceptionRes(parsedOutput, context);
|
|
2647
|
+
case "OrganizationsException":
|
|
2648
|
+
case "com.amazonaws.directoryservice#OrganizationsException":
|
|
2649
|
+
throw await de_OrganizationsExceptionRes(parsedOutput, context);
|
|
2650
|
+
case "ShareLimitExceededException":
|
|
2651
|
+
case "com.amazonaws.directoryservice#ShareLimitExceededException":
|
|
2652
|
+
throw await de_ShareLimitExceededExceptionRes(parsedOutput, context);
|
|
2653
|
+
case "DirectoryNotSharedException":
|
|
2654
|
+
case "com.amazonaws.directoryservice#DirectoryNotSharedException":
|
|
2655
|
+
throw await de_DirectoryNotSharedExceptionRes(parsedOutput, context);
|
|
2656
|
+
case "DirectoryInDesiredStateException":
|
|
2657
|
+
case "com.amazonaws.directoryservice#DirectoryInDesiredStateException":
|
|
2658
|
+
throw await de_DirectoryInDesiredStateExceptionRes(parsedOutput, context);
|
|
2659
|
+
case "DomainControllerLimitExceededException":
|
|
2660
|
+
case "com.amazonaws.directoryservice#DomainControllerLimitExceededException":
|
|
2661
|
+
throw await de_DomainControllerLimitExceededExceptionRes(parsedOutput, context);
|
|
2662
|
+
case "IncompatibleSettingsException":
|
|
2663
|
+
case "com.amazonaws.directoryservice#IncompatibleSettingsException":
|
|
2664
|
+
throw await de_IncompatibleSettingsExceptionRes(parsedOutput, context);
|
|
2665
|
+
case "UnsupportedSettingsException":
|
|
2666
|
+
case "com.amazonaws.directoryservice#UnsupportedSettingsException":
|
|
2667
|
+
throw await de_UnsupportedSettingsExceptionRes(parsedOutput, context);
|
|
4732
2668
|
default:
|
|
4733
2669
|
const parsedBody = parsedOutput.body;
|
|
4734
2670
|
return throwDefaultError({
|
|
@@ -4737,7 +2673,7 @@ var de_VerifyTrustCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
4737
2673
|
errorCode
|
|
4738
2674
|
});
|
|
4739
2675
|
}
|
|
4740
|
-
}, "
|
|
2676
|
+
}, "de_CommandError");
|
|
4741
2677
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4742
2678
|
const body = parsedOutput.body;
|
|
4743
2679
|
const deserialized = (0, import_smithy_client._json)(body);
|