@aws-sdk/client-securityhub 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +107 -2489
- package/dist-es/protocols/Aws_restJson1.js +183 -2565
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1822,7 +1822,7 @@ var se_UpdateStandardsControlCommand = /* @__PURE__ */ __name(async (input, cont
|
|
|
1822
1822
|
}, "se_UpdateStandardsControlCommand");
|
|
1823
1823
|
var de_AcceptAdministratorInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1824
1824
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1825
|
-
return
|
|
1825
|
+
return de_CommandError(output, context);
|
|
1826
1826
|
}
|
|
1827
1827
|
const contents = (0, import_smithy_client.map)({
|
|
1828
1828
|
$metadata: deserializeMetadata(output)
|
|
@@ -1830,40 +1830,9 @@ var de_AcceptAdministratorInvitationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1830
1830
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1831
1831
|
return contents;
|
|
1832
1832
|
}, "de_AcceptAdministratorInvitationCommand");
|
|
1833
|
-
var de_AcceptAdministratorInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context)
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "InternalException":
|
|
1841
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
1842
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "InvalidAccessException":
|
|
1844
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1845
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "InvalidInputException":
|
|
1847
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1848
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "LimitExceededException":
|
|
1850
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1851
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ResourceNotFoundException":
|
|
1853
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1854
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1855
|
-
default:
|
|
1856
|
-
const parsedBody = parsedOutput.body;
|
|
1857
|
-
return throwDefaultError({
|
|
1858
|
-
output,
|
|
1859
|
-
parsedBody,
|
|
1860
|
-
errorCode
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
}, "de_AcceptAdministratorInvitationCommandError");
|
|
1864
1833
|
var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1865
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1866
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
1867
1836
|
}
|
|
1868
1837
|
const contents = (0, import_smithy_client.map)({
|
|
1869
1838
|
$metadata: deserializeMetadata(output)
|
|
@@ -1871,40 +1840,9 @@ var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1871
1840
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1872
1841
|
return contents;
|
|
1873
1842
|
}, "de_AcceptInvitationCommand");
|
|
1874
|
-
var de_AcceptInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1875
|
-
const parsedOutput = {
|
|
1876
|
-
...output,
|
|
1877
|
-
body: await parseErrorBody(output.body, context)
|
|
1878
|
-
};
|
|
1879
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1880
|
-
switch (errorCode) {
|
|
1881
|
-
case "InternalException":
|
|
1882
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
1883
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "InvalidAccessException":
|
|
1885
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1886
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "InvalidInputException":
|
|
1888
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1889
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "LimitExceededException":
|
|
1891
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1892
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ResourceNotFoundException":
|
|
1894
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1896
|
-
default:
|
|
1897
|
-
const parsedBody = parsedOutput.body;
|
|
1898
|
-
return throwDefaultError({
|
|
1899
|
-
output,
|
|
1900
|
-
parsedBody,
|
|
1901
|
-
errorCode
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
}, "de_AcceptInvitationCommandError");
|
|
1905
1843
|
var de_BatchDeleteAutomationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1906
1844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1907
|
-
return
|
|
1845
|
+
return de_CommandError(output, context);
|
|
1908
1846
|
}
|
|
1909
1847
|
const contents = (0, import_smithy_client.map)({
|
|
1910
1848
|
$metadata: deserializeMetadata(output)
|
|
@@ -1917,40 +1855,9 @@ var de_BatchDeleteAutomationRulesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1917
1855
|
Object.assign(contents, doc);
|
|
1918
1856
|
return contents;
|
|
1919
1857
|
}, "de_BatchDeleteAutomationRulesCommand");
|
|
1920
|
-
var de_BatchDeleteAutomationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1921
|
-
const parsedOutput = {
|
|
1922
|
-
...output,
|
|
1923
|
-
body: await parseErrorBody(output.body, context)
|
|
1924
|
-
};
|
|
1925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1926
|
-
switch (errorCode) {
|
|
1927
|
-
case "InternalException":
|
|
1928
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
1929
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1930
|
-
case "InvalidAccessException":
|
|
1931
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1932
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1933
|
-
case "InvalidInputException":
|
|
1934
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1935
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "LimitExceededException":
|
|
1937
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1938
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "ResourceNotFoundException":
|
|
1940
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
1941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1942
|
-
default:
|
|
1943
|
-
const parsedBody = parsedOutput.body;
|
|
1944
|
-
return throwDefaultError({
|
|
1945
|
-
output,
|
|
1946
|
-
parsedBody,
|
|
1947
|
-
errorCode
|
|
1948
|
-
});
|
|
1949
|
-
}
|
|
1950
|
-
}, "de_BatchDeleteAutomationRulesCommandError");
|
|
1951
1858
|
var de_BatchDisableStandardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1952
1859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1953
|
-
return
|
|
1860
|
+
return de_CommandError(output, context);
|
|
1954
1861
|
}
|
|
1955
1862
|
const contents = (0, import_smithy_client.map)({
|
|
1956
1863
|
$metadata: deserializeMetadata(output)
|
|
@@ -1962,40 +1869,9 @@ var de_BatchDisableStandardsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1962
1869
|
Object.assign(contents, doc);
|
|
1963
1870
|
return contents;
|
|
1964
1871
|
}, "de_BatchDisableStandardsCommand");
|
|
1965
|
-
var de_BatchDisableStandardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1966
|
-
const parsedOutput = {
|
|
1967
|
-
...output,
|
|
1968
|
-
body: await parseErrorBody(output.body, context)
|
|
1969
|
-
};
|
|
1970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
|
-
switch (errorCode) {
|
|
1972
|
-
case "AccessDeniedException":
|
|
1973
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
1974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "InternalException":
|
|
1976
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
1977
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "InvalidAccessException":
|
|
1979
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
1980
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "InvalidInputException":
|
|
1982
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
1983
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "LimitExceededException":
|
|
1985
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
1986
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1987
|
-
default:
|
|
1988
|
-
const parsedBody = parsedOutput.body;
|
|
1989
|
-
return throwDefaultError({
|
|
1990
|
-
output,
|
|
1991
|
-
parsedBody,
|
|
1992
|
-
errorCode
|
|
1993
|
-
});
|
|
1994
|
-
}
|
|
1995
|
-
}, "de_BatchDisableStandardsCommandError");
|
|
1996
1872
|
var de_BatchEnableStandardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1997
1873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1998
|
-
return
|
|
1874
|
+
return de_CommandError(output, context);
|
|
1999
1875
|
}
|
|
2000
1876
|
const contents = (0, import_smithy_client.map)({
|
|
2001
1877
|
$metadata: deserializeMetadata(output)
|
|
@@ -2007,40 +1883,9 @@ var de_BatchEnableStandardsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2007
1883
|
Object.assign(contents, doc);
|
|
2008
1884
|
return contents;
|
|
2009
1885
|
}, "de_BatchEnableStandardsCommand");
|
|
2010
|
-
var de_BatchEnableStandardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2011
|
-
const parsedOutput = {
|
|
2012
|
-
...output,
|
|
2013
|
-
body: await parseErrorBody(output.body, context)
|
|
2014
|
-
};
|
|
2015
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2016
|
-
switch (errorCode) {
|
|
2017
|
-
case "AccessDeniedException":
|
|
2018
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2019
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2020
|
-
case "InternalException":
|
|
2021
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2022
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2023
|
-
case "InvalidAccessException":
|
|
2024
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2025
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2026
|
-
case "InvalidInputException":
|
|
2027
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2028
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "LimitExceededException":
|
|
2030
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2031
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2032
|
-
default:
|
|
2033
|
-
const parsedBody = parsedOutput.body;
|
|
2034
|
-
return throwDefaultError({
|
|
2035
|
-
output,
|
|
2036
|
-
parsedBody,
|
|
2037
|
-
errorCode
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
}, "de_BatchEnableStandardsCommandError");
|
|
2041
1886
|
var de_BatchGetAutomationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2042
1887
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2043
|
-
return
|
|
1888
|
+
return de_CommandError(output, context);
|
|
2044
1889
|
}
|
|
2045
1890
|
const contents = (0, import_smithy_client.map)({
|
|
2046
1891
|
$metadata: deserializeMetadata(output)
|
|
@@ -2053,43 +1898,9 @@ var de_BatchGetAutomationRulesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2053
1898
|
Object.assign(contents, doc);
|
|
2054
1899
|
return contents;
|
|
2055
1900
|
}, "de_BatchGetAutomationRulesCommand");
|
|
2056
|
-
var de_BatchGetAutomationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2057
|
-
const parsedOutput = {
|
|
2058
|
-
...output,
|
|
2059
|
-
body: await parseErrorBody(output.body, context)
|
|
2060
|
-
};
|
|
2061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
-
switch (errorCode) {
|
|
2063
|
-
case "AccessDeniedException":
|
|
2064
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2065
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "InternalException":
|
|
2067
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2068
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InvalidAccessException":
|
|
2070
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2071
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "InvalidInputException":
|
|
2073
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2074
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "LimitExceededException":
|
|
2076
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2077
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceNotFoundException":
|
|
2079
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_BatchGetAutomationRulesCommandError");
|
|
2090
1901
|
var de_BatchGetConfigurationPolicyAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1902
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1903
|
+
return de_CommandError(output, context);
|
|
2093
1904
|
}
|
|
2094
1905
|
const contents = (0, import_smithy_client.map)({
|
|
2095
1906
|
$metadata: deserializeMetadata(output)
|
|
@@ -2102,43 +1913,9 @@ var de_BatchGetConfigurationPolicyAssociationsCommand = /* @__PURE__ */ __name(a
|
|
|
2102
1913
|
Object.assign(contents, doc);
|
|
2103
1914
|
return contents;
|
|
2104
1915
|
}, "de_BatchGetConfigurationPolicyAssociationsCommand");
|
|
2105
|
-
var de_BatchGetConfigurationPolicyAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2106
|
-
const parsedOutput = {
|
|
2107
|
-
...output,
|
|
2108
|
-
body: await parseErrorBody(output.body, context)
|
|
2109
|
-
};
|
|
2110
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
|
-
switch (errorCode) {
|
|
2112
|
-
case "AccessDeniedException":
|
|
2113
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2114
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "InternalException":
|
|
2116
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2117
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "InvalidAccessException":
|
|
2119
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2120
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "InvalidInputException":
|
|
2122
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2123
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "LimitExceededException":
|
|
2125
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2126
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ResourceNotFoundException":
|
|
2128
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2130
|
-
default:
|
|
2131
|
-
const parsedBody = parsedOutput.body;
|
|
2132
|
-
return throwDefaultError({
|
|
2133
|
-
output,
|
|
2134
|
-
parsedBody,
|
|
2135
|
-
errorCode
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
}, "de_BatchGetConfigurationPolicyAssociationsCommandError");
|
|
2139
1916
|
var de_BatchGetSecurityControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2140
1917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2141
|
-
return
|
|
1918
|
+
return de_CommandError(output, context);
|
|
2142
1919
|
}
|
|
2143
1920
|
const contents = (0, import_smithy_client.map)({
|
|
2144
1921
|
$metadata: deserializeMetadata(output)
|
|
@@ -2151,37 +1928,9 @@ var de_BatchGetSecurityControlsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2151
1928
|
Object.assign(contents, doc);
|
|
2152
1929
|
return contents;
|
|
2153
1930
|
}, "de_BatchGetSecurityControlsCommand");
|
|
2154
|
-
var de_BatchGetSecurityControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2155
|
-
const parsedOutput = {
|
|
2156
|
-
...output,
|
|
2157
|
-
body: await parseErrorBody(output.body, context)
|
|
2158
|
-
};
|
|
2159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
|
-
switch (errorCode) {
|
|
2161
|
-
case "InternalException":
|
|
2162
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2163
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InvalidAccessException":
|
|
2165
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2166
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "InvalidInputException":
|
|
2168
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2169
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "LimitExceededException":
|
|
2171
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2172
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2173
|
-
default:
|
|
2174
|
-
const parsedBody = parsedOutput.body;
|
|
2175
|
-
return throwDefaultError({
|
|
2176
|
-
output,
|
|
2177
|
-
parsedBody,
|
|
2178
|
-
errorCode
|
|
2179
|
-
});
|
|
2180
|
-
}
|
|
2181
|
-
}, "de_BatchGetSecurityControlsCommandError");
|
|
2182
1931
|
var de_BatchGetStandardsControlAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2183
1932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
1933
|
+
return de_CommandError(output, context);
|
|
2185
1934
|
}
|
|
2186
1935
|
const contents = (0, import_smithy_client.map)({
|
|
2187
1936
|
$metadata: deserializeMetadata(output)
|
|
@@ -2194,37 +1943,9 @@ var de_BatchGetStandardsControlAssociationsCommand = /* @__PURE__ */ __name(asyn
|
|
|
2194
1943
|
Object.assign(contents, doc);
|
|
2195
1944
|
return contents;
|
|
2196
1945
|
}, "de_BatchGetStandardsControlAssociationsCommand");
|
|
2197
|
-
var de_BatchGetStandardsControlAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2198
|
-
const parsedOutput = {
|
|
2199
|
-
...output,
|
|
2200
|
-
body: await parseErrorBody(output.body, context)
|
|
2201
|
-
};
|
|
2202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
|
-
switch (errorCode) {
|
|
2204
|
-
case "InternalException":
|
|
2205
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2206
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InvalidAccessException":
|
|
2208
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2209
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "InvalidInputException":
|
|
2211
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2212
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "LimitExceededException":
|
|
2214
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2215
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
}, "de_BatchGetStandardsControlAssociationsCommandError");
|
|
2225
1946
|
var de_BatchImportFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2226
1947
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1948
|
+
return de_CommandError(output, context);
|
|
2228
1949
|
}
|
|
2229
1950
|
const contents = (0, import_smithy_client.map)({
|
|
2230
1951
|
$metadata: deserializeMetadata(output)
|
|
@@ -2238,37 +1959,9 @@ var de_BatchImportFindingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2238
1959
|
Object.assign(contents, doc);
|
|
2239
1960
|
return contents;
|
|
2240
1961
|
}, "de_BatchImportFindingsCommand");
|
|
2241
|
-
var de_BatchImportFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2242
|
-
const parsedOutput = {
|
|
2243
|
-
...output,
|
|
2244
|
-
body: await parseErrorBody(output.body, context)
|
|
2245
|
-
};
|
|
2246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
switch (errorCode) {
|
|
2248
|
-
case "InternalException":
|
|
2249
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2250
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "InvalidAccessException":
|
|
2252
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2253
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "InvalidInputException":
|
|
2255
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2256
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "LimitExceededException":
|
|
2258
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2259
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
}, "de_BatchImportFindingsCommandError");
|
|
2269
1962
|
var de_BatchUpdateAutomationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
1963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
1964
|
+
return de_CommandError(output, context);
|
|
2272
1965
|
}
|
|
2273
1966
|
const contents = (0, import_smithy_client.map)({
|
|
2274
1967
|
$metadata: deserializeMetadata(output)
|
|
@@ -2281,40 +1974,9 @@ var de_BatchUpdateAutomationRulesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2281
1974
|
Object.assign(contents, doc);
|
|
2282
1975
|
return contents;
|
|
2283
1976
|
}, "de_BatchUpdateAutomationRulesCommand");
|
|
2284
|
-
var de_BatchUpdateAutomationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2285
|
-
const parsedOutput = {
|
|
2286
|
-
...output,
|
|
2287
|
-
body: await parseErrorBody(output.body, context)
|
|
2288
|
-
};
|
|
2289
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2290
|
-
switch (errorCode) {
|
|
2291
|
-
case "InternalException":
|
|
2292
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2293
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "InvalidAccessException":
|
|
2295
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2296
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "InvalidInputException":
|
|
2298
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2299
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "LimitExceededException":
|
|
2301
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2302
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ResourceNotFoundException":
|
|
2304
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
-
default:
|
|
2307
|
-
const parsedBody = parsedOutput.body;
|
|
2308
|
-
return throwDefaultError({
|
|
2309
|
-
output,
|
|
2310
|
-
parsedBody,
|
|
2311
|
-
errorCode
|
|
2312
|
-
});
|
|
2313
|
-
}
|
|
2314
|
-
}, "de_BatchUpdateAutomationRulesCommandError");
|
|
2315
1977
|
var de_BatchUpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2316
1978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2317
|
-
return
|
|
1979
|
+
return de_CommandError(output, context);
|
|
2318
1980
|
}
|
|
2319
1981
|
const contents = (0, import_smithy_client.map)({
|
|
2320
1982
|
$metadata: deserializeMetadata(output)
|
|
@@ -2327,37 +1989,9 @@ var de_BatchUpdateFindingsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2327
1989
|
Object.assign(contents, doc);
|
|
2328
1990
|
return contents;
|
|
2329
1991
|
}, "de_BatchUpdateFindingsCommand");
|
|
2330
|
-
var de_BatchUpdateFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2331
|
-
const parsedOutput = {
|
|
2332
|
-
...output,
|
|
2333
|
-
body: await parseErrorBody(output.body, context)
|
|
2334
|
-
};
|
|
2335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
|
-
switch (errorCode) {
|
|
2337
|
-
case "InternalException":
|
|
2338
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2339
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2340
|
-
case "InvalidAccessException":
|
|
2341
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2342
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "InvalidInputException":
|
|
2344
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2345
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "LimitExceededException":
|
|
2347
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2348
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2349
|
-
default:
|
|
2350
|
-
const parsedBody = parsedOutput.body;
|
|
2351
|
-
return throwDefaultError({
|
|
2352
|
-
output,
|
|
2353
|
-
parsedBody,
|
|
2354
|
-
errorCode
|
|
2355
|
-
});
|
|
2356
|
-
}
|
|
2357
|
-
}, "de_BatchUpdateFindingsCommandError");
|
|
2358
1992
|
var de_BatchUpdateStandardsControlAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2359
1993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2360
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
2361
1995
|
}
|
|
2362
1996
|
const contents = (0, import_smithy_client.map)({
|
|
2363
1997
|
$metadata: deserializeMetadata(output)
|
|
@@ -2369,40 +2003,9 @@ var de_BatchUpdateStandardsControlAssociationsCommand = /* @__PURE__ */ __name(a
|
|
|
2369
2003
|
Object.assign(contents, doc);
|
|
2370
2004
|
return contents;
|
|
2371
2005
|
}, "de_BatchUpdateStandardsControlAssociationsCommand");
|
|
2372
|
-
var de_BatchUpdateStandardsControlAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2373
|
-
const parsedOutput = {
|
|
2374
|
-
...output,
|
|
2375
|
-
body: await parseErrorBody(output.body, context)
|
|
2376
|
-
};
|
|
2377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2378
|
-
switch (errorCode) {
|
|
2379
|
-
case "AccessDeniedException":
|
|
2380
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2381
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "InternalException":
|
|
2383
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2384
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2385
|
-
case "InvalidAccessException":
|
|
2386
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2387
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2388
|
-
case "InvalidInputException":
|
|
2389
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2390
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "LimitExceededException":
|
|
2392
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2393
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2394
|
-
default:
|
|
2395
|
-
const parsedBody = parsedOutput.body;
|
|
2396
|
-
return throwDefaultError({
|
|
2397
|
-
output,
|
|
2398
|
-
parsedBody,
|
|
2399
|
-
errorCode
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
}, "de_BatchUpdateStandardsControlAssociationsCommandError");
|
|
2403
2006
|
var de_CreateActionTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2404
2007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2405
|
-
return
|
|
2008
|
+
return de_CommandError(output, context);
|
|
2406
2009
|
}
|
|
2407
2010
|
const contents = (0, import_smithy_client.map)({
|
|
2408
2011
|
$metadata: deserializeMetadata(output)
|
|
@@ -2414,40 +2017,9 @@ var de_CreateActionTargetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2414
2017
|
Object.assign(contents, doc);
|
|
2415
2018
|
return contents;
|
|
2416
2019
|
}, "de_CreateActionTargetCommand");
|
|
2417
|
-
var de_CreateActionTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2418
|
-
const parsedOutput = {
|
|
2419
|
-
...output,
|
|
2420
|
-
body: await parseErrorBody(output.body, context)
|
|
2421
|
-
};
|
|
2422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
-
switch (errorCode) {
|
|
2424
|
-
case "InternalException":
|
|
2425
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2426
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "InvalidAccessException":
|
|
2428
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2429
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "InvalidInputException":
|
|
2431
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2432
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "LimitExceededException":
|
|
2434
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2435
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ResourceConflictException":
|
|
2437
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2438
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2439
|
-
default:
|
|
2440
|
-
const parsedBody = parsedOutput.body;
|
|
2441
|
-
return throwDefaultError({
|
|
2442
|
-
output,
|
|
2443
|
-
parsedBody,
|
|
2444
|
-
errorCode
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
}, "de_CreateActionTargetCommandError");
|
|
2448
2020
|
var de_CreateAutomationRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2450
|
-
return
|
|
2022
|
+
return de_CommandError(output, context);
|
|
2451
2023
|
}
|
|
2452
2024
|
const contents = (0, import_smithy_client.map)({
|
|
2453
2025
|
$metadata: deserializeMetadata(output)
|
|
@@ -2459,40 +2031,9 @@ var de_CreateAutomationRuleCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2459
2031
|
Object.assign(contents, doc);
|
|
2460
2032
|
return contents;
|
|
2461
2033
|
}, "de_CreateAutomationRuleCommand");
|
|
2462
|
-
var de_CreateAutomationRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2463
|
-
const parsedOutput = {
|
|
2464
|
-
...output,
|
|
2465
|
-
body: await parseErrorBody(output.body, context)
|
|
2466
|
-
};
|
|
2467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
|
-
switch (errorCode) {
|
|
2469
|
-
case "AccessDeniedException":
|
|
2470
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "InternalException":
|
|
2473
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2474
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "InvalidAccessException":
|
|
2476
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2477
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "InvalidInputException":
|
|
2479
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2480
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "LimitExceededException":
|
|
2482
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2483
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2484
|
-
default:
|
|
2485
|
-
const parsedBody = parsedOutput.body;
|
|
2486
|
-
return throwDefaultError({
|
|
2487
|
-
output,
|
|
2488
|
-
parsedBody,
|
|
2489
|
-
errorCode
|
|
2490
|
-
});
|
|
2491
|
-
}
|
|
2492
|
-
}, "de_CreateAutomationRuleCommandError");
|
|
2493
2034
|
var de_CreateConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2494
2035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2495
|
-
return
|
|
2036
|
+
return de_CommandError(output, context);
|
|
2496
2037
|
}
|
|
2497
2038
|
const contents = (0, import_smithy_client.map)({
|
|
2498
2039
|
$metadata: deserializeMetadata(output)
|
|
@@ -2510,43 +2051,9 @@ var de_CreateConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2510
2051
|
Object.assign(contents, doc);
|
|
2511
2052
|
return contents;
|
|
2512
2053
|
}, "de_CreateConfigurationPolicyCommand");
|
|
2513
|
-
var de_CreateConfigurationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2514
|
-
const parsedOutput = {
|
|
2515
|
-
...output,
|
|
2516
|
-
body: await parseErrorBody(output.body, context)
|
|
2517
|
-
};
|
|
2518
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2519
|
-
switch (errorCode) {
|
|
2520
|
-
case "AccessDeniedException":
|
|
2521
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2522
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2523
|
-
case "InternalException":
|
|
2524
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2525
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2526
|
-
case "InvalidAccessException":
|
|
2527
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2528
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2529
|
-
case "InvalidInputException":
|
|
2530
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2531
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2532
|
-
case "LimitExceededException":
|
|
2533
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2534
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ResourceConflictException":
|
|
2536
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2537
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2538
|
-
default:
|
|
2539
|
-
const parsedBody = parsedOutput.body;
|
|
2540
|
-
return throwDefaultError({
|
|
2541
|
-
output,
|
|
2542
|
-
parsedBody,
|
|
2543
|
-
errorCode
|
|
2544
|
-
});
|
|
2545
|
-
}
|
|
2546
|
-
}, "de_CreateConfigurationPolicyCommandError");
|
|
2547
2054
|
var de_CreateFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2548
2055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2549
|
-
return
|
|
2056
|
+
return de_CommandError(output, context);
|
|
2550
2057
|
}
|
|
2551
2058
|
const contents = (0, import_smithy_client.map)({
|
|
2552
2059
|
$metadata: deserializeMetadata(output)
|
|
@@ -2561,40 +2068,9 @@ var de_CreateFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2561
2068
|
Object.assign(contents, doc);
|
|
2562
2069
|
return contents;
|
|
2563
2070
|
}, "de_CreateFindingAggregatorCommand");
|
|
2564
|
-
var de_CreateFindingAggregatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2565
|
-
const parsedOutput = {
|
|
2566
|
-
...output,
|
|
2567
|
-
body: await parseErrorBody(output.body, context)
|
|
2568
|
-
};
|
|
2569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2570
|
-
switch (errorCode) {
|
|
2571
|
-
case "AccessDeniedException":
|
|
2572
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2573
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2574
|
-
case "InternalException":
|
|
2575
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2576
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2577
|
-
case "InvalidAccessException":
|
|
2578
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2579
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2580
|
-
case "InvalidInputException":
|
|
2581
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2582
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2583
|
-
case "LimitExceededException":
|
|
2584
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2585
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2586
|
-
default:
|
|
2587
|
-
const parsedBody = parsedOutput.body;
|
|
2588
|
-
return throwDefaultError({
|
|
2589
|
-
output,
|
|
2590
|
-
parsedBody,
|
|
2591
|
-
errorCode
|
|
2592
|
-
});
|
|
2593
|
-
}
|
|
2594
|
-
}, "de_CreateFindingAggregatorCommandError");
|
|
2595
2071
|
var de_CreateInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2596
2072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2597
|
-
return
|
|
2073
|
+
return de_CommandError(output, context);
|
|
2598
2074
|
}
|
|
2599
2075
|
const contents = (0, import_smithy_client.map)({
|
|
2600
2076
|
$metadata: deserializeMetadata(output)
|
|
@@ -2606,40 +2082,9 @@ var de_CreateInsightCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2606
2082
|
Object.assign(contents, doc);
|
|
2607
2083
|
return contents;
|
|
2608
2084
|
}, "de_CreateInsightCommand");
|
|
2609
|
-
var de_CreateInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2610
|
-
const parsedOutput = {
|
|
2611
|
-
...output,
|
|
2612
|
-
body: await parseErrorBody(output.body, context)
|
|
2613
|
-
};
|
|
2614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
-
switch (errorCode) {
|
|
2616
|
-
case "InternalException":
|
|
2617
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2618
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "InvalidAccessException":
|
|
2620
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2621
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "InvalidInputException":
|
|
2623
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2624
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "LimitExceededException":
|
|
2626
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2627
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ResourceConflictException":
|
|
2629
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2630
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2631
|
-
default:
|
|
2632
|
-
const parsedBody = parsedOutput.body;
|
|
2633
|
-
return throwDefaultError({
|
|
2634
|
-
output,
|
|
2635
|
-
parsedBody,
|
|
2636
|
-
errorCode
|
|
2637
|
-
});
|
|
2638
|
-
}
|
|
2639
|
-
}, "de_CreateInsightCommandError");
|
|
2640
2085
|
var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2641
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2642
|
-
return
|
|
2087
|
+
return de_CommandError(output, context);
|
|
2643
2088
|
}
|
|
2644
2089
|
const contents = (0, import_smithy_client.map)({
|
|
2645
2090
|
$metadata: deserializeMetadata(output)
|
|
@@ -2651,43 +2096,9 @@ var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2651
2096
|
Object.assign(contents, doc);
|
|
2652
2097
|
return contents;
|
|
2653
2098
|
}, "de_CreateMembersCommand");
|
|
2654
|
-
var de_CreateMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2655
|
-
const parsedOutput = {
|
|
2656
|
-
...output,
|
|
2657
|
-
body: await parseErrorBody(output.body, context)
|
|
2658
|
-
};
|
|
2659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2660
|
-
switch (errorCode) {
|
|
2661
|
-
case "AccessDeniedException":
|
|
2662
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2664
|
-
case "InternalException":
|
|
2665
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2666
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2667
|
-
case "InvalidAccessException":
|
|
2668
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2669
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2670
|
-
case "InvalidInputException":
|
|
2671
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2672
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2673
|
-
case "LimitExceededException":
|
|
2674
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2675
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "ResourceConflictException":
|
|
2677
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2678
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2679
|
-
default:
|
|
2680
|
-
const parsedBody = parsedOutput.body;
|
|
2681
|
-
return throwDefaultError({
|
|
2682
|
-
output,
|
|
2683
|
-
parsedBody,
|
|
2684
|
-
errorCode
|
|
2685
|
-
});
|
|
2686
|
-
}
|
|
2687
|
-
}, "de_CreateMembersCommandError");
|
|
2688
2099
|
var de_DeclineInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2689
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2690
|
-
return
|
|
2101
|
+
return de_CommandError(output, context);
|
|
2691
2102
|
}
|
|
2692
2103
|
const contents = (0, import_smithy_client.map)({
|
|
2693
2104
|
$metadata: deserializeMetadata(output)
|
|
@@ -2699,37 +2110,9 @@ var de_DeclineInvitationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2699
2110
|
Object.assign(contents, doc);
|
|
2700
2111
|
return contents;
|
|
2701
2112
|
}, "de_DeclineInvitationsCommand");
|
|
2702
|
-
var de_DeclineInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "InternalException":
|
|
2710
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2711
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "InvalidAccessException":
|
|
2713
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2714
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "InvalidInputException":
|
|
2716
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2717
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ResourceNotFoundException":
|
|
2719
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2721
|
-
default:
|
|
2722
|
-
const parsedBody = parsedOutput.body;
|
|
2723
|
-
return throwDefaultError({
|
|
2724
|
-
output,
|
|
2725
|
-
parsedBody,
|
|
2726
|
-
errorCode
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
}, "de_DeclineInvitationsCommandError");
|
|
2730
2113
|
var de_DeleteActionTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2731
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2732
|
-
return
|
|
2115
|
+
return de_CommandError(output, context);
|
|
2733
2116
|
}
|
|
2734
2117
|
const contents = (0, import_smithy_client.map)({
|
|
2735
2118
|
$metadata: deserializeMetadata(output)
|
|
@@ -2741,37 +2124,9 @@ var de_DeleteActionTargetCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2741
2124
|
Object.assign(contents, doc);
|
|
2742
2125
|
return contents;
|
|
2743
2126
|
}, "de_DeleteActionTargetCommand");
|
|
2744
|
-
var de_DeleteActionTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2745
|
-
const parsedOutput = {
|
|
2746
|
-
...output,
|
|
2747
|
-
body: await parseErrorBody(output.body, context)
|
|
2748
|
-
};
|
|
2749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2750
|
-
switch (errorCode) {
|
|
2751
|
-
case "InternalException":
|
|
2752
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2753
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2754
|
-
case "InvalidAccessException":
|
|
2755
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2756
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "InvalidInputException":
|
|
2758
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2759
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "ResourceNotFoundException":
|
|
2761
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2762
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2763
|
-
default:
|
|
2764
|
-
const parsedBody = parsedOutput.body;
|
|
2765
|
-
return throwDefaultError({
|
|
2766
|
-
output,
|
|
2767
|
-
parsedBody,
|
|
2768
|
-
errorCode
|
|
2769
|
-
});
|
|
2770
|
-
}
|
|
2771
|
-
}, "de_DeleteActionTargetCommandError");
|
|
2772
2127
|
var de_DeleteConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2773
2128
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2774
|
-
return
|
|
2129
|
+
return de_CommandError(output, context);
|
|
2775
2130
|
}
|
|
2776
2131
|
const contents = (0, import_smithy_client.map)({
|
|
2777
2132
|
$metadata: deserializeMetadata(output)
|
|
@@ -2779,46 +2134,9 @@ var de_DeleteConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2779
2134
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2780
2135
|
return contents;
|
|
2781
2136
|
}, "de_DeleteConfigurationPolicyCommand");
|
|
2782
|
-
var de_DeleteConfigurationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
|
-
const parsedOutput = {
|
|
2784
|
-
...output,
|
|
2785
|
-
body: await parseErrorBody(output.body, context)
|
|
2786
|
-
};
|
|
2787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
|
-
switch (errorCode) {
|
|
2789
|
-
case "AccessDeniedException":
|
|
2790
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2792
|
-
case "InternalException":
|
|
2793
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2794
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "InvalidAccessException":
|
|
2796
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2797
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "InvalidInputException":
|
|
2799
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2800
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "LimitExceededException":
|
|
2802
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2803
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ResourceConflictException":
|
|
2805
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2806
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ResourceNotFoundException":
|
|
2808
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
default:
|
|
2811
|
-
const parsedBody = parsedOutput.body;
|
|
2812
|
-
return throwDefaultError({
|
|
2813
|
-
output,
|
|
2814
|
-
parsedBody,
|
|
2815
|
-
errorCode
|
|
2816
|
-
});
|
|
2817
|
-
}
|
|
2818
|
-
}, "de_DeleteConfigurationPolicyCommandError");
|
|
2819
2137
|
var de_DeleteFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2820
2138
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2821
|
-
return
|
|
2139
|
+
return de_CommandError(output, context);
|
|
2822
2140
|
}
|
|
2823
2141
|
const contents = (0, import_smithy_client.map)({
|
|
2824
2142
|
$metadata: deserializeMetadata(output)
|
|
@@ -2826,43 +2144,9 @@ var de_DeleteFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2826
2144
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2827
2145
|
return contents;
|
|
2828
2146
|
}, "de_DeleteFindingAggregatorCommand");
|
|
2829
|
-
var de_DeleteFindingAggregatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2830
|
-
const parsedOutput = {
|
|
2831
|
-
...output,
|
|
2832
|
-
body: await parseErrorBody(output.body, context)
|
|
2833
|
-
};
|
|
2834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2835
|
-
switch (errorCode) {
|
|
2836
|
-
case "AccessDeniedException":
|
|
2837
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "InternalException":
|
|
2840
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2841
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "InvalidAccessException":
|
|
2843
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2844
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "InvalidInputException":
|
|
2846
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2847
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2848
|
-
case "LimitExceededException":
|
|
2849
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2850
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ResourceNotFoundException":
|
|
2852
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2853
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2854
|
-
default:
|
|
2855
|
-
const parsedBody = parsedOutput.body;
|
|
2856
|
-
return throwDefaultError({
|
|
2857
|
-
output,
|
|
2858
|
-
parsedBody,
|
|
2859
|
-
errorCode
|
|
2860
|
-
});
|
|
2861
|
-
}
|
|
2862
|
-
}, "de_DeleteFindingAggregatorCommandError");
|
|
2863
2147
|
var de_DeleteInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2864
2148
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2865
|
-
return
|
|
2149
|
+
return de_CommandError(output, context);
|
|
2866
2150
|
}
|
|
2867
2151
|
const contents = (0, import_smithy_client.map)({
|
|
2868
2152
|
$metadata: deserializeMetadata(output)
|
|
@@ -2874,40 +2158,9 @@ var de_DeleteInsightCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2874
2158
|
Object.assign(contents, doc);
|
|
2875
2159
|
return contents;
|
|
2876
2160
|
}, "de_DeleteInsightCommand");
|
|
2877
|
-
var de_DeleteInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context)
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "InternalException":
|
|
2885
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2886
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InvalidAccessException":
|
|
2888
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2889
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InvalidInputException":
|
|
2891
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2892
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "LimitExceededException":
|
|
2894
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2895
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ResourceNotFoundException":
|
|
2897
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2898
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2899
|
-
default:
|
|
2900
|
-
const parsedBody = parsedOutput.body;
|
|
2901
|
-
return throwDefaultError({
|
|
2902
|
-
output,
|
|
2903
|
-
parsedBody,
|
|
2904
|
-
errorCode
|
|
2905
|
-
});
|
|
2906
|
-
}
|
|
2907
|
-
}, "de_DeleteInsightCommandError");
|
|
2908
2161
|
var de_DeleteInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2909
2162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2910
|
-
return
|
|
2163
|
+
return de_CommandError(output, context);
|
|
2911
2164
|
}
|
|
2912
2165
|
const contents = (0, import_smithy_client.map)({
|
|
2913
2166
|
$metadata: deserializeMetadata(output)
|
|
@@ -2919,40 +2172,9 @@ var de_DeleteInvitationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2919
2172
|
Object.assign(contents, doc);
|
|
2920
2173
|
return contents;
|
|
2921
2174
|
}, "de_DeleteInvitationsCommand");
|
|
2922
|
-
var de_DeleteInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2923
|
-
const parsedOutput = {
|
|
2924
|
-
...output,
|
|
2925
|
-
body: await parseErrorBody(output.body, context)
|
|
2926
|
-
};
|
|
2927
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2928
|
-
switch (errorCode) {
|
|
2929
|
-
case "InternalException":
|
|
2930
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2931
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "InvalidAccessException":
|
|
2933
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2934
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "InvalidInputException":
|
|
2936
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2937
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "LimitExceededException":
|
|
2939
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2940
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2941
|
-
case "ResourceNotFoundException":
|
|
2942
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2943
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2944
|
-
default:
|
|
2945
|
-
const parsedBody = parsedOutput.body;
|
|
2946
|
-
return throwDefaultError({
|
|
2947
|
-
output,
|
|
2948
|
-
parsedBody,
|
|
2949
|
-
errorCode
|
|
2950
|
-
});
|
|
2951
|
-
}
|
|
2952
|
-
}, "de_DeleteInvitationsCommandError");
|
|
2953
2175
|
var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2954
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2955
|
-
return
|
|
2177
|
+
return de_CommandError(output, context);
|
|
2956
2178
|
}
|
|
2957
2179
|
const contents = (0, import_smithy_client.map)({
|
|
2958
2180
|
$metadata: deserializeMetadata(output)
|
|
@@ -2964,40 +2186,9 @@ var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2964
2186
|
Object.assign(contents, doc);
|
|
2965
2187
|
return contents;
|
|
2966
2188
|
}, "de_DeleteMembersCommand");
|
|
2967
|
-
var de_DeleteMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2968
|
-
const parsedOutput = {
|
|
2969
|
-
...output,
|
|
2970
|
-
body: await parseErrorBody(output.body, context)
|
|
2971
|
-
};
|
|
2972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2973
|
-
switch (errorCode) {
|
|
2974
|
-
case "InternalException":
|
|
2975
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
2976
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "InvalidAccessException":
|
|
2978
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
2979
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "InvalidInputException":
|
|
2981
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
2982
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2983
|
-
case "LimitExceededException":
|
|
2984
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2985
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2986
|
-
case "ResourceNotFoundException":
|
|
2987
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
2988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2989
|
-
default:
|
|
2990
|
-
const parsedBody = parsedOutput.body;
|
|
2991
|
-
return throwDefaultError({
|
|
2992
|
-
output,
|
|
2993
|
-
parsedBody,
|
|
2994
|
-
errorCode
|
|
2995
|
-
});
|
|
2996
|
-
}
|
|
2997
|
-
}, "de_DeleteMembersCommandError");
|
|
2998
2189
|
var de_DescribeActionTargetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2999
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3000
|
-
return
|
|
2191
|
+
return de_CommandError(output, context);
|
|
3001
2192
|
}
|
|
3002
2193
|
const contents = (0, import_smithy_client.map)({
|
|
3003
2194
|
$metadata: deserializeMetadata(output)
|
|
@@ -3010,37 +2201,9 @@ var de_DescribeActionTargetsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3010
2201
|
Object.assign(contents, doc);
|
|
3011
2202
|
return contents;
|
|
3012
2203
|
}, "de_DescribeActionTargetsCommand");
|
|
3013
|
-
var de_DescribeActionTargetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3014
|
-
const parsedOutput = {
|
|
3015
|
-
...output,
|
|
3016
|
-
body: await parseErrorBody(output.body, context)
|
|
3017
|
-
};
|
|
3018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
-
switch (errorCode) {
|
|
3020
|
-
case "InternalException":
|
|
3021
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3022
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "InvalidAccessException":
|
|
3024
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3025
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "InvalidInputException":
|
|
3027
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3028
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "ResourceNotFoundException":
|
|
3030
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3032
|
-
default:
|
|
3033
|
-
const parsedBody = parsedOutput.body;
|
|
3034
|
-
return throwDefaultError({
|
|
3035
|
-
output,
|
|
3036
|
-
parsedBody,
|
|
3037
|
-
errorCode
|
|
3038
|
-
});
|
|
3039
|
-
}
|
|
3040
|
-
}, "de_DescribeActionTargetsCommandError");
|
|
3041
2204
|
var de_DescribeHubCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3042
2205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3043
|
-
return
|
|
2206
|
+
return de_CommandError(output, context);
|
|
3044
2207
|
}
|
|
3045
2208
|
const contents = (0, import_smithy_client.map)({
|
|
3046
2209
|
$metadata: deserializeMetadata(output)
|
|
@@ -3055,40 +2218,9 @@ var de_DescribeHubCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3055
2218
|
Object.assign(contents, doc);
|
|
3056
2219
|
return contents;
|
|
3057
2220
|
}, "de_DescribeHubCommand");
|
|
3058
|
-
var de_DescribeHubCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3059
|
-
const parsedOutput = {
|
|
3060
|
-
...output,
|
|
3061
|
-
body: await parseErrorBody(output.body, context)
|
|
3062
|
-
};
|
|
3063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
|
-
switch (errorCode) {
|
|
3065
|
-
case "InternalException":
|
|
3066
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3067
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3068
|
-
case "InvalidAccessException":
|
|
3069
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3070
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "InvalidInputException":
|
|
3072
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3073
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "LimitExceededException":
|
|
3075
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3076
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "ResourceNotFoundException":
|
|
3078
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3079
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3080
|
-
default:
|
|
3081
|
-
const parsedBody = parsedOutput.body;
|
|
3082
|
-
return throwDefaultError({
|
|
3083
|
-
output,
|
|
3084
|
-
parsedBody,
|
|
3085
|
-
errorCode
|
|
3086
|
-
});
|
|
3087
|
-
}
|
|
3088
|
-
}, "de_DescribeHubCommandError");
|
|
3089
2221
|
var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3090
2222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3091
|
-
return
|
|
2223
|
+
return de_CommandError(output, context);
|
|
3092
2224
|
}
|
|
3093
2225
|
const contents = (0, import_smithy_client.map)({
|
|
3094
2226
|
$metadata: deserializeMetadata(output)
|
|
@@ -3103,37 +2235,9 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
3103
2235
|
Object.assign(contents, doc);
|
|
3104
2236
|
return contents;
|
|
3105
2237
|
}, "de_DescribeOrganizationConfigurationCommand");
|
|
3106
|
-
var de_DescribeOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3107
|
-
const parsedOutput = {
|
|
3108
|
-
...output,
|
|
3109
|
-
body: await parseErrorBody(output.body, context)
|
|
3110
|
-
};
|
|
3111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3112
|
-
switch (errorCode) {
|
|
3113
|
-
case "InternalException":
|
|
3114
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3115
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3116
|
-
case "InvalidAccessException":
|
|
3117
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3118
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3119
|
-
case "InvalidInputException":
|
|
3120
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3121
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3122
|
-
case "LimitExceededException":
|
|
3123
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3124
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3125
|
-
default:
|
|
3126
|
-
const parsedBody = parsedOutput.body;
|
|
3127
|
-
return throwDefaultError({
|
|
3128
|
-
output,
|
|
3129
|
-
parsedBody,
|
|
3130
|
-
errorCode
|
|
3131
|
-
});
|
|
3132
|
-
}
|
|
3133
|
-
}, "de_DescribeOrganizationConfigurationCommandError");
|
|
3134
2238
|
var de_DescribeProductsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3135
2239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3136
|
-
return
|
|
2240
|
+
return de_CommandError(output, context);
|
|
3137
2241
|
}
|
|
3138
2242
|
const contents = (0, import_smithy_client.map)({
|
|
3139
2243
|
$metadata: deserializeMetadata(output)
|
|
@@ -3146,37 +2250,9 @@ var de_DescribeProductsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3146
2250
|
Object.assign(contents, doc);
|
|
3147
2251
|
return contents;
|
|
3148
2252
|
}, "de_DescribeProductsCommand");
|
|
3149
|
-
var de_DescribeProductsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3150
|
-
const parsedOutput = {
|
|
3151
|
-
...output,
|
|
3152
|
-
body: await parseErrorBody(output.body, context)
|
|
3153
|
-
};
|
|
3154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3155
|
-
switch (errorCode) {
|
|
3156
|
-
case "InternalException":
|
|
3157
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3158
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "InvalidAccessException":
|
|
3160
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3161
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3162
|
-
case "InvalidInputException":
|
|
3163
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3164
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "LimitExceededException":
|
|
3166
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3167
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3168
|
-
default:
|
|
3169
|
-
const parsedBody = parsedOutput.body;
|
|
3170
|
-
return throwDefaultError({
|
|
3171
|
-
output,
|
|
3172
|
-
parsedBody,
|
|
3173
|
-
errorCode
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
|
-
}, "de_DescribeProductsCommandError");
|
|
3177
2253
|
var de_DescribeStandardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3178
2254
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3179
|
-
return
|
|
2255
|
+
return de_CommandError(output, context);
|
|
3180
2256
|
}
|
|
3181
2257
|
const contents = (0, import_smithy_client.map)({
|
|
3182
2258
|
$metadata: deserializeMetadata(output)
|
|
@@ -3189,34 +2265,9 @@ var de_DescribeStandardsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3189
2265
|
Object.assign(contents, doc);
|
|
3190
2266
|
return contents;
|
|
3191
2267
|
}, "de_DescribeStandardsCommand");
|
|
3192
|
-
var de_DescribeStandardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3193
|
-
const parsedOutput = {
|
|
3194
|
-
...output,
|
|
3195
|
-
body: await parseErrorBody(output.body, context)
|
|
3196
|
-
};
|
|
3197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3198
|
-
switch (errorCode) {
|
|
3199
|
-
case "InternalException":
|
|
3200
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3201
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "InvalidAccessException":
|
|
3203
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3204
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "InvalidInputException":
|
|
3206
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3207
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3208
|
-
default:
|
|
3209
|
-
const parsedBody = parsedOutput.body;
|
|
3210
|
-
return throwDefaultError({
|
|
3211
|
-
output,
|
|
3212
|
-
parsedBody,
|
|
3213
|
-
errorCode
|
|
3214
|
-
});
|
|
3215
|
-
}
|
|
3216
|
-
}, "de_DescribeStandardsCommandError");
|
|
3217
2268
|
var de_DescribeStandardsControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3218
2269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3219
|
-
return
|
|
2270
|
+
return de_CommandError(output, context);
|
|
3220
2271
|
}
|
|
3221
2272
|
const contents = (0, import_smithy_client.map)({
|
|
3222
2273
|
$metadata: deserializeMetadata(output)
|
|
@@ -3229,37 +2280,9 @@ var de_DescribeStandardsControlsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3229
2280
|
Object.assign(contents, doc);
|
|
3230
2281
|
return contents;
|
|
3231
2282
|
}, "de_DescribeStandardsControlsCommand");
|
|
3232
|
-
var de_DescribeStandardsControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3233
|
-
const parsedOutput = {
|
|
3234
|
-
...output,
|
|
3235
|
-
body: await parseErrorBody(output.body, context)
|
|
3236
|
-
};
|
|
3237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
|
-
switch (errorCode) {
|
|
3239
|
-
case "InternalException":
|
|
3240
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3241
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3242
|
-
case "InvalidAccessException":
|
|
3243
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3244
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3245
|
-
case "InvalidInputException":
|
|
3246
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3247
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "ResourceNotFoundException":
|
|
3249
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3251
|
-
default:
|
|
3252
|
-
const parsedBody = parsedOutput.body;
|
|
3253
|
-
return throwDefaultError({
|
|
3254
|
-
output,
|
|
3255
|
-
parsedBody,
|
|
3256
|
-
errorCode
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
}, "de_DescribeStandardsControlsCommandError");
|
|
3260
2283
|
var de_DisableImportFindingsForProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3261
2284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3262
|
-
return
|
|
2285
|
+
return de_CommandError(output, context);
|
|
3263
2286
|
}
|
|
3264
2287
|
const contents = (0, import_smithy_client.map)({
|
|
3265
2288
|
$metadata: deserializeMetadata(output)
|
|
@@ -3267,40 +2290,9 @@ var de_DisableImportFindingsForProductCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3267
2290
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3268
2291
|
return contents;
|
|
3269
2292
|
}, "de_DisableImportFindingsForProductCommand");
|
|
3270
|
-
var de_DisableImportFindingsForProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3271
|
-
const parsedOutput = {
|
|
3272
|
-
...output,
|
|
3273
|
-
body: await parseErrorBody(output.body, context)
|
|
3274
|
-
};
|
|
3275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3276
|
-
switch (errorCode) {
|
|
3277
|
-
case "InternalException":
|
|
3278
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3279
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "InvalidAccessException":
|
|
3281
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3282
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3283
|
-
case "InvalidInputException":
|
|
3284
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3285
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "LimitExceededException":
|
|
3287
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3288
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "ResourceNotFoundException":
|
|
3290
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3292
|
-
default:
|
|
3293
|
-
const parsedBody = parsedOutput.body;
|
|
3294
|
-
return throwDefaultError({
|
|
3295
|
-
output,
|
|
3296
|
-
parsedBody,
|
|
3297
|
-
errorCode
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
}, "de_DisableImportFindingsForProductCommandError");
|
|
3301
2293
|
var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3302
2294
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3303
|
-
return
|
|
2295
|
+
return de_CommandError(output, context);
|
|
3304
2296
|
}
|
|
3305
2297
|
const contents = (0, import_smithy_client.map)({
|
|
3306
2298
|
$metadata: deserializeMetadata(output)
|
|
@@ -3308,40 +2300,9 @@ var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3308
2300
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3309
2301
|
return contents;
|
|
3310
2302
|
}, "de_DisableOrganizationAdminAccountCommand");
|
|
3311
|
-
var de_DisableOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3312
|
-
const parsedOutput = {
|
|
3313
|
-
...output,
|
|
3314
|
-
body: await parseErrorBody(output.body, context)
|
|
3315
|
-
};
|
|
3316
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3317
|
-
switch (errorCode) {
|
|
3318
|
-
case "AccessDeniedException":
|
|
3319
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3320
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3321
|
-
case "InternalException":
|
|
3322
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3323
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "InvalidAccessException":
|
|
3325
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3326
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3327
|
-
case "InvalidInputException":
|
|
3328
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3329
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3330
|
-
case "LimitExceededException":
|
|
3331
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3332
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3333
|
-
default:
|
|
3334
|
-
const parsedBody = parsedOutput.body;
|
|
3335
|
-
return throwDefaultError({
|
|
3336
|
-
output,
|
|
3337
|
-
parsedBody,
|
|
3338
|
-
errorCode
|
|
3339
|
-
});
|
|
3340
|
-
}
|
|
3341
|
-
}, "de_DisableOrganizationAdminAccountCommandError");
|
|
3342
2303
|
var de_DisableSecurityHubCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3343
2304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3344
|
-
return
|
|
2305
|
+
return de_CommandError(output, context);
|
|
3345
2306
|
}
|
|
3346
2307
|
const contents = (0, import_smithy_client.map)({
|
|
3347
2308
|
$metadata: deserializeMetadata(output)
|
|
@@ -3349,40 +2310,9 @@ var de_DisableSecurityHubCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3349
2310
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3350
2311
|
return contents;
|
|
3351
2312
|
}, "de_DisableSecurityHubCommand");
|
|
3352
|
-
var de_DisableSecurityHubCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3353
|
-
const parsedOutput = {
|
|
3354
|
-
...output,
|
|
3355
|
-
body: await parseErrorBody(output.body, context)
|
|
3356
|
-
};
|
|
3357
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
-
switch (errorCode) {
|
|
3359
|
-
case "AccessDeniedException":
|
|
3360
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3361
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "InternalException":
|
|
3363
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3364
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "InvalidAccessException":
|
|
3366
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3367
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3368
|
-
case "LimitExceededException":
|
|
3369
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3370
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ResourceNotFoundException":
|
|
3372
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3374
|
-
default:
|
|
3375
|
-
const parsedBody = parsedOutput.body;
|
|
3376
|
-
return throwDefaultError({
|
|
3377
|
-
output,
|
|
3378
|
-
parsedBody,
|
|
3379
|
-
errorCode
|
|
3380
|
-
});
|
|
3381
|
-
}
|
|
3382
|
-
}, "de_DisableSecurityHubCommandError");
|
|
3383
2313
|
var de_DisassociateFromAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3384
2314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3385
|
-
return
|
|
2315
|
+
return de_CommandError(output, context);
|
|
3386
2316
|
}
|
|
3387
2317
|
const contents = (0, import_smithy_client.map)({
|
|
3388
2318
|
$metadata: deserializeMetadata(output)
|
|
@@ -3390,40 +2320,9 @@ var de_DisassociateFromAdministratorAccountCommand = /* @__PURE__ */ __name(asyn
|
|
|
3390
2320
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3391
2321
|
return contents;
|
|
3392
2322
|
}, "de_DisassociateFromAdministratorAccountCommand");
|
|
3393
|
-
var de_DisassociateFromAdministratorAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3394
|
-
const parsedOutput = {
|
|
3395
|
-
...output,
|
|
3396
|
-
body: await parseErrorBody(output.body, context)
|
|
3397
|
-
};
|
|
3398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3399
|
-
switch (errorCode) {
|
|
3400
|
-
case "InternalException":
|
|
3401
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3402
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "InvalidAccessException":
|
|
3404
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3405
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "InvalidInputException":
|
|
3407
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3408
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3409
|
-
case "LimitExceededException":
|
|
3410
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3411
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3412
|
-
case "ResourceNotFoundException":
|
|
3413
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3415
|
-
default:
|
|
3416
|
-
const parsedBody = parsedOutput.body;
|
|
3417
|
-
return throwDefaultError({
|
|
3418
|
-
output,
|
|
3419
|
-
parsedBody,
|
|
3420
|
-
errorCode
|
|
3421
|
-
});
|
|
3422
|
-
}
|
|
3423
|
-
}, "de_DisassociateFromAdministratorAccountCommandError");
|
|
3424
2323
|
var de_DisassociateFromMasterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3425
2324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3426
|
-
return
|
|
2325
|
+
return de_CommandError(output, context);
|
|
3427
2326
|
}
|
|
3428
2327
|
const contents = (0, import_smithy_client.map)({
|
|
3429
2328
|
$metadata: deserializeMetadata(output)
|
|
@@ -3431,40 +2330,9 @@ var de_DisassociateFromMasterAccountCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3431
2330
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3432
2331
|
return contents;
|
|
3433
2332
|
}, "de_DisassociateFromMasterAccountCommand");
|
|
3434
|
-
var de_DisassociateFromMasterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3435
|
-
const parsedOutput = {
|
|
3436
|
-
...output,
|
|
3437
|
-
body: await parseErrorBody(output.body, context)
|
|
3438
|
-
};
|
|
3439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
|
-
switch (errorCode) {
|
|
3441
|
-
case "InternalException":
|
|
3442
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3443
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "InvalidAccessException":
|
|
3445
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3446
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "InvalidInputException":
|
|
3448
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3449
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "LimitExceededException":
|
|
3451
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3452
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ResourceNotFoundException":
|
|
3454
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3456
|
-
default:
|
|
3457
|
-
const parsedBody = parsedOutput.body;
|
|
3458
|
-
return throwDefaultError({
|
|
3459
|
-
output,
|
|
3460
|
-
parsedBody,
|
|
3461
|
-
errorCode
|
|
3462
|
-
});
|
|
3463
|
-
}
|
|
3464
|
-
}, "de_DisassociateFromMasterAccountCommandError");
|
|
3465
2333
|
var de_DisassociateMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3466
2334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3467
|
-
return
|
|
2335
|
+
return de_CommandError(output, context);
|
|
3468
2336
|
}
|
|
3469
2337
|
const contents = (0, import_smithy_client.map)({
|
|
3470
2338
|
$metadata: deserializeMetadata(output)
|
|
@@ -3472,43 +2340,9 @@ var de_DisassociateMembersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3472
2340
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3473
2341
|
return contents;
|
|
3474
2342
|
}, "de_DisassociateMembersCommand");
|
|
3475
|
-
var de_DisassociateMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3476
|
-
const parsedOutput = {
|
|
3477
|
-
...output,
|
|
3478
|
-
body: await parseErrorBody(output.body, context)
|
|
3479
|
-
};
|
|
3480
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3481
|
-
switch (errorCode) {
|
|
3482
|
-
case "AccessDeniedException":
|
|
3483
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3484
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3485
|
-
case "InternalException":
|
|
3486
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3487
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3488
|
-
case "InvalidAccessException":
|
|
3489
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3490
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3491
|
-
case "InvalidInputException":
|
|
3492
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3493
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3494
|
-
case "LimitExceededException":
|
|
3495
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3496
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "ResourceNotFoundException":
|
|
3498
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3499
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3500
|
-
default:
|
|
3501
|
-
const parsedBody = parsedOutput.body;
|
|
3502
|
-
return throwDefaultError({
|
|
3503
|
-
output,
|
|
3504
|
-
parsedBody,
|
|
3505
|
-
errorCode
|
|
3506
|
-
});
|
|
3507
|
-
}
|
|
3508
|
-
}, "de_DisassociateMembersCommandError");
|
|
3509
2343
|
var de_EnableImportFindingsForProductCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3510
2344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3511
|
-
return
|
|
2345
|
+
return de_CommandError(output, context);
|
|
3512
2346
|
}
|
|
3513
2347
|
const contents = (0, import_smithy_client.map)({
|
|
3514
2348
|
$metadata: deserializeMetadata(output)
|
|
@@ -3520,40 +2354,9 @@ var de_EnableImportFindingsForProductCommand = /* @__PURE__ */ __name(async (out
|
|
|
3520
2354
|
Object.assign(contents, doc);
|
|
3521
2355
|
return contents;
|
|
3522
2356
|
}, "de_EnableImportFindingsForProductCommand");
|
|
3523
|
-
var de_EnableImportFindingsForProductCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3524
|
-
const parsedOutput = {
|
|
3525
|
-
...output,
|
|
3526
|
-
body: await parseErrorBody(output.body, context)
|
|
3527
|
-
};
|
|
3528
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3529
|
-
switch (errorCode) {
|
|
3530
|
-
case "InternalException":
|
|
3531
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3532
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3533
|
-
case "InvalidAccessException":
|
|
3534
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3535
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3536
|
-
case "InvalidInputException":
|
|
3537
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3538
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3539
|
-
case "LimitExceededException":
|
|
3540
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3541
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3542
|
-
case "ResourceConflictException":
|
|
3543
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
3544
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3545
|
-
default:
|
|
3546
|
-
const parsedBody = parsedOutput.body;
|
|
3547
|
-
return throwDefaultError({
|
|
3548
|
-
output,
|
|
3549
|
-
parsedBody,
|
|
3550
|
-
errorCode
|
|
3551
|
-
});
|
|
3552
|
-
}
|
|
3553
|
-
}, "de_EnableImportFindingsForProductCommandError");
|
|
3554
2357
|
var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3555
2358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3556
|
-
return
|
|
2359
|
+
return de_CommandError(output, context);
|
|
3557
2360
|
}
|
|
3558
2361
|
const contents = (0, import_smithy_client.map)({
|
|
3559
2362
|
$metadata: deserializeMetadata(output)
|
|
@@ -3561,40 +2364,9 @@ var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (out
|
|
|
3561
2364
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3562
2365
|
return contents;
|
|
3563
2366
|
}, "de_EnableOrganizationAdminAccountCommand");
|
|
3564
|
-
var de_EnableOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3565
|
-
const parsedOutput = {
|
|
3566
|
-
...output,
|
|
3567
|
-
body: await parseErrorBody(output.body, context)
|
|
3568
|
-
};
|
|
3569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3570
|
-
switch (errorCode) {
|
|
3571
|
-
case "AccessDeniedException":
|
|
3572
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3573
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3574
|
-
case "InternalException":
|
|
3575
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3576
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3577
|
-
case "InvalidAccessException":
|
|
3578
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3579
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3580
|
-
case "InvalidInputException":
|
|
3581
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3582
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3583
|
-
case "LimitExceededException":
|
|
3584
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3585
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3586
|
-
default:
|
|
3587
|
-
const parsedBody = parsedOutput.body;
|
|
3588
|
-
return throwDefaultError({
|
|
3589
|
-
output,
|
|
3590
|
-
parsedBody,
|
|
3591
|
-
errorCode
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
}, "de_EnableOrganizationAdminAccountCommandError");
|
|
3595
2367
|
var de_EnableSecurityHubCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3596
2368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3597
|
-
return
|
|
2369
|
+
return de_CommandError(output, context);
|
|
3598
2370
|
}
|
|
3599
2371
|
const contents = (0, import_smithy_client.map)({
|
|
3600
2372
|
$metadata: deserializeMetadata(output)
|
|
@@ -3602,40 +2374,9 @@ var de_EnableSecurityHubCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3602
2374
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3603
2375
|
return contents;
|
|
3604
2376
|
}, "de_EnableSecurityHubCommand");
|
|
3605
|
-
var de_EnableSecurityHubCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3606
|
-
const parsedOutput = {
|
|
3607
|
-
...output,
|
|
3608
|
-
body: await parseErrorBody(output.body, context)
|
|
3609
|
-
};
|
|
3610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3611
|
-
switch (errorCode) {
|
|
3612
|
-
case "AccessDeniedException":
|
|
3613
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3615
|
-
case "InternalException":
|
|
3616
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3617
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3618
|
-
case "InvalidAccessException":
|
|
3619
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3620
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3621
|
-
case "LimitExceededException":
|
|
3622
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3623
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "ResourceConflictException":
|
|
3625
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
3626
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
3627
|
-
default:
|
|
3628
|
-
const parsedBody = parsedOutput.body;
|
|
3629
|
-
return throwDefaultError({
|
|
3630
|
-
output,
|
|
3631
|
-
parsedBody,
|
|
3632
|
-
errorCode
|
|
3633
|
-
});
|
|
3634
|
-
}
|
|
3635
|
-
}, "de_EnableSecurityHubCommandError");
|
|
3636
2377
|
var de_GetAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3637
2378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3638
|
-
return
|
|
2379
|
+
return de_CommandError(output, context);
|
|
3639
2380
|
}
|
|
3640
2381
|
const contents = (0, import_smithy_client.map)({
|
|
3641
2382
|
$metadata: deserializeMetadata(output)
|
|
@@ -3647,40 +2388,9 @@ var de_GetAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3647
2388
|
Object.assign(contents, doc);
|
|
3648
2389
|
return contents;
|
|
3649
2390
|
}, "de_GetAdministratorAccountCommand");
|
|
3650
|
-
var de_GetAdministratorAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3651
|
-
const parsedOutput = {
|
|
3652
|
-
...output,
|
|
3653
|
-
body: await parseErrorBody(output.body, context)
|
|
3654
|
-
};
|
|
3655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3656
|
-
switch (errorCode) {
|
|
3657
|
-
case "InternalException":
|
|
3658
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3659
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3660
|
-
case "InvalidAccessException":
|
|
3661
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3662
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "InvalidInputException":
|
|
3664
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3665
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "LimitExceededException":
|
|
3667
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3668
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3669
|
-
case "ResourceNotFoundException":
|
|
3670
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3671
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3672
|
-
default:
|
|
3673
|
-
const parsedBody = parsedOutput.body;
|
|
3674
|
-
return throwDefaultError({
|
|
3675
|
-
output,
|
|
3676
|
-
parsedBody,
|
|
3677
|
-
errorCode
|
|
3678
|
-
});
|
|
3679
|
-
}
|
|
3680
|
-
}, "de_GetAdministratorAccountCommandError");
|
|
3681
2391
|
var de_GetConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3682
2392
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3683
|
-
return
|
|
2393
|
+
return de_CommandError(output, context);
|
|
3684
2394
|
}
|
|
3685
2395
|
const contents = (0, import_smithy_client.map)({
|
|
3686
2396
|
$metadata: deserializeMetadata(output)
|
|
@@ -3698,43 +2408,9 @@ var de_GetConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3698
2408
|
Object.assign(contents, doc);
|
|
3699
2409
|
return contents;
|
|
3700
2410
|
}, "de_GetConfigurationPolicyCommand");
|
|
3701
|
-
var de_GetConfigurationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3702
|
-
const parsedOutput = {
|
|
3703
|
-
...output,
|
|
3704
|
-
body: await parseErrorBody(output.body, context)
|
|
3705
|
-
};
|
|
3706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3707
|
-
switch (errorCode) {
|
|
3708
|
-
case "AccessDeniedException":
|
|
3709
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3710
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3711
|
-
case "InternalException":
|
|
3712
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3713
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3714
|
-
case "InvalidAccessException":
|
|
3715
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3716
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3717
|
-
case "InvalidInputException":
|
|
3718
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3719
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3720
|
-
case "LimitExceededException":
|
|
3721
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3722
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3723
|
-
case "ResourceNotFoundException":
|
|
3724
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3726
|
-
default:
|
|
3727
|
-
const parsedBody = parsedOutput.body;
|
|
3728
|
-
return throwDefaultError({
|
|
3729
|
-
output,
|
|
3730
|
-
parsedBody,
|
|
3731
|
-
errorCode
|
|
3732
|
-
});
|
|
3733
|
-
}
|
|
3734
|
-
}, "de_GetConfigurationPolicyCommandError");
|
|
3735
2411
|
var de_GetConfigurationPolicyAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3736
2412
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3737
|
-
return
|
|
2413
|
+
return de_CommandError(output, context);
|
|
3738
2414
|
}
|
|
3739
2415
|
const contents = (0, import_smithy_client.map)({
|
|
3740
2416
|
$metadata: deserializeMetadata(output)
|
|
@@ -3752,43 +2428,9 @@ var de_GetConfigurationPolicyAssociationCommand = /* @__PURE__ */ __name(async (
|
|
|
3752
2428
|
Object.assign(contents, doc);
|
|
3753
2429
|
return contents;
|
|
3754
2430
|
}, "de_GetConfigurationPolicyAssociationCommand");
|
|
3755
|
-
var de_GetConfigurationPolicyAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3756
|
-
const parsedOutput = {
|
|
3757
|
-
...output,
|
|
3758
|
-
body: await parseErrorBody(output.body, context)
|
|
3759
|
-
};
|
|
3760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3761
|
-
switch (errorCode) {
|
|
3762
|
-
case "AccessDeniedException":
|
|
3763
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3764
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "InternalException":
|
|
3766
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3767
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "InvalidAccessException":
|
|
3769
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3770
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3771
|
-
case "InvalidInputException":
|
|
3772
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3773
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3774
|
-
case "LimitExceededException":
|
|
3775
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3776
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3777
|
-
case "ResourceNotFoundException":
|
|
3778
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3780
|
-
default:
|
|
3781
|
-
const parsedBody = parsedOutput.body;
|
|
3782
|
-
return throwDefaultError({
|
|
3783
|
-
output,
|
|
3784
|
-
parsedBody,
|
|
3785
|
-
errorCode
|
|
3786
|
-
});
|
|
3787
|
-
}
|
|
3788
|
-
}, "de_GetConfigurationPolicyAssociationCommandError");
|
|
3789
2431
|
var de_GetEnabledStandardsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3790
2432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3791
|
-
return
|
|
2433
|
+
return de_CommandError(output, context);
|
|
3792
2434
|
}
|
|
3793
2435
|
const contents = (0, import_smithy_client.map)({
|
|
3794
2436
|
$metadata: deserializeMetadata(output)
|
|
@@ -3801,37 +2443,9 @@ var de_GetEnabledStandardsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3801
2443
|
Object.assign(contents, doc);
|
|
3802
2444
|
return contents;
|
|
3803
2445
|
}, "de_GetEnabledStandardsCommand");
|
|
3804
|
-
var de_GetEnabledStandardsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3805
|
-
const parsedOutput = {
|
|
3806
|
-
...output,
|
|
3807
|
-
body: await parseErrorBody(output.body, context)
|
|
3808
|
-
};
|
|
3809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3810
|
-
switch (errorCode) {
|
|
3811
|
-
case "InternalException":
|
|
3812
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3813
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3814
|
-
case "InvalidAccessException":
|
|
3815
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3816
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3817
|
-
case "InvalidInputException":
|
|
3818
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3819
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "LimitExceededException":
|
|
3821
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3822
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3823
|
-
default:
|
|
3824
|
-
const parsedBody = parsedOutput.body;
|
|
3825
|
-
return throwDefaultError({
|
|
3826
|
-
output,
|
|
3827
|
-
parsedBody,
|
|
3828
|
-
errorCode
|
|
3829
|
-
});
|
|
3830
|
-
}
|
|
3831
|
-
}, "de_GetEnabledStandardsCommandError");
|
|
3832
2446
|
var de_GetFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3833
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3834
|
-
return
|
|
2448
|
+
return de_CommandError(output, context);
|
|
3835
2449
|
}
|
|
3836
2450
|
const contents = (0, import_smithy_client.map)({
|
|
3837
2451
|
$metadata: deserializeMetadata(output)
|
|
@@ -3846,43 +2460,9 @@ var de_GetFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3846
2460
|
Object.assign(contents, doc);
|
|
3847
2461
|
return contents;
|
|
3848
2462
|
}, "de_GetFindingAggregatorCommand");
|
|
3849
|
-
var de_GetFindingAggregatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3850
|
-
const parsedOutput = {
|
|
3851
|
-
...output,
|
|
3852
|
-
body: await parseErrorBody(output.body, context)
|
|
3853
|
-
};
|
|
3854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3855
|
-
switch (errorCode) {
|
|
3856
|
-
case "AccessDeniedException":
|
|
3857
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
3858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3859
|
-
case "InternalException":
|
|
3860
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3861
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3862
|
-
case "InvalidAccessException":
|
|
3863
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3864
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "InvalidInputException":
|
|
3866
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3867
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "LimitExceededException":
|
|
3869
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3870
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3871
|
-
case "ResourceNotFoundException":
|
|
3872
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
3873
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3874
|
-
default:
|
|
3875
|
-
const parsedBody = parsedOutput.body;
|
|
3876
|
-
return throwDefaultError({
|
|
3877
|
-
output,
|
|
3878
|
-
parsedBody,
|
|
3879
|
-
errorCode
|
|
3880
|
-
});
|
|
3881
|
-
}
|
|
3882
|
-
}, "de_GetFindingAggregatorCommandError");
|
|
3883
2463
|
var de_GetFindingHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3884
2464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3885
|
-
return
|
|
2465
|
+
return de_CommandError(output, context);
|
|
3886
2466
|
}
|
|
3887
2467
|
const contents = (0, import_smithy_client.map)({
|
|
3888
2468
|
$metadata: deserializeMetadata(output)
|
|
@@ -3895,37 +2475,9 @@ var de_GetFindingHistoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3895
2475
|
Object.assign(contents, doc);
|
|
3896
2476
|
return contents;
|
|
3897
2477
|
}, "de_GetFindingHistoryCommand");
|
|
3898
|
-
var de_GetFindingHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3899
|
-
const parsedOutput = {
|
|
3900
|
-
...output,
|
|
3901
|
-
body: await parseErrorBody(output.body, context)
|
|
3902
|
-
};
|
|
3903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3904
|
-
switch (errorCode) {
|
|
3905
|
-
case "InternalException":
|
|
3906
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3907
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "InvalidAccessException":
|
|
3909
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3910
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "InvalidInputException":
|
|
3912
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3913
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3914
|
-
case "LimitExceededException":
|
|
3915
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3916
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3917
|
-
default:
|
|
3918
|
-
const parsedBody = parsedOutput.body;
|
|
3919
|
-
return throwDefaultError({
|
|
3920
|
-
output,
|
|
3921
|
-
parsedBody,
|
|
3922
|
-
errorCode
|
|
3923
|
-
});
|
|
3924
|
-
}
|
|
3925
|
-
}, "de_GetFindingHistoryCommandError");
|
|
3926
2478
|
var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3927
2479
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3928
|
-
return
|
|
2480
|
+
return de_CommandError(output, context);
|
|
3929
2481
|
}
|
|
3930
2482
|
const contents = (0, import_smithy_client.map)({
|
|
3931
2483
|
$metadata: deserializeMetadata(output)
|
|
@@ -3938,37 +2490,9 @@ var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3938
2490
|
Object.assign(contents, doc);
|
|
3939
2491
|
return contents;
|
|
3940
2492
|
}, "de_GetFindingsCommand");
|
|
3941
|
-
var de_GetFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3942
|
-
const parsedOutput = {
|
|
3943
|
-
...output,
|
|
3944
|
-
body: await parseErrorBody(output.body, context)
|
|
3945
|
-
};
|
|
3946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3947
|
-
switch (errorCode) {
|
|
3948
|
-
case "InternalException":
|
|
3949
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3950
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3951
|
-
case "InvalidAccessException":
|
|
3952
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3953
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InvalidInputException":
|
|
3955
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3956
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "LimitExceededException":
|
|
3958
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
3959
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3960
|
-
default:
|
|
3961
|
-
const parsedBody = parsedOutput.body;
|
|
3962
|
-
return throwDefaultError({
|
|
3963
|
-
output,
|
|
3964
|
-
parsedBody,
|
|
3965
|
-
errorCode
|
|
3966
|
-
});
|
|
3967
|
-
}
|
|
3968
|
-
}, "de_GetFindingsCommandError");
|
|
3969
2493
|
var de_GetInsightResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3970
2494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3971
|
-
return
|
|
2495
|
+
return de_CommandError(output, context);
|
|
3972
2496
|
}
|
|
3973
2497
|
const contents = (0, import_smithy_client.map)({
|
|
3974
2498
|
$metadata: deserializeMetadata(output)
|
|
@@ -3980,40 +2504,9 @@ var de_GetInsightResultsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3980
2504
|
Object.assign(contents, doc);
|
|
3981
2505
|
return contents;
|
|
3982
2506
|
}, "de_GetInsightResultsCommand");
|
|
3983
|
-
var de_GetInsightResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3984
|
-
const parsedOutput = {
|
|
3985
|
-
...output,
|
|
3986
|
-
body: await parseErrorBody(output.body, context)
|
|
3987
|
-
};
|
|
3988
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3989
|
-
switch (errorCode) {
|
|
3990
|
-
case "InternalException":
|
|
3991
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
3992
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3993
|
-
case "InvalidAccessException":
|
|
3994
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
3995
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
3996
|
-
case "InvalidInputException":
|
|
3997
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
3998
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
3999
|
-
case "LimitExceededException":
|
|
4000
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4001
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4002
|
-
case "ResourceNotFoundException":
|
|
4003
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4005
|
-
default:
|
|
4006
|
-
const parsedBody = parsedOutput.body;
|
|
4007
|
-
return throwDefaultError({
|
|
4008
|
-
output,
|
|
4009
|
-
parsedBody,
|
|
4010
|
-
errorCode
|
|
4011
|
-
});
|
|
4012
|
-
}
|
|
4013
|
-
}, "de_GetInsightResultsCommandError");
|
|
4014
2507
|
var de_GetInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4015
2508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4016
|
-
return
|
|
2509
|
+
return de_CommandError(output, context);
|
|
4017
2510
|
}
|
|
4018
2511
|
const contents = (0, import_smithy_client.map)({
|
|
4019
2512
|
$metadata: deserializeMetadata(output)
|
|
@@ -4026,40 +2519,9 @@ var de_GetInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4026
2519
|
Object.assign(contents, doc);
|
|
4027
2520
|
return contents;
|
|
4028
2521
|
}, "de_GetInsightsCommand");
|
|
4029
|
-
var de_GetInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4030
|
-
const parsedOutput = {
|
|
4031
|
-
...output,
|
|
4032
|
-
body: await parseErrorBody(output.body, context)
|
|
4033
|
-
};
|
|
4034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4035
|
-
switch (errorCode) {
|
|
4036
|
-
case "InternalException":
|
|
4037
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4038
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4039
|
-
case "InvalidAccessException":
|
|
4040
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4041
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4042
|
-
case "InvalidInputException":
|
|
4043
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4044
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4045
|
-
case "LimitExceededException":
|
|
4046
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4047
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4048
|
-
case "ResourceNotFoundException":
|
|
4049
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4051
|
-
default:
|
|
4052
|
-
const parsedBody = parsedOutput.body;
|
|
4053
|
-
return throwDefaultError({
|
|
4054
|
-
output,
|
|
4055
|
-
parsedBody,
|
|
4056
|
-
errorCode
|
|
4057
|
-
});
|
|
4058
|
-
}
|
|
4059
|
-
}, "de_GetInsightsCommandError");
|
|
4060
2522
|
var de_GetInvitationsCountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4061
2523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4062
|
-
return
|
|
2524
|
+
return de_CommandError(output, context);
|
|
4063
2525
|
}
|
|
4064
2526
|
const contents = (0, import_smithy_client.map)({
|
|
4065
2527
|
$metadata: deserializeMetadata(output)
|
|
@@ -4071,37 +2533,9 @@ var de_GetInvitationsCountCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4071
2533
|
Object.assign(contents, doc);
|
|
4072
2534
|
return contents;
|
|
4073
2535
|
}, "de_GetInvitationsCountCommand");
|
|
4074
|
-
var de_GetInvitationsCountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4075
|
-
const parsedOutput = {
|
|
4076
|
-
...output,
|
|
4077
|
-
body: await parseErrorBody(output.body, context)
|
|
4078
|
-
};
|
|
4079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4080
|
-
switch (errorCode) {
|
|
4081
|
-
case "InternalException":
|
|
4082
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4083
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4084
|
-
case "InvalidAccessException":
|
|
4085
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4086
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4087
|
-
case "InvalidInputException":
|
|
4088
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4089
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4090
|
-
case "LimitExceededException":
|
|
4091
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4092
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4093
|
-
default:
|
|
4094
|
-
const parsedBody = parsedOutput.body;
|
|
4095
|
-
return throwDefaultError({
|
|
4096
|
-
output,
|
|
4097
|
-
parsedBody,
|
|
4098
|
-
errorCode
|
|
4099
|
-
});
|
|
4100
|
-
}
|
|
4101
|
-
}, "de_GetInvitationsCountCommandError");
|
|
4102
2536
|
var de_GetMasterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4103
2537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4104
|
-
return
|
|
2538
|
+
return de_CommandError(output, context);
|
|
4105
2539
|
}
|
|
4106
2540
|
const contents = (0, import_smithy_client.map)({
|
|
4107
2541
|
$metadata: deserializeMetadata(output)
|
|
@@ -4113,40 +2547,9 @@ var de_GetMasterAccountCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4113
2547
|
Object.assign(contents, doc);
|
|
4114
2548
|
return contents;
|
|
4115
2549
|
}, "de_GetMasterAccountCommand");
|
|
4116
|
-
var de_GetMasterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4117
|
-
const parsedOutput = {
|
|
4118
|
-
...output,
|
|
4119
|
-
body: await parseErrorBody(output.body, context)
|
|
4120
|
-
};
|
|
4121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4122
|
-
switch (errorCode) {
|
|
4123
|
-
case "InternalException":
|
|
4124
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4125
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4126
|
-
case "InvalidAccessException":
|
|
4127
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4128
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4129
|
-
case "InvalidInputException":
|
|
4130
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4131
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4132
|
-
case "LimitExceededException":
|
|
4133
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4134
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4135
|
-
case "ResourceNotFoundException":
|
|
4136
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4137
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4138
|
-
default:
|
|
4139
|
-
const parsedBody = parsedOutput.body;
|
|
4140
|
-
return throwDefaultError({
|
|
4141
|
-
output,
|
|
4142
|
-
parsedBody,
|
|
4143
|
-
errorCode
|
|
4144
|
-
});
|
|
4145
|
-
}
|
|
4146
|
-
}, "de_GetMasterAccountCommandError");
|
|
4147
2550
|
var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4148
2551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4149
|
-
return
|
|
2552
|
+
return de_CommandError(output, context);
|
|
4150
2553
|
}
|
|
4151
2554
|
const contents = (0, import_smithy_client.map)({
|
|
4152
2555
|
$metadata: deserializeMetadata(output)
|
|
@@ -4159,40 +2562,9 @@ var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4159
2562
|
Object.assign(contents, doc);
|
|
4160
2563
|
return contents;
|
|
4161
2564
|
}, "de_GetMembersCommand");
|
|
4162
|
-
var de_GetMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4163
|
-
const parsedOutput = {
|
|
4164
|
-
...output,
|
|
4165
|
-
body: await parseErrorBody(output.body, context)
|
|
4166
|
-
};
|
|
4167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4168
|
-
switch (errorCode) {
|
|
4169
|
-
case "InternalException":
|
|
4170
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4171
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4172
|
-
case "InvalidAccessException":
|
|
4173
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4174
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "InvalidInputException":
|
|
4176
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4177
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4178
|
-
case "LimitExceededException":
|
|
4179
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4180
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4181
|
-
case "ResourceNotFoundException":
|
|
4182
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4184
|
-
default:
|
|
4185
|
-
const parsedBody = parsedOutput.body;
|
|
4186
|
-
return throwDefaultError({
|
|
4187
|
-
output,
|
|
4188
|
-
parsedBody,
|
|
4189
|
-
errorCode
|
|
4190
|
-
});
|
|
4191
|
-
}
|
|
4192
|
-
}, "de_GetMembersCommandError");
|
|
4193
2565
|
var de_GetSecurityControlDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4194
2566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4195
|
-
return
|
|
2567
|
+
return de_CommandError(output, context);
|
|
4196
2568
|
}
|
|
4197
2569
|
const contents = (0, import_smithy_client.map)({
|
|
4198
2570
|
$metadata: deserializeMetadata(output)
|
|
@@ -4204,40 +2576,9 @@ var de_GetSecurityControlDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4204
2576
|
Object.assign(contents, doc);
|
|
4205
2577
|
return contents;
|
|
4206
2578
|
}, "de_GetSecurityControlDefinitionCommand");
|
|
4207
|
-
var de_GetSecurityControlDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4208
|
-
const parsedOutput = {
|
|
4209
|
-
...output,
|
|
4210
|
-
body: await parseErrorBody(output.body, context)
|
|
4211
|
-
};
|
|
4212
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4213
|
-
switch (errorCode) {
|
|
4214
|
-
case "InternalException":
|
|
4215
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4216
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "InvalidAccessException":
|
|
4218
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4219
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4220
|
-
case "InvalidInputException":
|
|
4221
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4222
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4223
|
-
case "LimitExceededException":
|
|
4224
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4225
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4226
|
-
case "ResourceNotFoundException":
|
|
4227
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4228
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4229
|
-
default:
|
|
4230
|
-
const parsedBody = parsedOutput.body;
|
|
4231
|
-
return throwDefaultError({
|
|
4232
|
-
output,
|
|
4233
|
-
parsedBody,
|
|
4234
|
-
errorCode
|
|
4235
|
-
});
|
|
4236
|
-
}
|
|
4237
|
-
}, "de_GetSecurityControlDefinitionCommandError");
|
|
4238
2579
|
var de_InviteMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4239
2580
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4240
|
-
return
|
|
2581
|
+
return de_CommandError(output, context);
|
|
4241
2582
|
}
|
|
4242
2583
|
const contents = (0, import_smithy_client.map)({
|
|
4243
2584
|
$metadata: deserializeMetadata(output)
|
|
@@ -4249,40 +2590,9 @@ var de_InviteMembersCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4249
2590
|
Object.assign(contents, doc);
|
|
4250
2591
|
return contents;
|
|
4251
2592
|
}, "de_InviteMembersCommand");
|
|
4252
|
-
var de_InviteMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4253
|
-
const parsedOutput = {
|
|
4254
|
-
...output,
|
|
4255
|
-
body: await parseErrorBody(output.body, context)
|
|
4256
|
-
};
|
|
4257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4258
|
-
switch (errorCode) {
|
|
4259
|
-
case "InternalException":
|
|
4260
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4261
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "InvalidAccessException":
|
|
4263
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4264
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "InvalidInputException":
|
|
4266
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4267
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4268
|
-
case "LimitExceededException":
|
|
4269
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4270
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4271
|
-
case "ResourceNotFoundException":
|
|
4272
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4273
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4274
|
-
default:
|
|
4275
|
-
const parsedBody = parsedOutput.body;
|
|
4276
|
-
return throwDefaultError({
|
|
4277
|
-
output,
|
|
4278
|
-
parsedBody,
|
|
4279
|
-
errorCode
|
|
4280
|
-
});
|
|
4281
|
-
}
|
|
4282
|
-
}, "de_InviteMembersCommandError");
|
|
4283
2593
|
var de_ListAutomationRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4284
2594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4285
|
-
return
|
|
2595
|
+
return de_CommandError(output, context);
|
|
4286
2596
|
}
|
|
4287
2597
|
const contents = (0, import_smithy_client.map)({
|
|
4288
2598
|
$metadata: deserializeMetadata(output)
|
|
@@ -4295,40 +2605,9 @@ var de_ListAutomationRulesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4295
2605
|
Object.assign(contents, doc);
|
|
4296
2606
|
return contents;
|
|
4297
2607
|
}, "de_ListAutomationRulesCommand");
|
|
4298
|
-
var de_ListAutomationRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4299
|
-
const parsedOutput = {
|
|
4300
|
-
...output,
|
|
4301
|
-
body: await parseErrorBody(output.body, context)
|
|
4302
|
-
};
|
|
4303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4304
|
-
switch (errorCode) {
|
|
4305
|
-
case "AccessDeniedException":
|
|
4306
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4308
|
-
case "InternalException":
|
|
4309
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4310
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4311
|
-
case "InvalidAccessException":
|
|
4312
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4313
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4314
|
-
case "InvalidInputException":
|
|
4315
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4316
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4317
|
-
case "LimitExceededException":
|
|
4318
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4319
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4320
|
-
default:
|
|
4321
|
-
const parsedBody = parsedOutput.body;
|
|
4322
|
-
return throwDefaultError({
|
|
4323
|
-
output,
|
|
4324
|
-
parsedBody,
|
|
4325
|
-
errorCode
|
|
4326
|
-
});
|
|
4327
|
-
}
|
|
4328
|
-
}, "de_ListAutomationRulesCommandError");
|
|
4329
2608
|
var de_ListConfigurationPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4330
2609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4331
|
-
return
|
|
2610
|
+
return de_CommandError(output, context);
|
|
4332
2611
|
}
|
|
4333
2612
|
const contents = (0, import_smithy_client.map)({
|
|
4334
2613
|
$metadata: deserializeMetadata(output)
|
|
@@ -4341,40 +2620,9 @@ var de_ListConfigurationPoliciesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4341
2620
|
Object.assign(contents, doc);
|
|
4342
2621
|
return contents;
|
|
4343
2622
|
}, "de_ListConfigurationPoliciesCommand");
|
|
4344
|
-
var de_ListConfigurationPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4345
|
-
const parsedOutput = {
|
|
4346
|
-
...output,
|
|
4347
|
-
body: await parseErrorBody(output.body, context)
|
|
4348
|
-
};
|
|
4349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4350
|
-
switch (errorCode) {
|
|
4351
|
-
case "AccessDeniedException":
|
|
4352
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4353
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4354
|
-
case "InternalException":
|
|
4355
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4356
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "InvalidAccessException":
|
|
4358
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4359
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4360
|
-
case "InvalidInputException":
|
|
4361
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4362
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4363
|
-
case "LimitExceededException":
|
|
4364
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4365
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4366
|
-
default:
|
|
4367
|
-
const parsedBody = parsedOutput.body;
|
|
4368
|
-
return throwDefaultError({
|
|
4369
|
-
output,
|
|
4370
|
-
parsedBody,
|
|
4371
|
-
errorCode
|
|
4372
|
-
});
|
|
4373
|
-
}
|
|
4374
|
-
}, "de_ListConfigurationPoliciesCommandError");
|
|
4375
2623
|
var de_ListConfigurationPolicyAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4376
2624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4377
|
-
return
|
|
2625
|
+
return de_CommandError(output, context);
|
|
4378
2626
|
}
|
|
4379
2627
|
const contents = (0, import_smithy_client.map)({
|
|
4380
2628
|
$metadata: deserializeMetadata(output)
|
|
@@ -4387,40 +2635,9 @@ var de_ListConfigurationPolicyAssociationsCommand = /* @__PURE__ */ __name(async
|
|
|
4387
2635
|
Object.assign(contents, doc);
|
|
4388
2636
|
return contents;
|
|
4389
2637
|
}, "de_ListConfigurationPolicyAssociationsCommand");
|
|
4390
|
-
var de_ListConfigurationPolicyAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4391
|
-
const parsedOutput = {
|
|
4392
|
-
...output,
|
|
4393
|
-
body: await parseErrorBody(output.body, context)
|
|
4394
|
-
};
|
|
4395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4396
|
-
switch (errorCode) {
|
|
4397
|
-
case "AccessDeniedException":
|
|
4398
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4400
|
-
case "InternalException":
|
|
4401
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4402
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4403
|
-
case "InvalidAccessException":
|
|
4404
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4405
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4406
|
-
case "InvalidInputException":
|
|
4407
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4408
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4409
|
-
case "LimitExceededException":
|
|
4410
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4411
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4412
|
-
default:
|
|
4413
|
-
const parsedBody = parsedOutput.body;
|
|
4414
|
-
return throwDefaultError({
|
|
4415
|
-
output,
|
|
4416
|
-
parsedBody,
|
|
4417
|
-
errorCode
|
|
4418
|
-
});
|
|
4419
|
-
}
|
|
4420
|
-
}, "de_ListConfigurationPolicyAssociationsCommandError");
|
|
4421
2638
|
var de_ListEnabledProductsForImportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4422
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4423
|
-
return
|
|
2640
|
+
return de_CommandError(output, context);
|
|
4424
2641
|
}
|
|
4425
2642
|
const contents = (0, import_smithy_client.map)({
|
|
4426
2643
|
$metadata: deserializeMetadata(output)
|
|
@@ -4433,34 +2650,9 @@ var de_ListEnabledProductsForImportCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4433
2650
|
Object.assign(contents, doc);
|
|
4434
2651
|
return contents;
|
|
4435
2652
|
}, "de_ListEnabledProductsForImportCommand");
|
|
4436
|
-
var de_ListEnabledProductsForImportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4437
|
-
const parsedOutput = {
|
|
4438
|
-
...output,
|
|
4439
|
-
body: await parseErrorBody(output.body, context)
|
|
4440
|
-
};
|
|
4441
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4442
|
-
switch (errorCode) {
|
|
4443
|
-
case "InternalException":
|
|
4444
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4445
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4446
|
-
case "InvalidAccessException":
|
|
4447
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4448
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4449
|
-
case "LimitExceededException":
|
|
4450
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4451
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4452
|
-
default:
|
|
4453
|
-
const parsedBody = parsedOutput.body;
|
|
4454
|
-
return throwDefaultError({
|
|
4455
|
-
output,
|
|
4456
|
-
parsedBody,
|
|
4457
|
-
errorCode
|
|
4458
|
-
});
|
|
4459
|
-
}
|
|
4460
|
-
}, "de_ListEnabledProductsForImportCommandError");
|
|
4461
2653
|
var de_ListFindingAggregatorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4462
2654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4463
|
-
return
|
|
2655
|
+
return de_CommandError(output, context);
|
|
4464
2656
|
}
|
|
4465
2657
|
const contents = (0, import_smithy_client.map)({
|
|
4466
2658
|
$metadata: deserializeMetadata(output)
|
|
@@ -4473,40 +2665,9 @@ var de_ListFindingAggregatorsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4473
2665
|
Object.assign(contents, doc);
|
|
4474
2666
|
return contents;
|
|
4475
2667
|
}, "de_ListFindingAggregatorsCommand");
|
|
4476
|
-
var de_ListFindingAggregatorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4477
|
-
const parsedOutput = {
|
|
4478
|
-
...output,
|
|
4479
|
-
body: await parseErrorBody(output.body, context)
|
|
4480
|
-
};
|
|
4481
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4482
|
-
switch (errorCode) {
|
|
4483
|
-
case "AccessDeniedException":
|
|
4484
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4485
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4486
|
-
case "InternalException":
|
|
4487
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4488
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4489
|
-
case "InvalidAccessException":
|
|
4490
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4491
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4492
|
-
case "InvalidInputException":
|
|
4493
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4494
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4495
|
-
case "LimitExceededException":
|
|
4496
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4497
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4498
|
-
default:
|
|
4499
|
-
const parsedBody = parsedOutput.body;
|
|
4500
|
-
return throwDefaultError({
|
|
4501
|
-
output,
|
|
4502
|
-
parsedBody,
|
|
4503
|
-
errorCode
|
|
4504
|
-
});
|
|
4505
|
-
}
|
|
4506
|
-
}, "de_ListFindingAggregatorsCommandError");
|
|
4507
2668
|
var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4508
2669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4509
|
-
return
|
|
2670
|
+
return de_CommandError(output, context);
|
|
4510
2671
|
}
|
|
4511
2672
|
const contents = (0, import_smithy_client.map)({
|
|
4512
2673
|
$metadata: deserializeMetadata(output)
|
|
@@ -4519,37 +2680,9 @@ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4519
2680
|
Object.assign(contents, doc);
|
|
4520
2681
|
return contents;
|
|
4521
2682
|
}, "de_ListInvitationsCommand");
|
|
4522
|
-
var de_ListInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4523
|
-
const parsedOutput = {
|
|
4524
|
-
...output,
|
|
4525
|
-
body: await parseErrorBody(output.body, context)
|
|
4526
|
-
};
|
|
4527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4528
|
-
switch (errorCode) {
|
|
4529
|
-
case "InternalException":
|
|
4530
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4531
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4532
|
-
case "InvalidAccessException":
|
|
4533
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4534
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4535
|
-
case "InvalidInputException":
|
|
4536
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4537
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4538
|
-
case "LimitExceededException":
|
|
4539
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4540
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4541
|
-
default:
|
|
4542
|
-
const parsedBody = parsedOutput.body;
|
|
4543
|
-
return throwDefaultError({
|
|
4544
|
-
output,
|
|
4545
|
-
parsedBody,
|
|
4546
|
-
errorCode
|
|
4547
|
-
});
|
|
4548
|
-
}
|
|
4549
|
-
}, "de_ListInvitationsCommandError");
|
|
4550
2683
|
var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4551
2684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4552
|
-
return
|
|
2685
|
+
return de_CommandError(output, context);
|
|
4553
2686
|
}
|
|
4554
2687
|
const contents = (0, import_smithy_client.map)({
|
|
4555
2688
|
$metadata: deserializeMetadata(output)
|
|
@@ -4562,37 +2695,9 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4562
2695
|
Object.assign(contents, doc);
|
|
4563
2696
|
return contents;
|
|
4564
2697
|
}, "de_ListMembersCommand");
|
|
4565
|
-
var de_ListMembersCommandError = /* @__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 "InternalException":
|
|
4573
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4574
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4575
|
-
case "InvalidAccessException":
|
|
4576
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4577
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4578
|
-
case "InvalidInputException":
|
|
4579
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4580
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4581
|
-
case "LimitExceededException":
|
|
4582
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4583
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4584
|
-
default:
|
|
4585
|
-
const parsedBody = parsedOutput.body;
|
|
4586
|
-
return throwDefaultError({
|
|
4587
|
-
output,
|
|
4588
|
-
parsedBody,
|
|
4589
|
-
errorCode
|
|
4590
|
-
});
|
|
4591
|
-
}
|
|
4592
|
-
}, "de_ListMembersCommandError");
|
|
4593
2698
|
var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4594
2699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4595
|
-
return
|
|
2700
|
+
return de_CommandError(output, context);
|
|
4596
2701
|
}
|
|
4597
2702
|
const contents = (0, import_smithy_client.map)({
|
|
4598
2703
|
$metadata: deserializeMetadata(output)
|
|
@@ -4605,37 +2710,9 @@ var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4605
2710
|
Object.assign(contents, doc);
|
|
4606
2711
|
return contents;
|
|
4607
2712
|
}, "de_ListOrganizationAdminAccountsCommand");
|
|
4608
|
-
var de_ListOrganizationAdminAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4609
|
-
const parsedOutput = {
|
|
4610
|
-
...output,
|
|
4611
|
-
body: await parseErrorBody(output.body, context)
|
|
4612
|
-
};
|
|
4613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4614
|
-
switch (errorCode) {
|
|
4615
|
-
case "InternalException":
|
|
4616
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4617
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4618
|
-
case "InvalidAccessException":
|
|
4619
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4620
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4621
|
-
case "InvalidInputException":
|
|
4622
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4623
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4624
|
-
case "LimitExceededException":
|
|
4625
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4626
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4627
|
-
default:
|
|
4628
|
-
const parsedBody = parsedOutput.body;
|
|
4629
|
-
return throwDefaultError({
|
|
4630
|
-
output,
|
|
4631
|
-
parsedBody,
|
|
4632
|
-
errorCode
|
|
4633
|
-
});
|
|
4634
|
-
}
|
|
4635
|
-
}, "de_ListOrganizationAdminAccountsCommandError");
|
|
4636
2713
|
var de_ListSecurityControlDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4637
2714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4638
|
-
return
|
|
2715
|
+
return de_CommandError(output, context);
|
|
4639
2716
|
}
|
|
4640
2717
|
const contents = (0, import_smithy_client.map)({
|
|
4641
2718
|
$metadata: deserializeMetadata(output)
|
|
@@ -4648,37 +2725,9 @@ var de_ListSecurityControlDefinitionsCommand = /* @__PURE__ */ __name(async (out
|
|
|
4648
2725
|
Object.assign(contents, doc);
|
|
4649
2726
|
return contents;
|
|
4650
2727
|
}, "de_ListSecurityControlDefinitionsCommand");
|
|
4651
|
-
var de_ListSecurityControlDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4652
|
-
const parsedOutput = {
|
|
4653
|
-
...output,
|
|
4654
|
-
body: await parseErrorBody(output.body, context)
|
|
4655
|
-
};
|
|
4656
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4657
|
-
switch (errorCode) {
|
|
4658
|
-
case "InternalException":
|
|
4659
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4660
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4661
|
-
case "InvalidAccessException":
|
|
4662
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4663
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4664
|
-
case "InvalidInputException":
|
|
4665
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4666
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4667
|
-
case "LimitExceededException":
|
|
4668
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4669
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4670
|
-
default:
|
|
4671
|
-
const parsedBody = parsedOutput.body;
|
|
4672
|
-
return throwDefaultError({
|
|
4673
|
-
output,
|
|
4674
|
-
parsedBody,
|
|
4675
|
-
errorCode
|
|
4676
|
-
});
|
|
4677
|
-
}
|
|
4678
|
-
}, "de_ListSecurityControlDefinitionsCommandError");
|
|
4679
2728
|
var de_ListStandardsControlAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4680
2729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4681
|
-
return
|
|
2730
|
+
return de_CommandError(output, context);
|
|
4682
2731
|
}
|
|
4683
2732
|
const contents = (0, import_smithy_client.map)({
|
|
4684
2733
|
$metadata: deserializeMetadata(output)
|
|
@@ -4691,37 +2740,9 @@ var de_ListStandardsControlAssociationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
4691
2740
|
Object.assign(contents, doc);
|
|
4692
2741
|
return contents;
|
|
4693
2742
|
}, "de_ListStandardsControlAssociationsCommand");
|
|
4694
|
-
var de_ListStandardsControlAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4695
|
-
const parsedOutput = {
|
|
4696
|
-
...output,
|
|
4697
|
-
body: await parseErrorBody(output.body, context)
|
|
4698
|
-
};
|
|
4699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4700
|
-
switch (errorCode) {
|
|
4701
|
-
case "InternalException":
|
|
4702
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4703
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4704
|
-
case "InvalidAccessException":
|
|
4705
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4706
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4707
|
-
case "InvalidInputException":
|
|
4708
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4709
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4710
|
-
case "LimitExceededException":
|
|
4711
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4712
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4713
|
-
default:
|
|
4714
|
-
const parsedBody = parsedOutput.body;
|
|
4715
|
-
return throwDefaultError({
|
|
4716
|
-
output,
|
|
4717
|
-
parsedBody,
|
|
4718
|
-
errorCode
|
|
4719
|
-
});
|
|
4720
|
-
}
|
|
4721
|
-
}, "de_ListStandardsControlAssociationsCommandError");
|
|
4722
2743
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4723
2744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4724
|
-
return
|
|
2745
|
+
return de_CommandError(output, context);
|
|
4725
2746
|
}
|
|
4726
2747
|
const contents = (0, import_smithy_client.map)({
|
|
4727
2748
|
$metadata: deserializeMetadata(output)
|
|
@@ -4733,34 +2754,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4733
2754
|
Object.assign(contents, doc);
|
|
4734
2755
|
return contents;
|
|
4735
2756
|
}, "de_ListTagsForResourceCommand");
|
|
4736
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4737
|
-
const parsedOutput = {
|
|
4738
|
-
...output,
|
|
4739
|
-
body: await parseErrorBody(output.body, context)
|
|
4740
|
-
};
|
|
4741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4742
|
-
switch (errorCode) {
|
|
4743
|
-
case "InternalException":
|
|
4744
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4745
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4746
|
-
case "InvalidInputException":
|
|
4747
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4748
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4749
|
-
case "ResourceNotFoundException":
|
|
4750
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4751
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4752
|
-
default:
|
|
4753
|
-
const parsedBody = parsedOutput.body;
|
|
4754
|
-
return throwDefaultError({
|
|
4755
|
-
output,
|
|
4756
|
-
parsedBody,
|
|
4757
|
-
errorCode
|
|
4758
|
-
});
|
|
4759
|
-
}
|
|
4760
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4761
2757
|
var de_StartConfigurationPolicyAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4762
2758
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4763
|
-
return
|
|
2759
|
+
return de_CommandError(output, context);
|
|
4764
2760
|
}
|
|
4765
2761
|
const contents = (0, import_smithy_client.map)({
|
|
4766
2762
|
$metadata: deserializeMetadata(output)
|
|
@@ -4778,43 +2774,9 @@ var de_StartConfigurationPolicyAssociationCommand = /* @__PURE__ */ __name(async
|
|
|
4778
2774
|
Object.assign(contents, doc);
|
|
4779
2775
|
return contents;
|
|
4780
2776
|
}, "de_StartConfigurationPolicyAssociationCommand");
|
|
4781
|
-
var de_StartConfigurationPolicyAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4782
|
-
const parsedOutput = {
|
|
4783
|
-
...output,
|
|
4784
|
-
body: await parseErrorBody(output.body, context)
|
|
4785
|
-
};
|
|
4786
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4787
|
-
switch (errorCode) {
|
|
4788
|
-
case "AccessDeniedException":
|
|
4789
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4790
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4791
|
-
case "InternalException":
|
|
4792
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4793
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4794
|
-
case "InvalidAccessException":
|
|
4795
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4796
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4797
|
-
case "InvalidInputException":
|
|
4798
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4799
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4800
|
-
case "LimitExceededException":
|
|
4801
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4802
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4803
|
-
case "ResourceNotFoundException":
|
|
4804
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4805
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4806
|
-
default:
|
|
4807
|
-
const parsedBody = parsedOutput.body;
|
|
4808
|
-
return throwDefaultError({
|
|
4809
|
-
output,
|
|
4810
|
-
parsedBody,
|
|
4811
|
-
errorCode
|
|
4812
|
-
});
|
|
4813
|
-
}
|
|
4814
|
-
}, "de_StartConfigurationPolicyAssociationCommandError");
|
|
4815
2777
|
var de_StartConfigurationPolicyDisassociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4816
2778
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4817
|
-
return
|
|
2779
|
+
return de_CommandError(output, context);
|
|
4818
2780
|
}
|
|
4819
2781
|
const contents = (0, import_smithy_client.map)({
|
|
4820
2782
|
$metadata: deserializeMetadata(output)
|
|
@@ -4822,43 +2784,9 @@ var de_StartConfigurationPolicyDisassociationCommand = /* @__PURE__ */ __name(as
|
|
|
4822
2784
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4823
2785
|
return contents;
|
|
4824
2786
|
}, "de_StartConfigurationPolicyDisassociationCommand");
|
|
4825
|
-
var de_StartConfigurationPolicyDisassociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4826
|
-
const parsedOutput = {
|
|
4827
|
-
...output,
|
|
4828
|
-
body: await parseErrorBody(output.body, context)
|
|
4829
|
-
};
|
|
4830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4831
|
-
switch (errorCode) {
|
|
4832
|
-
case "AccessDeniedException":
|
|
4833
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4834
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4835
|
-
case "InternalException":
|
|
4836
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4837
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4838
|
-
case "InvalidAccessException":
|
|
4839
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4840
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4841
|
-
case "InvalidInputException":
|
|
4842
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4843
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4844
|
-
case "LimitExceededException":
|
|
4845
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
4846
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4847
|
-
case "ResourceNotFoundException":
|
|
4848
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4849
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4850
|
-
default:
|
|
4851
|
-
const parsedBody = parsedOutput.body;
|
|
4852
|
-
return throwDefaultError({
|
|
4853
|
-
output,
|
|
4854
|
-
parsedBody,
|
|
4855
|
-
errorCode
|
|
4856
|
-
});
|
|
4857
|
-
}
|
|
4858
|
-
}, "de_StartConfigurationPolicyDisassociationCommandError");
|
|
4859
2787
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4860
2788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4861
|
-
return
|
|
2789
|
+
return de_CommandError(output, context);
|
|
4862
2790
|
}
|
|
4863
2791
|
const contents = (0, import_smithy_client.map)({
|
|
4864
2792
|
$metadata: deserializeMetadata(output)
|
|
@@ -4866,107 +2794,29 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4866
2794
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4867
2795
|
return contents;
|
|
4868
2796
|
}, "de_TagResourceCommand");
|
|
4869
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4870
|
-
const parsedOutput = {
|
|
4871
|
-
...output,
|
|
4872
|
-
body: await parseErrorBody(output.body, context)
|
|
4873
|
-
};
|
|
4874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4875
|
-
switch (errorCode) {
|
|
4876
|
-
case "InternalException":
|
|
4877
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4878
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4879
|
-
case "InvalidInputException":
|
|
4880
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4881
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4882
|
-
case "ResourceNotFoundException":
|
|
4883
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4884
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4885
|
-
default:
|
|
4886
|
-
const parsedBody = parsedOutput.body;
|
|
4887
|
-
return throwDefaultError({
|
|
4888
|
-
output,
|
|
4889
|
-
parsedBody,
|
|
4890
|
-
errorCode
|
|
4891
|
-
});
|
|
4892
|
-
}
|
|
4893
|
-
}, "de_TagResourceCommandError");
|
|
4894
2797
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4895
2798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4896
|
-
return
|
|
2799
|
+
return de_CommandError(output, context);
|
|
4897
2800
|
}
|
|
4898
|
-
const contents = (0, import_smithy_client.map)({
|
|
4899
|
-
$metadata: deserializeMetadata(output)
|
|
4900
|
-
});
|
|
4901
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4902
|
-
return contents;
|
|
4903
|
-
}, "de_UntagResourceCommand");
|
|
4904
|
-
var
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
body: await parseErrorBody(output.body, context)
|
|
4908
|
-
};
|
|
4909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4910
|
-
switch (errorCode) {
|
|
4911
|
-
case "InternalException":
|
|
4912
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4913
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4914
|
-
case "InvalidInputException":
|
|
4915
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4916
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4917
|
-
case "ResourceNotFoundException":
|
|
4918
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4919
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4920
|
-
default:
|
|
4921
|
-
const parsedBody = parsedOutput.body;
|
|
4922
|
-
return throwDefaultError({
|
|
4923
|
-
output,
|
|
4924
|
-
parsedBody,
|
|
4925
|
-
errorCode
|
|
4926
|
-
});
|
|
4927
|
-
}
|
|
4928
|
-
}, "de_UntagResourceCommandError");
|
|
4929
|
-
var de_UpdateActionTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4930
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4931
|
-
return de_UpdateActionTargetCommandError(output, context);
|
|
4932
|
-
}
|
|
4933
|
-
const contents = (0, import_smithy_client.map)({
|
|
4934
|
-
$metadata: deserializeMetadata(output)
|
|
4935
|
-
});
|
|
4936
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4937
|
-
return contents;
|
|
4938
|
-
}, "de_UpdateActionTargetCommand");
|
|
4939
|
-
var de_UpdateActionTargetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4940
|
-
const parsedOutput = {
|
|
4941
|
-
...output,
|
|
4942
|
-
body: await parseErrorBody(output.body, context)
|
|
4943
|
-
};
|
|
4944
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4945
|
-
switch (errorCode) {
|
|
4946
|
-
case "InternalException":
|
|
4947
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4948
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4949
|
-
case "InvalidAccessException":
|
|
4950
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
4951
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
4952
|
-
case "InvalidInputException":
|
|
4953
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
4954
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
4955
|
-
case "ResourceNotFoundException":
|
|
4956
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
4957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4958
|
-
default:
|
|
4959
|
-
const parsedBody = parsedOutput.body;
|
|
4960
|
-
return throwDefaultError({
|
|
4961
|
-
output,
|
|
4962
|
-
parsedBody,
|
|
4963
|
-
errorCode
|
|
4964
|
-
});
|
|
2801
|
+
const contents = (0, import_smithy_client.map)({
|
|
2802
|
+
$metadata: deserializeMetadata(output)
|
|
2803
|
+
});
|
|
2804
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2805
|
+
return contents;
|
|
2806
|
+
}, "de_UntagResourceCommand");
|
|
2807
|
+
var de_UpdateActionTargetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2809
|
+
return de_CommandError(output, context);
|
|
4965
2810
|
}
|
|
4966
|
-
|
|
2811
|
+
const contents = (0, import_smithy_client.map)({
|
|
2812
|
+
$metadata: deserializeMetadata(output)
|
|
2813
|
+
});
|
|
2814
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2815
|
+
return contents;
|
|
2816
|
+
}, "de_UpdateActionTargetCommand");
|
|
4967
2817
|
var de_UpdateConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4968
2818
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4969
|
-
return
|
|
2819
|
+
return de_CommandError(output, context);
|
|
4970
2820
|
}
|
|
4971
2821
|
const contents = (0, import_smithy_client.map)({
|
|
4972
2822
|
$metadata: deserializeMetadata(output)
|
|
@@ -4984,46 +2834,9 @@ var de_UpdateConfigurationPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4984
2834
|
Object.assign(contents, doc);
|
|
4985
2835
|
return contents;
|
|
4986
2836
|
}, "de_UpdateConfigurationPolicyCommand");
|
|
4987
|
-
var de_UpdateConfigurationPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4988
|
-
const parsedOutput = {
|
|
4989
|
-
...output,
|
|
4990
|
-
body: await parseErrorBody(output.body, context)
|
|
4991
|
-
};
|
|
4992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4993
|
-
switch (errorCode) {
|
|
4994
|
-
case "AccessDeniedException":
|
|
4995
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
4996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4997
|
-
case "InternalException":
|
|
4998
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
4999
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5000
|
-
case "InvalidAccessException":
|
|
5001
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5002
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5003
|
-
case "InvalidInputException":
|
|
5004
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5005
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5006
|
-
case "LimitExceededException":
|
|
5007
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5008
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5009
|
-
case "ResourceConflictException":
|
|
5010
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
5011
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5012
|
-
case "ResourceNotFoundException":
|
|
5013
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5014
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5015
|
-
default:
|
|
5016
|
-
const parsedBody = parsedOutput.body;
|
|
5017
|
-
return throwDefaultError({
|
|
5018
|
-
output,
|
|
5019
|
-
parsedBody,
|
|
5020
|
-
errorCode
|
|
5021
|
-
});
|
|
5022
|
-
}
|
|
5023
|
-
}, "de_UpdateConfigurationPolicyCommandError");
|
|
5024
2837
|
var de_UpdateFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5025
2838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5026
|
-
return
|
|
2839
|
+
return de_CommandError(output, context);
|
|
5027
2840
|
}
|
|
5028
2841
|
const contents = (0, import_smithy_client.map)({
|
|
5029
2842
|
$metadata: deserializeMetadata(output)
|
|
@@ -5038,43 +2851,9 @@ var de_UpdateFindingAggregatorCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
5038
2851
|
Object.assign(contents, doc);
|
|
5039
2852
|
return contents;
|
|
5040
2853
|
}, "de_UpdateFindingAggregatorCommand");
|
|
5041
|
-
var de_UpdateFindingAggregatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5042
|
-
const parsedOutput = {
|
|
5043
|
-
...output,
|
|
5044
|
-
body: await parseErrorBody(output.body, context)
|
|
5045
|
-
};
|
|
5046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5047
|
-
switch (errorCode) {
|
|
5048
|
-
case "AccessDeniedException":
|
|
5049
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "InternalException":
|
|
5052
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5053
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5054
|
-
case "InvalidAccessException":
|
|
5055
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5056
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5057
|
-
case "InvalidInputException":
|
|
5058
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5059
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5060
|
-
case "LimitExceededException":
|
|
5061
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5062
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5063
|
-
case "ResourceNotFoundException":
|
|
5064
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5065
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5066
|
-
default:
|
|
5067
|
-
const parsedBody = parsedOutput.body;
|
|
5068
|
-
return throwDefaultError({
|
|
5069
|
-
output,
|
|
5070
|
-
parsedBody,
|
|
5071
|
-
errorCode
|
|
5072
|
-
});
|
|
5073
|
-
}
|
|
5074
|
-
}, "de_UpdateFindingAggregatorCommandError");
|
|
5075
2854
|
var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5076
2855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5077
|
-
return
|
|
2856
|
+
return de_CommandError(output, context);
|
|
5078
2857
|
}
|
|
5079
2858
|
const contents = (0, import_smithy_client.map)({
|
|
5080
2859
|
$metadata: deserializeMetadata(output)
|
|
@@ -5082,40 +2861,9 @@ var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5082
2861
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5083
2862
|
return contents;
|
|
5084
2863
|
}, "de_UpdateFindingsCommand");
|
|
5085
|
-
var de_UpdateFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5086
|
-
const parsedOutput = {
|
|
5087
|
-
...output,
|
|
5088
|
-
body: await parseErrorBody(output.body, context)
|
|
5089
|
-
};
|
|
5090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5091
|
-
switch (errorCode) {
|
|
5092
|
-
case "InternalException":
|
|
5093
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5094
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5095
|
-
case "InvalidAccessException":
|
|
5096
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5097
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5098
|
-
case "InvalidInputException":
|
|
5099
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5100
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5101
|
-
case "LimitExceededException":
|
|
5102
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5103
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5104
|
-
case "ResourceNotFoundException":
|
|
5105
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5106
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5107
|
-
default:
|
|
5108
|
-
const parsedBody = parsedOutput.body;
|
|
5109
|
-
return throwDefaultError({
|
|
5110
|
-
output,
|
|
5111
|
-
parsedBody,
|
|
5112
|
-
errorCode
|
|
5113
|
-
});
|
|
5114
|
-
}
|
|
5115
|
-
}, "de_UpdateFindingsCommandError");
|
|
5116
2864
|
var de_UpdateInsightCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5117
2865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5118
|
-
return
|
|
2866
|
+
return de_CommandError(output, context);
|
|
5119
2867
|
}
|
|
5120
2868
|
const contents = (0, import_smithy_client.map)({
|
|
5121
2869
|
$metadata: deserializeMetadata(output)
|
|
@@ -5123,40 +2871,9 @@ var de_UpdateInsightCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5123
2871
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5124
2872
|
return contents;
|
|
5125
2873
|
}, "de_UpdateInsightCommand");
|
|
5126
|
-
var de_UpdateInsightCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5127
|
-
const parsedOutput = {
|
|
5128
|
-
...output,
|
|
5129
|
-
body: await parseErrorBody(output.body, context)
|
|
5130
|
-
};
|
|
5131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5132
|
-
switch (errorCode) {
|
|
5133
|
-
case "InternalException":
|
|
5134
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5135
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5136
|
-
case "InvalidAccessException":
|
|
5137
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5138
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5139
|
-
case "InvalidInputException":
|
|
5140
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5141
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5142
|
-
case "LimitExceededException":
|
|
5143
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5144
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5145
|
-
case "ResourceNotFoundException":
|
|
5146
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5147
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5148
|
-
default:
|
|
5149
|
-
const parsedBody = parsedOutput.body;
|
|
5150
|
-
return throwDefaultError({
|
|
5151
|
-
output,
|
|
5152
|
-
parsedBody,
|
|
5153
|
-
errorCode
|
|
5154
|
-
});
|
|
5155
|
-
}
|
|
5156
|
-
}, "de_UpdateInsightCommandError");
|
|
5157
2874
|
var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5158
2875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5159
|
-
return
|
|
2876
|
+
return de_CommandError(output, context);
|
|
5160
2877
|
}
|
|
5161
2878
|
const contents = (0, import_smithy_client.map)({
|
|
5162
2879
|
$metadata: deserializeMetadata(output)
|
|
@@ -5164,46 +2881,9 @@ var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5164
2881
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5165
2882
|
return contents;
|
|
5166
2883
|
}, "de_UpdateOrganizationConfigurationCommand");
|
|
5167
|
-
var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5168
|
-
const parsedOutput = {
|
|
5169
|
-
...output,
|
|
5170
|
-
body: await parseErrorBody(output.body, context)
|
|
5171
|
-
};
|
|
5172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5173
|
-
switch (errorCode) {
|
|
5174
|
-
case "AccessDeniedException":
|
|
5175
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5176
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5177
|
-
case "InternalException":
|
|
5178
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5179
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5180
|
-
case "InvalidAccessException":
|
|
5181
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5182
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5183
|
-
case "InvalidInputException":
|
|
5184
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5185
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5186
|
-
case "LimitExceededException":
|
|
5187
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5188
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5189
|
-
case "ResourceConflictException":
|
|
5190
|
-
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
5191
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
5192
|
-
case "ResourceNotFoundException":
|
|
5193
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5194
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5195
|
-
default:
|
|
5196
|
-
const parsedBody = parsedOutput.body;
|
|
5197
|
-
return throwDefaultError({
|
|
5198
|
-
output,
|
|
5199
|
-
parsedBody,
|
|
5200
|
-
errorCode
|
|
5201
|
-
});
|
|
5202
|
-
}
|
|
5203
|
-
}, "de_UpdateOrganizationConfigurationCommandError");
|
|
5204
2884
|
var de_UpdateSecurityControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5205
2885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5206
|
-
return
|
|
2886
|
+
return de_CommandError(output, context);
|
|
5207
2887
|
}
|
|
5208
2888
|
const contents = (0, import_smithy_client.map)({
|
|
5209
2889
|
$metadata: deserializeMetadata(output)
|
|
@@ -5211,46 +2891,9 @@ var de_UpdateSecurityControlCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
5211
2891
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5212
2892
|
return contents;
|
|
5213
2893
|
}, "de_UpdateSecurityControlCommand");
|
|
5214
|
-
var de_UpdateSecurityControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5215
|
-
const parsedOutput = {
|
|
5216
|
-
...output,
|
|
5217
|
-
body: await parseErrorBody(output.body, context)
|
|
5218
|
-
};
|
|
5219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5220
|
-
switch (errorCode) {
|
|
5221
|
-
case "AccessDeniedException":
|
|
5222
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5223
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5224
|
-
case "InternalException":
|
|
5225
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5226
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5227
|
-
case "InvalidAccessException":
|
|
5228
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5229
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5230
|
-
case "InvalidInputException":
|
|
5231
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5232
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5233
|
-
case "LimitExceededException":
|
|
5234
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5235
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5236
|
-
case "ResourceInUseException":
|
|
5237
|
-
case "com.amazonaws.securityhub#ResourceInUseException":
|
|
5238
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5239
|
-
case "ResourceNotFoundException":
|
|
5240
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5242
|
-
default:
|
|
5243
|
-
const parsedBody = parsedOutput.body;
|
|
5244
|
-
return throwDefaultError({
|
|
5245
|
-
output,
|
|
5246
|
-
parsedBody,
|
|
5247
|
-
errorCode
|
|
5248
|
-
});
|
|
5249
|
-
}
|
|
5250
|
-
}, "de_UpdateSecurityControlCommandError");
|
|
5251
2894
|
var de_UpdateSecurityHubConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5252
2895
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5253
|
-
return
|
|
2896
|
+
return de_CommandError(output, context);
|
|
5254
2897
|
}
|
|
5255
2898
|
const contents = (0, import_smithy_client.map)({
|
|
5256
2899
|
$metadata: deserializeMetadata(output)
|
|
@@ -5258,43 +2901,9 @@ var de_UpdateSecurityHubConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
5258
2901
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5259
2902
|
return contents;
|
|
5260
2903
|
}, "de_UpdateSecurityHubConfigurationCommand");
|
|
5261
|
-
var de_UpdateSecurityHubConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5262
|
-
const parsedOutput = {
|
|
5263
|
-
...output,
|
|
5264
|
-
body: await parseErrorBody(output.body, context)
|
|
5265
|
-
};
|
|
5266
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5267
|
-
switch (errorCode) {
|
|
5268
|
-
case "AccessDeniedException":
|
|
5269
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5270
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5271
|
-
case "InternalException":
|
|
5272
|
-
case "com.amazonaws.securityhub#InternalException":
|
|
5273
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
5274
|
-
case "InvalidAccessException":
|
|
5275
|
-
case "com.amazonaws.securityhub#InvalidAccessException":
|
|
5276
|
-
throw await de_InvalidAccessExceptionRes(parsedOutput, context);
|
|
5277
|
-
case "InvalidInputException":
|
|
5278
|
-
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5279
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
5280
|
-
case "LimitExceededException":
|
|
5281
|
-
case "com.amazonaws.securityhub#LimitExceededException":
|
|
5282
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5283
|
-
case "ResourceNotFoundException":
|
|
5284
|
-
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5286
|
-
default:
|
|
5287
|
-
const parsedBody = parsedOutput.body;
|
|
5288
|
-
return throwDefaultError({
|
|
5289
|
-
output,
|
|
5290
|
-
parsedBody,
|
|
5291
|
-
errorCode
|
|
5292
|
-
});
|
|
5293
|
-
}
|
|
5294
|
-
}, "de_UpdateSecurityHubConfigurationCommandError");
|
|
5295
2904
|
var de_UpdateStandardsControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5296
2905
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5297
|
-
return
|
|
2906
|
+
return de_CommandError(output, context);
|
|
5298
2907
|
}
|
|
5299
2908
|
const contents = (0, import_smithy_client.map)({
|
|
5300
2909
|
$metadata: deserializeMetadata(output)
|
|
@@ -5302,16 +2911,13 @@ var de_UpdateStandardsControlCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5302
2911
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5303
2912
|
return contents;
|
|
5304
2913
|
}, "de_UpdateStandardsControlCommand");
|
|
5305
|
-
var
|
|
2914
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5306
2915
|
const parsedOutput = {
|
|
5307
2916
|
...output,
|
|
5308
2917
|
body: await parseErrorBody(output.body, context)
|
|
5309
2918
|
};
|
|
5310
2919
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5311
2920
|
switch (errorCode) {
|
|
5312
|
-
case "AccessDeniedException":
|
|
5313
|
-
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
5314
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5315
2921
|
case "InternalException":
|
|
5316
2922
|
case "com.amazonaws.securityhub#InternalException":
|
|
5317
2923
|
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
@@ -5321,9 +2927,21 @@ var de_UpdateStandardsControlCommandError = /* @__PURE__ */ __name(async (output
|
|
|
5321
2927
|
case "InvalidInputException":
|
|
5322
2928
|
case "com.amazonaws.securityhub#InvalidInputException":
|
|
5323
2929
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
2930
|
+
case "LimitExceededException":
|
|
2931
|
+
case "com.amazonaws.securityhub#LimitExceededException":
|
|
2932
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5324
2933
|
case "ResourceNotFoundException":
|
|
5325
2934
|
case "com.amazonaws.securityhub#ResourceNotFoundException":
|
|
5326
2935
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2936
|
+
case "AccessDeniedException":
|
|
2937
|
+
case "com.amazonaws.securityhub#AccessDeniedException":
|
|
2938
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2939
|
+
case "ResourceConflictException":
|
|
2940
|
+
case "com.amazonaws.securityhub#ResourceConflictException":
|
|
2941
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
2942
|
+
case "ResourceInUseException":
|
|
2943
|
+
case "com.amazonaws.securityhub#ResourceInUseException":
|
|
2944
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5327
2945
|
default:
|
|
5328
2946
|
const parsedBody = parsedOutput.body;
|
|
5329
2947
|
return throwDefaultError({
|
|
@@ -5332,7 +2950,7 @@ var de_UpdateStandardsControlCommandError = /* @__PURE__ */ __name(async (output
|
|
|
5332
2950
|
errorCode
|
|
5333
2951
|
});
|
|
5334
2952
|
}
|
|
5335
|
-
}, "
|
|
2953
|
+
}, "de_CommandError");
|
|
5336
2954
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SecurityHubServiceException);
|
|
5337
2955
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5338
2956
|
const contents = (0, import_smithy_client.map)({});
|