@aws-sdk/client-organizations 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +279 -2331
- package/dist-es/protocols/Aws_json1_1.js +319 -2371
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1793,7 +1793,7 @@ var se_UpdatePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1793
1793
|
}, "se_UpdatePolicyCommand");
|
|
1794
1794
|
var de_AcceptHandshakeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1795
1795
|
if (output.statusCode >= 300) {
|
|
1796
|
-
return
|
|
1796
|
+
return de_CommandError(output, context);
|
|
1797
1797
|
}
|
|
1798
1798
|
const data = await parseBody(output.body, context);
|
|
1799
1799
|
let contents = {};
|
|
@@ -1804,58 +1804,9 @@ var de_AcceptHandshakeCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1804
1804
|
};
|
|
1805
1805
|
return response;
|
|
1806
1806
|
}, "de_AcceptHandshakeCommand");
|
|
1807
|
-
var de_AcceptHandshakeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1808
|
-
const parsedOutput = {
|
|
1809
|
-
...output,
|
|
1810
|
-
body: await parseErrorBody(output.body, context)
|
|
1811
|
-
};
|
|
1812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
-
switch (errorCode) {
|
|
1814
|
-
case "AWSOrganizationsNotInUseException":
|
|
1815
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1816
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "AccessDeniedException":
|
|
1818
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "AccessDeniedForDependencyException":
|
|
1821
|
-
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
1822
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ConcurrentModificationException":
|
|
1824
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1825
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "HandshakeAlreadyInStateException":
|
|
1827
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
1828
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "HandshakeConstraintViolationException":
|
|
1830
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
1831
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "HandshakeNotFoundException":
|
|
1833
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
1834
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "InvalidHandshakeTransitionException":
|
|
1836
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
1837
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "InvalidInputException":
|
|
1839
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1840
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "ServiceException":
|
|
1842
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1843
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "TooManyRequestsException":
|
|
1845
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1846
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1847
|
-
default:
|
|
1848
|
-
const parsedBody = parsedOutput.body;
|
|
1849
|
-
return throwDefaultError({
|
|
1850
|
-
output,
|
|
1851
|
-
parsedBody,
|
|
1852
|
-
errorCode
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
}, "de_AcceptHandshakeCommandError");
|
|
1856
1807
|
var de_AttachPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1857
1808
|
if (output.statusCode >= 300) {
|
|
1858
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
1859
1810
|
}
|
|
1860
1811
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1861
1812
|
const response = {
|
|
@@ -1863,64 +1814,9 @@ var de_AttachPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1863
1814
|
};
|
|
1864
1815
|
return response;
|
|
1865
1816
|
}, "de_AttachPolicyCommand");
|
|
1866
|
-
var de_AttachPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1867
|
-
const parsedOutput = {
|
|
1868
|
-
...output,
|
|
1869
|
-
body: await parseErrorBody(output.body, context)
|
|
1870
|
-
};
|
|
1871
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1872
|
-
switch (errorCode) {
|
|
1873
|
-
case "AWSOrganizationsNotInUseException":
|
|
1874
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1875
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "AccessDeniedException":
|
|
1877
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1878
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ConcurrentModificationException":
|
|
1880
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1881
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "ConstraintViolationException":
|
|
1883
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
1884
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
1885
|
-
case "DuplicatePolicyAttachmentException":
|
|
1886
|
-
case "com.amazonaws.organizations#DuplicatePolicyAttachmentException":
|
|
1887
|
-
throw await de_DuplicatePolicyAttachmentExceptionRes(parsedOutput, context);
|
|
1888
|
-
case "InvalidInputException":
|
|
1889
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1890
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1891
|
-
case "PolicyChangesInProgressException":
|
|
1892
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
1893
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
1894
|
-
case "PolicyNotFoundException":
|
|
1895
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
1896
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "PolicyTypeNotEnabledException":
|
|
1898
|
-
case "com.amazonaws.organizations#PolicyTypeNotEnabledException":
|
|
1899
|
-
throw await de_PolicyTypeNotEnabledExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ServiceException":
|
|
1901
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1902
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "TargetNotFoundException":
|
|
1904
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
1905
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "TooManyRequestsException":
|
|
1907
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1908
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "UnsupportedAPIEndpointException":
|
|
1910
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
1911
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
1912
|
-
default:
|
|
1913
|
-
const parsedBody = parsedOutput.body;
|
|
1914
|
-
return throwDefaultError({
|
|
1915
|
-
output,
|
|
1916
|
-
parsedBody,
|
|
1917
|
-
errorCode
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
}, "de_AttachPolicyCommandError");
|
|
1921
1817
|
var de_CancelHandshakeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1922
1818
|
if (output.statusCode >= 300) {
|
|
1923
|
-
return
|
|
1819
|
+
return de_CommandError(output, context);
|
|
1924
1820
|
}
|
|
1925
1821
|
const data = await parseBody(output.body, context);
|
|
1926
1822
|
let contents = {};
|
|
@@ -1931,49 +1827,9 @@ var de_CancelHandshakeCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1931
1827
|
};
|
|
1932
1828
|
return response;
|
|
1933
1829
|
}, "de_CancelHandshakeCommand");
|
|
1934
|
-
var de_CancelHandshakeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1935
|
-
const parsedOutput = {
|
|
1936
|
-
...output,
|
|
1937
|
-
body: await parseErrorBody(output.body, context)
|
|
1938
|
-
};
|
|
1939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
-
switch (errorCode) {
|
|
1941
|
-
case "AccessDeniedException":
|
|
1942
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1943
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1944
|
-
case "ConcurrentModificationException":
|
|
1945
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
1946
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1947
|
-
case "HandshakeAlreadyInStateException":
|
|
1948
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
1949
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
1950
|
-
case "HandshakeNotFoundException":
|
|
1951
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
1952
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "InvalidHandshakeTransitionException":
|
|
1954
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
1955
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "InvalidInputException":
|
|
1957
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
1958
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "ServiceException":
|
|
1960
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
1961
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "TooManyRequestsException":
|
|
1963
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
1964
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1965
|
-
default:
|
|
1966
|
-
const parsedBody = parsedOutput.body;
|
|
1967
|
-
return throwDefaultError({
|
|
1968
|
-
output,
|
|
1969
|
-
parsedBody,
|
|
1970
|
-
errorCode
|
|
1971
|
-
});
|
|
1972
|
-
}
|
|
1973
|
-
}, "de_CancelHandshakeCommandError");
|
|
1974
1830
|
var de_CloseAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1975
1831
|
if (output.statusCode >= 300) {
|
|
1976
|
-
return
|
|
1832
|
+
return de_CommandError(output, context);
|
|
1977
1833
|
}
|
|
1978
1834
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1979
1835
|
const response = {
|
|
@@ -1981,58 +1837,9 @@ var de_CloseAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1981
1837
|
};
|
|
1982
1838
|
return response;
|
|
1983
1839
|
}, "de_CloseAccountCommand");
|
|
1984
|
-
var de_CloseAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1985
|
-
const parsedOutput = {
|
|
1986
|
-
...output,
|
|
1987
|
-
body: await parseErrorBody(output.body, context)
|
|
1988
|
-
};
|
|
1989
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1990
|
-
switch (errorCode) {
|
|
1991
|
-
case "AWSOrganizationsNotInUseException":
|
|
1992
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
1993
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
1994
|
-
case "AccessDeniedException":
|
|
1995
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
1996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "AccountAlreadyClosedException":
|
|
1998
|
-
case "com.amazonaws.organizations#AccountAlreadyClosedException":
|
|
1999
|
-
throw await de_AccountAlreadyClosedExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "AccountNotFoundException":
|
|
2001
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2002
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "ConcurrentModificationException":
|
|
2004
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2005
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ConflictException":
|
|
2007
|
-
case "com.amazonaws.organizations#ConflictException":
|
|
2008
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ConstraintViolationException":
|
|
2010
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2011
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "InvalidInputException":
|
|
2013
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2014
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ServiceException":
|
|
2016
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2017
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "TooManyRequestsException":
|
|
2019
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2020
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "UnsupportedAPIEndpointException":
|
|
2022
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2023
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2024
|
-
default:
|
|
2025
|
-
const parsedBody = parsedOutput.body;
|
|
2026
|
-
return throwDefaultError({
|
|
2027
|
-
output,
|
|
2028
|
-
parsedBody,
|
|
2029
|
-
errorCode
|
|
2030
|
-
});
|
|
2031
|
-
}
|
|
2032
|
-
}, "de_CloseAccountCommandError");
|
|
2033
1840
|
var de_CreateAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2034
1841
|
if (output.statusCode >= 300) {
|
|
2035
|
-
return
|
|
1842
|
+
return de_CommandError(output, context);
|
|
2036
1843
|
}
|
|
2037
1844
|
const data = await parseBody(output.body, context);
|
|
2038
1845
|
let contents = {};
|
|
@@ -2043,52 +1850,9 @@ var de_CreateAccountCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2043
1850
|
};
|
|
2044
1851
|
return response;
|
|
2045
1852
|
}, "de_CreateAccountCommand");
|
|
2046
|
-
var de_CreateAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2047
|
-
const parsedOutput = {
|
|
2048
|
-
...output,
|
|
2049
|
-
body: await parseErrorBody(output.body, context)
|
|
2050
|
-
};
|
|
2051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
|
-
switch (errorCode) {
|
|
2053
|
-
case "AWSOrganizationsNotInUseException":
|
|
2054
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2055
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "AccessDeniedException":
|
|
2057
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2058
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ConcurrentModificationException":
|
|
2060
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2061
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "ConstraintViolationException":
|
|
2063
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2064
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "FinalizingOrganizationException":
|
|
2066
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
2067
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "InvalidInputException":
|
|
2069
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2070
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ServiceException":
|
|
2072
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2073
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "TooManyRequestsException":
|
|
2075
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2076
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "UnsupportedAPIEndpointException":
|
|
2078
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2079
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2080
|
-
default:
|
|
2081
|
-
const parsedBody = parsedOutput.body;
|
|
2082
|
-
return throwDefaultError({
|
|
2083
|
-
output,
|
|
2084
|
-
parsedBody,
|
|
2085
|
-
errorCode
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
}, "de_CreateAccountCommandError");
|
|
2089
1853
|
var de_CreateGovCloudAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2090
1854
|
if (output.statusCode >= 300) {
|
|
2091
|
-
return
|
|
1855
|
+
return de_CommandError(output, context);
|
|
2092
1856
|
}
|
|
2093
1857
|
const data = await parseBody(output.body, context);
|
|
2094
1858
|
let contents = {};
|
|
@@ -2099,105 +1863,22 @@ var de_CreateGovCloudAccountCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2099
1863
|
};
|
|
2100
1864
|
return response;
|
|
2101
1865
|
}, "de_CreateGovCloudAccountCommand");
|
|
2102
|
-
var
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
case "AccessDeniedException":
|
|
2113
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2114
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ConcurrentModificationException":
|
|
2116
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2117
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "ConstraintViolationException":
|
|
2119
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2120
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "FinalizingOrganizationException":
|
|
2122
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
2123
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "InvalidInputException":
|
|
2125
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2126
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ServiceException":
|
|
2128
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2129
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "TooManyRequestsException":
|
|
2131
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2132
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2133
|
-
case "UnsupportedAPIEndpointException":
|
|
2134
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2135
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2136
|
-
default:
|
|
2137
|
-
const parsedBody = parsedOutput.body;
|
|
2138
|
-
return throwDefaultError({
|
|
2139
|
-
output,
|
|
2140
|
-
parsedBody,
|
|
2141
|
-
errorCode
|
|
2142
|
-
});
|
|
2143
|
-
}
|
|
2144
|
-
}, "de_CreateGovCloudAccountCommandError");
|
|
2145
|
-
var de_CreateOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2146
|
-
if (output.statusCode >= 300) {
|
|
2147
|
-
return de_CreateOrganizationCommandError(output, context);
|
|
2148
|
-
}
|
|
2149
|
-
const data = await parseBody(output.body, context);
|
|
2150
|
-
let contents = {};
|
|
2151
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2152
|
-
const response = {
|
|
2153
|
-
$metadata: deserializeMetadata(output),
|
|
2154
|
-
...contents
|
|
1866
|
+
var de_CreateOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1867
|
+
if (output.statusCode >= 300) {
|
|
1868
|
+
return de_CommandError(output, context);
|
|
1869
|
+
}
|
|
1870
|
+
const data = await parseBody(output.body, context);
|
|
1871
|
+
let contents = {};
|
|
1872
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1873
|
+
const response = {
|
|
1874
|
+
$metadata: deserializeMetadata(output),
|
|
1875
|
+
...contents
|
|
2155
1876
|
};
|
|
2156
1877
|
return response;
|
|
2157
1878
|
}, "de_CreateOrganizationCommand");
|
|
2158
|
-
var de_CreateOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2159
|
-
const parsedOutput = {
|
|
2160
|
-
...output,
|
|
2161
|
-
body: await parseErrorBody(output.body, context)
|
|
2162
|
-
};
|
|
2163
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
|
-
switch (errorCode) {
|
|
2165
|
-
case "AccessDeniedException":
|
|
2166
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2167
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "AccessDeniedForDependencyException":
|
|
2169
|
-
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
2170
|
-
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "AlreadyInOrganizationException":
|
|
2172
|
-
case "com.amazonaws.organizations#AlreadyInOrganizationException":
|
|
2173
|
-
throw await de_AlreadyInOrganizationExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ConcurrentModificationException":
|
|
2175
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2176
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ConstraintViolationException":
|
|
2178
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2179
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "InvalidInputException":
|
|
2181
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2182
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2183
|
-
case "ServiceException":
|
|
2184
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2185
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "TooManyRequestsException":
|
|
2187
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2188
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2189
|
-
default:
|
|
2190
|
-
const parsedBody = parsedOutput.body;
|
|
2191
|
-
return throwDefaultError({
|
|
2192
|
-
output,
|
|
2193
|
-
parsedBody,
|
|
2194
|
-
errorCode
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
}, "de_CreateOrganizationCommandError");
|
|
2198
1879
|
var de_CreateOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2199
1880
|
if (output.statusCode >= 300) {
|
|
2200
|
-
return
|
|
1881
|
+
return de_CommandError(output, context);
|
|
2201
1882
|
}
|
|
2202
1883
|
const data = await parseBody(output.body, context);
|
|
2203
1884
|
let contents = {};
|
|
@@ -2208,52 +1889,9 @@ var de_CreateOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2208
1889
|
};
|
|
2209
1890
|
return response;
|
|
2210
1891
|
}, "de_CreateOrganizationalUnitCommand");
|
|
2211
|
-
var de_CreateOrganizationalUnitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2212
|
-
const parsedOutput = {
|
|
2213
|
-
...output,
|
|
2214
|
-
body: await parseErrorBody(output.body, context)
|
|
2215
|
-
};
|
|
2216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
|
-
switch (errorCode) {
|
|
2218
|
-
case "AWSOrganizationsNotInUseException":
|
|
2219
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2220
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "AccessDeniedException":
|
|
2222
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ConcurrentModificationException":
|
|
2225
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2226
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "ConstraintViolationException":
|
|
2228
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2229
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2230
|
-
case "DuplicateOrganizationalUnitException":
|
|
2231
|
-
case "com.amazonaws.organizations#DuplicateOrganizationalUnitException":
|
|
2232
|
-
throw await de_DuplicateOrganizationalUnitExceptionRes(parsedOutput, context);
|
|
2233
|
-
case "InvalidInputException":
|
|
2234
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2235
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2236
|
-
case "ParentNotFoundException":
|
|
2237
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
2238
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
2239
|
-
case "ServiceException":
|
|
2240
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2241
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "TooManyRequestsException":
|
|
2243
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2244
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2245
|
-
default:
|
|
2246
|
-
const parsedBody = parsedOutput.body;
|
|
2247
|
-
return throwDefaultError({
|
|
2248
|
-
output,
|
|
2249
|
-
parsedBody,
|
|
2250
|
-
errorCode
|
|
2251
|
-
});
|
|
2252
|
-
}
|
|
2253
|
-
}, "de_CreateOrganizationalUnitCommandError");
|
|
2254
1892
|
var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
1893
|
if (output.statusCode >= 300) {
|
|
2256
|
-
return
|
|
1894
|
+
return de_CommandError(output, context);
|
|
2257
1895
|
}
|
|
2258
1896
|
const data = await parseBody(output.body, context);
|
|
2259
1897
|
let contents = {};
|
|
@@ -2264,58 +1902,9 @@ var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2264
1902
|
};
|
|
2265
1903
|
return response;
|
|
2266
1904
|
}, "de_CreatePolicyCommand");
|
|
2267
|
-
var de_CreatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2268
|
-
const parsedOutput = {
|
|
2269
|
-
...output,
|
|
2270
|
-
body: await parseErrorBody(output.body, context)
|
|
2271
|
-
};
|
|
2272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2273
|
-
switch (errorCode) {
|
|
2274
|
-
case "AWSOrganizationsNotInUseException":
|
|
2275
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2276
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2277
|
-
case "AccessDeniedException":
|
|
2278
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "ConcurrentModificationException":
|
|
2281
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2282
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ConstraintViolationException":
|
|
2284
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2285
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "DuplicatePolicyException":
|
|
2287
|
-
case "com.amazonaws.organizations#DuplicatePolicyException":
|
|
2288
|
-
throw await de_DuplicatePolicyExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InvalidInputException":
|
|
2290
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2291
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "MalformedPolicyDocumentException":
|
|
2293
|
-
case "com.amazonaws.organizations#MalformedPolicyDocumentException":
|
|
2294
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "PolicyTypeNotAvailableForOrganizationException":
|
|
2296
|
-
case "com.amazonaws.organizations#PolicyTypeNotAvailableForOrganizationException":
|
|
2297
|
-
throw await de_PolicyTypeNotAvailableForOrganizationExceptionRes(parsedOutput, context);
|
|
2298
|
-
case "ServiceException":
|
|
2299
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2300
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2301
|
-
case "TooManyRequestsException":
|
|
2302
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2303
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2304
|
-
case "UnsupportedAPIEndpointException":
|
|
2305
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2306
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2307
|
-
default:
|
|
2308
|
-
const parsedBody = parsedOutput.body;
|
|
2309
|
-
return throwDefaultError({
|
|
2310
|
-
output,
|
|
2311
|
-
parsedBody,
|
|
2312
|
-
errorCode
|
|
2313
|
-
});
|
|
2314
|
-
}
|
|
2315
|
-
}, "de_CreatePolicyCommandError");
|
|
2316
1905
|
var de_DeclineHandshakeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2317
1906
|
if (output.statusCode >= 300) {
|
|
2318
|
-
return
|
|
1907
|
+
return de_CommandError(output, context);
|
|
2319
1908
|
}
|
|
2320
1909
|
const data = await parseBody(output.body, context);
|
|
2321
1910
|
let contents = {};
|
|
@@ -2326,49 +1915,9 @@ var de_DeclineHandshakeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2326
1915
|
};
|
|
2327
1916
|
return response;
|
|
2328
1917
|
}, "de_DeclineHandshakeCommand");
|
|
2329
|
-
var de_DeclineHandshakeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2330
|
-
const parsedOutput = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseErrorBody(output.body, context)
|
|
2333
|
-
};
|
|
2334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
-
switch (errorCode) {
|
|
2336
|
-
case "AccessDeniedException":
|
|
2337
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "ConcurrentModificationException":
|
|
2340
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2341
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "HandshakeAlreadyInStateException":
|
|
2343
|
-
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
2344
|
-
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "HandshakeNotFoundException":
|
|
2346
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
2347
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "InvalidHandshakeTransitionException":
|
|
2349
|
-
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
2350
|
-
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "InvalidInputException":
|
|
2352
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2353
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ServiceException":
|
|
2355
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2356
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "TooManyRequestsException":
|
|
2358
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2359
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2360
|
-
default:
|
|
2361
|
-
const parsedBody = parsedOutput.body;
|
|
2362
|
-
return throwDefaultError({
|
|
2363
|
-
output,
|
|
2364
|
-
parsedBody,
|
|
2365
|
-
errorCode
|
|
2366
|
-
});
|
|
2367
|
-
}
|
|
2368
|
-
}, "de_DeclineHandshakeCommandError");
|
|
2369
1918
|
var de_DeleteOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2370
1919
|
if (output.statusCode >= 300) {
|
|
2371
|
-
return
|
|
1920
|
+
return de_CommandError(output, context);
|
|
2372
1921
|
}
|
|
2373
1922
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2374
1923
|
const response = {
|
|
@@ -2376,46 +1925,9 @@ var de_DeleteOrganizationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2376
1925
|
};
|
|
2377
1926
|
return response;
|
|
2378
1927
|
}, "de_DeleteOrganizationCommand");
|
|
2379
|
-
var de_DeleteOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2380
|
-
const parsedOutput = {
|
|
2381
|
-
...output,
|
|
2382
|
-
body: await parseErrorBody(output.body, context)
|
|
2383
|
-
};
|
|
2384
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2385
|
-
switch (errorCode) {
|
|
2386
|
-
case "AWSOrganizationsNotInUseException":
|
|
2387
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2388
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2389
|
-
case "AccessDeniedException":
|
|
2390
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2392
|
-
case "ConcurrentModificationException":
|
|
2393
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2394
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2395
|
-
case "InvalidInputException":
|
|
2396
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2397
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2398
|
-
case "OrganizationNotEmptyException":
|
|
2399
|
-
case "com.amazonaws.organizations#OrganizationNotEmptyException":
|
|
2400
|
-
throw await de_OrganizationNotEmptyExceptionRes(parsedOutput, context);
|
|
2401
|
-
case "ServiceException":
|
|
2402
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2403
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2404
|
-
case "TooManyRequestsException":
|
|
2405
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2406
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2407
|
-
default:
|
|
2408
|
-
const parsedBody = parsedOutput.body;
|
|
2409
|
-
return throwDefaultError({
|
|
2410
|
-
output,
|
|
2411
|
-
parsedBody,
|
|
2412
|
-
errorCode
|
|
2413
|
-
});
|
|
2414
|
-
}
|
|
2415
|
-
}, "de_DeleteOrganizationCommandError");
|
|
2416
1928
|
var de_DeleteOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2417
1929
|
if (output.statusCode >= 300) {
|
|
2418
|
-
return
|
|
1930
|
+
return de_CommandError(output, context);
|
|
2419
1931
|
}
|
|
2420
1932
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2421
1933
|
const response = {
|
|
@@ -2423,102 +1935,19 @@ var de_DeleteOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2423
1935
|
};
|
|
2424
1936
|
return response;
|
|
2425
1937
|
}, "de_DeleteOrganizationalUnitCommand");
|
|
2426
|
-
var
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2433
|
-
case "AWSOrganizationsNotInUseException":
|
|
2434
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2435
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "AccessDeniedException":
|
|
2437
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2438
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ConcurrentModificationException":
|
|
2440
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2441
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "InvalidInputException":
|
|
2443
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2444
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2445
|
-
case "OrganizationalUnitNotEmptyException":
|
|
2446
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotEmptyException":
|
|
2447
|
-
throw await de_OrganizationalUnitNotEmptyExceptionRes(parsedOutput, context);
|
|
2448
|
-
case "OrganizationalUnitNotFoundException":
|
|
2449
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
2450
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "ServiceException":
|
|
2452
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2453
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "TooManyRequestsException":
|
|
2455
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2456
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2457
|
-
default:
|
|
2458
|
-
const parsedBody = parsedOutput.body;
|
|
2459
|
-
return throwDefaultError({
|
|
2460
|
-
output,
|
|
2461
|
-
parsedBody,
|
|
2462
|
-
errorCode
|
|
2463
|
-
});
|
|
2464
|
-
}
|
|
2465
|
-
}, "de_DeleteOrganizationalUnitCommandError");
|
|
2466
|
-
var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2467
|
-
if (output.statusCode >= 300) {
|
|
2468
|
-
return de_DeletePolicyCommandError(output, context);
|
|
2469
|
-
}
|
|
2470
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2471
|
-
const response = {
|
|
2472
|
-
$metadata: deserializeMetadata(output)
|
|
1938
|
+
var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1939
|
+
if (output.statusCode >= 300) {
|
|
1940
|
+
return de_CommandError(output, context);
|
|
1941
|
+
}
|
|
1942
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1943
|
+
const response = {
|
|
1944
|
+
$metadata: deserializeMetadata(output)
|
|
2473
1945
|
};
|
|
2474
1946
|
return response;
|
|
2475
1947
|
}, "de_DeletePolicyCommand");
|
|
2476
|
-
var de_DeletePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2477
|
-
const parsedOutput = {
|
|
2478
|
-
...output,
|
|
2479
|
-
body: await parseErrorBody(output.body, context)
|
|
2480
|
-
};
|
|
2481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2482
|
-
switch (errorCode) {
|
|
2483
|
-
case "AWSOrganizationsNotInUseException":
|
|
2484
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2485
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "AccessDeniedException":
|
|
2487
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2488
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ConcurrentModificationException":
|
|
2490
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2491
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "InvalidInputException":
|
|
2493
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2494
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "PolicyInUseException":
|
|
2496
|
-
case "com.amazonaws.organizations#PolicyInUseException":
|
|
2497
|
-
throw await de_PolicyInUseExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "PolicyNotFoundException":
|
|
2499
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
2500
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "ServiceException":
|
|
2502
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2503
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "TooManyRequestsException":
|
|
2505
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2506
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "UnsupportedAPIEndpointException":
|
|
2508
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2509
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2510
|
-
default:
|
|
2511
|
-
const parsedBody = parsedOutput.body;
|
|
2512
|
-
return throwDefaultError({
|
|
2513
|
-
output,
|
|
2514
|
-
parsedBody,
|
|
2515
|
-
errorCode
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
}, "de_DeletePolicyCommandError");
|
|
2519
1948
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2520
1949
|
if (output.statusCode >= 300) {
|
|
2521
|
-
return
|
|
1950
|
+
return de_CommandError(output, context);
|
|
2522
1951
|
}
|
|
2523
1952
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2524
1953
|
const response = {
|
|
@@ -2526,49 +1955,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2526
1955
|
};
|
|
2527
1956
|
return response;
|
|
2528
1957
|
}, "de_DeleteResourcePolicyCommand");
|
|
2529
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2530
|
-
const parsedOutput = {
|
|
2531
|
-
...output,
|
|
2532
|
-
body: await parseErrorBody(output.body, context)
|
|
2533
|
-
};
|
|
2534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2535
|
-
switch (errorCode) {
|
|
2536
|
-
case "AWSOrganizationsNotInUseException":
|
|
2537
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2538
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "AccessDeniedException":
|
|
2540
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2541
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ConcurrentModificationException":
|
|
2543
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2544
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "ConstraintViolationException":
|
|
2546
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2547
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "ResourcePolicyNotFoundException":
|
|
2549
|
-
case "com.amazonaws.organizations#ResourcePolicyNotFoundException":
|
|
2550
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ServiceException":
|
|
2552
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2553
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "TooManyRequestsException":
|
|
2555
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2556
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "UnsupportedAPIEndpointException":
|
|
2558
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2559
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
2569
1958
|
var de_DeregisterDelegatedAdministratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2570
1959
|
if (output.statusCode >= 300) {
|
|
2571
|
-
return
|
|
1960
|
+
return de_CommandError(output, context);
|
|
2572
1961
|
}
|
|
2573
1962
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2574
1963
|
const response = {
|
|
@@ -2576,55 +1965,9 @@ var de_DeregisterDelegatedAdministratorCommand = /* @__PURE__ */ __name(async (o
|
|
|
2576
1965
|
};
|
|
2577
1966
|
return response;
|
|
2578
1967
|
}, "de_DeregisterDelegatedAdministratorCommand");
|
|
2579
|
-
var de_DeregisterDelegatedAdministratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2580
|
-
const parsedOutput = {
|
|
2581
|
-
...output,
|
|
2582
|
-
body: await parseErrorBody(output.body, context)
|
|
2583
|
-
};
|
|
2584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2585
|
-
switch (errorCode) {
|
|
2586
|
-
case "AWSOrganizationsNotInUseException":
|
|
2587
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2588
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2589
|
-
case "AccessDeniedException":
|
|
2590
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2591
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2592
|
-
case "AccountNotFoundException":
|
|
2593
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2594
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "AccountNotRegisteredException":
|
|
2596
|
-
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
2597
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "ConcurrentModificationException":
|
|
2599
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2600
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ConstraintViolationException":
|
|
2602
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2603
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "InvalidInputException":
|
|
2605
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2606
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ServiceException":
|
|
2608
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2609
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "TooManyRequestsException":
|
|
2611
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2612
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "UnsupportedAPIEndpointException":
|
|
2614
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2615
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2616
|
-
default:
|
|
2617
|
-
const parsedBody = parsedOutput.body;
|
|
2618
|
-
return throwDefaultError({
|
|
2619
|
-
output,
|
|
2620
|
-
parsedBody,
|
|
2621
|
-
errorCode
|
|
2622
|
-
});
|
|
2623
|
-
}
|
|
2624
|
-
}, "de_DeregisterDelegatedAdministratorCommandError");
|
|
2625
1968
|
var de_DescribeAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2626
1969
|
if (output.statusCode >= 300) {
|
|
2627
|
-
return
|
|
1970
|
+
return de_CommandError(output, context);
|
|
2628
1971
|
}
|
|
2629
1972
|
const data = await parseBody(output.body, context);
|
|
2630
1973
|
let contents = {};
|
|
@@ -2635,43 +1978,9 @@ var de_DescribeAccountCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2635
1978
|
};
|
|
2636
1979
|
return response;
|
|
2637
1980
|
}, "de_DescribeAccountCommand");
|
|
2638
|
-
var de_DescribeAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2639
|
-
const parsedOutput = {
|
|
2640
|
-
...output,
|
|
2641
|
-
body: await parseErrorBody(output.body, context)
|
|
2642
|
-
};
|
|
2643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2644
|
-
switch (errorCode) {
|
|
2645
|
-
case "AWSOrganizationsNotInUseException":
|
|
2646
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2647
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "AccessDeniedException":
|
|
2649
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "AccountNotFoundException":
|
|
2652
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2653
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "InvalidInputException":
|
|
2655
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2656
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "ServiceException":
|
|
2658
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2659
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "TooManyRequestsException":
|
|
2661
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2662
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2663
|
-
default:
|
|
2664
|
-
const parsedBody = parsedOutput.body;
|
|
2665
|
-
return throwDefaultError({
|
|
2666
|
-
output,
|
|
2667
|
-
parsedBody,
|
|
2668
|
-
errorCode
|
|
2669
|
-
});
|
|
2670
|
-
}
|
|
2671
|
-
}, "de_DescribeAccountCommandError");
|
|
2672
1981
|
var de_DescribeCreateAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2673
1982
|
if (output.statusCode >= 300) {
|
|
2674
|
-
return
|
|
1983
|
+
return de_CommandError(output, context);
|
|
2675
1984
|
}
|
|
2676
1985
|
const data = await parseBody(output.body, context);
|
|
2677
1986
|
let contents = {};
|
|
@@ -2682,46 +1991,9 @@ var de_DescribeCreateAccountStatusCommand = /* @__PURE__ */ __name(async (output
|
|
|
2682
1991
|
};
|
|
2683
1992
|
return response;
|
|
2684
1993
|
}, "de_DescribeCreateAccountStatusCommand");
|
|
2685
|
-
var de_DescribeCreateAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2686
|
-
const parsedOutput = {
|
|
2687
|
-
...output,
|
|
2688
|
-
body: await parseErrorBody(output.body, context)
|
|
2689
|
-
};
|
|
2690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
|
-
switch (errorCode) {
|
|
2692
|
-
case "AWSOrganizationsNotInUseException":
|
|
2693
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2694
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "AccessDeniedException":
|
|
2696
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2697
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "CreateAccountStatusNotFoundException":
|
|
2699
|
-
case "com.amazonaws.organizations#CreateAccountStatusNotFoundException":
|
|
2700
|
-
throw await de_CreateAccountStatusNotFoundExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "InvalidInputException":
|
|
2702
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2703
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2704
|
-
case "ServiceException":
|
|
2705
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2706
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2707
|
-
case "TooManyRequestsException":
|
|
2708
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2709
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2710
|
-
case "UnsupportedAPIEndpointException":
|
|
2711
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2712
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2713
|
-
default:
|
|
2714
|
-
const parsedBody = parsedOutput.body;
|
|
2715
|
-
return throwDefaultError({
|
|
2716
|
-
output,
|
|
2717
|
-
parsedBody,
|
|
2718
|
-
errorCode
|
|
2719
|
-
});
|
|
2720
|
-
}
|
|
2721
|
-
}, "de_DescribeCreateAccountStatusCommandError");
|
|
2722
1994
|
var de_DescribeEffectivePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2723
1995
|
if (output.statusCode >= 300) {
|
|
2724
|
-
return
|
|
1996
|
+
return de_CommandError(output, context);
|
|
2725
1997
|
}
|
|
2726
1998
|
const data = await parseBody(output.body, context);
|
|
2727
1999
|
let contents = {};
|
|
@@ -2732,52 +2004,9 @@ var de_DescribeEffectivePolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2732
2004
|
};
|
|
2733
2005
|
return response;
|
|
2734
2006
|
}, "de_DescribeEffectivePolicyCommand");
|
|
2735
|
-
var de_DescribeEffectivePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2736
|
-
const parsedOutput = {
|
|
2737
|
-
...output,
|
|
2738
|
-
body: await parseErrorBody(output.body, context)
|
|
2739
|
-
};
|
|
2740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2741
|
-
switch (errorCode) {
|
|
2742
|
-
case "AWSOrganizationsNotInUseException":
|
|
2743
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2744
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "AccessDeniedException":
|
|
2746
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ConstraintViolationException":
|
|
2749
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2750
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2751
|
-
case "EffectivePolicyNotFoundException":
|
|
2752
|
-
case "com.amazonaws.organizations#EffectivePolicyNotFoundException":
|
|
2753
|
-
throw await de_EffectivePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2754
|
-
case "InvalidInputException":
|
|
2755
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2756
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "ServiceException":
|
|
2758
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2759
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "TargetNotFoundException":
|
|
2761
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
2762
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "TooManyRequestsException":
|
|
2764
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2765
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "UnsupportedAPIEndpointException":
|
|
2767
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2768
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode
|
|
2775
|
-
});
|
|
2776
|
-
}
|
|
2777
|
-
}, "de_DescribeEffectivePolicyCommandError");
|
|
2778
2007
|
var de_DescribeHandshakeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
2008
|
if (output.statusCode >= 300) {
|
|
2780
|
-
return
|
|
2009
|
+
return de_CommandError(output, context);
|
|
2781
2010
|
}
|
|
2782
2011
|
const data = await parseBody(output.body, context);
|
|
2783
2012
|
let contents = {};
|
|
@@ -2788,43 +2017,9 @@ var de_DescribeHandshakeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2788
2017
|
};
|
|
2789
2018
|
return response;
|
|
2790
2019
|
}, "de_DescribeHandshakeCommand");
|
|
2791
|
-
var de_DescribeHandshakeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context)
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "AccessDeniedException":
|
|
2799
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2800
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ConcurrentModificationException":
|
|
2802
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2803
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "HandshakeNotFoundException":
|
|
2805
|
-
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
2806
|
-
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "InvalidInputException":
|
|
2808
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2809
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ServiceException":
|
|
2811
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2812
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "TooManyRequestsException":
|
|
2814
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2815
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
}, "de_DescribeHandshakeCommandError");
|
|
2825
2020
|
var de_DescribeOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
2021
|
if (output.statusCode >= 300) {
|
|
2827
|
-
return
|
|
2022
|
+
return de_CommandError(output, context);
|
|
2828
2023
|
}
|
|
2829
2024
|
const data = await parseBody(output.body, context);
|
|
2830
2025
|
let contents = {};
|
|
@@ -2835,40 +2030,9 @@ var de_DescribeOrganizationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2835
2030
|
};
|
|
2836
2031
|
return response;
|
|
2837
2032
|
}, "de_DescribeOrganizationCommand");
|
|
2838
|
-
var de_DescribeOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context)
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "AWSOrganizationsNotInUseException":
|
|
2846
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2847
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "AccessDeniedException":
|
|
2849
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ConcurrentModificationException":
|
|
2852
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
2853
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ServiceException":
|
|
2855
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2856
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "TooManyRequestsException":
|
|
2858
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2859
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2860
|
-
default:
|
|
2861
|
-
const parsedBody = parsedOutput.body;
|
|
2862
|
-
return throwDefaultError({
|
|
2863
|
-
output,
|
|
2864
|
-
parsedBody,
|
|
2865
|
-
errorCode
|
|
2866
|
-
});
|
|
2867
|
-
}
|
|
2868
|
-
}, "de_DescribeOrganizationCommandError");
|
|
2869
2033
|
var de_DescribeOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2870
2034
|
if (output.statusCode >= 300) {
|
|
2871
|
-
return
|
|
2035
|
+
return de_CommandError(output, context);
|
|
2872
2036
|
}
|
|
2873
2037
|
const data = await parseBody(output.body, context);
|
|
2874
2038
|
let contents = {};
|
|
@@ -2879,317 +2043,68 @@ var de_DescribeOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2879
2043
|
};
|
|
2880
2044
|
return response;
|
|
2881
2045
|
}, "de_DescribeOrganizationalUnitCommand");
|
|
2882
|
-
var de_DescribeOrganizationalUnitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2883
|
-
const parsedOutput = {
|
|
2884
|
-
...output,
|
|
2885
|
-
body: await parseErrorBody(output.body, context)
|
|
2886
|
-
};
|
|
2887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2888
|
-
switch (errorCode) {
|
|
2889
|
-
case "AWSOrganizationsNotInUseException":
|
|
2890
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2891
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "AccessDeniedException":
|
|
2893
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2894
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "InvalidInputException":
|
|
2896
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2897
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "OrganizationalUnitNotFoundException":
|
|
2899
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
2900
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
2901
|
-
case "ServiceException":
|
|
2902
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2903
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2904
|
-
case "TooManyRequestsException":
|
|
2905
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2906
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2907
|
-
default:
|
|
2908
|
-
const parsedBody = parsedOutput.body;
|
|
2909
|
-
return throwDefaultError({
|
|
2910
|
-
output,
|
|
2911
|
-
parsedBody,
|
|
2912
|
-
errorCode
|
|
2913
|
-
});
|
|
2914
|
-
}
|
|
2915
|
-
}, "de_DescribeOrganizationalUnitCommandError");
|
|
2916
2046
|
var de_DescribePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2917
2047
|
if (output.statusCode >= 300) {
|
|
2918
|
-
return
|
|
2919
|
-
}
|
|
2920
|
-
const data = await parseBody(output.body, context);
|
|
2921
|
-
let contents = {};
|
|
2922
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2923
|
-
const response = {
|
|
2924
|
-
$metadata: deserializeMetadata(output),
|
|
2925
|
-
...contents
|
|
2926
|
-
};
|
|
2927
|
-
return response;
|
|
2928
|
-
}, "de_DescribePolicyCommand");
|
|
2929
|
-
var de_DescribePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2930
|
-
const parsedOutput = {
|
|
2931
|
-
...output,
|
|
2932
|
-
body: await parseErrorBody(output.body, context)
|
|
2933
|
-
};
|
|
2934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
|
-
switch (errorCode) {
|
|
2936
|
-
case "AWSOrganizationsNotInUseException":
|
|
2937
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2938
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "AccessDeniedException":
|
|
2940
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2941
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2942
|
-
case "InvalidInputException":
|
|
2943
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
2944
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2945
|
-
case "PolicyNotFoundException":
|
|
2946
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
2947
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "ServiceException":
|
|
2949
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
2950
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2951
|
-
case "TooManyRequestsException":
|
|
2952
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
2953
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "UnsupportedAPIEndpointException":
|
|
2955
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
2956
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2957
|
-
default:
|
|
2958
|
-
const parsedBody = parsedOutput.body;
|
|
2959
|
-
return throwDefaultError({
|
|
2960
|
-
output,
|
|
2961
|
-
parsedBody,
|
|
2962
|
-
errorCode
|
|
2963
|
-
});
|
|
2964
|
-
}
|
|
2965
|
-
}, "de_DescribePolicyCommandError");
|
|
2966
|
-
var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2967
|
-
if (output.statusCode >= 300) {
|
|
2968
|
-
return de_DescribeResourcePolicyCommandError(output, context);
|
|
2969
|
-
}
|
|
2970
|
-
const data = await parseBody(output.body, context);
|
|
2971
|
-
let contents = {};
|
|
2972
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2973
|
-
const response = {
|
|
2974
|
-
$metadata: deserializeMetadata(output),
|
|
2975
|
-
...contents
|
|
2976
|
-
};
|
|
2977
|
-
return response;
|
|
2978
|
-
}, "de_DescribeResourcePolicyCommand");
|
|
2979
|
-
var de_DescribeResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2980
|
-
const parsedOutput = {
|
|
2981
|
-
...output,
|
|
2982
|
-
body: await parseErrorBody(output.body, context)
|
|
2983
|
-
};
|
|
2984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
|
-
switch (errorCode) {
|
|
2986
|
-
case "AWSOrganizationsNotInUseException":
|
|
2987
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
2988
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
2989
|
-
case "AccessDeniedException":
|
|
2990
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
2991
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "ConstraintViolationException":
|
|
2993
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2994
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "ResourcePolicyNotFoundException":
|
|
2996
|
-
case "com.amazonaws.organizations#ResourcePolicyNotFoundException":
|
|
2997
|
-
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "ServiceException":
|
|
2999
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3000
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "TooManyRequestsException":
|
|
3002
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3003
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "UnsupportedAPIEndpointException":
|
|
3005
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3006
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3007
|
-
default:
|
|
3008
|
-
const parsedBody = parsedOutput.body;
|
|
3009
|
-
return throwDefaultError({
|
|
3010
|
-
output,
|
|
3011
|
-
parsedBody,
|
|
3012
|
-
errorCode
|
|
3013
|
-
});
|
|
3014
|
-
}
|
|
3015
|
-
}, "de_DescribeResourcePolicyCommandError");
|
|
3016
|
-
var de_DetachPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3017
|
-
if (output.statusCode >= 300) {
|
|
3018
|
-
return de_DetachPolicyCommandError(output, context);
|
|
3019
|
-
}
|
|
3020
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3021
|
-
const response = {
|
|
3022
|
-
$metadata: deserializeMetadata(output)
|
|
3023
|
-
};
|
|
3024
|
-
return response;
|
|
3025
|
-
}, "de_DetachPolicyCommand");
|
|
3026
|
-
var de_DetachPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3027
|
-
const parsedOutput = {
|
|
3028
|
-
...output,
|
|
3029
|
-
body: await parseErrorBody(output.body, context)
|
|
3030
|
-
};
|
|
3031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
|
-
switch (errorCode) {
|
|
3033
|
-
case "AWSOrganizationsNotInUseException":
|
|
3034
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3035
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "AccessDeniedException":
|
|
3037
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3038
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "ConcurrentModificationException":
|
|
3040
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3041
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3042
|
-
case "ConstraintViolationException":
|
|
3043
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3044
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3045
|
-
case "InvalidInputException":
|
|
3046
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3047
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3048
|
-
case "PolicyChangesInProgressException":
|
|
3049
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
3050
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "PolicyNotAttachedException":
|
|
3052
|
-
case "com.amazonaws.organizations#PolicyNotAttachedException":
|
|
3053
|
-
throw await de_PolicyNotAttachedExceptionRes(parsedOutput, context);
|
|
3054
|
-
case "PolicyNotFoundException":
|
|
3055
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
3056
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "ServiceException":
|
|
3058
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3059
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "TargetNotFoundException":
|
|
3061
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
3062
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "TooManyRequestsException":
|
|
3064
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3065
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3066
|
-
case "UnsupportedAPIEndpointException":
|
|
3067
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3068
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3069
|
-
default:
|
|
3070
|
-
const parsedBody = parsedOutput.body;
|
|
3071
|
-
return throwDefaultError({
|
|
3072
|
-
output,
|
|
3073
|
-
parsedBody,
|
|
3074
|
-
errorCode
|
|
3075
|
-
});
|
|
3076
|
-
}
|
|
3077
|
-
}, "de_DetachPolicyCommandError");
|
|
3078
|
-
var de_DisableAWSServiceAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3079
|
-
if (output.statusCode >= 300) {
|
|
3080
|
-
return de_DisableAWSServiceAccessCommandError(output, context);
|
|
3081
|
-
}
|
|
3082
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3083
|
-
const response = {
|
|
3084
|
-
$metadata: deserializeMetadata(output)
|
|
3085
|
-
};
|
|
3086
|
-
return response;
|
|
3087
|
-
}, "de_DisableAWSServiceAccessCommand");
|
|
3088
|
-
var de_DisableAWSServiceAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3089
|
-
const parsedOutput = {
|
|
3090
|
-
...output,
|
|
3091
|
-
body: await parseErrorBody(output.body, context)
|
|
3092
|
-
};
|
|
3093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
-
switch (errorCode) {
|
|
3095
|
-
case "AWSOrganizationsNotInUseException":
|
|
3096
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3097
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "AccessDeniedException":
|
|
3099
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "ConcurrentModificationException":
|
|
3102
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3103
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "ConstraintViolationException":
|
|
3105
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3106
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "InvalidInputException":
|
|
3108
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3109
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "ServiceException":
|
|
3111
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3112
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "TooManyRequestsException":
|
|
3114
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3115
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "UnsupportedAPIEndpointException":
|
|
3117
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3118
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3119
|
-
default:
|
|
3120
|
-
const parsedBody = parsedOutput.body;
|
|
3121
|
-
return throwDefaultError({
|
|
3122
|
-
output,
|
|
3123
|
-
parsedBody,
|
|
3124
|
-
errorCode
|
|
3125
|
-
});
|
|
3126
|
-
}
|
|
3127
|
-
}, "de_DisableAWSServiceAccessCommandError");
|
|
3128
|
-
var de_DisablePolicyTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3129
|
-
if (output.statusCode >= 300) {
|
|
3130
|
-
return de_DisablePolicyTypeCommandError(output, context);
|
|
2048
|
+
return de_CommandError(output, context);
|
|
3131
2049
|
}
|
|
3132
2050
|
const data = await parseBody(output.body, context);
|
|
3133
2051
|
let contents = {};
|
|
3134
2052
|
contents = (0, import_smithy_client._json)(data);
|
|
3135
2053
|
const response = {
|
|
3136
2054
|
$metadata: deserializeMetadata(output),
|
|
3137
|
-
...contents
|
|
3138
|
-
};
|
|
3139
|
-
return response;
|
|
3140
|
-
}, "
|
|
3141
|
-
var
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "UnsupportedAPIEndpointException":
|
|
3179
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3180
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3181
|
-
default:
|
|
3182
|
-
const parsedBody = parsedOutput.body;
|
|
3183
|
-
return throwDefaultError({
|
|
3184
|
-
output,
|
|
3185
|
-
parsedBody,
|
|
3186
|
-
errorCode
|
|
3187
|
-
});
|
|
2055
|
+
...contents
|
|
2056
|
+
};
|
|
2057
|
+
return response;
|
|
2058
|
+
}, "de_DescribePolicyCommand");
|
|
2059
|
+
var de_DescribeResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2060
|
+
if (output.statusCode >= 300) {
|
|
2061
|
+
return de_CommandError(output, context);
|
|
2062
|
+
}
|
|
2063
|
+
const data = await parseBody(output.body, context);
|
|
2064
|
+
let contents = {};
|
|
2065
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2066
|
+
const response = {
|
|
2067
|
+
$metadata: deserializeMetadata(output),
|
|
2068
|
+
...contents
|
|
2069
|
+
};
|
|
2070
|
+
return response;
|
|
2071
|
+
}, "de_DescribeResourcePolicyCommand");
|
|
2072
|
+
var de_DetachPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2073
|
+
if (output.statusCode >= 300) {
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2075
|
+
}
|
|
2076
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2077
|
+
const response = {
|
|
2078
|
+
$metadata: deserializeMetadata(output)
|
|
2079
|
+
};
|
|
2080
|
+
return response;
|
|
2081
|
+
}, "de_DetachPolicyCommand");
|
|
2082
|
+
var de_DisableAWSServiceAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2083
|
+
if (output.statusCode >= 300) {
|
|
2084
|
+
return de_CommandError(output, context);
|
|
2085
|
+
}
|
|
2086
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2087
|
+
const response = {
|
|
2088
|
+
$metadata: deserializeMetadata(output)
|
|
2089
|
+
};
|
|
2090
|
+
return response;
|
|
2091
|
+
}, "de_DisableAWSServiceAccessCommand");
|
|
2092
|
+
var de_DisablePolicyTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2093
|
+
if (output.statusCode >= 300) {
|
|
2094
|
+
return de_CommandError(output, context);
|
|
3188
2095
|
}
|
|
3189
|
-
|
|
2096
|
+
const data = await parseBody(output.body, context);
|
|
2097
|
+
let contents = {};
|
|
2098
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2099
|
+
const response = {
|
|
2100
|
+
$metadata: deserializeMetadata(output),
|
|
2101
|
+
...contents
|
|
2102
|
+
};
|
|
2103
|
+
return response;
|
|
2104
|
+
}, "de_DisablePolicyTypeCommand");
|
|
3190
2105
|
var de_EnableAllFeaturesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3191
2106
|
if (output.statusCode >= 300) {
|
|
3192
|
-
return
|
|
2107
|
+
return de_CommandError(output, context);
|
|
3193
2108
|
}
|
|
3194
2109
|
const data = await parseBody(output.body, context);
|
|
3195
2110
|
let contents = {};
|
|
@@ -3200,46 +2115,9 @@ var de_EnableAllFeaturesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3200
2115
|
};
|
|
3201
2116
|
return response;
|
|
3202
2117
|
}, "de_EnableAllFeaturesCommand");
|
|
3203
|
-
var de_EnableAllFeaturesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3204
|
-
const parsedOutput = {
|
|
3205
|
-
...output,
|
|
3206
|
-
body: await parseErrorBody(output.body, context)
|
|
3207
|
-
};
|
|
3208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3209
|
-
switch (errorCode) {
|
|
3210
|
-
case "AWSOrganizationsNotInUseException":
|
|
3211
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3212
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3213
|
-
case "AccessDeniedException":
|
|
3214
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "ConcurrentModificationException":
|
|
3217
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3218
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "HandshakeConstraintViolationException":
|
|
3220
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
3221
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "InvalidInputException":
|
|
3223
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3224
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "ServiceException":
|
|
3226
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3227
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "TooManyRequestsException":
|
|
3229
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3230
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3231
|
-
default:
|
|
3232
|
-
const parsedBody = parsedOutput.body;
|
|
3233
|
-
return throwDefaultError({
|
|
3234
|
-
output,
|
|
3235
|
-
parsedBody,
|
|
3236
|
-
errorCode
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
3239
|
-
}, "de_EnableAllFeaturesCommandError");
|
|
3240
2118
|
var de_EnableAWSServiceAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3241
2119
|
if (output.statusCode >= 300) {
|
|
3242
|
-
return
|
|
2120
|
+
return de_CommandError(output, context);
|
|
3243
2121
|
}
|
|
3244
2122
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3245
2123
|
const response = {
|
|
@@ -3247,49 +2125,9 @@ var de_EnableAWSServiceAccessCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3247
2125
|
};
|
|
3248
2126
|
return response;
|
|
3249
2127
|
}, "de_EnableAWSServiceAccessCommand");
|
|
3250
|
-
var de_EnableAWSServiceAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3251
|
-
const parsedOutput = {
|
|
3252
|
-
...output,
|
|
3253
|
-
body: await parseErrorBody(output.body, context)
|
|
3254
|
-
};
|
|
3255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
|
-
switch (errorCode) {
|
|
3257
|
-
case "AWSOrganizationsNotInUseException":
|
|
3258
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3259
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3260
|
-
case "AccessDeniedException":
|
|
3261
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3262
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "ConcurrentModificationException":
|
|
3264
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3265
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "ConstraintViolationException":
|
|
3267
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3268
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3269
|
-
case "InvalidInputException":
|
|
3270
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3271
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3272
|
-
case "ServiceException":
|
|
3273
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3274
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3275
|
-
case "TooManyRequestsException":
|
|
3276
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3277
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3278
|
-
case "UnsupportedAPIEndpointException":
|
|
3279
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3280
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3281
|
-
default:
|
|
3282
|
-
const parsedBody = parsedOutput.body;
|
|
3283
|
-
return throwDefaultError({
|
|
3284
|
-
output,
|
|
3285
|
-
parsedBody,
|
|
3286
|
-
errorCode
|
|
3287
|
-
});
|
|
3288
|
-
}
|
|
3289
|
-
}, "de_EnableAWSServiceAccessCommandError");
|
|
3290
2128
|
var de_EnablePolicyTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3291
2129
|
if (output.statusCode >= 300) {
|
|
3292
|
-
return
|
|
2130
|
+
return de_CommandError(output, context);
|
|
3293
2131
|
}
|
|
3294
2132
|
const data = await parseBody(output.body, context);
|
|
3295
2133
|
let contents = {};
|
|
@@ -3300,61 +2138,9 @@ var de_EnablePolicyTypeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3300
2138
|
};
|
|
3301
2139
|
return response;
|
|
3302
2140
|
}, "de_EnablePolicyTypeCommand");
|
|
3303
|
-
var de_EnablePolicyTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3304
|
-
const parsedOutput = {
|
|
3305
|
-
...output,
|
|
3306
|
-
body: await parseErrorBody(output.body, context)
|
|
3307
|
-
};
|
|
3308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3309
|
-
switch (errorCode) {
|
|
3310
|
-
case "AWSOrganizationsNotInUseException":
|
|
3311
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3312
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3313
|
-
case "AccessDeniedException":
|
|
3314
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3316
|
-
case "ConcurrentModificationException":
|
|
3317
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3318
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3319
|
-
case "ConstraintViolationException":
|
|
3320
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3321
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "InvalidInputException":
|
|
3323
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3324
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "PolicyChangesInProgressException":
|
|
3326
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
3327
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "PolicyTypeAlreadyEnabledException":
|
|
3329
|
-
case "com.amazonaws.organizations#PolicyTypeAlreadyEnabledException":
|
|
3330
|
-
throw await de_PolicyTypeAlreadyEnabledExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "PolicyTypeNotAvailableForOrganizationException":
|
|
3332
|
-
case "com.amazonaws.organizations#PolicyTypeNotAvailableForOrganizationException":
|
|
3333
|
-
throw await de_PolicyTypeNotAvailableForOrganizationExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "RootNotFoundException":
|
|
3335
|
-
case "com.amazonaws.organizations#RootNotFoundException":
|
|
3336
|
-
throw await de_RootNotFoundExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "ServiceException":
|
|
3338
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3339
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3340
|
-
case "TooManyRequestsException":
|
|
3341
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3342
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3343
|
-
case "UnsupportedAPIEndpointException":
|
|
3344
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3345
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3346
|
-
default:
|
|
3347
|
-
const parsedBody = parsedOutput.body;
|
|
3348
|
-
return throwDefaultError({
|
|
3349
|
-
output,
|
|
3350
|
-
parsedBody,
|
|
3351
|
-
errorCode
|
|
3352
|
-
});
|
|
3353
|
-
}
|
|
3354
|
-
}, "de_EnablePolicyTypeCommandError");
|
|
3355
2141
|
var de_InviteAccountToOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3356
2142
|
if (output.statusCode >= 300) {
|
|
3357
|
-
return
|
|
2143
|
+
return de_CommandError(output, context);
|
|
3358
2144
|
}
|
|
3359
2145
|
const data = await parseBody(output.body, context);
|
|
3360
2146
|
let contents = {};
|
|
@@ -3365,58 +2151,9 @@ var de_InviteAccountToOrganizationCommand = /* @__PURE__ */ __name(async (output
|
|
|
3365
2151
|
};
|
|
3366
2152
|
return response;
|
|
3367
2153
|
}, "de_InviteAccountToOrganizationCommand");
|
|
3368
|
-
var de_InviteAccountToOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3369
|
-
const parsedOutput = {
|
|
3370
|
-
...output,
|
|
3371
|
-
body: await parseErrorBody(output.body, context)
|
|
3372
|
-
};
|
|
3373
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3374
|
-
switch (errorCode) {
|
|
3375
|
-
case "AWSOrganizationsNotInUseException":
|
|
3376
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3377
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3378
|
-
case "AccessDeniedException":
|
|
3379
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3381
|
-
case "AccountOwnerNotVerifiedException":
|
|
3382
|
-
case "com.amazonaws.organizations#AccountOwnerNotVerifiedException":
|
|
3383
|
-
throw await de_AccountOwnerNotVerifiedExceptionRes(parsedOutput, context);
|
|
3384
|
-
case "ConcurrentModificationException":
|
|
3385
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3386
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3387
|
-
case "ConstraintViolationException":
|
|
3388
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3389
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3390
|
-
case "DuplicateHandshakeException":
|
|
3391
|
-
case "com.amazonaws.organizations#DuplicateHandshakeException":
|
|
3392
|
-
throw await de_DuplicateHandshakeExceptionRes(parsedOutput, context);
|
|
3393
|
-
case "FinalizingOrganizationException":
|
|
3394
|
-
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
3395
|
-
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
3396
|
-
case "HandshakeConstraintViolationException":
|
|
3397
|
-
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
3398
|
-
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
3399
|
-
case "InvalidInputException":
|
|
3400
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3401
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "ServiceException":
|
|
3403
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3404
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "TooManyRequestsException":
|
|
3406
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3407
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3408
|
-
default:
|
|
3409
|
-
const parsedBody = parsedOutput.body;
|
|
3410
|
-
return throwDefaultError({
|
|
3411
|
-
output,
|
|
3412
|
-
parsedBody,
|
|
3413
|
-
errorCode
|
|
3414
|
-
});
|
|
3415
|
-
}
|
|
3416
|
-
}, "de_InviteAccountToOrganizationCommandError");
|
|
3417
2154
|
var de_LeaveOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3418
2155
|
if (output.statusCode >= 300) {
|
|
3419
|
-
return
|
|
2156
|
+
return de_CommandError(output, context);
|
|
3420
2157
|
}
|
|
3421
2158
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3422
2159
|
const response = {
|
|
@@ -3424,52 +2161,9 @@ var de_LeaveOrganizationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3424
2161
|
};
|
|
3425
2162
|
return response;
|
|
3426
2163
|
}, "de_LeaveOrganizationCommand");
|
|
3427
|
-
var de_LeaveOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3428
|
-
const parsedOutput = {
|
|
3429
|
-
...output,
|
|
3430
|
-
body: await parseErrorBody(output.body, context)
|
|
3431
|
-
};
|
|
3432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
|
-
switch (errorCode) {
|
|
3434
|
-
case "AWSOrganizationsNotInUseException":
|
|
3435
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3436
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3437
|
-
case "AccessDeniedException":
|
|
3438
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3439
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3440
|
-
case "AccountNotFoundException":
|
|
3441
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3442
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "ConcurrentModificationException":
|
|
3444
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3445
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ConstraintViolationException":
|
|
3447
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3448
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3449
|
-
case "InvalidInputException":
|
|
3450
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3451
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "MasterCannotLeaveOrganizationException":
|
|
3453
|
-
case "com.amazonaws.organizations#MasterCannotLeaveOrganizationException":
|
|
3454
|
-
throw await de_MasterCannotLeaveOrganizationExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ServiceException":
|
|
3456
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3457
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "TooManyRequestsException":
|
|
3459
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3460
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3461
|
-
default:
|
|
3462
|
-
const parsedBody = parsedOutput.body;
|
|
3463
|
-
return throwDefaultError({
|
|
3464
|
-
output,
|
|
3465
|
-
parsedBody,
|
|
3466
|
-
errorCode
|
|
3467
|
-
});
|
|
3468
|
-
}
|
|
3469
|
-
}, "de_LeaveOrganizationCommandError");
|
|
3470
2164
|
var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3471
2165
|
if (output.statusCode >= 300) {
|
|
3472
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
3473
2167
|
}
|
|
3474
2168
|
const data = await parseBody(output.body, context);
|
|
3475
2169
|
let contents = {};
|
|
@@ -3480,40 +2174,9 @@ var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3480
2174
|
};
|
|
3481
2175
|
return response;
|
|
3482
2176
|
}, "de_ListAccountsCommand");
|
|
3483
|
-
var de_ListAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3484
|
-
const parsedOutput = {
|
|
3485
|
-
...output,
|
|
3486
|
-
body: await parseErrorBody(output.body, context)
|
|
3487
|
-
};
|
|
3488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3489
|
-
switch (errorCode) {
|
|
3490
|
-
case "AWSOrganizationsNotInUseException":
|
|
3491
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3492
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3493
|
-
case "AccessDeniedException":
|
|
3494
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "InvalidInputException":
|
|
3497
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3498
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "ServiceException":
|
|
3500
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3501
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "TooManyRequestsException":
|
|
3503
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3504
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
}, "de_ListAccountsCommandError");
|
|
3514
2177
|
var de_ListAccountsForParentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3515
2178
|
if (output.statusCode >= 300) {
|
|
3516
|
-
return
|
|
2179
|
+
return de_CommandError(output, context);
|
|
3517
2180
|
}
|
|
3518
2181
|
const data = await parseBody(output.body, context);
|
|
3519
2182
|
let contents = {};
|
|
@@ -3524,43 +2187,9 @@ var de_ListAccountsForParentCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3524
2187
|
};
|
|
3525
2188
|
return response;
|
|
3526
2189
|
}, "de_ListAccountsForParentCommand");
|
|
3527
|
-
var de_ListAccountsForParentCommandError = /* @__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 "AWSOrganizationsNotInUseException":
|
|
3535
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3536
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3537
|
-
case "AccessDeniedException":
|
|
3538
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "InvalidInputException":
|
|
3541
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3542
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "ParentNotFoundException":
|
|
3544
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
3545
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ServiceException":
|
|
3547
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3548
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "TooManyRequestsException":
|
|
3550
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3551
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
}, "de_ListAccountsForParentCommandError");
|
|
3561
2190
|
var de_ListAWSServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3562
2191
|
if (output.statusCode >= 300) {
|
|
3563
|
-
return
|
|
2192
|
+
return de_CommandError(output, context);
|
|
3564
2193
|
}
|
|
3565
2194
|
const data = await parseBody(output.body, context);
|
|
3566
2195
|
let contents = {};
|
|
@@ -3571,46 +2200,9 @@ var de_ListAWSServiceAccessForOrganizationCommand = /* @__PURE__ */ __name(async
|
|
|
3571
2200
|
};
|
|
3572
2201
|
return response;
|
|
3573
2202
|
}, "de_ListAWSServiceAccessForOrganizationCommand");
|
|
3574
|
-
var de_ListAWSServiceAccessForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3575
|
-
const parsedOutput = {
|
|
3576
|
-
...output,
|
|
3577
|
-
body: await parseErrorBody(output.body, context)
|
|
3578
|
-
};
|
|
3579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
|
-
switch (errorCode) {
|
|
3581
|
-
case "AWSOrganizationsNotInUseException":
|
|
3582
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3583
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3584
|
-
case "AccessDeniedException":
|
|
3585
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3586
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "ConstraintViolationException":
|
|
3588
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3589
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "InvalidInputException":
|
|
3591
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3592
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ServiceException":
|
|
3594
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3595
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "TooManyRequestsException":
|
|
3597
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3598
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "UnsupportedAPIEndpointException":
|
|
3600
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3601
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3602
|
-
default:
|
|
3603
|
-
const parsedBody = parsedOutput.body;
|
|
3604
|
-
return throwDefaultError({
|
|
3605
|
-
output,
|
|
3606
|
-
parsedBody,
|
|
3607
|
-
errorCode
|
|
3608
|
-
});
|
|
3609
|
-
}
|
|
3610
|
-
}, "de_ListAWSServiceAccessForOrganizationCommandError");
|
|
3611
2203
|
var de_ListChildrenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3612
2204
|
if (output.statusCode >= 300) {
|
|
3613
|
-
return
|
|
2205
|
+
return de_CommandError(output, context);
|
|
3614
2206
|
}
|
|
3615
2207
|
const data = await parseBody(output.body, context);
|
|
3616
2208
|
let contents = {};
|
|
@@ -3621,43 +2213,9 @@ var de_ListChildrenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3621
2213
|
};
|
|
3622
2214
|
return response;
|
|
3623
2215
|
}, "de_ListChildrenCommand");
|
|
3624
|
-
var de_ListChildrenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3625
|
-
const parsedOutput = {
|
|
3626
|
-
...output,
|
|
3627
|
-
body: await parseErrorBody(output.body, context)
|
|
3628
|
-
};
|
|
3629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3630
|
-
switch (errorCode) {
|
|
3631
|
-
case "AWSOrganizationsNotInUseException":
|
|
3632
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3633
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3634
|
-
case "AccessDeniedException":
|
|
3635
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3637
|
-
case "InvalidInputException":
|
|
3638
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3639
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3640
|
-
case "ParentNotFoundException":
|
|
3641
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
3642
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
3643
|
-
case "ServiceException":
|
|
3644
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3645
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3646
|
-
case "TooManyRequestsException":
|
|
3647
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3648
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3649
|
-
default:
|
|
3650
|
-
const parsedBody = parsedOutput.body;
|
|
3651
|
-
return throwDefaultError({
|
|
3652
|
-
output,
|
|
3653
|
-
parsedBody,
|
|
3654
|
-
errorCode
|
|
3655
|
-
});
|
|
3656
|
-
}
|
|
3657
|
-
}, "de_ListChildrenCommandError");
|
|
3658
2216
|
var de_ListCreateAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3659
2217
|
if (output.statusCode >= 300) {
|
|
3660
|
-
return
|
|
2218
|
+
return de_CommandError(output, context);
|
|
3661
2219
|
}
|
|
3662
2220
|
const data = await parseBody(output.body, context);
|
|
3663
2221
|
let contents = {};
|
|
@@ -3668,149 +2226,35 @@ var de_ListCreateAccountStatusCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3668
2226
|
};
|
|
3669
2227
|
return response;
|
|
3670
2228
|
}, "de_ListCreateAccountStatusCommand");
|
|
3671
|
-
var de_ListCreateAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3672
|
-
const parsedOutput = {
|
|
3673
|
-
...output,
|
|
3674
|
-
body: await parseErrorBody(output.body, context)
|
|
3675
|
-
};
|
|
3676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3677
|
-
switch (errorCode) {
|
|
3678
|
-
case "AWSOrganizationsNotInUseException":
|
|
3679
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3680
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3681
|
-
case "AccessDeniedException":
|
|
3682
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3683
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3684
|
-
case "InvalidInputException":
|
|
3685
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3686
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "ServiceException":
|
|
3688
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3689
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "TooManyRequestsException":
|
|
3691
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3692
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "UnsupportedAPIEndpointException":
|
|
3694
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3695
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3696
|
-
default:
|
|
3697
|
-
const parsedBody = parsedOutput.body;
|
|
3698
|
-
return throwDefaultError({
|
|
3699
|
-
output,
|
|
3700
|
-
parsedBody,
|
|
3701
|
-
errorCode
|
|
3702
|
-
});
|
|
3703
|
-
}
|
|
3704
|
-
}, "de_ListCreateAccountStatusCommandError");
|
|
3705
2229
|
var de_ListDelegatedAdministratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3706
2230
|
if (output.statusCode >= 300) {
|
|
3707
|
-
return
|
|
3708
|
-
}
|
|
3709
|
-
const data = await parseBody(output.body, context);
|
|
3710
|
-
let contents = {};
|
|
3711
|
-
contents = de_ListDelegatedAdministratorsResponse(data, context);
|
|
3712
|
-
const response = {
|
|
3713
|
-
$metadata: deserializeMetadata(output),
|
|
3714
|
-
...contents
|
|
3715
|
-
};
|
|
3716
|
-
return response;
|
|
3717
|
-
}, "de_ListDelegatedAdministratorsCommand");
|
|
3718
|
-
var de_ListDelegatedAdministratorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3719
|
-
const parsedOutput = {
|
|
3720
|
-
...output,
|
|
3721
|
-
body: await parseErrorBody(output.body, context)
|
|
3722
|
-
};
|
|
3723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3724
|
-
switch (errorCode) {
|
|
3725
|
-
case "AWSOrganizationsNotInUseException":
|
|
3726
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3727
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3728
|
-
case "AccessDeniedException":
|
|
3729
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3730
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "ConstraintViolationException":
|
|
3732
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3733
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3734
|
-
case "InvalidInputException":
|
|
3735
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3736
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3737
|
-
case "ServiceException":
|
|
3738
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3739
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "TooManyRequestsException":
|
|
3741
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3742
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "UnsupportedAPIEndpointException":
|
|
3744
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3745
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3746
|
-
default:
|
|
3747
|
-
const parsedBody = parsedOutput.body;
|
|
3748
|
-
return throwDefaultError({
|
|
3749
|
-
output,
|
|
3750
|
-
parsedBody,
|
|
3751
|
-
errorCode
|
|
3752
|
-
});
|
|
3753
|
-
}
|
|
3754
|
-
}, "de_ListDelegatedAdministratorsCommandError");
|
|
3755
|
-
var de_ListDelegatedServicesForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
|
-
if (output.statusCode >= 300) {
|
|
3757
|
-
return de_ListDelegatedServicesForAccountCommandError(output, context);
|
|
2231
|
+
return de_CommandError(output, context);
|
|
3758
2232
|
}
|
|
3759
|
-
const data = await parseBody(output.body, context);
|
|
3760
|
-
let contents = {};
|
|
3761
|
-
contents =
|
|
3762
|
-
const response = {
|
|
3763
|
-
$metadata: deserializeMetadata(output),
|
|
3764
|
-
...contents
|
|
3765
|
-
};
|
|
3766
|
-
return response;
|
|
3767
|
-
}, "
|
|
3768
|
-
var
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
body: await parseErrorBody(output.body, context)
|
|
3772
|
-
};
|
|
3773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3774
|
-
switch (errorCode) {
|
|
3775
|
-
case "AWSOrganizationsNotInUseException":
|
|
3776
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3777
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3778
|
-
case "AccessDeniedException":
|
|
3779
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3780
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3781
|
-
case "AccountNotFoundException":
|
|
3782
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
3783
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
3784
|
-
case "AccountNotRegisteredException":
|
|
3785
|
-
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
3786
|
-
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "ConstraintViolationException":
|
|
3788
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
3789
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
3790
|
-
case "InvalidInputException":
|
|
3791
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3792
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3793
|
-
case "ServiceException":
|
|
3794
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3795
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3796
|
-
case "TooManyRequestsException":
|
|
3797
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3798
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3799
|
-
case "UnsupportedAPIEndpointException":
|
|
3800
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
3801
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
3802
|
-
default:
|
|
3803
|
-
const parsedBody = parsedOutput.body;
|
|
3804
|
-
return throwDefaultError({
|
|
3805
|
-
output,
|
|
3806
|
-
parsedBody,
|
|
3807
|
-
errorCode
|
|
3808
|
-
});
|
|
2233
|
+
const data = await parseBody(output.body, context);
|
|
2234
|
+
let contents = {};
|
|
2235
|
+
contents = de_ListDelegatedAdministratorsResponse(data, context);
|
|
2236
|
+
const response = {
|
|
2237
|
+
$metadata: deserializeMetadata(output),
|
|
2238
|
+
...contents
|
|
2239
|
+
};
|
|
2240
|
+
return response;
|
|
2241
|
+
}, "de_ListDelegatedAdministratorsCommand");
|
|
2242
|
+
var de_ListDelegatedServicesForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2243
|
+
if (output.statusCode >= 300) {
|
|
2244
|
+
return de_CommandError(output, context);
|
|
3809
2245
|
}
|
|
3810
|
-
|
|
2246
|
+
const data = await parseBody(output.body, context);
|
|
2247
|
+
let contents = {};
|
|
2248
|
+
contents = de_ListDelegatedServicesForAccountResponse(data, context);
|
|
2249
|
+
const response = {
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
...contents
|
|
2252
|
+
};
|
|
2253
|
+
return response;
|
|
2254
|
+
}, "de_ListDelegatedServicesForAccountCommand");
|
|
3811
2255
|
var de_ListHandshakesForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3812
2256
|
if (output.statusCode >= 300) {
|
|
3813
|
-
return
|
|
2257
|
+
return de_CommandError(output, context);
|
|
3814
2258
|
}
|
|
3815
2259
|
const data = await parseBody(output.body, context);
|
|
3816
2260
|
let contents = {};
|
|
@@ -3821,40 +2265,9 @@ var de_ListHandshakesForAccountCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3821
2265
|
};
|
|
3822
2266
|
return response;
|
|
3823
2267
|
}, "de_ListHandshakesForAccountCommand");
|
|
3824
|
-
var de_ListHandshakesForAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3825
|
-
const parsedOutput = {
|
|
3826
|
-
...output,
|
|
3827
|
-
body: await parseErrorBody(output.body, context)
|
|
3828
|
-
};
|
|
3829
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3830
|
-
switch (errorCode) {
|
|
3831
|
-
case "AccessDeniedException":
|
|
3832
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3833
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3834
|
-
case "ConcurrentModificationException":
|
|
3835
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3836
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3837
|
-
case "InvalidInputException":
|
|
3838
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3839
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "ServiceException":
|
|
3841
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3842
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "TooManyRequestsException":
|
|
3844
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3845
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3846
|
-
default:
|
|
3847
|
-
const parsedBody = parsedOutput.body;
|
|
3848
|
-
return throwDefaultError({
|
|
3849
|
-
output,
|
|
3850
|
-
parsedBody,
|
|
3851
|
-
errorCode
|
|
3852
|
-
});
|
|
3853
|
-
}
|
|
3854
|
-
}, "de_ListHandshakesForAccountCommandError");
|
|
3855
2268
|
var de_ListHandshakesForOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
2269
|
if (output.statusCode >= 300) {
|
|
3857
|
-
return
|
|
2270
|
+
return de_CommandError(output, context);
|
|
3858
2271
|
}
|
|
3859
2272
|
const data = await parseBody(output.body, context);
|
|
3860
2273
|
let contents = {};
|
|
@@ -3865,43 +2278,9 @@ var de_ListHandshakesForOrganizationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3865
2278
|
};
|
|
3866
2279
|
return response;
|
|
3867
2280
|
}, "de_ListHandshakesForOrganizationCommand");
|
|
3868
|
-
var de_ListHandshakesForOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3869
|
-
const parsedOutput = {
|
|
3870
|
-
...output,
|
|
3871
|
-
body: await parseErrorBody(output.body, context)
|
|
3872
|
-
};
|
|
3873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3874
|
-
switch (errorCode) {
|
|
3875
|
-
case "AWSOrganizationsNotInUseException":
|
|
3876
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3877
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3878
|
-
case "AccessDeniedException":
|
|
3879
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3881
|
-
case "ConcurrentModificationException":
|
|
3882
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
3883
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3884
|
-
case "InvalidInputException":
|
|
3885
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3886
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3887
|
-
case "ServiceException":
|
|
3888
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3889
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3890
|
-
case "TooManyRequestsException":
|
|
3891
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3892
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3893
|
-
default:
|
|
3894
|
-
const parsedBody = parsedOutput.body;
|
|
3895
|
-
return throwDefaultError({
|
|
3896
|
-
output,
|
|
3897
|
-
parsedBody,
|
|
3898
|
-
errorCode
|
|
3899
|
-
});
|
|
3900
|
-
}
|
|
3901
|
-
}, "de_ListHandshakesForOrganizationCommandError");
|
|
3902
2281
|
var de_ListOrganizationalUnitsForParentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3903
2282
|
if (output.statusCode >= 300) {
|
|
3904
|
-
return
|
|
2283
|
+
return de_CommandError(output, context);
|
|
3905
2284
|
}
|
|
3906
2285
|
const data = await parseBody(output.body, context);
|
|
3907
2286
|
let contents = {};
|
|
@@ -3912,43 +2291,9 @@ var de_ListOrganizationalUnitsForParentCommand = /* @__PURE__ */ __name(async (o
|
|
|
3912
2291
|
};
|
|
3913
2292
|
return response;
|
|
3914
2293
|
}, "de_ListOrganizationalUnitsForParentCommand");
|
|
3915
|
-
var de_ListOrganizationalUnitsForParentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3916
|
-
const parsedOutput = {
|
|
3917
|
-
...output,
|
|
3918
|
-
body: await parseErrorBody(output.body, context)
|
|
3919
|
-
};
|
|
3920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3921
|
-
switch (errorCode) {
|
|
3922
|
-
case "AWSOrganizationsNotInUseException":
|
|
3923
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3924
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3925
|
-
case "AccessDeniedException":
|
|
3926
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3927
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3928
|
-
case "InvalidInputException":
|
|
3929
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3930
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3931
|
-
case "ParentNotFoundException":
|
|
3932
|
-
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
3933
|
-
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
3934
|
-
case "ServiceException":
|
|
3935
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3936
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3937
|
-
case "TooManyRequestsException":
|
|
3938
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3939
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3940
|
-
default:
|
|
3941
|
-
const parsedBody = parsedOutput.body;
|
|
3942
|
-
return throwDefaultError({
|
|
3943
|
-
output,
|
|
3944
|
-
parsedBody,
|
|
3945
|
-
errorCode
|
|
3946
|
-
});
|
|
3947
|
-
}
|
|
3948
|
-
}, "de_ListOrganizationalUnitsForParentCommandError");
|
|
3949
2294
|
var de_ListParentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3950
2295
|
if (output.statusCode >= 300) {
|
|
3951
|
-
return
|
|
2296
|
+
return de_CommandError(output, context);
|
|
3952
2297
|
}
|
|
3953
2298
|
const data = await parseBody(output.body, context);
|
|
3954
2299
|
let contents = {};
|
|
@@ -3959,43 +2304,9 @@ var de_ListParentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3959
2304
|
};
|
|
3960
2305
|
return response;
|
|
3961
2306
|
}, "de_ListParentsCommand");
|
|
3962
|
-
var de_ListParentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3963
|
-
const parsedOutput = {
|
|
3964
|
-
...output,
|
|
3965
|
-
body: await parseErrorBody(output.body, context)
|
|
3966
|
-
};
|
|
3967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3968
|
-
switch (errorCode) {
|
|
3969
|
-
case "AWSOrganizationsNotInUseException":
|
|
3970
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
3971
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
3972
|
-
case "AccessDeniedException":
|
|
3973
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
3974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3975
|
-
case "ChildNotFoundException":
|
|
3976
|
-
case "com.amazonaws.organizations#ChildNotFoundException":
|
|
3977
|
-
throw await de_ChildNotFoundExceptionRes(parsedOutput, context);
|
|
3978
|
-
case "InvalidInputException":
|
|
3979
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
3980
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3981
|
-
case "ServiceException":
|
|
3982
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
3983
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3984
|
-
case "TooManyRequestsException":
|
|
3985
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
3986
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3987
|
-
default:
|
|
3988
|
-
const parsedBody = parsedOutput.body;
|
|
3989
|
-
return throwDefaultError({
|
|
3990
|
-
output,
|
|
3991
|
-
parsedBody,
|
|
3992
|
-
errorCode
|
|
3993
|
-
});
|
|
3994
|
-
}
|
|
3995
|
-
}, "de_ListParentsCommandError");
|
|
3996
2307
|
var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3997
2308
|
if (output.statusCode >= 300) {
|
|
3998
|
-
return
|
|
2309
|
+
return de_CommandError(output, context);
|
|
3999
2310
|
}
|
|
4000
2311
|
const data = await parseBody(output.body, context);
|
|
4001
2312
|
let contents = {};
|
|
@@ -4006,137 +2317,35 @@ var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4006
2317
|
};
|
|
4007
2318
|
return response;
|
|
4008
2319
|
}, "de_ListPoliciesCommand");
|
|
4009
|
-
var de_ListPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4010
|
-
const parsedOutput = {
|
|
4011
|
-
...output,
|
|
4012
|
-
body: await parseErrorBody(output.body, context)
|
|
4013
|
-
};
|
|
4014
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4015
|
-
switch (errorCode) {
|
|
4016
|
-
case "AWSOrganizationsNotInUseException":
|
|
4017
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4018
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4019
|
-
case "AccessDeniedException":
|
|
4020
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4022
|
-
case "InvalidInputException":
|
|
4023
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4024
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4025
|
-
case "ServiceException":
|
|
4026
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4027
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4028
|
-
case "TooManyRequestsException":
|
|
4029
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4030
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4031
|
-
case "UnsupportedAPIEndpointException":
|
|
4032
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4033
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
4034
|
-
default:
|
|
4035
|
-
const parsedBody = parsedOutput.body;
|
|
4036
|
-
return throwDefaultError({
|
|
4037
|
-
output,
|
|
4038
|
-
parsedBody,
|
|
4039
|
-
errorCode
|
|
4040
|
-
});
|
|
4041
|
-
}
|
|
4042
|
-
}, "de_ListPoliciesCommandError");
|
|
4043
2320
|
var de_ListPoliciesForTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4044
2321
|
if (output.statusCode >= 300) {
|
|
4045
|
-
return
|
|
4046
|
-
}
|
|
4047
|
-
const data = await parseBody(output.body, context);
|
|
4048
|
-
let contents = {};
|
|
4049
|
-
contents = (0, import_smithy_client._json)(data);
|
|
4050
|
-
const response = {
|
|
4051
|
-
$metadata: deserializeMetadata(output),
|
|
4052
|
-
...contents
|
|
4053
|
-
};
|
|
4054
|
-
return response;
|
|
4055
|
-
}, "de_ListPoliciesForTargetCommand");
|
|
4056
|
-
var de_ListPoliciesForTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4057
|
-
const parsedOutput = {
|
|
4058
|
-
...output,
|
|
4059
|
-
body: await parseErrorBody(output.body, context)
|
|
4060
|
-
};
|
|
4061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
|
-
switch (errorCode) {
|
|
4063
|
-
case "AWSOrganizationsNotInUseException":
|
|
4064
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4065
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4066
|
-
case "AccessDeniedException":
|
|
4067
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4069
|
-
case "InvalidInputException":
|
|
4070
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4071
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "ServiceException":
|
|
4073
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4074
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "TargetNotFoundException":
|
|
4076
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
4077
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "TooManyRequestsException":
|
|
4079
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4080
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4081
|
-
case "UnsupportedAPIEndpointException":
|
|
4082
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4083
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
4084
|
-
default:
|
|
4085
|
-
const parsedBody = parsedOutput.body;
|
|
4086
|
-
return throwDefaultError({
|
|
4087
|
-
output,
|
|
4088
|
-
parsedBody,
|
|
4089
|
-
errorCode
|
|
4090
|
-
});
|
|
4091
|
-
}
|
|
4092
|
-
}, "de_ListPoliciesForTargetCommandError");
|
|
4093
|
-
var de_ListRootsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4094
|
-
if (output.statusCode >= 300) {
|
|
4095
|
-
return de_ListRootsCommandError(output, context);
|
|
2322
|
+
return de_CommandError(output, context);
|
|
4096
2323
|
}
|
|
4097
2324
|
const data = await parseBody(output.body, context);
|
|
4098
2325
|
let contents = {};
|
|
4099
2326
|
contents = (0, import_smithy_client._json)(data);
|
|
4100
2327
|
const response = {
|
|
4101
2328
|
$metadata: deserializeMetadata(output),
|
|
4102
|
-
...contents
|
|
4103
|
-
};
|
|
4104
|
-
return response;
|
|
4105
|
-
}, "
|
|
4106
|
-
var
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
body: await parseErrorBody(output.body, context)
|
|
4110
|
-
};
|
|
4111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4112
|
-
switch (errorCode) {
|
|
4113
|
-
case "AWSOrganizationsNotInUseException":
|
|
4114
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4115
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4116
|
-
case "AccessDeniedException":
|
|
4117
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4118
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4119
|
-
case "InvalidInputException":
|
|
4120
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4121
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4122
|
-
case "ServiceException":
|
|
4123
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4124
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4125
|
-
case "TooManyRequestsException":
|
|
4126
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4127
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4128
|
-
default:
|
|
4129
|
-
const parsedBody = parsedOutput.body;
|
|
4130
|
-
return throwDefaultError({
|
|
4131
|
-
output,
|
|
4132
|
-
parsedBody,
|
|
4133
|
-
errorCode
|
|
4134
|
-
});
|
|
2329
|
+
...contents
|
|
2330
|
+
};
|
|
2331
|
+
return response;
|
|
2332
|
+
}, "de_ListPoliciesForTargetCommand");
|
|
2333
|
+
var de_ListRootsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2334
|
+
if (output.statusCode >= 300) {
|
|
2335
|
+
return de_CommandError(output, context);
|
|
4135
2336
|
}
|
|
4136
|
-
|
|
2337
|
+
const data = await parseBody(output.body, context);
|
|
2338
|
+
let contents = {};
|
|
2339
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2340
|
+
const response = {
|
|
2341
|
+
$metadata: deserializeMetadata(output),
|
|
2342
|
+
...contents
|
|
2343
|
+
};
|
|
2344
|
+
return response;
|
|
2345
|
+
}, "de_ListRootsCommand");
|
|
4137
2346
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4138
2347
|
if (output.statusCode >= 300) {
|
|
4139
|
-
return
|
|
2348
|
+
return de_CommandError(output, context);
|
|
4140
2349
|
}
|
|
4141
2350
|
const data = await parseBody(output.body, context);
|
|
4142
2351
|
let contents = {};
|
|
@@ -4147,43 +2356,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4147
2356
|
};
|
|
4148
2357
|
return response;
|
|
4149
2358
|
}, "de_ListTagsForResourceCommand");
|
|
4150
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4151
|
-
const parsedOutput = {
|
|
4152
|
-
...output,
|
|
4153
|
-
body: await parseErrorBody(output.body, context)
|
|
4154
|
-
};
|
|
4155
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4156
|
-
switch (errorCode) {
|
|
4157
|
-
case "AWSOrganizationsNotInUseException":
|
|
4158
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4159
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4160
|
-
case "AccessDeniedException":
|
|
4161
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4163
|
-
case "InvalidInputException":
|
|
4164
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4165
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4166
|
-
case "ServiceException":
|
|
4167
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4168
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4169
|
-
case "TargetNotFoundException":
|
|
4170
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
4171
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
4172
|
-
case "TooManyRequestsException":
|
|
4173
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4174
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4175
|
-
default:
|
|
4176
|
-
const parsedBody = parsedOutput.body;
|
|
4177
|
-
return throwDefaultError({
|
|
4178
|
-
output,
|
|
4179
|
-
parsedBody,
|
|
4180
|
-
errorCode
|
|
4181
|
-
});
|
|
4182
|
-
}
|
|
4183
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4184
2359
|
var de_ListTargetsForPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4185
2360
|
if (output.statusCode >= 300) {
|
|
4186
|
-
return
|
|
2361
|
+
return de_CommandError(output, context);
|
|
4187
2362
|
}
|
|
4188
2363
|
const data = await parseBody(output.body, context);
|
|
4189
2364
|
let contents = {};
|
|
@@ -4194,46 +2369,9 @@ var de_ListTargetsForPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4194
2369
|
};
|
|
4195
2370
|
return response;
|
|
4196
2371
|
}, "de_ListTargetsForPolicyCommand");
|
|
4197
|
-
var de_ListTargetsForPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4198
|
-
const parsedOutput = {
|
|
4199
|
-
...output,
|
|
4200
|
-
body: await parseErrorBody(output.body, context)
|
|
4201
|
-
};
|
|
4202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4203
|
-
switch (errorCode) {
|
|
4204
|
-
case "AWSOrganizationsNotInUseException":
|
|
4205
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4206
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4207
|
-
case "AccessDeniedException":
|
|
4208
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4210
|
-
case "InvalidInputException":
|
|
4211
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4212
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4213
|
-
case "PolicyNotFoundException":
|
|
4214
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
4215
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
4216
|
-
case "ServiceException":
|
|
4217
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4218
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4219
|
-
case "TooManyRequestsException":
|
|
4220
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4221
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4222
|
-
case "UnsupportedAPIEndpointException":
|
|
4223
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4224
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
4225
|
-
default:
|
|
4226
|
-
const parsedBody = parsedOutput.body;
|
|
4227
|
-
return throwDefaultError({
|
|
4228
|
-
output,
|
|
4229
|
-
parsedBody,
|
|
4230
|
-
errorCode
|
|
4231
|
-
});
|
|
4232
|
-
}
|
|
4233
|
-
}, "de_ListTargetsForPolicyCommandError");
|
|
4234
2372
|
var de_MoveAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4235
2373
|
if (output.statusCode >= 300) {
|
|
4236
|
-
return
|
|
2374
|
+
return de_CommandError(output, context);
|
|
4237
2375
|
}
|
|
4238
2376
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4239
2377
|
const response = {
|
|
@@ -4241,55 +2379,9 @@ var de_MoveAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4241
2379
|
};
|
|
4242
2380
|
return response;
|
|
4243
2381
|
}, "de_MoveAccountCommand");
|
|
4244
|
-
var de_MoveAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
|
-
const parsedOutput = {
|
|
4246
|
-
...output,
|
|
4247
|
-
body: await parseErrorBody(output.body, context)
|
|
4248
|
-
};
|
|
4249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4250
|
-
switch (errorCode) {
|
|
4251
|
-
case "AWSOrganizationsNotInUseException":
|
|
4252
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4253
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4254
|
-
case "AccessDeniedException":
|
|
4255
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4256
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4257
|
-
case "AccountNotFoundException":
|
|
4258
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
4259
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
4260
|
-
case "ConcurrentModificationException":
|
|
4261
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4262
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4263
|
-
case "DestinationParentNotFoundException":
|
|
4264
|
-
case "com.amazonaws.organizations#DestinationParentNotFoundException":
|
|
4265
|
-
throw await de_DestinationParentNotFoundExceptionRes(parsedOutput, context);
|
|
4266
|
-
case "DuplicateAccountException":
|
|
4267
|
-
case "com.amazonaws.organizations#DuplicateAccountException":
|
|
4268
|
-
throw await de_DuplicateAccountExceptionRes(parsedOutput, context);
|
|
4269
|
-
case "InvalidInputException":
|
|
4270
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4271
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4272
|
-
case "ServiceException":
|
|
4273
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4274
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4275
|
-
case "SourceParentNotFoundException":
|
|
4276
|
-
case "com.amazonaws.organizations#SourceParentNotFoundException":
|
|
4277
|
-
throw await de_SourceParentNotFoundExceptionRes(parsedOutput, context);
|
|
4278
|
-
case "TooManyRequestsException":
|
|
4279
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4280
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4281
|
-
default:
|
|
4282
|
-
const parsedBody = parsedOutput.body;
|
|
4283
|
-
return throwDefaultError({
|
|
4284
|
-
output,
|
|
4285
|
-
parsedBody,
|
|
4286
|
-
errorCode
|
|
4287
|
-
});
|
|
4288
|
-
}
|
|
4289
|
-
}, "de_MoveAccountCommandError");
|
|
4290
2382
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4291
2383
|
if (output.statusCode >= 300) {
|
|
4292
|
-
return
|
|
2384
|
+
return de_CommandError(output, context);
|
|
4293
2385
|
}
|
|
4294
2386
|
const data = await parseBody(output.body, context);
|
|
4295
2387
|
let contents = {};
|
|
@@ -4300,49 +2392,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4300
2392
|
};
|
|
4301
2393
|
return response;
|
|
4302
2394
|
}, "de_PutResourcePolicyCommand");
|
|
4303
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4304
|
-
const parsedOutput = {
|
|
4305
|
-
...output,
|
|
4306
|
-
body: await parseErrorBody(output.body, context)
|
|
4307
|
-
};
|
|
4308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4309
|
-
switch (errorCode) {
|
|
4310
|
-
case "AWSOrganizationsNotInUseException":
|
|
4311
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4312
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4313
|
-
case "AccessDeniedException":
|
|
4314
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4316
|
-
case "ConcurrentModificationException":
|
|
4317
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4318
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4319
|
-
case "ConstraintViolationException":
|
|
4320
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
4321
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
4322
|
-
case "InvalidInputException":
|
|
4323
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4324
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4325
|
-
case "ServiceException":
|
|
4326
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4327
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4328
|
-
case "TooManyRequestsException":
|
|
4329
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4330
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4331
|
-
case "UnsupportedAPIEndpointException":
|
|
4332
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4333
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
4334
|
-
default:
|
|
4335
|
-
const parsedBody = parsedOutput.body;
|
|
4336
|
-
return throwDefaultError({
|
|
4337
|
-
output,
|
|
4338
|
-
parsedBody,
|
|
4339
|
-
errorCode
|
|
4340
|
-
});
|
|
4341
|
-
}
|
|
4342
|
-
}, "de_PutResourcePolicyCommandError");
|
|
4343
2395
|
var de_RegisterDelegatedAdministratorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4344
2396
|
if (output.statusCode >= 300) {
|
|
4345
|
-
return
|
|
2397
|
+
return de_CommandError(output, context);
|
|
4346
2398
|
}
|
|
4347
2399
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4348
2400
|
const response = {
|
|
@@ -4350,108 +2402,19 @@ var de_RegisterDelegatedAdministratorCommand = /* @__PURE__ */ __name(async (out
|
|
|
4350
2402
|
};
|
|
4351
2403
|
return response;
|
|
4352
2404
|
}, "de_RegisterDelegatedAdministratorCommand");
|
|
4353
|
-
var de_RegisterDelegatedAdministratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4354
|
-
const parsedOutput = {
|
|
4355
|
-
...output,
|
|
4356
|
-
body: await parseErrorBody(output.body, context)
|
|
4357
|
-
};
|
|
4358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4359
|
-
switch (errorCode) {
|
|
4360
|
-
case "AWSOrganizationsNotInUseException":
|
|
4361
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4362
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4363
|
-
case "AccessDeniedException":
|
|
4364
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4365
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4366
|
-
case "AccountAlreadyRegisteredException":
|
|
4367
|
-
case "com.amazonaws.organizations#AccountAlreadyRegisteredException":
|
|
4368
|
-
throw await de_AccountAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
4369
|
-
case "AccountNotFoundException":
|
|
4370
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
4371
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
4372
|
-
case "ConcurrentModificationException":
|
|
4373
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4374
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4375
|
-
case "ConstraintViolationException":
|
|
4376
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
4377
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
4378
|
-
case "InvalidInputException":
|
|
4379
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4380
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4381
|
-
case "ServiceException":
|
|
4382
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4383
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4384
|
-
case "TooManyRequestsException":
|
|
4385
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4386
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4387
|
-
case "UnsupportedAPIEndpointException":
|
|
4388
|
-
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4389
|
-
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
4390
|
-
default:
|
|
4391
|
-
const parsedBody = parsedOutput.body;
|
|
4392
|
-
return throwDefaultError({
|
|
4393
|
-
output,
|
|
4394
|
-
parsedBody,
|
|
4395
|
-
errorCode
|
|
4396
|
-
});
|
|
4397
|
-
}
|
|
4398
|
-
}, "de_RegisterDelegatedAdministratorCommandError");
|
|
4399
2405
|
var de_RemoveAccountFromOrganizationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4400
|
-
if (output.statusCode >= 300) {
|
|
4401
|
-
return
|
|
4402
|
-
}
|
|
4403
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4404
|
-
const response = {
|
|
4405
|
-
$metadata: deserializeMetadata(output)
|
|
4406
|
-
};
|
|
4407
|
-
return response;
|
|
4408
|
-
}, "de_RemoveAccountFromOrganizationCommand");
|
|
4409
|
-
var de_RemoveAccountFromOrganizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4410
|
-
const parsedOutput = {
|
|
4411
|
-
...output,
|
|
4412
|
-
body: await parseErrorBody(output.body, context)
|
|
4413
|
-
};
|
|
4414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4415
|
-
switch (errorCode) {
|
|
4416
|
-
case "AWSOrganizationsNotInUseException":
|
|
4417
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4418
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4419
|
-
case "AccessDeniedException":
|
|
4420
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4421
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4422
|
-
case "AccountNotFoundException":
|
|
4423
|
-
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
4424
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
4425
|
-
case "ConcurrentModificationException":
|
|
4426
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4427
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4428
|
-
case "ConstraintViolationException":
|
|
4429
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
4430
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
4431
|
-
case "InvalidInputException":
|
|
4432
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4433
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4434
|
-
case "MasterCannotLeaveOrganizationException":
|
|
4435
|
-
case "com.amazonaws.organizations#MasterCannotLeaveOrganizationException":
|
|
4436
|
-
throw await de_MasterCannotLeaveOrganizationExceptionRes(parsedOutput, context);
|
|
4437
|
-
case "ServiceException":
|
|
4438
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4439
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4440
|
-
case "TooManyRequestsException":
|
|
4441
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4442
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4443
|
-
default:
|
|
4444
|
-
const parsedBody = parsedOutput.body;
|
|
4445
|
-
return throwDefaultError({
|
|
4446
|
-
output,
|
|
4447
|
-
parsedBody,
|
|
4448
|
-
errorCode
|
|
4449
|
-
});
|
|
2406
|
+
if (output.statusCode >= 300) {
|
|
2407
|
+
return de_CommandError(output, context);
|
|
4450
2408
|
}
|
|
4451
|
-
|
|
2409
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2410
|
+
const response = {
|
|
2411
|
+
$metadata: deserializeMetadata(output)
|
|
2412
|
+
};
|
|
2413
|
+
return response;
|
|
2414
|
+
}, "de_RemoveAccountFromOrganizationCommand");
|
|
4452
2415
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4453
2416
|
if (output.statusCode >= 300) {
|
|
4454
|
-
return
|
|
2417
|
+
return de_CommandError(output, context);
|
|
4455
2418
|
}
|
|
4456
2419
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4457
2420
|
const response = {
|
|
@@ -4459,49 +2422,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4459
2422
|
};
|
|
4460
2423
|
return response;
|
|
4461
2424
|
}, "de_TagResourceCommand");
|
|
4462
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4463
|
-
const parsedOutput = {
|
|
4464
|
-
...output,
|
|
4465
|
-
body: await parseErrorBody(output.body, context)
|
|
4466
|
-
};
|
|
4467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4468
|
-
switch (errorCode) {
|
|
4469
|
-
case "AWSOrganizationsNotInUseException":
|
|
4470
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4471
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4472
|
-
case "AccessDeniedException":
|
|
4473
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "ConcurrentModificationException":
|
|
4476
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4477
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "ConstraintViolationException":
|
|
4479
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
4480
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "InvalidInputException":
|
|
4482
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4483
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ServiceException":
|
|
4485
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4486
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4487
|
-
case "TargetNotFoundException":
|
|
4488
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
4489
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
4490
|
-
case "TooManyRequestsException":
|
|
4491
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4492
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4493
|
-
default:
|
|
4494
|
-
const parsedBody = parsedOutput.body;
|
|
4495
|
-
return throwDefaultError({
|
|
4496
|
-
output,
|
|
4497
|
-
parsedBody,
|
|
4498
|
-
errorCode
|
|
4499
|
-
});
|
|
4500
|
-
}
|
|
4501
|
-
}, "de_TagResourceCommandError");
|
|
4502
2425
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4503
2426
|
if (output.statusCode >= 300) {
|
|
4504
|
-
return
|
|
2427
|
+
return de_CommandError(output, context);
|
|
4505
2428
|
}
|
|
4506
2429
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4507
2430
|
const response = {
|
|
@@ -4509,49 +2432,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4509
2432
|
};
|
|
4510
2433
|
return response;
|
|
4511
2434
|
}, "de_UntagResourceCommand");
|
|
4512
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4513
|
-
const parsedOutput = {
|
|
4514
|
-
...output,
|
|
4515
|
-
body: await parseErrorBody(output.body, context)
|
|
4516
|
-
};
|
|
4517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4518
|
-
switch (errorCode) {
|
|
4519
|
-
case "AWSOrganizationsNotInUseException":
|
|
4520
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4521
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4522
|
-
case "AccessDeniedException":
|
|
4523
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4524
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4525
|
-
case "ConcurrentModificationException":
|
|
4526
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4527
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4528
|
-
case "ConstraintViolationException":
|
|
4529
|
-
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
4530
|
-
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
4531
|
-
case "InvalidInputException":
|
|
4532
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4533
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4534
|
-
case "ServiceException":
|
|
4535
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4536
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4537
|
-
case "TargetNotFoundException":
|
|
4538
|
-
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
4539
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
4540
|
-
case "TooManyRequestsException":
|
|
4541
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4542
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4543
|
-
default:
|
|
4544
|
-
const parsedBody = parsedOutput.body;
|
|
4545
|
-
return throwDefaultError({
|
|
4546
|
-
output,
|
|
4547
|
-
parsedBody,
|
|
4548
|
-
errorCode
|
|
4549
|
-
});
|
|
4550
|
-
}
|
|
4551
|
-
}, "de_UntagResourceCommandError");
|
|
4552
2435
|
var de_UpdateOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4553
2436
|
if (output.statusCode >= 300) {
|
|
4554
|
-
return
|
|
2437
|
+
return de_CommandError(output, context);
|
|
4555
2438
|
}
|
|
4556
2439
|
const data = await parseBody(output.body, context);
|
|
4557
2440
|
let contents = {};
|
|
@@ -4562,49 +2445,9 @@ var de_UpdateOrganizationalUnitCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4562
2445
|
};
|
|
4563
2446
|
return response;
|
|
4564
2447
|
}, "de_UpdateOrganizationalUnitCommand");
|
|
4565
|
-
var de_UpdateOrganizationalUnitCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4566
|
-
const parsedOutput = {
|
|
4567
|
-
...output,
|
|
4568
|
-
body: await parseErrorBody(output.body, context)
|
|
4569
|
-
};
|
|
4570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4571
|
-
switch (errorCode) {
|
|
4572
|
-
case "AWSOrganizationsNotInUseException":
|
|
4573
|
-
case "com.amazonaws.organizations#AWSOrganizationsNotInUseException":
|
|
4574
|
-
throw await de_AWSOrganizationsNotInUseExceptionRes(parsedOutput, context);
|
|
4575
|
-
case "AccessDeniedException":
|
|
4576
|
-
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4577
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4578
|
-
case "ConcurrentModificationException":
|
|
4579
|
-
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4580
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4581
|
-
case "DuplicateOrganizationalUnitException":
|
|
4582
|
-
case "com.amazonaws.organizations#DuplicateOrganizationalUnitException":
|
|
4583
|
-
throw await de_DuplicateOrganizationalUnitExceptionRes(parsedOutput, context);
|
|
4584
|
-
case "InvalidInputException":
|
|
4585
|
-
case "com.amazonaws.organizations#InvalidInputException":
|
|
4586
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4587
|
-
case "OrganizationalUnitNotFoundException":
|
|
4588
|
-
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
4589
|
-
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
4590
|
-
case "ServiceException":
|
|
4591
|
-
case "com.amazonaws.organizations#ServiceException":
|
|
4592
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4593
|
-
case "TooManyRequestsException":
|
|
4594
|
-
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4595
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
4596
|
-
default:
|
|
4597
|
-
const parsedBody = parsedOutput.body;
|
|
4598
|
-
return throwDefaultError({
|
|
4599
|
-
output,
|
|
4600
|
-
parsedBody,
|
|
4601
|
-
errorCode
|
|
4602
|
-
});
|
|
4603
|
-
}
|
|
4604
|
-
}, "de_UpdateOrganizationalUnitCommandError");
|
|
4605
2448
|
var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4606
2449
|
if (output.statusCode >= 300) {
|
|
4607
|
-
return
|
|
2450
|
+
return de_CommandError(output, context);
|
|
4608
2451
|
}
|
|
4609
2452
|
const data = await parseBody(output.body, context);
|
|
4610
2453
|
let contents = {};
|
|
@@ -4615,7 +2458,7 @@ var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4615
2458
|
};
|
|
4616
2459
|
return response;
|
|
4617
2460
|
}, "de_UpdatePolicyCommand");
|
|
4618
|
-
var
|
|
2461
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4619
2462
|
const parsedOutput = {
|
|
4620
2463
|
...output,
|
|
4621
2464
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4628,36 +2471,141 @@ var de_UpdatePolicyCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
4628
2471
|
case "AccessDeniedException":
|
|
4629
2472
|
case "com.amazonaws.organizations#AccessDeniedException":
|
|
4630
2473
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2474
|
+
case "AccessDeniedForDependencyException":
|
|
2475
|
+
case "com.amazonaws.organizations#AccessDeniedForDependencyException":
|
|
2476
|
+
throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context);
|
|
4631
2477
|
case "ConcurrentModificationException":
|
|
4632
2478
|
case "com.amazonaws.organizations#ConcurrentModificationException":
|
|
4633
2479
|
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
4634
|
-
case "
|
|
4635
|
-
case "com.amazonaws.organizations#
|
|
4636
|
-
throw await
|
|
4637
|
-
case "
|
|
4638
|
-
case "com.amazonaws.organizations#
|
|
4639
|
-
throw await
|
|
2480
|
+
case "HandshakeAlreadyInStateException":
|
|
2481
|
+
case "com.amazonaws.organizations#HandshakeAlreadyInStateException":
|
|
2482
|
+
throw await de_HandshakeAlreadyInStateExceptionRes(parsedOutput, context);
|
|
2483
|
+
case "HandshakeConstraintViolationException":
|
|
2484
|
+
case "com.amazonaws.organizations#HandshakeConstraintViolationException":
|
|
2485
|
+
throw await de_HandshakeConstraintViolationExceptionRes(parsedOutput, context);
|
|
2486
|
+
case "HandshakeNotFoundException":
|
|
2487
|
+
case "com.amazonaws.organizations#HandshakeNotFoundException":
|
|
2488
|
+
throw await de_HandshakeNotFoundExceptionRes(parsedOutput, context);
|
|
2489
|
+
case "InvalidHandshakeTransitionException":
|
|
2490
|
+
case "com.amazonaws.organizations#InvalidHandshakeTransitionException":
|
|
2491
|
+
throw await de_InvalidHandshakeTransitionExceptionRes(parsedOutput, context);
|
|
4640
2492
|
case "InvalidInputException":
|
|
4641
2493
|
case "com.amazonaws.organizations#InvalidInputException":
|
|
4642
2494
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4643
|
-
case "MalformedPolicyDocumentException":
|
|
4644
|
-
case "com.amazonaws.organizations#MalformedPolicyDocumentException":
|
|
4645
|
-
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
4646
|
-
case "PolicyChangesInProgressException":
|
|
4647
|
-
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
4648
|
-
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
4649
|
-
case "PolicyNotFoundException":
|
|
4650
|
-
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
4651
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
4652
2495
|
case "ServiceException":
|
|
4653
2496
|
case "com.amazonaws.organizations#ServiceException":
|
|
4654
2497
|
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4655
2498
|
case "TooManyRequestsException":
|
|
4656
2499
|
case "com.amazonaws.organizations#TooManyRequestsException":
|
|
4657
2500
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
2501
|
+
case "ConstraintViolationException":
|
|
2502
|
+
case "com.amazonaws.organizations#ConstraintViolationException":
|
|
2503
|
+
throw await de_ConstraintViolationExceptionRes(parsedOutput, context);
|
|
2504
|
+
case "DuplicatePolicyAttachmentException":
|
|
2505
|
+
case "com.amazonaws.organizations#DuplicatePolicyAttachmentException":
|
|
2506
|
+
throw await de_DuplicatePolicyAttachmentExceptionRes(parsedOutput, context);
|
|
2507
|
+
case "PolicyChangesInProgressException":
|
|
2508
|
+
case "com.amazonaws.organizations#PolicyChangesInProgressException":
|
|
2509
|
+
throw await de_PolicyChangesInProgressExceptionRes(parsedOutput, context);
|
|
2510
|
+
case "PolicyNotFoundException":
|
|
2511
|
+
case "com.amazonaws.organizations#PolicyNotFoundException":
|
|
2512
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2513
|
+
case "PolicyTypeNotEnabledException":
|
|
2514
|
+
case "com.amazonaws.organizations#PolicyTypeNotEnabledException":
|
|
2515
|
+
throw await de_PolicyTypeNotEnabledExceptionRes(parsedOutput, context);
|
|
2516
|
+
case "TargetNotFoundException":
|
|
2517
|
+
case "com.amazonaws.organizations#TargetNotFoundException":
|
|
2518
|
+
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
4658
2519
|
case "UnsupportedAPIEndpointException":
|
|
4659
2520
|
case "com.amazonaws.organizations#UnsupportedAPIEndpointException":
|
|
4660
2521
|
throw await de_UnsupportedAPIEndpointExceptionRes(parsedOutput, context);
|
|
2522
|
+
case "AccountAlreadyClosedException":
|
|
2523
|
+
case "com.amazonaws.organizations#AccountAlreadyClosedException":
|
|
2524
|
+
throw await de_AccountAlreadyClosedExceptionRes(parsedOutput, context);
|
|
2525
|
+
case "AccountNotFoundException":
|
|
2526
|
+
case "com.amazonaws.organizations#AccountNotFoundException":
|
|
2527
|
+
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
2528
|
+
case "ConflictException":
|
|
2529
|
+
case "com.amazonaws.organizations#ConflictException":
|
|
2530
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2531
|
+
case "FinalizingOrganizationException":
|
|
2532
|
+
case "com.amazonaws.organizations#FinalizingOrganizationException":
|
|
2533
|
+
throw await de_FinalizingOrganizationExceptionRes(parsedOutput, context);
|
|
2534
|
+
case "AlreadyInOrganizationException":
|
|
2535
|
+
case "com.amazonaws.organizations#AlreadyInOrganizationException":
|
|
2536
|
+
throw await de_AlreadyInOrganizationExceptionRes(parsedOutput, context);
|
|
2537
|
+
case "DuplicateOrganizationalUnitException":
|
|
2538
|
+
case "com.amazonaws.organizations#DuplicateOrganizationalUnitException":
|
|
2539
|
+
throw await de_DuplicateOrganizationalUnitExceptionRes(parsedOutput, context);
|
|
2540
|
+
case "ParentNotFoundException":
|
|
2541
|
+
case "com.amazonaws.organizations#ParentNotFoundException":
|
|
2542
|
+
throw await de_ParentNotFoundExceptionRes(parsedOutput, context);
|
|
2543
|
+
case "DuplicatePolicyException":
|
|
2544
|
+
case "com.amazonaws.organizations#DuplicatePolicyException":
|
|
2545
|
+
throw await de_DuplicatePolicyExceptionRes(parsedOutput, context);
|
|
2546
|
+
case "MalformedPolicyDocumentException":
|
|
2547
|
+
case "com.amazonaws.organizations#MalformedPolicyDocumentException":
|
|
2548
|
+
throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context);
|
|
2549
|
+
case "PolicyTypeNotAvailableForOrganizationException":
|
|
2550
|
+
case "com.amazonaws.organizations#PolicyTypeNotAvailableForOrganizationException":
|
|
2551
|
+
throw await de_PolicyTypeNotAvailableForOrganizationExceptionRes(parsedOutput, context);
|
|
2552
|
+
case "OrganizationNotEmptyException":
|
|
2553
|
+
case "com.amazonaws.organizations#OrganizationNotEmptyException":
|
|
2554
|
+
throw await de_OrganizationNotEmptyExceptionRes(parsedOutput, context);
|
|
2555
|
+
case "OrganizationalUnitNotEmptyException":
|
|
2556
|
+
case "com.amazonaws.organizations#OrganizationalUnitNotEmptyException":
|
|
2557
|
+
throw await de_OrganizationalUnitNotEmptyExceptionRes(parsedOutput, context);
|
|
2558
|
+
case "OrganizationalUnitNotFoundException":
|
|
2559
|
+
case "com.amazonaws.organizations#OrganizationalUnitNotFoundException":
|
|
2560
|
+
throw await de_OrganizationalUnitNotFoundExceptionRes(parsedOutput, context);
|
|
2561
|
+
case "PolicyInUseException":
|
|
2562
|
+
case "com.amazonaws.organizations#PolicyInUseException":
|
|
2563
|
+
throw await de_PolicyInUseExceptionRes(parsedOutput, context);
|
|
2564
|
+
case "ResourcePolicyNotFoundException":
|
|
2565
|
+
case "com.amazonaws.organizations#ResourcePolicyNotFoundException":
|
|
2566
|
+
throw await de_ResourcePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2567
|
+
case "AccountNotRegisteredException":
|
|
2568
|
+
case "com.amazonaws.organizations#AccountNotRegisteredException":
|
|
2569
|
+
throw await de_AccountNotRegisteredExceptionRes(parsedOutput, context);
|
|
2570
|
+
case "CreateAccountStatusNotFoundException":
|
|
2571
|
+
case "com.amazonaws.organizations#CreateAccountStatusNotFoundException":
|
|
2572
|
+
throw await de_CreateAccountStatusNotFoundExceptionRes(parsedOutput, context);
|
|
2573
|
+
case "EffectivePolicyNotFoundException":
|
|
2574
|
+
case "com.amazonaws.organizations#EffectivePolicyNotFoundException":
|
|
2575
|
+
throw await de_EffectivePolicyNotFoundExceptionRes(parsedOutput, context);
|
|
2576
|
+
case "PolicyNotAttachedException":
|
|
2577
|
+
case "com.amazonaws.organizations#PolicyNotAttachedException":
|
|
2578
|
+
throw await de_PolicyNotAttachedExceptionRes(parsedOutput, context);
|
|
2579
|
+
case "RootNotFoundException":
|
|
2580
|
+
case "com.amazonaws.organizations#RootNotFoundException":
|
|
2581
|
+
throw await de_RootNotFoundExceptionRes(parsedOutput, context);
|
|
2582
|
+
case "PolicyTypeAlreadyEnabledException":
|
|
2583
|
+
case "com.amazonaws.organizations#PolicyTypeAlreadyEnabledException":
|
|
2584
|
+
throw await de_PolicyTypeAlreadyEnabledExceptionRes(parsedOutput, context);
|
|
2585
|
+
case "AccountOwnerNotVerifiedException":
|
|
2586
|
+
case "com.amazonaws.organizations#AccountOwnerNotVerifiedException":
|
|
2587
|
+
throw await de_AccountOwnerNotVerifiedExceptionRes(parsedOutput, context);
|
|
2588
|
+
case "DuplicateHandshakeException":
|
|
2589
|
+
case "com.amazonaws.organizations#DuplicateHandshakeException":
|
|
2590
|
+
throw await de_DuplicateHandshakeExceptionRes(parsedOutput, context);
|
|
2591
|
+
case "MasterCannotLeaveOrganizationException":
|
|
2592
|
+
case "com.amazonaws.organizations#MasterCannotLeaveOrganizationException":
|
|
2593
|
+
throw await de_MasterCannotLeaveOrganizationExceptionRes(parsedOutput, context);
|
|
2594
|
+
case "ChildNotFoundException":
|
|
2595
|
+
case "com.amazonaws.organizations#ChildNotFoundException":
|
|
2596
|
+
throw await de_ChildNotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
+
case "DestinationParentNotFoundException":
|
|
2598
|
+
case "com.amazonaws.organizations#DestinationParentNotFoundException":
|
|
2599
|
+
throw await de_DestinationParentNotFoundExceptionRes(parsedOutput, context);
|
|
2600
|
+
case "DuplicateAccountException":
|
|
2601
|
+
case "com.amazonaws.organizations#DuplicateAccountException":
|
|
2602
|
+
throw await de_DuplicateAccountExceptionRes(parsedOutput, context);
|
|
2603
|
+
case "SourceParentNotFoundException":
|
|
2604
|
+
case "com.amazonaws.organizations#SourceParentNotFoundException":
|
|
2605
|
+
throw await de_SourceParentNotFoundExceptionRes(parsedOutput, context);
|
|
2606
|
+
case "AccountAlreadyRegisteredException":
|
|
2607
|
+
case "com.amazonaws.organizations#AccountAlreadyRegisteredException":
|
|
2608
|
+
throw await de_AccountAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
4661
2609
|
default:
|
|
4662
2610
|
const parsedBody = parsedOutput.body;
|
|
4663
2611
|
return throwDefaultError({
|
|
@@ -4666,7 +2614,7 @@ var de_UpdatePolicyCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
4666
2614
|
errorCode
|
|
4667
2615
|
});
|
|
4668
2616
|
}
|
|
4669
|
-
}, "
|
|
2617
|
+
}, "de_CommandError");
|
|
4670
2618
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4671
2619
|
const body = parsedOutput.body;
|
|
4672
2620
|
const deserialized = (0, import_smithy_client._json)(body);
|