@aws-sdk/client-auditmanager 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 +86 -1749
- package/dist-es/protocols/Aws_restJson1.js +112 -1775
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1790,7 +1790,7 @@ var se_ValidateAssessmentReportIntegrityCommand = /* @__PURE__ */ __name(async (
|
|
|
1790
1790
|
}, "se_ValidateAssessmentReportIntegrityCommand");
|
|
1791
1791
|
var de_AssociateAssessmentReportEvidenceFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
1792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1793
|
-
return
|
|
1793
|
+
return de_CommandError(output, context);
|
|
1794
1794
|
}
|
|
1795
1795
|
const contents = (0, import_smithy_client.map)({
|
|
1796
1796
|
$metadata: deserializeMetadata(output)
|
|
@@ -1798,37 +1798,9 @@ var de_AssociateAssessmentReportEvidenceFolderCommand = /* @__PURE__ */ __name(a
|
|
|
1798
1798
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1799
1799
|
return contents;
|
|
1800
1800
|
}, "de_AssociateAssessmentReportEvidenceFolderCommand");
|
|
1801
|
-
var de_AssociateAssessmentReportEvidenceFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1802
|
-
const parsedOutput = {
|
|
1803
|
-
...output,
|
|
1804
|
-
body: await parseErrorBody(output.body, context)
|
|
1805
|
-
};
|
|
1806
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1807
|
-
switch (errorCode) {
|
|
1808
|
-
case "AccessDeniedException":
|
|
1809
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1810
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "InternalServerException":
|
|
1812
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ResourceNotFoundException":
|
|
1815
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ValidationException":
|
|
1818
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1820
|
-
default:
|
|
1821
|
-
const parsedBody = parsedOutput.body;
|
|
1822
|
-
return throwDefaultError({
|
|
1823
|
-
output,
|
|
1824
|
-
parsedBody,
|
|
1825
|
-
errorCode
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
}, "de_AssociateAssessmentReportEvidenceFolderCommandError");
|
|
1829
1801
|
var de_BatchAssociateAssessmentReportEvidenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1830
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1831
|
-
return
|
|
1803
|
+
return de_CommandError(output, context);
|
|
1832
1804
|
}
|
|
1833
1805
|
const contents = (0, import_smithy_client.map)({
|
|
1834
1806
|
$metadata: deserializeMetadata(output)
|
|
@@ -1841,37 +1813,9 @@ var de_BatchAssociateAssessmentReportEvidenceCommand = /* @__PURE__ */ __name(as
|
|
|
1841
1813
|
Object.assign(contents, doc);
|
|
1842
1814
|
return contents;
|
|
1843
1815
|
}, "de_BatchAssociateAssessmentReportEvidenceCommand");
|
|
1844
|
-
var de_BatchAssociateAssessmentReportEvidenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1845
|
-
const parsedOutput = {
|
|
1846
|
-
...output,
|
|
1847
|
-
body: await parseErrorBody(output.body, context)
|
|
1848
|
-
};
|
|
1849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
|
-
switch (errorCode) {
|
|
1851
|
-
case "AccessDeniedException":
|
|
1852
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1853
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "InternalServerException":
|
|
1855
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1856
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ResourceNotFoundException":
|
|
1858
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1859
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ValidationException":
|
|
1861
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1862
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1863
|
-
default:
|
|
1864
|
-
const parsedBody = parsedOutput.body;
|
|
1865
|
-
return throwDefaultError({
|
|
1866
|
-
output,
|
|
1867
|
-
parsedBody,
|
|
1868
|
-
errorCode
|
|
1869
|
-
});
|
|
1870
|
-
}
|
|
1871
|
-
}, "de_BatchAssociateAssessmentReportEvidenceCommandError");
|
|
1872
1816
|
var de_BatchCreateDelegationByAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1873
1817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1874
|
-
return
|
|
1818
|
+
return de_CommandError(output, context);
|
|
1875
1819
|
}
|
|
1876
1820
|
const contents = (0, import_smithy_client.map)({
|
|
1877
1821
|
$metadata: deserializeMetadata(output)
|
|
@@ -1884,37 +1828,9 @@ var de_BatchCreateDelegationByAssessmentCommand = /* @__PURE__ */ __name(async (
|
|
|
1884
1828
|
Object.assign(contents, doc);
|
|
1885
1829
|
return contents;
|
|
1886
1830
|
}, "de_BatchCreateDelegationByAssessmentCommand");
|
|
1887
|
-
var de_BatchCreateDelegationByAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
|
-
const parsedOutput = {
|
|
1889
|
-
...output,
|
|
1890
|
-
body: await parseErrorBody(output.body, context)
|
|
1891
|
-
};
|
|
1892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1893
|
-
switch (errorCode) {
|
|
1894
|
-
case "AccessDeniedException":
|
|
1895
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1896
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1897
|
-
case "InternalServerException":
|
|
1898
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1899
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ResourceNotFoundException":
|
|
1901
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1902
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "ValidationException":
|
|
1904
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1906
|
-
default:
|
|
1907
|
-
const parsedBody = parsedOutput.body;
|
|
1908
|
-
return throwDefaultError({
|
|
1909
|
-
output,
|
|
1910
|
-
parsedBody,
|
|
1911
|
-
errorCode
|
|
1912
|
-
});
|
|
1913
|
-
}
|
|
1914
|
-
}, "de_BatchCreateDelegationByAssessmentCommandError");
|
|
1915
1831
|
var de_BatchDeleteDelegationByAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1916
1832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1917
|
-
return
|
|
1833
|
+
return de_CommandError(output, context);
|
|
1918
1834
|
}
|
|
1919
1835
|
const contents = (0, import_smithy_client.map)({
|
|
1920
1836
|
$metadata: deserializeMetadata(output)
|
|
@@ -1926,37 +1842,9 @@ var de_BatchDeleteDelegationByAssessmentCommand = /* @__PURE__ */ __name(async (
|
|
|
1926
1842
|
Object.assign(contents, doc);
|
|
1927
1843
|
return contents;
|
|
1928
1844
|
}, "de_BatchDeleteDelegationByAssessmentCommand");
|
|
1929
|
-
var de_BatchDeleteDelegationByAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
|
-
const parsedOutput = {
|
|
1931
|
-
...output,
|
|
1932
|
-
body: await parseErrorBody(output.body, context)
|
|
1933
|
-
};
|
|
1934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1935
|
-
switch (errorCode) {
|
|
1936
|
-
case "AccessDeniedException":
|
|
1937
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1938
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InternalServerException":
|
|
1940
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ResourceNotFoundException":
|
|
1943
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1944
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ValidationException":
|
|
1946
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1948
|
-
default:
|
|
1949
|
-
const parsedBody = parsedOutput.body;
|
|
1950
|
-
return throwDefaultError({
|
|
1951
|
-
output,
|
|
1952
|
-
parsedBody,
|
|
1953
|
-
errorCode
|
|
1954
|
-
});
|
|
1955
|
-
}
|
|
1956
|
-
}, "de_BatchDeleteDelegationByAssessmentCommandError");
|
|
1957
1845
|
var de_BatchDisassociateAssessmentReportEvidenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
1846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1847
|
+
return de_CommandError(output, context);
|
|
1960
1848
|
}
|
|
1961
1849
|
const contents = (0, import_smithy_client.map)({
|
|
1962
1850
|
$metadata: deserializeMetadata(output)
|
|
@@ -1969,37 +1857,9 @@ var de_BatchDisassociateAssessmentReportEvidenceCommand = /* @__PURE__ */ __name
|
|
|
1969
1857
|
Object.assign(contents, doc);
|
|
1970
1858
|
return contents;
|
|
1971
1859
|
}, "de_BatchDisassociateAssessmentReportEvidenceCommand");
|
|
1972
|
-
var de_BatchDisassociateAssessmentReportEvidenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1973
|
-
const parsedOutput = {
|
|
1974
|
-
...output,
|
|
1975
|
-
body: await parseErrorBody(output.body, context)
|
|
1976
|
-
};
|
|
1977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1978
|
-
switch (errorCode) {
|
|
1979
|
-
case "AccessDeniedException":
|
|
1980
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1982
|
-
case "InternalServerException":
|
|
1983
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1985
|
-
case "ResourceNotFoundException":
|
|
1986
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1987
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1988
|
-
case "ValidationException":
|
|
1989
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1991
|
-
default:
|
|
1992
|
-
const parsedBody = parsedOutput.body;
|
|
1993
|
-
return throwDefaultError({
|
|
1994
|
-
output,
|
|
1995
|
-
parsedBody,
|
|
1996
|
-
errorCode
|
|
1997
|
-
});
|
|
1998
|
-
}
|
|
1999
|
-
}, "de_BatchDisassociateAssessmentReportEvidenceCommandError");
|
|
2000
1860
|
var de_BatchImportEvidenceToAssessmentControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2001
1861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2002
|
-
return
|
|
1862
|
+
return de_CommandError(output, context);
|
|
2003
1863
|
}
|
|
2004
1864
|
const contents = (0, import_smithy_client.map)({
|
|
2005
1865
|
$metadata: deserializeMetadata(output)
|
|
@@ -2011,40 +1871,9 @@ var de_BatchImportEvidenceToAssessmentControlCommand = /* @__PURE__ */ __name(as
|
|
|
2011
1871
|
Object.assign(contents, doc);
|
|
2012
1872
|
return contents;
|
|
2013
1873
|
}, "de_BatchImportEvidenceToAssessmentControlCommand");
|
|
2014
|
-
var de_BatchImportEvidenceToAssessmentControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2015
|
-
const parsedOutput = {
|
|
2016
|
-
...output,
|
|
2017
|
-
body: await parseErrorBody(output.body, context)
|
|
2018
|
-
};
|
|
2019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
|
-
switch (errorCode) {
|
|
2021
|
-
case "AccessDeniedException":
|
|
2022
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2023
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "InternalServerException":
|
|
2025
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2026
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "ResourceNotFoundException":
|
|
2028
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "ThrottlingException":
|
|
2031
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2032
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ValidationException":
|
|
2034
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2035
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, "de_BatchImportEvidenceToAssessmentControlCommandError");
|
|
2045
1874
|
var de_CreateAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
1875
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
1876
|
+
return de_CommandError(output, context);
|
|
2048
1877
|
}
|
|
2049
1878
|
const contents = (0, import_smithy_client.map)({
|
|
2050
1879
|
$metadata: deserializeMetadata(output)
|
|
@@ -2056,40 +1885,9 @@ var de_CreateAssessmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2056
1885
|
Object.assign(contents, doc);
|
|
2057
1886
|
return contents;
|
|
2058
1887
|
}, "de_CreateAssessmentCommand");
|
|
2059
|
-
var de_CreateAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2060
|
-
const parsedOutput = {
|
|
2061
|
-
...output,
|
|
2062
|
-
body: await parseErrorBody(output.body, context)
|
|
2063
|
-
};
|
|
2064
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2065
|
-
switch (errorCode) {
|
|
2066
|
-
case "AccessDeniedException":
|
|
2067
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2068
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "InternalServerException":
|
|
2070
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2071
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ResourceNotFoundException":
|
|
2073
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2074
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ServiceQuotaExceededException":
|
|
2076
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
2077
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ValidationException":
|
|
2079
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2080
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_CreateAssessmentCommandError");
|
|
2090
1888
|
var de_CreateAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1890
|
+
return de_CommandError(output, context);
|
|
2093
1891
|
}
|
|
2094
1892
|
const contents = (0, import_smithy_client.map)({
|
|
2095
1893
|
$metadata: deserializeMetadata(output)
|
|
@@ -2101,40 +1899,9 @@ var de_CreateAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2101
1899
|
Object.assign(contents, doc);
|
|
2102
1900
|
return contents;
|
|
2103
1901
|
}, "de_CreateAssessmentFrameworkCommand");
|
|
2104
|
-
var de_CreateAssessmentFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2105
|
-
const parsedOutput = {
|
|
2106
|
-
...output,
|
|
2107
|
-
body: await parseErrorBody(output.body, context)
|
|
2108
|
-
};
|
|
2109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
-
switch (errorCode) {
|
|
2111
|
-
case "AccessDeniedException":
|
|
2112
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "InternalServerException":
|
|
2115
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ResourceNotFoundException":
|
|
2118
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2119
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ServiceQuotaExceededException":
|
|
2121
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
2122
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ValidationException":
|
|
2124
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2125
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2126
|
-
default:
|
|
2127
|
-
const parsedBody = parsedOutput.body;
|
|
2128
|
-
return throwDefaultError({
|
|
2129
|
-
output,
|
|
2130
|
-
parsedBody,
|
|
2131
|
-
errorCode
|
|
2132
|
-
});
|
|
2133
|
-
}
|
|
2134
|
-
}, "de_CreateAssessmentFrameworkCommandError");
|
|
2135
1902
|
var de_CreateAssessmentReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2136
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2137
|
-
return
|
|
1904
|
+
return de_CommandError(output, context);
|
|
2138
1905
|
}
|
|
2139
1906
|
const contents = (0, import_smithy_client.map)({
|
|
2140
1907
|
$metadata: deserializeMetadata(output)
|
|
@@ -2146,37 +1913,9 @@ var de_CreateAssessmentReportCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2146
1913
|
Object.assign(contents, doc);
|
|
2147
1914
|
return contents;
|
|
2148
1915
|
}, "de_CreateAssessmentReportCommand");
|
|
2149
|
-
var de_CreateAssessmentReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2150
|
-
const parsedOutput = {
|
|
2151
|
-
...output,
|
|
2152
|
-
body: await parseErrorBody(output.body, context)
|
|
2153
|
-
};
|
|
2154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
|
-
switch (errorCode) {
|
|
2156
|
-
case "AccessDeniedException":
|
|
2157
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2158
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "InternalServerException":
|
|
2160
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2161
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "ResourceNotFoundException":
|
|
2163
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ValidationException":
|
|
2166
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2167
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2168
|
-
default:
|
|
2169
|
-
const parsedBody = parsedOutput.body;
|
|
2170
|
-
return throwDefaultError({
|
|
2171
|
-
output,
|
|
2172
|
-
parsedBody,
|
|
2173
|
-
errorCode
|
|
2174
|
-
});
|
|
2175
|
-
}
|
|
2176
|
-
}, "de_CreateAssessmentReportCommandError");
|
|
2177
1916
|
var de_CreateControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2178
1917
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2179
|
-
return
|
|
1918
|
+
return de_CommandError(output, context);
|
|
2180
1919
|
}
|
|
2181
1920
|
const contents = (0, import_smithy_client.map)({
|
|
2182
1921
|
$metadata: deserializeMetadata(output)
|
|
@@ -2188,40 +1927,9 @@ var de_CreateControlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2188
1927
|
Object.assign(contents, doc);
|
|
2189
1928
|
return contents;
|
|
2190
1929
|
}, "de_CreateControlCommand");
|
|
2191
|
-
var de_CreateControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2192
|
-
const parsedOutput = {
|
|
2193
|
-
...output,
|
|
2194
|
-
body: await parseErrorBody(output.body, context)
|
|
2195
|
-
};
|
|
2196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
-
switch (errorCode) {
|
|
2198
|
-
case "AccessDeniedException":
|
|
2199
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2200
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "InternalServerException":
|
|
2202
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2203
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ResourceNotFoundException":
|
|
2205
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "ServiceQuotaExceededException":
|
|
2208
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
2209
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ValidationException":
|
|
2211
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2212
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2213
|
-
default:
|
|
2214
|
-
const parsedBody = parsedOutput.body;
|
|
2215
|
-
return throwDefaultError({
|
|
2216
|
-
output,
|
|
2217
|
-
parsedBody,
|
|
2218
|
-
errorCode
|
|
2219
|
-
});
|
|
2220
|
-
}
|
|
2221
|
-
}, "de_CreateControlCommandError");
|
|
2222
1930
|
var de_DeleteAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2223
1931
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2224
|
-
return
|
|
1932
|
+
return de_CommandError(output, context);
|
|
2225
1933
|
}
|
|
2226
1934
|
const contents = (0, import_smithy_client.map)({
|
|
2227
1935
|
$metadata: deserializeMetadata(output)
|
|
@@ -2229,37 +1937,9 @@ var de_DeleteAssessmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2229
1937
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2230
1938
|
return contents;
|
|
2231
1939
|
}, "de_DeleteAssessmentCommand");
|
|
2232
|
-
var de_DeleteAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2233
|
-
const parsedOutput = {
|
|
2234
|
-
...output,
|
|
2235
|
-
body: await parseErrorBody(output.body, context)
|
|
2236
|
-
};
|
|
2237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "AccessDeniedException":
|
|
2240
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2241
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "InternalServerException":
|
|
2243
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2244
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "ResourceNotFoundException":
|
|
2246
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2247
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ValidationException":
|
|
2249
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2250
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
}, "de_DeleteAssessmentCommandError");
|
|
2260
1940
|
var de_DeleteAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2261
1941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2262
|
-
return
|
|
1942
|
+
return de_CommandError(output, context);
|
|
2263
1943
|
}
|
|
2264
1944
|
const contents = (0, import_smithy_client.map)({
|
|
2265
1945
|
$metadata: deserializeMetadata(output)
|
|
@@ -2267,37 +1947,9 @@ var de_DeleteAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2267
1947
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2268
1948
|
return contents;
|
|
2269
1949
|
}, "de_DeleteAssessmentFrameworkCommand");
|
|
2270
|
-
var de_DeleteAssessmentFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2271
|
-
const parsedOutput = {
|
|
2272
|
-
...output,
|
|
2273
|
-
body: await parseErrorBody(output.body, context)
|
|
2274
|
-
};
|
|
2275
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
|
-
switch (errorCode) {
|
|
2277
|
-
case "AccessDeniedException":
|
|
2278
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2279
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2280
|
-
case "InternalServerException":
|
|
2281
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2283
|
-
case "ResourceNotFoundException":
|
|
2284
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "ValidationException":
|
|
2287
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2288
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2289
|
-
default:
|
|
2290
|
-
const parsedBody = parsedOutput.body;
|
|
2291
|
-
return throwDefaultError({
|
|
2292
|
-
output,
|
|
2293
|
-
parsedBody,
|
|
2294
|
-
errorCode
|
|
2295
|
-
});
|
|
2296
|
-
}
|
|
2297
|
-
}, "de_DeleteAssessmentFrameworkCommandError");
|
|
2298
1950
|
var de_DeleteAssessmentFrameworkShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2299
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2300
|
-
return
|
|
1952
|
+
return de_CommandError(output, context);
|
|
2301
1953
|
}
|
|
2302
1954
|
const contents = (0, import_smithy_client.map)({
|
|
2303
1955
|
$metadata: deserializeMetadata(output)
|
|
@@ -2305,37 +1957,9 @@ var de_DeleteAssessmentFrameworkShareCommand = /* @__PURE__ */ __name(async (out
|
|
|
2305
1957
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2306
1958
|
return contents;
|
|
2307
1959
|
}, "de_DeleteAssessmentFrameworkShareCommand");
|
|
2308
|
-
var de_DeleteAssessmentFrameworkShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2309
|
-
const parsedOutput = {
|
|
2310
|
-
...output,
|
|
2311
|
-
body: await parseErrorBody(output.body, context)
|
|
2312
|
-
};
|
|
2313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
-
switch (errorCode) {
|
|
2315
|
-
case "AccessDeniedException":
|
|
2316
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "InternalServerException":
|
|
2319
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2320
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ResourceNotFoundException":
|
|
2322
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2323
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ValidationException":
|
|
2325
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2326
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2327
|
-
default:
|
|
2328
|
-
const parsedBody = parsedOutput.body;
|
|
2329
|
-
return throwDefaultError({
|
|
2330
|
-
output,
|
|
2331
|
-
parsedBody,
|
|
2332
|
-
errorCode
|
|
2333
|
-
});
|
|
2334
|
-
}
|
|
2335
|
-
}, "de_DeleteAssessmentFrameworkShareCommandError");
|
|
2336
1960
|
var de_DeleteAssessmentReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2337
1961
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2338
|
-
return
|
|
1962
|
+
return de_CommandError(output, context);
|
|
2339
1963
|
}
|
|
2340
1964
|
const contents = (0, import_smithy_client.map)({
|
|
2341
1965
|
$metadata: deserializeMetadata(output)
|
|
@@ -2343,37 +1967,9 @@ var de_DeleteAssessmentReportCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2343
1967
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2344
1968
|
return contents;
|
|
2345
1969
|
}, "de_DeleteAssessmentReportCommand");
|
|
2346
|
-
var de_DeleteAssessmentReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2347
|
-
const parsedOutput = {
|
|
2348
|
-
...output,
|
|
2349
|
-
body: await parseErrorBody(output.body, context)
|
|
2350
|
-
};
|
|
2351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2352
|
-
switch (errorCode) {
|
|
2353
|
-
case "AccessDeniedException":
|
|
2354
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InternalServerException":
|
|
2357
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2358
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ResourceNotFoundException":
|
|
2360
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2361
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ValidationException":
|
|
2363
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2364
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2365
|
-
default:
|
|
2366
|
-
const parsedBody = parsedOutput.body;
|
|
2367
|
-
return throwDefaultError({
|
|
2368
|
-
output,
|
|
2369
|
-
parsedBody,
|
|
2370
|
-
errorCode
|
|
2371
|
-
});
|
|
2372
|
-
}
|
|
2373
|
-
}, "de_DeleteAssessmentReportCommandError");
|
|
2374
1970
|
var de_DeleteControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2375
1971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
|
-
return
|
|
1972
|
+
return de_CommandError(output, context);
|
|
2377
1973
|
}
|
|
2378
1974
|
const contents = (0, import_smithy_client.map)({
|
|
2379
1975
|
$metadata: deserializeMetadata(output)
|
|
@@ -2381,37 +1977,9 @@ var de_DeleteControlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2381
1977
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2382
1978
|
return contents;
|
|
2383
1979
|
}, "de_DeleteControlCommand");
|
|
2384
|
-
var de_DeleteControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context)
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "AccessDeniedException":
|
|
2392
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "InternalServerException":
|
|
2395
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2396
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "ResourceNotFoundException":
|
|
2398
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2399
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ValidationException":
|
|
2401
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2402
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2403
|
-
default:
|
|
2404
|
-
const parsedBody = parsedOutput.body;
|
|
2405
|
-
return throwDefaultError({
|
|
2406
|
-
output,
|
|
2407
|
-
parsedBody,
|
|
2408
|
-
errorCode
|
|
2409
|
-
});
|
|
2410
|
-
}
|
|
2411
|
-
}, "de_DeleteControlCommandError");
|
|
2412
1980
|
var de_DeregisterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2413
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2414
|
-
return
|
|
1982
|
+
return de_CommandError(output, context);
|
|
2415
1983
|
}
|
|
2416
1984
|
const contents = (0, import_smithy_client.map)({
|
|
2417
1985
|
$metadata: deserializeMetadata(output)
|
|
@@ -2423,37 +1991,9 @@ var de_DeregisterAccountCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2423
1991
|
Object.assign(contents, doc);
|
|
2424
1992
|
return contents;
|
|
2425
1993
|
}, "de_DeregisterAccountCommand");
|
|
2426
|
-
var de_DeregisterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2427
|
-
const parsedOutput = {
|
|
2428
|
-
...output,
|
|
2429
|
-
body: await parseErrorBody(output.body, context)
|
|
2430
|
-
};
|
|
2431
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
-
switch (errorCode) {
|
|
2433
|
-
case "AccessDeniedException":
|
|
2434
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2435
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "InternalServerException":
|
|
2437
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2438
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2439
|
-
case "ResourceNotFoundException":
|
|
2440
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2441
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2442
|
-
case "ValidationException":
|
|
2443
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2444
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2445
|
-
default:
|
|
2446
|
-
const parsedBody = parsedOutput.body;
|
|
2447
|
-
return throwDefaultError({
|
|
2448
|
-
output,
|
|
2449
|
-
parsedBody,
|
|
2450
|
-
errorCode
|
|
2451
|
-
});
|
|
2452
|
-
}
|
|
2453
|
-
}, "de_DeregisterAccountCommandError");
|
|
2454
1994
|
var de_DeregisterOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2455
1995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2456
|
-
return
|
|
1996
|
+
return de_CommandError(output, context);
|
|
2457
1997
|
}
|
|
2458
1998
|
const contents = (0, import_smithy_client.map)({
|
|
2459
1999
|
$metadata: deserializeMetadata(output)
|
|
@@ -2461,37 +2001,9 @@ var de_DeregisterOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async
|
|
|
2461
2001
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2462
2002
|
return contents;
|
|
2463
2003
|
}, "de_DeregisterOrganizationAdminAccountCommand");
|
|
2464
|
-
var de_DeregisterOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2465
|
-
const parsedOutput = {
|
|
2466
|
-
...output,
|
|
2467
|
-
body: await parseErrorBody(output.body, context)
|
|
2468
|
-
};
|
|
2469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
-
switch (errorCode) {
|
|
2471
|
-
case "AccessDeniedException":
|
|
2472
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2473
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "InternalServerException":
|
|
2475
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2476
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ResourceNotFoundException":
|
|
2478
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2479
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "ValidationException":
|
|
2481
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2482
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2483
|
-
default:
|
|
2484
|
-
const parsedBody = parsedOutput.body;
|
|
2485
|
-
return throwDefaultError({
|
|
2486
|
-
output,
|
|
2487
|
-
parsedBody,
|
|
2488
|
-
errorCode
|
|
2489
|
-
});
|
|
2490
|
-
}
|
|
2491
|
-
}, "de_DeregisterOrganizationAdminAccountCommandError");
|
|
2492
2004
|
var de_DisassociateAssessmentReportEvidenceFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2493
2005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2494
|
-
return
|
|
2006
|
+
return de_CommandError(output, context);
|
|
2495
2007
|
}
|
|
2496
2008
|
const contents = (0, import_smithy_client.map)({
|
|
2497
2009
|
$metadata: deserializeMetadata(output)
|
|
@@ -2499,37 +2011,9 @@ var de_DisassociateAssessmentReportEvidenceFolderCommand = /* @__PURE__ */ __nam
|
|
|
2499
2011
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2500
2012
|
return contents;
|
|
2501
2013
|
}, "de_DisassociateAssessmentReportEvidenceFolderCommand");
|
|
2502
|
-
var de_DisassociateAssessmentReportEvidenceFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2503
|
-
const parsedOutput = {
|
|
2504
|
-
...output,
|
|
2505
|
-
body: await parseErrorBody(output.body, context)
|
|
2506
|
-
};
|
|
2507
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
|
-
switch (errorCode) {
|
|
2509
|
-
case "AccessDeniedException":
|
|
2510
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2511
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2512
|
-
case "InternalServerException":
|
|
2513
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2514
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "ResourceNotFoundException":
|
|
2516
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "ValidationException":
|
|
2519
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2520
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2521
|
-
default:
|
|
2522
|
-
const parsedBody = parsedOutput.body;
|
|
2523
|
-
return throwDefaultError({
|
|
2524
|
-
output,
|
|
2525
|
-
parsedBody,
|
|
2526
|
-
errorCode
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
}, "de_DisassociateAssessmentReportEvidenceFolderCommandError");
|
|
2530
2014
|
var de_GetAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2531
2015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2532
|
-
return
|
|
2016
|
+
return de_CommandError(output, context);
|
|
2533
2017
|
}
|
|
2534
2018
|
const contents = (0, import_smithy_client.map)({
|
|
2535
2019
|
$metadata: deserializeMetadata(output)
|
|
@@ -2541,28 +2025,9 @@ var de_GetAccountStatusCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2541
2025
|
Object.assign(contents, doc);
|
|
2542
2026
|
return contents;
|
|
2543
2027
|
}, "de_GetAccountStatusCommand");
|
|
2544
|
-
var de_GetAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2545
|
-
const parsedOutput = {
|
|
2546
|
-
...output,
|
|
2547
|
-
body: await parseErrorBody(output.body, context)
|
|
2548
|
-
};
|
|
2549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
-
switch (errorCode) {
|
|
2551
|
-
case "InternalServerException":
|
|
2552
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2553
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2554
|
-
default:
|
|
2555
|
-
const parsedBody = parsedOutput.body;
|
|
2556
|
-
return throwDefaultError({
|
|
2557
|
-
output,
|
|
2558
|
-
parsedBody,
|
|
2559
|
-
errorCode
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
}, "de_GetAccountStatusCommandError");
|
|
2563
2028
|
var de_GetAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2564
2029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2565
|
-
return
|
|
2030
|
+
return de_CommandError(output, context);
|
|
2566
2031
|
}
|
|
2567
2032
|
const contents = (0, import_smithy_client.map)({
|
|
2568
2033
|
$metadata: deserializeMetadata(output)
|
|
@@ -2575,37 +2040,9 @@ var de_GetAssessmentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2575
2040
|
Object.assign(contents, doc);
|
|
2576
2041
|
return contents;
|
|
2577
2042
|
}, "de_GetAssessmentCommand");
|
|
2578
|
-
var de_GetAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2579
|
-
const parsedOutput = {
|
|
2580
|
-
...output,
|
|
2581
|
-
body: await parseErrorBody(output.body, context)
|
|
2582
|
-
};
|
|
2583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
-
switch (errorCode) {
|
|
2585
|
-
case "AccessDeniedException":
|
|
2586
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2587
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "InternalServerException":
|
|
2589
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2590
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2591
|
-
case "ResourceNotFoundException":
|
|
2592
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2593
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "ValidationException":
|
|
2595
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2596
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2597
|
-
default:
|
|
2598
|
-
const parsedBody = parsedOutput.body;
|
|
2599
|
-
return throwDefaultError({
|
|
2600
|
-
output,
|
|
2601
|
-
parsedBody,
|
|
2602
|
-
errorCode
|
|
2603
|
-
});
|
|
2604
|
-
}
|
|
2605
|
-
}, "de_GetAssessmentCommandError");
|
|
2606
2043
|
var de_GetAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2607
2044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2608
|
-
return
|
|
2045
|
+
return de_CommandError(output, context);
|
|
2609
2046
|
}
|
|
2610
2047
|
const contents = (0, import_smithy_client.map)({
|
|
2611
2048
|
$metadata: deserializeMetadata(output)
|
|
@@ -2617,37 +2054,9 @@ var de_GetAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2617
2054
|
Object.assign(contents, doc);
|
|
2618
2055
|
return contents;
|
|
2619
2056
|
}, "de_GetAssessmentFrameworkCommand");
|
|
2620
|
-
var de_GetAssessmentFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2621
|
-
const parsedOutput = {
|
|
2622
|
-
...output,
|
|
2623
|
-
body: await parseErrorBody(output.body, context)
|
|
2624
|
-
};
|
|
2625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2626
|
-
switch (errorCode) {
|
|
2627
|
-
case "AccessDeniedException":
|
|
2628
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "InternalServerException":
|
|
2631
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2632
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "ResourceNotFoundException":
|
|
2634
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2636
|
-
case "ValidationException":
|
|
2637
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2638
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2639
|
-
default:
|
|
2640
|
-
const parsedBody = parsedOutput.body;
|
|
2641
|
-
return throwDefaultError({
|
|
2642
|
-
output,
|
|
2643
|
-
parsedBody,
|
|
2644
|
-
errorCode
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
}, "de_GetAssessmentFrameworkCommandError");
|
|
2648
2057
|
var de_GetAssessmentReportUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2649
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2650
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2651
2060
|
}
|
|
2652
2061
|
const contents = (0, import_smithy_client.map)({
|
|
2653
2062
|
$metadata: deserializeMetadata(output)
|
|
@@ -2659,37 +2068,9 @@ var de_GetAssessmentReportUrlCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2659
2068
|
Object.assign(contents, doc);
|
|
2660
2069
|
return contents;
|
|
2661
2070
|
}, "de_GetAssessmentReportUrlCommand");
|
|
2662
|
-
var de_GetAssessmentReportUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2663
|
-
const parsedOutput = {
|
|
2664
|
-
...output,
|
|
2665
|
-
body: await parseErrorBody(output.body, context)
|
|
2666
|
-
};
|
|
2667
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2668
|
-
switch (errorCode) {
|
|
2669
|
-
case "AccessDeniedException":
|
|
2670
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2671
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "InternalServerException":
|
|
2673
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2674
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ResourceNotFoundException":
|
|
2676
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2677
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "ValidationException":
|
|
2679
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2680
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2681
|
-
default:
|
|
2682
|
-
const parsedBody = parsedOutput.body;
|
|
2683
|
-
return throwDefaultError({
|
|
2684
|
-
output,
|
|
2685
|
-
parsedBody,
|
|
2686
|
-
errorCode
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
}, "de_GetAssessmentReportUrlCommandError");
|
|
2690
2071
|
var de_GetChangeLogsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2691
2072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2692
|
-
return
|
|
2073
|
+
return de_CommandError(output, context);
|
|
2693
2074
|
}
|
|
2694
2075
|
const contents = (0, import_smithy_client.map)({
|
|
2695
2076
|
$metadata: deserializeMetadata(output)
|
|
@@ -2702,37 +2083,9 @@ var de_GetChangeLogsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2702
2083
|
Object.assign(contents, doc);
|
|
2703
2084
|
return contents;
|
|
2704
2085
|
}, "de_GetChangeLogsCommand");
|
|
2705
|
-
var de_GetChangeLogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2706
|
-
const parsedOutput = {
|
|
2707
|
-
...output,
|
|
2708
|
-
body: await parseErrorBody(output.body, context)
|
|
2709
|
-
};
|
|
2710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2711
|
-
switch (errorCode) {
|
|
2712
|
-
case "AccessDeniedException":
|
|
2713
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "InternalServerException":
|
|
2716
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2717
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "ResourceNotFoundException":
|
|
2719
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2720
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ValidationException":
|
|
2722
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2724
|
-
default:
|
|
2725
|
-
const parsedBody = parsedOutput.body;
|
|
2726
|
-
return throwDefaultError({
|
|
2727
|
-
output,
|
|
2728
|
-
parsedBody,
|
|
2729
|
-
errorCode
|
|
2730
|
-
});
|
|
2731
|
-
}
|
|
2732
|
-
}, "de_GetChangeLogsCommandError");
|
|
2733
2086
|
var de_GetControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2734
2087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2735
|
-
return
|
|
2088
|
+
return de_CommandError(output, context);
|
|
2736
2089
|
}
|
|
2737
2090
|
const contents = (0, import_smithy_client.map)({
|
|
2738
2091
|
$metadata: deserializeMetadata(output)
|
|
@@ -2744,37 +2097,9 @@ var de_GetControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2744
2097
|
Object.assign(contents, doc);
|
|
2745
2098
|
return contents;
|
|
2746
2099
|
}, "de_GetControlCommand");
|
|
2747
|
-
var de_GetControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2748
|
-
const parsedOutput = {
|
|
2749
|
-
...output,
|
|
2750
|
-
body: await parseErrorBody(output.body, context)
|
|
2751
|
-
};
|
|
2752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2753
|
-
switch (errorCode) {
|
|
2754
|
-
case "AccessDeniedException":
|
|
2755
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2756
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "InternalServerException":
|
|
2758
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2759
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2760
|
-
case "ResourceNotFoundException":
|
|
2761
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2762
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "ValidationException":
|
|
2764
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2765
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2766
|
-
default:
|
|
2767
|
-
const parsedBody = parsedOutput.body;
|
|
2768
|
-
return throwDefaultError({
|
|
2769
|
-
output,
|
|
2770
|
-
parsedBody,
|
|
2771
|
-
errorCode
|
|
2772
|
-
});
|
|
2773
|
-
}
|
|
2774
|
-
}, "de_GetControlCommandError");
|
|
2775
2100
|
var de_GetDelegationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2776
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2777
|
-
return
|
|
2102
|
+
return de_CommandError(output, context);
|
|
2778
2103
|
}
|
|
2779
2104
|
const contents = (0, import_smithy_client.map)({
|
|
2780
2105
|
$metadata: deserializeMetadata(output)
|
|
@@ -2787,34 +2112,9 @@ var de_GetDelegationsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2787
2112
|
Object.assign(contents, doc);
|
|
2788
2113
|
return contents;
|
|
2789
2114
|
}, "de_GetDelegationsCommand");
|
|
2790
|
-
var de_GetDelegationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2791
|
-
const parsedOutput = {
|
|
2792
|
-
...output,
|
|
2793
|
-
body: await parseErrorBody(output.body, context)
|
|
2794
|
-
};
|
|
2795
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2796
|
-
switch (errorCode) {
|
|
2797
|
-
case "AccessDeniedException":
|
|
2798
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2799
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2800
|
-
case "InternalServerException":
|
|
2801
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2802
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "ValidationException":
|
|
2804
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2805
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2806
|
-
default:
|
|
2807
|
-
const parsedBody = parsedOutput.body;
|
|
2808
|
-
return throwDefaultError({
|
|
2809
|
-
output,
|
|
2810
|
-
parsedBody,
|
|
2811
|
-
errorCode
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
}, "de_GetDelegationsCommandError");
|
|
2815
2115
|
var de_GetEvidenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2816
2116
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2817
|
-
return
|
|
2117
|
+
return de_CommandError(output, context);
|
|
2818
2118
|
}
|
|
2819
2119
|
const contents = (0, import_smithy_client.map)({
|
|
2820
2120
|
$metadata: deserializeMetadata(output)
|
|
@@ -2826,37 +2126,9 @@ var de_GetEvidenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2826
2126
|
Object.assign(contents, doc);
|
|
2827
2127
|
return contents;
|
|
2828
2128
|
}, "de_GetEvidenceCommand");
|
|
2829
|
-
var de_GetEvidenceCommandError = /* @__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.auditmanager#AccessDeniedException":
|
|
2838
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "InternalServerException":
|
|
2840
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2841
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2842
|
-
case "ResourceNotFoundException":
|
|
2843
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2844
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2845
|
-
case "ValidationException":
|
|
2846
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2847
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2848
|
-
default:
|
|
2849
|
-
const parsedBody = parsedOutput.body;
|
|
2850
|
-
return throwDefaultError({
|
|
2851
|
-
output,
|
|
2852
|
-
parsedBody,
|
|
2853
|
-
errorCode
|
|
2854
|
-
});
|
|
2855
|
-
}
|
|
2856
|
-
}, "de_GetEvidenceCommandError");
|
|
2857
2129
|
var de_GetEvidenceByEvidenceFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2858
2130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2859
|
-
return
|
|
2131
|
+
return de_CommandError(output, context);
|
|
2860
2132
|
}
|
|
2861
2133
|
const contents = (0, import_smithy_client.map)({
|
|
2862
2134
|
$metadata: deserializeMetadata(output)
|
|
@@ -2869,37 +2141,9 @@ var de_GetEvidenceByEvidenceFolderCommand = /* @__PURE__ */ __name(async (output
|
|
|
2869
2141
|
Object.assign(contents, doc);
|
|
2870
2142
|
return contents;
|
|
2871
2143
|
}, "de_GetEvidenceByEvidenceFolderCommand");
|
|
2872
|
-
var de_GetEvidenceByEvidenceFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2873
|
-
const parsedOutput = {
|
|
2874
|
-
...output,
|
|
2875
|
-
body: await parseErrorBody(output.body, context)
|
|
2876
|
-
};
|
|
2877
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
|
-
switch (errorCode) {
|
|
2879
|
-
case "AccessDeniedException":
|
|
2880
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2881
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2882
|
-
case "InternalServerException":
|
|
2883
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2884
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "ResourceNotFoundException":
|
|
2886
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2887
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ValidationException":
|
|
2889
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2890
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2891
|
-
default:
|
|
2892
|
-
const parsedBody = parsedOutput.body;
|
|
2893
|
-
return throwDefaultError({
|
|
2894
|
-
output,
|
|
2895
|
-
parsedBody,
|
|
2896
|
-
errorCode
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
}, "de_GetEvidenceByEvidenceFolderCommandError");
|
|
2900
2144
|
var de_GetEvidenceFileUploadUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2901
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2902
|
-
return
|
|
2146
|
+
return de_CommandError(output, context);
|
|
2903
2147
|
}
|
|
2904
2148
|
const contents = (0, import_smithy_client.map)({
|
|
2905
2149
|
$metadata: deserializeMetadata(output)
|
|
@@ -2912,37 +2156,9 @@ var de_GetEvidenceFileUploadUrlCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2912
2156
|
Object.assign(contents, doc);
|
|
2913
2157
|
return contents;
|
|
2914
2158
|
}, "de_GetEvidenceFileUploadUrlCommand");
|
|
2915
|
-
var de_GetEvidenceFileUploadUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2916
|
-
const parsedOutput = {
|
|
2917
|
-
...output,
|
|
2918
|
-
body: await parseErrorBody(output.body, context)
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "AccessDeniedException":
|
|
2923
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2925
|
-
case "InternalServerException":
|
|
2926
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "ThrottlingException":
|
|
2929
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2930
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "ValidationException":
|
|
2932
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2933
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2934
|
-
default:
|
|
2935
|
-
const parsedBody = parsedOutput.body;
|
|
2936
|
-
return throwDefaultError({
|
|
2937
|
-
output,
|
|
2938
|
-
parsedBody,
|
|
2939
|
-
errorCode
|
|
2940
|
-
});
|
|
2941
|
-
}
|
|
2942
|
-
}, "de_GetEvidenceFileUploadUrlCommandError");
|
|
2943
2159
|
var de_GetEvidenceFolderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2944
2160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2945
|
-
return
|
|
2161
|
+
return de_CommandError(output, context);
|
|
2946
2162
|
}
|
|
2947
2163
|
const contents = (0, import_smithy_client.map)({
|
|
2948
2164
|
$metadata: deserializeMetadata(output)
|
|
@@ -2954,37 +2170,9 @@ var de_GetEvidenceFolderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2954
2170
|
Object.assign(contents, doc);
|
|
2955
2171
|
return contents;
|
|
2956
2172
|
}, "de_GetEvidenceFolderCommand");
|
|
2957
|
-
var de_GetEvidenceFolderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2958
|
-
const parsedOutput = {
|
|
2959
|
-
...output,
|
|
2960
|
-
body: await parseErrorBody(output.body, context)
|
|
2961
|
-
};
|
|
2962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2963
|
-
switch (errorCode) {
|
|
2964
|
-
case "AccessDeniedException":
|
|
2965
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2966
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "InternalServerException":
|
|
2968
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "ResourceNotFoundException":
|
|
2971
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "ValidationException":
|
|
2974
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2975
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2976
|
-
default:
|
|
2977
|
-
const parsedBody = parsedOutput.body;
|
|
2978
|
-
return throwDefaultError({
|
|
2979
|
-
output,
|
|
2980
|
-
parsedBody,
|
|
2981
|
-
errorCode
|
|
2982
|
-
});
|
|
2983
|
-
}
|
|
2984
|
-
}, "de_GetEvidenceFolderCommandError");
|
|
2985
2173
|
var de_GetEvidenceFoldersByAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2986
2174
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2987
|
-
return
|
|
2175
|
+
return de_CommandError(output, context);
|
|
2988
2176
|
}
|
|
2989
2177
|
const contents = (0, import_smithy_client.map)({
|
|
2990
2178
|
$metadata: deserializeMetadata(output)
|
|
@@ -2997,37 +2185,9 @@ var de_GetEvidenceFoldersByAssessmentCommand = /* @__PURE__ */ __name(async (out
|
|
|
2997
2185
|
Object.assign(contents, doc);
|
|
2998
2186
|
return contents;
|
|
2999
2187
|
}, "de_GetEvidenceFoldersByAssessmentCommand");
|
|
3000
|
-
var de_GetEvidenceFoldersByAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3001
|
-
const parsedOutput = {
|
|
3002
|
-
...output,
|
|
3003
|
-
body: await parseErrorBody(output.body, context)
|
|
3004
|
-
};
|
|
3005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
|
-
switch (errorCode) {
|
|
3007
|
-
case "AccessDeniedException":
|
|
3008
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3009
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3010
|
-
case "InternalServerException":
|
|
3011
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3012
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3013
|
-
case "ResourceNotFoundException":
|
|
3014
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3015
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3016
|
-
case "ValidationException":
|
|
3017
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3018
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3019
|
-
default:
|
|
3020
|
-
const parsedBody = parsedOutput.body;
|
|
3021
|
-
return throwDefaultError({
|
|
3022
|
-
output,
|
|
3023
|
-
parsedBody,
|
|
3024
|
-
errorCode
|
|
3025
|
-
});
|
|
3026
|
-
}
|
|
3027
|
-
}, "de_GetEvidenceFoldersByAssessmentCommandError");
|
|
3028
2188
|
var de_GetEvidenceFoldersByAssessmentControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3029
2189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3030
|
-
return
|
|
2190
|
+
return de_CommandError(output, context);
|
|
3031
2191
|
}
|
|
3032
2192
|
const contents = (0, import_smithy_client.map)({
|
|
3033
2193
|
$metadata: deserializeMetadata(output)
|
|
@@ -3040,37 +2200,9 @@ var de_GetEvidenceFoldersByAssessmentControlCommand = /* @__PURE__ */ __name(asy
|
|
|
3040
2200
|
Object.assign(contents, doc);
|
|
3041
2201
|
return contents;
|
|
3042
2202
|
}, "de_GetEvidenceFoldersByAssessmentControlCommand");
|
|
3043
|
-
var de_GetEvidenceFoldersByAssessmentControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3044
|
-
const parsedOutput = {
|
|
3045
|
-
...output,
|
|
3046
|
-
body: await parseErrorBody(output.body, context)
|
|
3047
|
-
};
|
|
3048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
-
switch (errorCode) {
|
|
3050
|
-
case "AccessDeniedException":
|
|
3051
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3052
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "InternalServerException":
|
|
3054
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3055
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ResourceNotFoundException":
|
|
3057
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "ValidationException":
|
|
3060
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
}, "de_GetEvidenceFoldersByAssessmentControlCommandError");
|
|
3071
2203
|
var de_GetInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3072
2204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3073
|
-
return
|
|
2205
|
+
return de_CommandError(output, context);
|
|
3074
2206
|
}
|
|
3075
2207
|
const contents = (0, import_smithy_client.map)({
|
|
3076
2208
|
$metadata: deserializeMetadata(output)
|
|
@@ -3082,31 +2214,9 @@ var de_GetInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3082
2214
|
Object.assign(contents, doc);
|
|
3083
2215
|
return contents;
|
|
3084
2216
|
}, "de_GetInsightsCommand");
|
|
3085
|
-
var de_GetInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3086
|
-
const parsedOutput = {
|
|
3087
|
-
...output,
|
|
3088
|
-
body: await parseErrorBody(output.body, context)
|
|
3089
|
-
};
|
|
3090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3091
|
-
switch (errorCode) {
|
|
3092
|
-
case "AccessDeniedException":
|
|
3093
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3094
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3095
|
-
case "InternalServerException":
|
|
3096
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3098
|
-
default:
|
|
3099
|
-
const parsedBody = parsedOutput.body;
|
|
3100
|
-
return throwDefaultError({
|
|
3101
|
-
output,
|
|
3102
|
-
parsedBody,
|
|
3103
|
-
errorCode
|
|
3104
|
-
});
|
|
3105
|
-
}
|
|
3106
|
-
}, "de_GetInsightsCommandError");
|
|
3107
2217
|
var de_GetInsightsByAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3108
2218
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3109
|
-
return
|
|
2219
|
+
return de_CommandError(output, context);
|
|
3110
2220
|
}
|
|
3111
2221
|
const contents = (0, import_smithy_client.map)({
|
|
3112
2222
|
$metadata: deserializeMetadata(output)
|
|
@@ -3118,37 +2228,9 @@ var de_GetInsightsByAssessmentCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3118
2228
|
Object.assign(contents, doc);
|
|
3119
2229
|
return contents;
|
|
3120
2230
|
}, "de_GetInsightsByAssessmentCommand");
|
|
3121
|
-
var de_GetInsightsByAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3122
|
-
const parsedOutput = {
|
|
3123
|
-
...output,
|
|
3124
|
-
body: await parseErrorBody(output.body, context)
|
|
3125
|
-
};
|
|
3126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
-
switch (errorCode) {
|
|
3128
|
-
case "AccessDeniedException":
|
|
3129
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3130
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "InternalServerException":
|
|
3132
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3133
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "ResourceNotFoundException":
|
|
3135
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3136
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ValidationException":
|
|
3138
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3139
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3140
|
-
default:
|
|
3141
|
-
const parsedBody = parsedOutput.body;
|
|
3142
|
-
return throwDefaultError({
|
|
3143
|
-
output,
|
|
3144
|
-
parsedBody,
|
|
3145
|
-
errorCode
|
|
3146
|
-
});
|
|
3147
|
-
}
|
|
3148
|
-
}, "de_GetInsightsByAssessmentCommandError");
|
|
3149
2231
|
var de_GetOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3150
2232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3151
|
-
return
|
|
2233
|
+
return de_CommandError(output, context);
|
|
3152
2234
|
}
|
|
3153
2235
|
const contents = (0, import_smithy_client.map)({
|
|
3154
2236
|
$metadata: deserializeMetadata(output)
|
|
@@ -3161,37 +2243,9 @@ var de_GetOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output
|
|
|
3161
2243
|
Object.assign(contents, doc);
|
|
3162
2244
|
return contents;
|
|
3163
2245
|
}, "de_GetOrganizationAdminAccountCommand");
|
|
3164
|
-
var de_GetOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3165
|
-
const parsedOutput = {
|
|
3166
|
-
...output,
|
|
3167
|
-
body: await parseErrorBody(output.body, context)
|
|
3168
|
-
};
|
|
3169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
|
-
switch (errorCode) {
|
|
3171
|
-
case "AccessDeniedException":
|
|
3172
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3173
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "InternalServerException":
|
|
3175
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3176
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "ResourceNotFoundException":
|
|
3178
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3179
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "ValidationException":
|
|
3181
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3183
|
-
default:
|
|
3184
|
-
const parsedBody = parsedOutput.body;
|
|
3185
|
-
return throwDefaultError({
|
|
3186
|
-
output,
|
|
3187
|
-
parsedBody,
|
|
3188
|
-
errorCode
|
|
3189
|
-
});
|
|
3190
|
-
}
|
|
3191
|
-
}, "de_GetOrganizationAdminAccountCommandError");
|
|
3192
2246
|
var de_GetServicesInScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3193
2247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3194
|
-
return
|
|
2248
|
+
return de_CommandError(output, context);
|
|
3195
2249
|
}
|
|
3196
2250
|
const contents = (0, import_smithy_client.map)({
|
|
3197
2251
|
$metadata: deserializeMetadata(output)
|
|
@@ -3203,34 +2257,9 @@ var de_GetServicesInScopeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3203
2257
|
Object.assign(contents, doc);
|
|
3204
2258
|
return contents;
|
|
3205
2259
|
}, "de_GetServicesInScopeCommand");
|
|
3206
|
-
var de_GetServicesInScopeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3207
|
-
const parsedOutput = {
|
|
3208
|
-
...output,
|
|
3209
|
-
body: await parseErrorBody(output.body, context)
|
|
3210
|
-
};
|
|
3211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3212
|
-
switch (errorCode) {
|
|
3213
|
-
case "AccessDeniedException":
|
|
3214
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3216
|
-
case "InternalServerException":
|
|
3217
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3218
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "ValidationException":
|
|
3220
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3221
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3222
|
-
default:
|
|
3223
|
-
const parsedBody = parsedOutput.body;
|
|
3224
|
-
return throwDefaultError({
|
|
3225
|
-
output,
|
|
3226
|
-
parsedBody,
|
|
3227
|
-
errorCode
|
|
3228
|
-
});
|
|
3229
|
-
}
|
|
3230
|
-
}, "de_GetServicesInScopeCommandError");
|
|
3231
2260
|
var de_GetSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3232
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3233
|
-
return
|
|
2262
|
+
return de_CommandError(output, context);
|
|
3234
2263
|
}
|
|
3235
2264
|
const contents = (0, import_smithy_client.map)({
|
|
3236
2265
|
$metadata: deserializeMetadata(output)
|
|
@@ -3242,31 +2271,9 @@ var de_GetSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3242
2271
|
Object.assign(contents, doc);
|
|
3243
2272
|
return contents;
|
|
3244
2273
|
}, "de_GetSettingsCommand");
|
|
3245
|
-
var de_GetSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3246
|
-
const parsedOutput = {
|
|
3247
|
-
...output,
|
|
3248
|
-
body: await parseErrorBody(output.body, context)
|
|
3249
|
-
};
|
|
3250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
|
-
switch (errorCode) {
|
|
3252
|
-
case "AccessDeniedException":
|
|
3253
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3255
|
-
case "InternalServerException":
|
|
3256
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3257
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3258
|
-
default:
|
|
3259
|
-
const parsedBody = parsedOutput.body;
|
|
3260
|
-
return throwDefaultError({
|
|
3261
|
-
output,
|
|
3262
|
-
parsedBody,
|
|
3263
|
-
errorCode
|
|
3264
|
-
});
|
|
3265
|
-
}
|
|
3266
|
-
}, "de_GetSettingsCommandError");
|
|
3267
2274
|
var de_ListAssessmentControlInsightsByControlDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3268
2275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3269
|
-
return
|
|
2276
|
+
return de_CommandError(output, context);
|
|
3270
2277
|
}
|
|
3271
2278
|
const contents = (0, import_smithy_client.map)({
|
|
3272
2279
|
$metadata: deserializeMetadata(output)
|
|
@@ -3279,37 +2286,9 @@ var de_ListAssessmentControlInsightsByControlDomainCommand = /* @__PURE__ */ __n
|
|
|
3279
2286
|
Object.assign(contents, doc);
|
|
3280
2287
|
return contents;
|
|
3281
2288
|
}, "de_ListAssessmentControlInsightsByControlDomainCommand");
|
|
3282
|
-
var de_ListAssessmentControlInsightsByControlDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3283
|
-
const parsedOutput = {
|
|
3284
|
-
...output,
|
|
3285
|
-
body: await parseErrorBody(output.body, context)
|
|
3286
|
-
};
|
|
3287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3288
|
-
switch (errorCode) {
|
|
3289
|
-
case "AccessDeniedException":
|
|
3290
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "InternalServerException":
|
|
3293
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3294
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3295
|
-
case "ResourceNotFoundException":
|
|
3296
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3297
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "ValidationException":
|
|
3299
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3300
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3301
|
-
default:
|
|
3302
|
-
const parsedBody = parsedOutput.body;
|
|
3303
|
-
return throwDefaultError({
|
|
3304
|
-
output,
|
|
3305
|
-
parsedBody,
|
|
3306
|
-
errorCode
|
|
3307
|
-
});
|
|
3308
|
-
}
|
|
3309
|
-
}, "de_ListAssessmentControlInsightsByControlDomainCommandError");
|
|
3310
2289
|
var de_ListAssessmentFrameworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3311
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3312
|
-
return
|
|
2291
|
+
return de_CommandError(output, context);
|
|
3313
2292
|
}
|
|
3314
2293
|
const contents = (0, import_smithy_client.map)({
|
|
3315
2294
|
$metadata: deserializeMetadata(output)
|
|
@@ -3322,34 +2301,9 @@ var de_ListAssessmentFrameworksCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3322
2301
|
Object.assign(contents, doc);
|
|
3323
2302
|
return contents;
|
|
3324
2303
|
}, "de_ListAssessmentFrameworksCommand");
|
|
3325
|
-
var de_ListAssessmentFrameworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3326
|
-
const parsedOutput = {
|
|
3327
|
-
...output,
|
|
3328
|
-
body: await parseErrorBody(output.body, context)
|
|
3329
|
-
};
|
|
3330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3331
|
-
switch (errorCode) {
|
|
3332
|
-
case "AccessDeniedException":
|
|
3333
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3335
|
-
case "InternalServerException":
|
|
3336
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3337
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3338
|
-
case "ValidationException":
|
|
3339
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3340
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3341
|
-
default:
|
|
3342
|
-
const parsedBody = parsedOutput.body;
|
|
3343
|
-
return throwDefaultError({
|
|
3344
|
-
output,
|
|
3345
|
-
parsedBody,
|
|
3346
|
-
errorCode
|
|
3347
|
-
});
|
|
3348
|
-
}
|
|
3349
|
-
}, "de_ListAssessmentFrameworksCommandError");
|
|
3350
2304
|
var de_ListAssessmentFrameworkShareRequestsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3351
2305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3352
|
-
return
|
|
2306
|
+
return de_CommandError(output, context);
|
|
3353
2307
|
}
|
|
3354
2308
|
const contents = (0, import_smithy_client.map)({
|
|
3355
2309
|
$metadata: deserializeMetadata(output)
|
|
@@ -3362,34 +2316,9 @@ var de_ListAssessmentFrameworkShareRequestsCommand = /* @__PURE__ */ __name(asyn
|
|
|
3362
2316
|
Object.assign(contents, doc);
|
|
3363
2317
|
return contents;
|
|
3364
2318
|
}, "de_ListAssessmentFrameworkShareRequestsCommand");
|
|
3365
|
-
var de_ListAssessmentFrameworkShareRequestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3366
|
-
const parsedOutput = {
|
|
3367
|
-
...output,
|
|
3368
|
-
body: await parseErrorBody(output.body, context)
|
|
3369
|
-
};
|
|
3370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3371
|
-
switch (errorCode) {
|
|
3372
|
-
case "AccessDeniedException":
|
|
3373
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3374
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "InternalServerException":
|
|
3376
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3377
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3378
|
-
case "ValidationException":
|
|
3379
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3381
|
-
default:
|
|
3382
|
-
const parsedBody = parsedOutput.body;
|
|
3383
|
-
return throwDefaultError({
|
|
3384
|
-
output,
|
|
3385
|
-
parsedBody,
|
|
3386
|
-
errorCode
|
|
3387
|
-
});
|
|
3388
|
-
}
|
|
3389
|
-
}, "de_ListAssessmentFrameworkShareRequestsCommandError");
|
|
3390
2319
|
var de_ListAssessmentReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3391
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3392
|
-
return
|
|
2321
|
+
return de_CommandError(output, context);
|
|
3393
2322
|
}
|
|
3394
2323
|
const contents = (0, import_smithy_client.map)({
|
|
3395
2324
|
$metadata: deserializeMetadata(output)
|
|
@@ -3402,34 +2331,9 @@ var de_ListAssessmentReportsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3402
2331
|
Object.assign(contents, doc);
|
|
3403
2332
|
return contents;
|
|
3404
2333
|
}, "de_ListAssessmentReportsCommand");
|
|
3405
|
-
var de_ListAssessmentReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3406
|
-
const parsedOutput = {
|
|
3407
|
-
...output,
|
|
3408
|
-
body: await parseErrorBody(output.body, context)
|
|
3409
|
-
};
|
|
3410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
-
switch (errorCode) {
|
|
3412
|
-
case "AccessDeniedException":
|
|
3413
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3414
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "InternalServerException":
|
|
3416
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3417
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "ValidationException":
|
|
3419
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3420
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3421
|
-
default:
|
|
3422
|
-
const parsedBody = parsedOutput.body;
|
|
3423
|
-
return throwDefaultError({
|
|
3424
|
-
output,
|
|
3425
|
-
parsedBody,
|
|
3426
|
-
errorCode
|
|
3427
|
-
});
|
|
3428
|
-
}
|
|
3429
|
-
}, "de_ListAssessmentReportsCommandError");
|
|
3430
2334
|
var de_ListAssessmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3431
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3432
|
-
return
|
|
2336
|
+
return de_CommandError(output, context);
|
|
3433
2337
|
}
|
|
3434
2338
|
const contents = (0, import_smithy_client.map)({
|
|
3435
2339
|
$metadata: deserializeMetadata(output)
|
|
@@ -3442,34 +2346,9 @@ var de_ListAssessmentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3442
2346
|
Object.assign(contents, doc);
|
|
3443
2347
|
return contents;
|
|
3444
2348
|
}, "de_ListAssessmentsCommand");
|
|
3445
|
-
var de_ListAssessmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3446
|
-
const parsedOutput = {
|
|
3447
|
-
...output,
|
|
3448
|
-
body: await parseErrorBody(output.body, context)
|
|
3449
|
-
};
|
|
3450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3451
|
-
switch (errorCode) {
|
|
3452
|
-
case "AccessDeniedException":
|
|
3453
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3454
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "InternalServerException":
|
|
3456
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3457
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ValidationException":
|
|
3459
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3461
|
-
default:
|
|
3462
|
-
const parsedBody = parsedOutput.body;
|
|
3463
|
-
return throwDefaultError({
|
|
3464
|
-
output,
|
|
3465
|
-
parsedBody,
|
|
3466
|
-
errorCode
|
|
3467
|
-
});
|
|
3468
|
-
}
|
|
3469
|
-
}, "de_ListAssessmentsCommandError");
|
|
3470
2349
|
var de_ListControlDomainInsightsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3471
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3472
|
-
return
|
|
2351
|
+
return de_CommandError(output, context);
|
|
3473
2352
|
}
|
|
3474
2353
|
const contents = (0, import_smithy_client.map)({
|
|
3475
2354
|
$metadata: deserializeMetadata(output)
|
|
@@ -3482,37 +2361,9 @@ var de_ListControlDomainInsightsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3482
2361
|
Object.assign(contents, doc);
|
|
3483
2362
|
return contents;
|
|
3484
2363
|
}, "de_ListControlDomainInsightsCommand");
|
|
3485
|
-
var de_ListControlDomainInsightsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3486
|
-
const parsedOutput = {
|
|
3487
|
-
...output,
|
|
3488
|
-
body: await parseErrorBody(output.body, context)
|
|
3489
|
-
};
|
|
3490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3491
|
-
switch (errorCode) {
|
|
3492
|
-
case "AccessDeniedException":
|
|
3493
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3494
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "InternalServerException":
|
|
3496
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3497
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "ResourceNotFoundException":
|
|
3499
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3500
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3501
|
-
case "ValidationException":
|
|
3502
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3503
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3504
|
-
default:
|
|
3505
|
-
const parsedBody = parsedOutput.body;
|
|
3506
|
-
return throwDefaultError({
|
|
3507
|
-
output,
|
|
3508
|
-
parsedBody,
|
|
3509
|
-
errorCode
|
|
3510
|
-
});
|
|
3511
|
-
}
|
|
3512
|
-
}, "de_ListControlDomainInsightsCommandError");
|
|
3513
2364
|
var de_ListControlDomainInsightsByAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3514
2365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3515
|
-
return
|
|
2366
|
+
return de_CommandError(output, context);
|
|
3516
2367
|
}
|
|
3517
2368
|
const contents = (0, import_smithy_client.map)({
|
|
3518
2369
|
$metadata: deserializeMetadata(output)
|
|
@@ -3525,37 +2376,9 @@ var de_ListControlDomainInsightsByAssessmentCommand = /* @__PURE__ */ __name(asy
|
|
|
3525
2376
|
Object.assign(contents, doc);
|
|
3526
2377
|
return contents;
|
|
3527
2378
|
}, "de_ListControlDomainInsightsByAssessmentCommand");
|
|
3528
|
-
var de_ListControlDomainInsightsByAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3529
|
-
const parsedOutput = {
|
|
3530
|
-
...output,
|
|
3531
|
-
body: await parseErrorBody(output.body, context)
|
|
3532
|
-
};
|
|
3533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3534
|
-
switch (errorCode) {
|
|
3535
|
-
case "AccessDeniedException":
|
|
3536
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "InternalServerException":
|
|
3539
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3540
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "ResourceNotFoundException":
|
|
3542
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "ValidationException":
|
|
3545
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3546
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3547
|
-
default:
|
|
3548
|
-
const parsedBody = parsedOutput.body;
|
|
3549
|
-
return throwDefaultError({
|
|
3550
|
-
output,
|
|
3551
|
-
parsedBody,
|
|
3552
|
-
errorCode
|
|
3553
|
-
});
|
|
3554
|
-
}
|
|
3555
|
-
}, "de_ListControlDomainInsightsByAssessmentCommandError");
|
|
3556
2379
|
var de_ListControlInsightsByControlDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3557
2380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3558
|
-
return
|
|
2381
|
+
return de_CommandError(output, context);
|
|
3559
2382
|
}
|
|
3560
2383
|
const contents = (0, import_smithy_client.map)({
|
|
3561
2384
|
$metadata: deserializeMetadata(output)
|
|
@@ -3568,37 +2391,9 @@ var de_ListControlInsightsByControlDomainCommand = /* @__PURE__ */ __name(async
|
|
|
3568
2391
|
Object.assign(contents, doc);
|
|
3569
2392
|
return contents;
|
|
3570
2393
|
}, "de_ListControlInsightsByControlDomainCommand");
|
|
3571
|
-
var de_ListControlInsightsByControlDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3572
|
-
const parsedOutput = {
|
|
3573
|
-
...output,
|
|
3574
|
-
body: await parseErrorBody(output.body, context)
|
|
3575
|
-
};
|
|
3576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3577
|
-
switch (errorCode) {
|
|
3578
|
-
case "AccessDeniedException":
|
|
3579
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3580
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3581
|
-
case "InternalServerException":
|
|
3582
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3584
|
-
case "ResourceNotFoundException":
|
|
3585
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3586
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "ValidationException":
|
|
3588
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3589
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3590
|
-
default:
|
|
3591
|
-
const parsedBody = parsedOutput.body;
|
|
3592
|
-
return throwDefaultError({
|
|
3593
|
-
output,
|
|
3594
|
-
parsedBody,
|
|
3595
|
-
errorCode
|
|
3596
|
-
});
|
|
3597
|
-
}
|
|
3598
|
-
}, "de_ListControlInsightsByControlDomainCommandError");
|
|
3599
2394
|
var de_ListControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3600
2395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3601
|
-
return
|
|
2396
|
+
return de_CommandError(output, context);
|
|
3602
2397
|
}
|
|
3603
2398
|
const contents = (0, import_smithy_client.map)({
|
|
3604
2399
|
$metadata: deserializeMetadata(output)
|
|
@@ -3611,34 +2406,9 @@ var de_ListControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3611
2406
|
Object.assign(contents, doc);
|
|
3612
2407
|
return contents;
|
|
3613
2408
|
}, "de_ListControlsCommand");
|
|
3614
|
-
var de_ListControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3615
|
-
const parsedOutput = {
|
|
3616
|
-
...output,
|
|
3617
|
-
body: await parseErrorBody(output.body, context)
|
|
3618
|
-
};
|
|
3619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3620
|
-
switch (errorCode) {
|
|
3621
|
-
case "AccessDeniedException":
|
|
3622
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3623
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3624
|
-
case "InternalServerException":
|
|
3625
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3626
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3627
|
-
case "ValidationException":
|
|
3628
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3629
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3630
|
-
default:
|
|
3631
|
-
const parsedBody = parsedOutput.body;
|
|
3632
|
-
return throwDefaultError({
|
|
3633
|
-
output,
|
|
3634
|
-
parsedBody,
|
|
3635
|
-
errorCode
|
|
3636
|
-
});
|
|
3637
|
-
}
|
|
3638
|
-
}, "de_ListControlsCommandError");
|
|
3639
2409
|
var de_ListKeywordsForDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3640
2410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3641
|
-
return
|
|
2411
|
+
return de_CommandError(output, context);
|
|
3642
2412
|
}
|
|
3643
2413
|
const contents = (0, import_smithy_client.map)({
|
|
3644
2414
|
$metadata: deserializeMetadata(output)
|
|
@@ -3651,34 +2421,9 @@ var de_ListKeywordsForDataSourceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3651
2421
|
Object.assign(contents, doc);
|
|
3652
2422
|
return contents;
|
|
3653
2423
|
}, "de_ListKeywordsForDataSourceCommand");
|
|
3654
|
-
var de_ListKeywordsForDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3655
|
-
const parsedOutput = {
|
|
3656
|
-
...output,
|
|
3657
|
-
body: await parseErrorBody(output.body, context)
|
|
3658
|
-
};
|
|
3659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
-
switch (errorCode) {
|
|
3661
|
-
case "AccessDeniedException":
|
|
3662
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "InternalServerException":
|
|
3665
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3666
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "ValidationException":
|
|
3668
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3669
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3670
|
-
default:
|
|
3671
|
-
const parsedBody = parsedOutput.body;
|
|
3672
|
-
return throwDefaultError({
|
|
3673
|
-
output,
|
|
3674
|
-
parsedBody,
|
|
3675
|
-
errorCode
|
|
3676
|
-
});
|
|
3677
|
-
}
|
|
3678
|
-
}, "de_ListKeywordsForDataSourceCommandError");
|
|
3679
2424
|
var de_ListNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3680
2425
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3681
|
-
return
|
|
2426
|
+
return de_CommandError(output, context);
|
|
3682
2427
|
}
|
|
3683
2428
|
const contents = (0, import_smithy_client.map)({
|
|
3684
2429
|
$metadata: deserializeMetadata(output)
|
|
@@ -3691,34 +2436,9 @@ var de_ListNotificationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3691
2436
|
Object.assign(contents, doc);
|
|
3692
2437
|
return contents;
|
|
3693
2438
|
}, "de_ListNotificationsCommand");
|
|
3694
|
-
var de_ListNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
|
-
const parsedOutput = {
|
|
3696
|
-
...output,
|
|
3697
|
-
body: await parseErrorBody(output.body, context)
|
|
3698
|
-
};
|
|
3699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3700
|
-
switch (errorCode) {
|
|
3701
|
-
case "AccessDeniedException":
|
|
3702
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "InternalServerException":
|
|
3705
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3706
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "ValidationException":
|
|
3708
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3710
|
-
default:
|
|
3711
|
-
const parsedBody = parsedOutput.body;
|
|
3712
|
-
return throwDefaultError({
|
|
3713
|
-
output,
|
|
3714
|
-
parsedBody,
|
|
3715
|
-
errorCode
|
|
3716
|
-
});
|
|
3717
|
-
}
|
|
3718
|
-
}, "de_ListNotificationsCommandError");
|
|
3719
2439
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3720
2440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3721
|
-
return
|
|
2441
|
+
return de_CommandError(output, context);
|
|
3722
2442
|
}
|
|
3723
2443
|
const contents = (0, import_smithy_client.map)({
|
|
3724
2444
|
$metadata: deserializeMetadata(output)
|
|
@@ -3730,34 +2450,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3730
2450
|
Object.assign(contents, doc);
|
|
3731
2451
|
return contents;
|
|
3732
2452
|
}, "de_ListTagsForResourceCommand");
|
|
3733
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3734
|
-
const parsedOutput = {
|
|
3735
|
-
...output,
|
|
3736
|
-
body: await parseErrorBody(output.body, context)
|
|
3737
|
-
};
|
|
3738
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3739
|
-
switch (errorCode) {
|
|
3740
|
-
case "InternalServerException":
|
|
3741
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3742
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "ResourceNotFoundException":
|
|
3744
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "ValidationException":
|
|
3747
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3748
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3749
|
-
default:
|
|
3750
|
-
const parsedBody = parsedOutput.body;
|
|
3751
|
-
return throwDefaultError({
|
|
3752
|
-
output,
|
|
3753
|
-
parsedBody,
|
|
3754
|
-
errorCode
|
|
3755
|
-
});
|
|
3756
|
-
}
|
|
3757
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3758
2453
|
var de_RegisterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3759
2454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3760
|
-
return
|
|
2455
|
+
return de_CommandError(output, context);
|
|
3761
2456
|
}
|
|
3762
2457
|
const contents = (0, import_smithy_client.map)({
|
|
3763
2458
|
$metadata: deserializeMetadata(output)
|
|
@@ -3769,40 +2464,9 @@ var de_RegisterAccountCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3769
2464
|
Object.assign(contents, doc);
|
|
3770
2465
|
return contents;
|
|
3771
2466
|
}, "de_RegisterAccountCommand");
|
|
3772
|
-
var de_RegisterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3773
|
-
const parsedOutput = {
|
|
3774
|
-
...output,
|
|
3775
|
-
body: await parseErrorBody(output.body, context)
|
|
3776
|
-
};
|
|
3777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3778
|
-
switch (errorCode) {
|
|
3779
|
-
case "AccessDeniedException":
|
|
3780
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3781
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3782
|
-
case "InternalServerException":
|
|
3783
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3784
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3785
|
-
case "ResourceNotFoundException":
|
|
3786
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3788
|
-
case "ThrottlingException":
|
|
3789
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
3790
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3791
|
-
case "ValidationException":
|
|
3792
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3793
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3794
|
-
default:
|
|
3795
|
-
const parsedBody = parsedOutput.body;
|
|
3796
|
-
return throwDefaultError({
|
|
3797
|
-
output,
|
|
3798
|
-
parsedBody,
|
|
3799
|
-
errorCode
|
|
3800
|
-
});
|
|
3801
|
-
}
|
|
3802
|
-
}, "de_RegisterAccountCommandError");
|
|
3803
2467
|
var de_RegisterOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3804
2468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3805
|
-
return
|
|
2469
|
+
return de_CommandError(output, context);
|
|
3806
2470
|
}
|
|
3807
2471
|
const contents = (0, import_smithy_client.map)({
|
|
3808
2472
|
$metadata: deserializeMetadata(output)
|
|
@@ -3815,114 +2479,33 @@ var de_RegisterOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (o
|
|
|
3815
2479
|
Object.assign(contents, doc);
|
|
3816
2480
|
return contents;
|
|
3817
2481
|
}, "de_RegisterOrganizationAdminAccountCommand");
|
|
3818
|
-
var de_RegisterOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3819
|
-
const parsedOutput = {
|
|
3820
|
-
...output,
|
|
3821
|
-
body: await parseErrorBody(output.body, context)
|
|
3822
|
-
};
|
|
3823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3824
|
-
switch (errorCode) {
|
|
3825
|
-
case "AccessDeniedException":
|
|
3826
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3828
|
-
case "InternalServerException":
|
|
3829
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3830
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3831
|
-
case "ResourceNotFoundException":
|
|
3832
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3833
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3834
|
-
case "ValidationException":
|
|
3835
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3836
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3837
|
-
default:
|
|
3838
|
-
const parsedBody = parsedOutput.body;
|
|
3839
|
-
return throwDefaultError({
|
|
3840
|
-
output,
|
|
3841
|
-
parsedBody,
|
|
3842
|
-
errorCode
|
|
3843
|
-
});
|
|
3844
|
-
}
|
|
3845
|
-
}, "de_RegisterOrganizationAdminAccountCommandError");
|
|
3846
2482
|
var de_StartAssessmentFrameworkShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3847
2483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3848
|
-
return
|
|
3849
|
-
}
|
|
3850
|
-
const contents = (0, import_smithy_client.map)({
|
|
3851
|
-
$metadata: deserializeMetadata(output)
|
|
3852
|
-
});
|
|
3853
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3854
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3855
|
-
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context)
|
|
3856
|
-
});
|
|
3857
|
-
Object.assign(contents, doc);
|
|
3858
|
-
return contents;
|
|
3859
|
-
}, "de_StartAssessmentFrameworkShareCommand");
|
|
3860
|
-
var de_StartAssessmentFrameworkShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3861
|
-
const parsedOutput = {
|
|
3862
|
-
...output,
|
|
3863
|
-
body: await parseErrorBody(output.body, context)
|
|
3864
|
-
};
|
|
3865
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
|
-
switch (errorCode) {
|
|
3867
|
-
case "AccessDeniedException":
|
|
3868
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3869
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3870
|
-
case "InternalServerException":
|
|
3871
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3872
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3873
|
-
case "ResourceNotFoundException":
|
|
3874
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3875
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3876
|
-
case "ValidationException":
|
|
3877
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3878
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3879
|
-
default:
|
|
3880
|
-
const parsedBody = parsedOutput.body;
|
|
3881
|
-
return throwDefaultError({
|
|
3882
|
-
output,
|
|
3883
|
-
parsedBody,
|
|
3884
|
-
errorCode
|
|
3885
|
-
});
|
|
3886
|
-
}
|
|
3887
|
-
}, "de_StartAssessmentFrameworkShareCommandError");
|
|
3888
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3890
|
-
return de_TagResourceCommandError(output, context);
|
|
2484
|
+
return de_CommandError(output, context);
|
|
3891
2485
|
}
|
|
3892
2486
|
const contents = (0, import_smithy_client.map)({
|
|
3893
2487
|
$metadata: deserializeMetadata(output)
|
|
3894
|
-
});
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
case "InternalServerException":
|
|
3906
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3907
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3908
|
-
case "ResourceNotFoundException":
|
|
3909
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3911
|
-
case "ValidationException":
|
|
3912
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3913
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3914
|
-
default:
|
|
3915
|
-
const parsedBody = parsedOutput.body;
|
|
3916
|
-
return throwDefaultError({
|
|
3917
|
-
output,
|
|
3918
|
-
parsedBody,
|
|
3919
|
-
errorCode
|
|
3920
|
-
});
|
|
2488
|
+
});
|
|
2489
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2490
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2491
|
+
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context)
|
|
2492
|
+
});
|
|
2493
|
+
Object.assign(contents, doc);
|
|
2494
|
+
return contents;
|
|
2495
|
+
}, "de_StartAssessmentFrameworkShareCommand");
|
|
2496
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2497
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2498
|
+
return de_CommandError(output, context);
|
|
3921
2499
|
}
|
|
3922
|
-
|
|
2500
|
+
const contents = (0, import_smithy_client.map)({
|
|
2501
|
+
$metadata: deserializeMetadata(output)
|
|
2502
|
+
});
|
|
2503
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2504
|
+
return contents;
|
|
2505
|
+
}, "de_TagResourceCommand");
|
|
3923
2506
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3924
2507
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3925
|
-
return
|
|
2508
|
+
return de_CommandError(output, context);
|
|
3926
2509
|
}
|
|
3927
2510
|
const contents = (0, import_smithy_client.map)({
|
|
3928
2511
|
$metadata: deserializeMetadata(output)
|
|
@@ -3930,34 +2513,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3930
2513
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3931
2514
|
return contents;
|
|
3932
2515
|
}, "de_UntagResourceCommand");
|
|
3933
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3934
|
-
const parsedOutput = {
|
|
3935
|
-
...output,
|
|
3936
|
-
body: await parseErrorBody(output.body, context)
|
|
3937
|
-
};
|
|
3938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3939
|
-
switch (errorCode) {
|
|
3940
|
-
case "InternalServerException":
|
|
3941
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3942
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3943
|
-
case "ResourceNotFoundException":
|
|
3944
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3945
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3946
|
-
case "ValidationException":
|
|
3947
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3948
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3949
|
-
default:
|
|
3950
|
-
const parsedBody = parsedOutput.body;
|
|
3951
|
-
return throwDefaultError({
|
|
3952
|
-
output,
|
|
3953
|
-
parsedBody,
|
|
3954
|
-
errorCode
|
|
3955
|
-
});
|
|
3956
|
-
}
|
|
3957
|
-
}, "de_UntagResourceCommandError");
|
|
3958
2516
|
var de_UpdateAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3959
2517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3960
|
-
return
|
|
2518
|
+
return de_CommandError(output, context);
|
|
3961
2519
|
}
|
|
3962
2520
|
const contents = (0, import_smithy_client.map)({
|
|
3963
2521
|
$metadata: deserializeMetadata(output)
|
|
@@ -3969,37 +2527,9 @@ var de_UpdateAssessmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3969
2527
|
Object.assign(contents, doc);
|
|
3970
2528
|
return contents;
|
|
3971
2529
|
}, "de_UpdateAssessmentCommand");
|
|
3972
|
-
var de_UpdateAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3973
|
-
const parsedOutput = {
|
|
3974
|
-
...output,
|
|
3975
|
-
body: await parseErrorBody(output.body, context)
|
|
3976
|
-
};
|
|
3977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3978
|
-
switch (errorCode) {
|
|
3979
|
-
case "AccessDeniedException":
|
|
3980
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3981
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3982
|
-
case "InternalServerException":
|
|
3983
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3984
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3985
|
-
case "ResourceNotFoundException":
|
|
3986
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3987
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3988
|
-
case "ValidationException":
|
|
3989
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3990
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3991
|
-
default:
|
|
3992
|
-
const parsedBody = parsedOutput.body;
|
|
3993
|
-
return throwDefaultError({
|
|
3994
|
-
output,
|
|
3995
|
-
parsedBody,
|
|
3996
|
-
errorCode
|
|
3997
|
-
});
|
|
3998
|
-
}
|
|
3999
|
-
}, "de_UpdateAssessmentCommandError");
|
|
4000
2530
|
var de_UpdateAssessmentControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4001
2531
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4002
|
-
return
|
|
2532
|
+
return de_CommandError(output, context);
|
|
4003
2533
|
}
|
|
4004
2534
|
const contents = (0, import_smithy_client.map)({
|
|
4005
2535
|
$metadata: deserializeMetadata(output)
|
|
@@ -4011,37 +2541,9 @@ var de_UpdateAssessmentControlCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4011
2541
|
Object.assign(contents, doc);
|
|
4012
2542
|
return contents;
|
|
4013
2543
|
}, "de_UpdateAssessmentControlCommand");
|
|
4014
|
-
var de_UpdateAssessmentControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4015
|
-
const parsedOutput = {
|
|
4016
|
-
...output,
|
|
4017
|
-
body: await parseErrorBody(output.body, context)
|
|
4018
|
-
};
|
|
4019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4020
|
-
switch (errorCode) {
|
|
4021
|
-
case "AccessDeniedException":
|
|
4022
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4023
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4024
|
-
case "InternalServerException":
|
|
4025
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4026
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4027
|
-
case "ResourceNotFoundException":
|
|
4028
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4029
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4030
|
-
case "ValidationException":
|
|
4031
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4033
|
-
default:
|
|
4034
|
-
const parsedBody = parsedOutput.body;
|
|
4035
|
-
return throwDefaultError({
|
|
4036
|
-
output,
|
|
4037
|
-
parsedBody,
|
|
4038
|
-
errorCode
|
|
4039
|
-
});
|
|
4040
|
-
}
|
|
4041
|
-
}, "de_UpdateAssessmentControlCommandError");
|
|
4042
2544
|
var de_UpdateAssessmentControlSetStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4043
2545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4044
|
-
return
|
|
2546
|
+
return de_CommandError(output, context);
|
|
4045
2547
|
}
|
|
4046
2548
|
const contents = (0, import_smithy_client.map)({
|
|
4047
2549
|
$metadata: deserializeMetadata(output)
|
|
@@ -4053,37 +2555,9 @@ var de_UpdateAssessmentControlSetStatusCommand = /* @__PURE__ */ __name(async (o
|
|
|
4053
2555
|
Object.assign(contents, doc);
|
|
4054
2556
|
return contents;
|
|
4055
2557
|
}, "de_UpdateAssessmentControlSetStatusCommand");
|
|
4056
|
-
var de_UpdateAssessmentControlSetStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4057
|
-
const parsedOutput = {
|
|
4058
|
-
...output,
|
|
4059
|
-
body: await parseErrorBody(output.body, context)
|
|
4060
|
-
};
|
|
4061
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
|
-
switch (errorCode) {
|
|
4063
|
-
case "AccessDeniedException":
|
|
4064
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4065
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4066
|
-
case "InternalServerException":
|
|
4067
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4068
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4069
|
-
case "ResourceNotFoundException":
|
|
4070
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "ValidationException":
|
|
4073
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4074
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4075
|
-
default:
|
|
4076
|
-
const parsedBody = parsedOutput.body;
|
|
4077
|
-
return throwDefaultError({
|
|
4078
|
-
output,
|
|
4079
|
-
parsedBody,
|
|
4080
|
-
errorCode
|
|
4081
|
-
});
|
|
4082
|
-
}
|
|
4083
|
-
}, "de_UpdateAssessmentControlSetStatusCommandError");
|
|
4084
2558
|
var de_UpdateAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4085
2559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4086
|
-
return
|
|
2560
|
+
return de_CommandError(output, context);
|
|
4087
2561
|
}
|
|
4088
2562
|
const contents = (0, import_smithy_client.map)({
|
|
4089
2563
|
$metadata: deserializeMetadata(output)
|
|
@@ -4095,37 +2569,9 @@ var de_UpdateAssessmentFrameworkCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4095
2569
|
Object.assign(contents, doc);
|
|
4096
2570
|
return contents;
|
|
4097
2571
|
}, "de_UpdateAssessmentFrameworkCommand");
|
|
4098
|
-
var de_UpdateAssessmentFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4099
|
-
const parsedOutput = {
|
|
4100
|
-
...output,
|
|
4101
|
-
body: await parseErrorBody(output.body, context)
|
|
4102
|
-
};
|
|
4103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4104
|
-
switch (errorCode) {
|
|
4105
|
-
case "AccessDeniedException":
|
|
4106
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4108
|
-
case "InternalServerException":
|
|
4109
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4111
|
-
case "ResourceNotFoundException":
|
|
4112
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "ValidationException":
|
|
4115
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4117
|
-
default:
|
|
4118
|
-
const parsedBody = parsedOutput.body;
|
|
4119
|
-
return throwDefaultError({
|
|
4120
|
-
output,
|
|
4121
|
-
parsedBody,
|
|
4122
|
-
errorCode
|
|
4123
|
-
});
|
|
4124
|
-
}
|
|
4125
|
-
}, "de_UpdateAssessmentFrameworkCommandError");
|
|
4126
2572
|
var de_UpdateAssessmentFrameworkShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4127
2573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4128
|
-
return
|
|
2574
|
+
return de_CommandError(output, context);
|
|
4129
2575
|
}
|
|
4130
2576
|
const contents = (0, import_smithy_client.map)({
|
|
4131
2577
|
$metadata: deserializeMetadata(output)
|
|
@@ -4137,40 +2583,9 @@ var de_UpdateAssessmentFrameworkShareCommand = /* @__PURE__ */ __name(async (out
|
|
|
4137
2583
|
Object.assign(contents, doc);
|
|
4138
2584
|
return contents;
|
|
4139
2585
|
}, "de_UpdateAssessmentFrameworkShareCommand");
|
|
4140
|
-
var de_UpdateAssessmentFrameworkShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4141
|
-
const parsedOutput = {
|
|
4142
|
-
...output,
|
|
4143
|
-
body: await parseErrorBody(output.body, context)
|
|
4144
|
-
};
|
|
4145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4146
|
-
switch (errorCode) {
|
|
4147
|
-
case "AccessDeniedException":
|
|
4148
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "InternalServerException":
|
|
4151
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4152
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "ResourceNotFoundException":
|
|
4154
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ServiceQuotaExceededException":
|
|
4157
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
4158
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ValidationException":
|
|
4160
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4161
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4162
|
-
default:
|
|
4163
|
-
const parsedBody = parsedOutput.body;
|
|
4164
|
-
return throwDefaultError({
|
|
4165
|
-
output,
|
|
4166
|
-
parsedBody,
|
|
4167
|
-
errorCode
|
|
4168
|
-
});
|
|
4169
|
-
}
|
|
4170
|
-
}, "de_UpdateAssessmentFrameworkShareCommandError");
|
|
4171
2586
|
var de_UpdateAssessmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4172
2587
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4173
|
-
return
|
|
2588
|
+
return de_CommandError(output, context);
|
|
4174
2589
|
}
|
|
4175
2590
|
const contents = (0, import_smithy_client.map)({
|
|
4176
2591
|
$metadata: deserializeMetadata(output)
|
|
@@ -4182,40 +2597,9 @@ var de_UpdateAssessmentStatusCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4182
2597
|
Object.assign(contents, doc);
|
|
4183
2598
|
return contents;
|
|
4184
2599
|
}, "de_UpdateAssessmentStatusCommand");
|
|
4185
|
-
var de_UpdateAssessmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4186
|
-
const parsedOutput = {
|
|
4187
|
-
...output,
|
|
4188
|
-
body: await parseErrorBody(output.body, context)
|
|
4189
|
-
};
|
|
4190
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4191
|
-
switch (errorCode) {
|
|
4192
|
-
case "AccessDeniedException":
|
|
4193
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4194
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4195
|
-
case "InternalServerException":
|
|
4196
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4197
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4198
|
-
case "ResourceNotFoundException":
|
|
4199
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4200
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4201
|
-
case "ServiceQuotaExceededException":
|
|
4202
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
4203
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4204
|
-
case "ValidationException":
|
|
4205
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4206
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4207
|
-
default:
|
|
4208
|
-
const parsedBody = parsedOutput.body;
|
|
4209
|
-
return throwDefaultError({
|
|
4210
|
-
output,
|
|
4211
|
-
parsedBody,
|
|
4212
|
-
errorCode
|
|
4213
|
-
});
|
|
4214
|
-
}
|
|
4215
|
-
}, "de_UpdateAssessmentStatusCommandError");
|
|
4216
2600
|
var de_UpdateControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4217
2601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
|
-
return
|
|
2602
|
+
return de_CommandError(output, context);
|
|
4219
2603
|
}
|
|
4220
2604
|
const contents = (0, import_smithy_client.map)({
|
|
4221
2605
|
$metadata: deserializeMetadata(output)
|
|
@@ -4227,37 +2611,9 @@ var de_UpdateControlCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4227
2611
|
Object.assign(contents, doc);
|
|
4228
2612
|
return contents;
|
|
4229
2613
|
}, "de_UpdateControlCommand");
|
|
4230
|
-
var de_UpdateControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4231
|
-
const parsedOutput = {
|
|
4232
|
-
...output,
|
|
4233
|
-
body: await parseErrorBody(output.body, context)
|
|
4234
|
-
};
|
|
4235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4236
|
-
switch (errorCode) {
|
|
4237
|
-
case "AccessDeniedException":
|
|
4238
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4239
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4240
|
-
case "InternalServerException":
|
|
4241
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4242
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4243
|
-
case "ResourceNotFoundException":
|
|
4244
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4245
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4246
|
-
case "ValidationException":
|
|
4247
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4248
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4249
|
-
default:
|
|
4250
|
-
const parsedBody = parsedOutput.body;
|
|
4251
|
-
return throwDefaultError({
|
|
4252
|
-
output,
|
|
4253
|
-
parsedBody,
|
|
4254
|
-
errorCode
|
|
4255
|
-
});
|
|
4256
|
-
}
|
|
4257
|
-
}, "de_UpdateControlCommandError");
|
|
4258
2614
|
var de_UpdateSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4259
2615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4260
|
-
return
|
|
2616
|
+
return de_CommandError(output, context);
|
|
4261
2617
|
}
|
|
4262
2618
|
const contents = (0, import_smithy_client.map)({
|
|
4263
2619
|
$metadata: deserializeMetadata(output)
|
|
@@ -4269,34 +2625,9 @@ var de_UpdateSettingsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4269
2625
|
Object.assign(contents, doc);
|
|
4270
2626
|
return contents;
|
|
4271
2627
|
}, "de_UpdateSettingsCommand");
|
|
4272
|
-
var de_UpdateSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4273
|
-
const parsedOutput = {
|
|
4274
|
-
...output,
|
|
4275
|
-
body: await parseErrorBody(output.body, context)
|
|
4276
|
-
};
|
|
4277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4278
|
-
switch (errorCode) {
|
|
4279
|
-
case "AccessDeniedException":
|
|
4280
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4281
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4282
|
-
case "InternalServerException":
|
|
4283
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4284
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "ValidationException":
|
|
4286
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4287
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4288
|
-
default:
|
|
4289
|
-
const parsedBody = parsedOutput.body;
|
|
4290
|
-
return throwDefaultError({
|
|
4291
|
-
output,
|
|
4292
|
-
parsedBody,
|
|
4293
|
-
errorCode
|
|
4294
|
-
});
|
|
4295
|
-
}
|
|
4296
|
-
}, "de_UpdateSettingsCommandError");
|
|
4297
2628
|
var de_ValidateAssessmentReportIntegrityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4298
2629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4299
|
-
return
|
|
2630
|
+
return de_CommandError(output, context);
|
|
4300
2631
|
}
|
|
4301
2632
|
const contents = (0, import_smithy_client.map)({
|
|
4302
2633
|
$metadata: deserializeMetadata(output)
|
|
@@ -4312,7 +2643,7 @@ var de_ValidateAssessmentReportIntegrityCommand = /* @__PURE__ */ __name(async (
|
|
|
4312
2643
|
Object.assign(contents, doc);
|
|
4313
2644
|
return contents;
|
|
4314
2645
|
}, "de_ValidateAssessmentReportIntegrityCommand");
|
|
4315
|
-
var
|
|
2646
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4316
2647
|
const parsedOutput = {
|
|
4317
2648
|
...output,
|
|
4318
2649
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4331,6 +2662,12 @@ var de_ValidateAssessmentReportIntegrityCommandError = /* @__PURE__ */ __name(as
|
|
|
4331
2662
|
case "ValidationException":
|
|
4332
2663
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
4333
2664
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2665
|
+
case "ThrottlingException":
|
|
2666
|
+
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2667
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2668
|
+
case "ServiceQuotaExceededException":
|
|
2669
|
+
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
2670
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4334
2671
|
default:
|
|
4335
2672
|
const parsedBody = parsedOutput.body;
|
|
4336
2673
|
return throwDefaultError({
|
|
@@ -4339,7 +2676,7 @@ var de_ValidateAssessmentReportIntegrityCommandError = /* @__PURE__ */ __name(as
|
|
|
4339
2676
|
errorCode
|
|
4340
2677
|
});
|
|
4341
2678
|
}
|
|
4342
|
-
}, "
|
|
2679
|
+
}, "de_CommandError");
|
|
4343
2680
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AuditManagerServiceException);
|
|
4344
2681
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4345
2682
|
const contents = (0, import_smithy_client.map)({});
|