@aws-sdk/client-wellarchitected 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +104 -2318
- package/dist-es/protocols/Aws_restJson1.js +177 -2391
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1683,7 +1683,7 @@ var se_UpgradeReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (in
|
|
|
1683
1683
|
}, "se_UpgradeReviewTemplateLensReviewCommand");
|
|
1684
1684
|
var de_AssociateLensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1685
1685
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1686
|
-
return
|
|
1686
|
+
return de_CommandError(output, context);
|
|
1687
1687
|
}
|
|
1688
1688
|
const contents = (0, import_smithy_client.map)({
|
|
1689
1689
|
$metadata: deserializeMetadata(output)
|
|
@@ -1691,43 +1691,9 @@ var de_AssociateLensesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1691
1691
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1692
1692
|
return contents;
|
|
1693
1693
|
}, "de_AssociateLensesCommand");
|
|
1694
|
-
var de_AssociateLensesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1695
|
-
const parsedOutput = {
|
|
1696
|
-
...output,
|
|
1697
|
-
body: await parseErrorBody(output.body, context)
|
|
1698
|
-
};
|
|
1699
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
|
-
switch (errorCode) {
|
|
1701
|
-
case "AccessDeniedException":
|
|
1702
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1703
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1704
|
-
case "ConflictException":
|
|
1705
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1706
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1707
|
-
case "InternalServerException":
|
|
1708
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1709
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1710
|
-
case "ResourceNotFoundException":
|
|
1711
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1712
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1713
|
-
case "ThrottlingException":
|
|
1714
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1715
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
|
-
case "ValidationException":
|
|
1717
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1718
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
|
-
default:
|
|
1720
|
-
const parsedBody = parsedOutput.body;
|
|
1721
|
-
return throwDefaultError({
|
|
1722
|
-
output,
|
|
1723
|
-
parsedBody,
|
|
1724
|
-
errorCode
|
|
1725
|
-
});
|
|
1726
|
-
}
|
|
1727
|
-
}, "de_AssociateLensesCommandError");
|
|
1728
1694
|
var de_AssociateProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1729
1695
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1730
|
-
return
|
|
1696
|
+
return de_CommandError(output, context);
|
|
1731
1697
|
}
|
|
1732
1698
|
const contents = (0, import_smithy_client.map)({
|
|
1733
1699
|
$metadata: deserializeMetadata(output)
|
|
@@ -1735,43 +1701,9 @@ var de_AssociateProfilesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1735
1701
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1736
1702
|
return contents;
|
|
1737
1703
|
}, "de_AssociateProfilesCommand");
|
|
1738
|
-
var de_AssociateProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
|
-
const parsedOutput = {
|
|
1740
|
-
...output,
|
|
1741
|
-
body: await parseErrorBody(output.body, context)
|
|
1742
|
-
};
|
|
1743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1744
|
-
switch (errorCode) {
|
|
1745
|
-
case "AccessDeniedException":
|
|
1746
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ConflictException":
|
|
1749
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1750
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "InternalServerException":
|
|
1752
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1753
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ResourceNotFoundException":
|
|
1755
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1756
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ThrottlingException":
|
|
1758
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1759
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "ValidationException":
|
|
1761
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1762
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1763
|
-
default:
|
|
1764
|
-
const parsedBody = parsedOutput.body;
|
|
1765
|
-
return throwDefaultError({
|
|
1766
|
-
output,
|
|
1767
|
-
parsedBody,
|
|
1768
|
-
errorCode
|
|
1769
|
-
});
|
|
1770
|
-
}
|
|
1771
|
-
}, "de_AssociateProfilesCommandError");
|
|
1772
1704
|
var de_CreateLensShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1773
1705
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1774
|
-
return
|
|
1706
|
+
return de_CommandError(output, context);
|
|
1775
1707
|
}
|
|
1776
1708
|
const contents = (0, import_smithy_client.map)({
|
|
1777
1709
|
$metadata: deserializeMetadata(output)
|
|
@@ -1783,46 +1715,9 @@ var de_CreateLensShareCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1783
1715
|
Object.assign(contents, doc);
|
|
1784
1716
|
return contents;
|
|
1785
1717
|
}, "de_CreateLensShareCommand");
|
|
1786
|
-
var de_CreateLensShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1787
|
-
const parsedOutput = {
|
|
1788
|
-
...output,
|
|
1789
|
-
body: await parseErrorBody(output.body, context)
|
|
1790
|
-
};
|
|
1791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
-
switch (errorCode) {
|
|
1793
|
-
case "AccessDeniedException":
|
|
1794
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1795
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ConflictException":
|
|
1797
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1798
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServerException":
|
|
1800
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1801
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "ResourceNotFoundException":
|
|
1803
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1804
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "ServiceQuotaExceededException":
|
|
1806
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1807
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "ThrottlingException":
|
|
1809
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "ValidationException":
|
|
1812
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1814
|
-
default:
|
|
1815
|
-
const parsedBody = parsedOutput.body;
|
|
1816
|
-
return throwDefaultError({
|
|
1817
|
-
output,
|
|
1818
|
-
parsedBody,
|
|
1819
|
-
errorCode
|
|
1820
|
-
});
|
|
1821
|
-
}
|
|
1822
|
-
}, "de_CreateLensShareCommandError");
|
|
1823
1718
|
var de_CreateLensVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1824
1719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1825
|
-
return
|
|
1720
|
+
return de_CommandError(output, context);
|
|
1826
1721
|
}
|
|
1827
1722
|
const contents = (0, import_smithy_client.map)({
|
|
1828
1723
|
$metadata: deserializeMetadata(output)
|
|
@@ -1835,46 +1730,9 @@ var de_CreateLensVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1835
1730
|
Object.assign(contents, doc);
|
|
1836
1731
|
return contents;
|
|
1837
1732
|
}, "de_CreateLensVersionCommand");
|
|
1838
|
-
var de_CreateLensVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1839
|
-
const parsedOutput = {
|
|
1840
|
-
...output,
|
|
1841
|
-
body: await parseErrorBody(output.body, context)
|
|
1842
|
-
};
|
|
1843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1844
|
-
switch (errorCode) {
|
|
1845
|
-
case "AccessDeniedException":
|
|
1846
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "ConflictException":
|
|
1849
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1850
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "InternalServerException":
|
|
1852
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1853
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "ResourceNotFoundException":
|
|
1855
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1856
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1857
|
-
case "ServiceQuotaExceededException":
|
|
1858
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1859
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "ThrottlingException":
|
|
1861
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1862
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "ValidationException":
|
|
1864
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1865
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
|
-
default:
|
|
1867
|
-
const parsedBody = parsedOutput.body;
|
|
1868
|
-
return throwDefaultError({
|
|
1869
|
-
output,
|
|
1870
|
-
parsedBody,
|
|
1871
|
-
errorCode
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
}, "de_CreateLensVersionCommandError");
|
|
1875
1733
|
var de_CreateMilestoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1876
1734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1877
|
-
return
|
|
1735
|
+
return de_CommandError(output, context);
|
|
1878
1736
|
}
|
|
1879
1737
|
const contents = (0, import_smithy_client.map)({
|
|
1880
1738
|
$metadata: deserializeMetadata(output)
|
|
@@ -1887,46 +1745,9 @@ var de_CreateMilestoneCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1887
1745
|
Object.assign(contents, doc);
|
|
1888
1746
|
return contents;
|
|
1889
1747
|
}, "de_CreateMilestoneCommand");
|
|
1890
|
-
var de_CreateMilestoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1891
|
-
const parsedOutput = {
|
|
1892
|
-
...output,
|
|
1893
|
-
body: await parseErrorBody(output.body, context)
|
|
1894
|
-
};
|
|
1895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
-
switch (errorCode) {
|
|
1897
|
-
case "AccessDeniedException":
|
|
1898
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1899
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1900
|
-
case "ConflictException":
|
|
1901
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1902
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1903
|
-
case "InternalServerException":
|
|
1904
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "ResourceNotFoundException":
|
|
1907
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
1908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1909
|
-
case "ServiceQuotaExceededException":
|
|
1910
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1911
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1912
|
-
case "ThrottlingException":
|
|
1913
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1914
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "ValidationException":
|
|
1916
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1918
|
-
default:
|
|
1919
|
-
const parsedBody = parsedOutput.body;
|
|
1920
|
-
return throwDefaultError({
|
|
1921
|
-
output,
|
|
1922
|
-
parsedBody,
|
|
1923
|
-
errorCode
|
|
1924
|
-
});
|
|
1925
|
-
}
|
|
1926
|
-
}, "de_CreateMilestoneCommandError");
|
|
1927
1748
|
var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
1749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1929
|
-
return
|
|
1750
|
+
return de_CommandError(output, context);
|
|
1930
1751
|
}
|
|
1931
1752
|
const contents = (0, import_smithy_client.map)({
|
|
1932
1753
|
$metadata: deserializeMetadata(output)
|
|
@@ -1939,43 +1760,9 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1939
1760
|
Object.assign(contents, doc);
|
|
1940
1761
|
return contents;
|
|
1941
1762
|
}, "de_CreateProfileCommand");
|
|
1942
|
-
var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1943
|
-
const parsedOutput = {
|
|
1944
|
-
...output,
|
|
1945
|
-
body: await parseErrorBody(output.body, context)
|
|
1946
|
-
};
|
|
1947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1948
|
-
switch (errorCode) {
|
|
1949
|
-
case "AccessDeniedException":
|
|
1950
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
1951
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ConflictException":
|
|
1953
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
1954
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "InternalServerException":
|
|
1956
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
1957
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ServiceQuotaExceededException":
|
|
1959
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
1960
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ThrottlingException":
|
|
1962
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
1963
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ValidationException":
|
|
1965
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
1966
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1967
|
-
default:
|
|
1968
|
-
const parsedBody = parsedOutput.body;
|
|
1969
|
-
return throwDefaultError({
|
|
1970
|
-
output,
|
|
1971
|
-
parsedBody,
|
|
1972
|
-
errorCode
|
|
1973
|
-
});
|
|
1974
|
-
}
|
|
1975
|
-
}, "de_CreateProfileCommandError");
|
|
1976
1763
|
var de_CreateProfileShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
1764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1978
|
-
return
|
|
1765
|
+
return de_CommandError(output, context);
|
|
1979
1766
|
}
|
|
1980
1767
|
const contents = (0, import_smithy_client.map)({
|
|
1981
1768
|
$metadata: deserializeMetadata(output)
|
|
@@ -1988,46 +1775,9 @@ var de_CreateProfileShareCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1988
1775
|
Object.assign(contents, doc);
|
|
1989
1776
|
return contents;
|
|
1990
1777
|
}, "de_CreateProfileShareCommand");
|
|
1991
|
-
var de_CreateProfileShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1992
|
-
const parsedOutput = {
|
|
1993
|
-
...output,
|
|
1994
|
-
body: await parseErrorBody(output.body, context)
|
|
1995
|
-
};
|
|
1996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
-
switch (errorCode) {
|
|
1998
|
-
case "AccessDeniedException":
|
|
1999
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2000
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ConflictException":
|
|
2002
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2003
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "InternalServerException":
|
|
2005
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2006
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ResourceNotFoundException":
|
|
2008
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2009
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2010
|
-
case "ServiceQuotaExceededException":
|
|
2011
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2012
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "ThrottlingException":
|
|
2014
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2015
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2016
|
-
case "ValidationException":
|
|
2017
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2018
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2019
|
-
default:
|
|
2020
|
-
const parsedBody = parsedOutput.body;
|
|
2021
|
-
return throwDefaultError({
|
|
2022
|
-
output,
|
|
2023
|
-
parsedBody,
|
|
2024
|
-
errorCode
|
|
2025
|
-
});
|
|
2026
|
-
}
|
|
2027
|
-
}, "de_CreateProfileShareCommandError");
|
|
2028
1778
|
var de_CreateReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2029
1779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2030
|
-
return
|
|
1780
|
+
return de_CommandError(output, context);
|
|
2031
1781
|
}
|
|
2032
1782
|
const contents = (0, import_smithy_client.map)({
|
|
2033
1783
|
$metadata: deserializeMetadata(output)
|
|
@@ -2039,46 +1789,9 @@ var de_CreateReviewTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2039
1789
|
Object.assign(contents, doc);
|
|
2040
1790
|
return contents;
|
|
2041
1791
|
}, "de_CreateReviewTemplateCommand");
|
|
2042
|
-
var de_CreateReviewTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await parseErrorBody(output.body, context)
|
|
2046
|
-
};
|
|
2047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2048
|
-
switch (errorCode) {
|
|
2049
|
-
case "AccessDeniedException":
|
|
2050
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2051
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "ConflictException":
|
|
2053
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2054
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "InternalServerException":
|
|
2056
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2057
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ResourceNotFoundException":
|
|
2059
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2061
|
-
case "ServiceQuotaExceededException":
|
|
2062
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2063
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2064
|
-
case "ThrottlingException":
|
|
2065
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2066
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2067
|
-
case "ValidationException":
|
|
2068
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2069
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2070
|
-
default:
|
|
2071
|
-
const parsedBody = parsedOutput.body;
|
|
2072
|
-
return throwDefaultError({
|
|
2073
|
-
output,
|
|
2074
|
-
parsedBody,
|
|
2075
|
-
errorCode
|
|
2076
|
-
});
|
|
2077
|
-
}
|
|
2078
|
-
}, "de_CreateReviewTemplateCommandError");
|
|
2079
1792
|
var de_CreateTemplateShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2080
1793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2081
|
-
return
|
|
1794
|
+
return de_CommandError(output, context);
|
|
2082
1795
|
}
|
|
2083
1796
|
const contents = (0, import_smithy_client.map)({
|
|
2084
1797
|
$metadata: deserializeMetadata(output)
|
|
@@ -2091,46 +1804,9 @@ var de_CreateTemplateShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2091
1804
|
Object.assign(contents, doc);
|
|
2092
1805
|
return contents;
|
|
2093
1806
|
}, "de_CreateTemplateShareCommand");
|
|
2094
|
-
var de_CreateTemplateShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2095
|
-
const parsedOutput = {
|
|
2096
|
-
...output,
|
|
2097
|
-
body: await parseErrorBody(output.body, context)
|
|
2098
|
-
};
|
|
2099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2100
|
-
switch (errorCode) {
|
|
2101
|
-
case "AccessDeniedException":
|
|
2102
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2103
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2104
|
-
case "ConflictException":
|
|
2105
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2106
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2107
|
-
case "InternalServerException":
|
|
2108
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2109
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2110
|
-
case "ResourceNotFoundException":
|
|
2111
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2112
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2113
|
-
case "ServiceQuotaExceededException":
|
|
2114
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2115
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "ThrottlingException":
|
|
2117
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2118
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "ValidationException":
|
|
2120
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2121
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2122
|
-
default:
|
|
2123
|
-
const parsedBody = parsedOutput.body;
|
|
2124
|
-
return throwDefaultError({
|
|
2125
|
-
output,
|
|
2126
|
-
parsedBody,
|
|
2127
|
-
errorCode
|
|
2128
|
-
});
|
|
2129
|
-
}
|
|
2130
|
-
}, "de_CreateTemplateShareCommandError");
|
|
2131
1807
|
var de_CreateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2132
1808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2133
|
-
return
|
|
1809
|
+
return de_CommandError(output, context);
|
|
2134
1810
|
}
|
|
2135
1811
|
const contents = (0, import_smithy_client.map)({
|
|
2136
1812
|
$metadata: deserializeMetadata(output)
|
|
@@ -2143,46 +1819,9 @@ var de_CreateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2143
1819
|
Object.assign(contents, doc);
|
|
2144
1820
|
return contents;
|
|
2145
1821
|
}, "de_CreateWorkloadCommand");
|
|
2146
|
-
var de_CreateWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2147
|
-
const parsedOutput = {
|
|
2148
|
-
...output,
|
|
2149
|
-
body: await parseErrorBody(output.body, context)
|
|
2150
|
-
};
|
|
2151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2152
|
-
switch (errorCode) {
|
|
2153
|
-
case "AccessDeniedException":
|
|
2154
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ConflictException":
|
|
2157
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2158
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "InternalServerException":
|
|
2160
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2161
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "ResourceNotFoundException":
|
|
2163
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ServiceQuotaExceededException":
|
|
2166
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2167
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "ThrottlingException":
|
|
2169
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2170
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ValidationException":
|
|
2172
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2173
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2174
|
-
default:
|
|
2175
|
-
const parsedBody = parsedOutput.body;
|
|
2176
|
-
return throwDefaultError({
|
|
2177
|
-
output,
|
|
2178
|
-
parsedBody,
|
|
2179
|
-
errorCode
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
}, "de_CreateWorkloadCommandError");
|
|
2183
1822
|
var de_CreateWorkloadShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2184
1823
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2185
|
-
return
|
|
1824
|
+
return de_CommandError(output, context);
|
|
2186
1825
|
}
|
|
2187
1826
|
const contents = (0, import_smithy_client.map)({
|
|
2188
1827
|
$metadata: deserializeMetadata(output)
|
|
@@ -2195,46 +1834,9 @@ var de_CreateWorkloadShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2195
1834
|
Object.assign(contents, doc);
|
|
2196
1835
|
return contents;
|
|
2197
1836
|
}, "de_CreateWorkloadShareCommand");
|
|
2198
|
-
var de_CreateWorkloadShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2199
|
-
const parsedOutput = {
|
|
2200
|
-
...output,
|
|
2201
|
-
body: await parseErrorBody(output.body, context)
|
|
2202
|
-
};
|
|
2203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2204
|
-
switch (errorCode) {
|
|
2205
|
-
case "AccessDeniedException":
|
|
2206
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "ConflictException":
|
|
2209
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2210
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "InternalServerException":
|
|
2212
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2213
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2214
|
-
case "ResourceNotFoundException":
|
|
2215
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2217
|
-
case "ServiceQuotaExceededException":
|
|
2218
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2219
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2220
|
-
case "ThrottlingException":
|
|
2221
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2222
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ValidationException":
|
|
2224
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2225
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2226
|
-
default:
|
|
2227
|
-
const parsedBody = parsedOutput.body;
|
|
2228
|
-
return throwDefaultError({
|
|
2229
|
-
output,
|
|
2230
|
-
parsedBody,
|
|
2231
|
-
errorCode
|
|
2232
|
-
});
|
|
2233
|
-
}
|
|
2234
|
-
}, "de_CreateWorkloadShareCommandError");
|
|
2235
1837
|
var de_DeleteLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
1838
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2237
|
-
return
|
|
1839
|
+
return de_CommandError(output, context);
|
|
2238
1840
|
}
|
|
2239
1841
|
const contents = (0, import_smithy_client.map)({
|
|
2240
1842
|
$metadata: deserializeMetadata(output)
|
|
@@ -2242,43 +1844,9 @@ var de_DeleteLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2242
1844
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2243
1845
|
return contents;
|
|
2244
1846
|
}, "de_DeleteLensCommand");
|
|
2245
|
-
var de_DeleteLensCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2246
|
-
const parsedOutput = {
|
|
2247
|
-
...output,
|
|
2248
|
-
body: await parseErrorBody(output.body, context)
|
|
2249
|
-
};
|
|
2250
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2251
|
-
switch (errorCode) {
|
|
2252
|
-
case "AccessDeniedException":
|
|
2253
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2254
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2255
|
-
case "ConflictException":
|
|
2256
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2257
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "InternalServerException":
|
|
2259
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ResourceNotFoundException":
|
|
2262
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ThrottlingException":
|
|
2265
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ValidationException":
|
|
2268
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2270
|
-
default:
|
|
2271
|
-
const parsedBody = parsedOutput.body;
|
|
2272
|
-
return throwDefaultError({
|
|
2273
|
-
output,
|
|
2274
|
-
parsedBody,
|
|
2275
|
-
errorCode
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
}, "de_DeleteLensCommandError");
|
|
2279
1847
|
var de_DeleteLensShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
1848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2281
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
2282
1850
|
}
|
|
2283
1851
|
const contents = (0, import_smithy_client.map)({
|
|
2284
1852
|
$metadata: deserializeMetadata(output)
|
|
@@ -2286,43 +1854,9 @@ var de_DeleteLensShareCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2286
1854
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2287
1855
|
return contents;
|
|
2288
1856
|
}, "de_DeleteLensShareCommand");
|
|
2289
|
-
var de_DeleteLensShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
|
-
const parsedOutput = {
|
|
2291
|
-
...output,
|
|
2292
|
-
body: await parseErrorBody(output.body, context)
|
|
2293
|
-
};
|
|
2294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
|
-
switch (errorCode) {
|
|
2296
|
-
case "AccessDeniedException":
|
|
2297
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ConflictException":
|
|
2300
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2301
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "InternalServerException":
|
|
2303
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ResourceNotFoundException":
|
|
2306
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ThrottlingException":
|
|
2309
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2310
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ValidationException":
|
|
2312
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2314
|
-
default:
|
|
2315
|
-
const parsedBody = parsedOutput.body;
|
|
2316
|
-
return throwDefaultError({
|
|
2317
|
-
output,
|
|
2318
|
-
parsedBody,
|
|
2319
|
-
errorCode
|
|
2320
|
-
});
|
|
2321
|
-
}
|
|
2322
|
-
}, "de_DeleteLensShareCommandError");
|
|
2323
1857
|
var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2324
1858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2325
|
-
return
|
|
1859
|
+
return de_CommandError(output, context);
|
|
2326
1860
|
}
|
|
2327
1861
|
const contents = (0, import_smithy_client.map)({
|
|
2328
1862
|
$metadata: deserializeMetadata(output)
|
|
@@ -2330,43 +1864,9 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2330
1864
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2331
1865
|
return contents;
|
|
2332
1866
|
}, "de_DeleteProfileCommand");
|
|
2333
|
-
var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2334
|
-
const parsedOutput = {
|
|
2335
|
-
...output,
|
|
2336
|
-
body: await parseErrorBody(output.body, context)
|
|
2337
|
-
};
|
|
2338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2339
|
-
switch (errorCode) {
|
|
2340
|
-
case "AccessDeniedException":
|
|
2341
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2342
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2343
|
-
case "ConflictException":
|
|
2344
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2345
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2346
|
-
case "InternalServerException":
|
|
2347
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2348
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "ResourceNotFoundException":
|
|
2350
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2351
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "ThrottlingException":
|
|
2353
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2354
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ValidationException":
|
|
2356
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2357
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2358
|
-
default:
|
|
2359
|
-
const parsedBody = parsedOutput.body;
|
|
2360
|
-
return throwDefaultError({
|
|
2361
|
-
output,
|
|
2362
|
-
parsedBody,
|
|
2363
|
-
errorCode
|
|
2364
|
-
});
|
|
2365
|
-
}
|
|
2366
|
-
}, "de_DeleteProfileCommandError");
|
|
2367
1867
|
var de_DeleteProfileShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2368
1868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2369
|
-
return
|
|
1869
|
+
return de_CommandError(output, context);
|
|
2370
1870
|
}
|
|
2371
1871
|
const contents = (0, import_smithy_client.map)({
|
|
2372
1872
|
$metadata: deserializeMetadata(output)
|
|
@@ -2374,43 +1874,9 @@ var de_DeleteProfileShareCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2374
1874
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2375
1875
|
return contents;
|
|
2376
1876
|
}, "de_DeleteProfileShareCommand");
|
|
2377
|
-
var de_DeleteProfileShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2378
|
-
const parsedOutput = {
|
|
2379
|
-
...output,
|
|
2380
|
-
body: await parseErrorBody(output.body, context)
|
|
2381
|
-
};
|
|
2382
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2383
|
-
switch (errorCode) {
|
|
2384
|
-
case "AccessDeniedException":
|
|
2385
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2386
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "ConflictException":
|
|
2388
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2389
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "InternalServerException":
|
|
2391
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2392
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "ResourceNotFoundException":
|
|
2394
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2395
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "ThrottlingException":
|
|
2397
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2398
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "ValidationException":
|
|
2400
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2401
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2402
|
-
default:
|
|
2403
|
-
const parsedBody = parsedOutput.body;
|
|
2404
|
-
return throwDefaultError({
|
|
2405
|
-
output,
|
|
2406
|
-
parsedBody,
|
|
2407
|
-
errorCode
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
}, "de_DeleteProfileShareCommandError");
|
|
2411
1877
|
var de_DeleteReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2412
1878
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2413
|
-
return
|
|
1879
|
+
return de_CommandError(output, context);
|
|
2414
1880
|
}
|
|
2415
1881
|
const contents = (0, import_smithy_client.map)({
|
|
2416
1882
|
$metadata: deserializeMetadata(output)
|
|
@@ -2418,43 +1884,9 @@ var de_DeleteReviewTemplateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2418
1884
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2419
1885
|
return contents;
|
|
2420
1886
|
}, "de_DeleteReviewTemplateCommand");
|
|
2421
|
-
var de_DeleteReviewTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2422
|
-
const parsedOutput = {
|
|
2423
|
-
...output,
|
|
2424
|
-
body: await parseErrorBody(output.body, context)
|
|
2425
|
-
};
|
|
2426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
|
-
switch (errorCode) {
|
|
2428
|
-
case "AccessDeniedException":
|
|
2429
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "ConflictException":
|
|
2432
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2433
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2434
|
-
case "InternalServerException":
|
|
2435
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2436
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2437
|
-
case "ResourceNotFoundException":
|
|
2438
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2440
|
-
case "ThrottlingException":
|
|
2441
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2442
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2443
|
-
case "ValidationException":
|
|
2444
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2445
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2446
|
-
default:
|
|
2447
|
-
const parsedBody = parsedOutput.body;
|
|
2448
|
-
return throwDefaultError({
|
|
2449
|
-
output,
|
|
2450
|
-
parsedBody,
|
|
2451
|
-
errorCode
|
|
2452
|
-
});
|
|
2453
|
-
}
|
|
2454
|
-
}, "de_DeleteReviewTemplateCommandError");
|
|
2455
1887
|
var de_DeleteTemplateShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2456
1888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2457
|
-
return
|
|
1889
|
+
return de_CommandError(output, context);
|
|
2458
1890
|
}
|
|
2459
1891
|
const contents = (0, import_smithy_client.map)({
|
|
2460
1892
|
$metadata: deserializeMetadata(output)
|
|
@@ -2462,43 +1894,9 @@ var de_DeleteTemplateShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2462
1894
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2463
1895
|
return contents;
|
|
2464
1896
|
}, "de_DeleteTemplateShareCommand");
|
|
2465
|
-
var de_DeleteTemplateShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
|
-
const parsedOutput = {
|
|
2467
|
-
...output,
|
|
2468
|
-
body: await parseErrorBody(output.body, context)
|
|
2469
|
-
};
|
|
2470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2471
|
-
switch (errorCode) {
|
|
2472
|
-
case "AccessDeniedException":
|
|
2473
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2475
|
-
case "ConflictException":
|
|
2476
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2477
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2478
|
-
case "InternalServerException":
|
|
2479
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2480
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2481
|
-
case "ResourceNotFoundException":
|
|
2482
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2483
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2484
|
-
case "ThrottlingException":
|
|
2485
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2486
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2487
|
-
case "ValidationException":
|
|
2488
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2489
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2490
|
-
default:
|
|
2491
|
-
const parsedBody = parsedOutput.body;
|
|
2492
|
-
return throwDefaultError({
|
|
2493
|
-
output,
|
|
2494
|
-
parsedBody,
|
|
2495
|
-
errorCode
|
|
2496
|
-
});
|
|
2497
|
-
}
|
|
2498
|
-
}, "de_DeleteTemplateShareCommandError");
|
|
2499
1897
|
var de_DeleteWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2500
1898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2501
|
-
return
|
|
1899
|
+
return de_CommandError(output, context);
|
|
2502
1900
|
}
|
|
2503
1901
|
const contents = (0, import_smithy_client.map)({
|
|
2504
1902
|
$metadata: deserializeMetadata(output)
|
|
@@ -2506,43 +1904,9 @@ var de_DeleteWorkloadCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2506
1904
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2507
1905
|
return contents;
|
|
2508
1906
|
}, "de_DeleteWorkloadCommand");
|
|
2509
|
-
var de_DeleteWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2510
|
-
const parsedOutput = {
|
|
2511
|
-
...output,
|
|
2512
|
-
body: await parseErrorBody(output.body, context)
|
|
2513
|
-
};
|
|
2514
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
|
-
switch (errorCode) {
|
|
2516
|
-
case "AccessDeniedException":
|
|
2517
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2518
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ConflictException":
|
|
2520
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2521
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "InternalServerException":
|
|
2523
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ResourceNotFoundException":
|
|
2526
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "ThrottlingException":
|
|
2529
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2530
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "ValidationException":
|
|
2532
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2533
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2534
|
-
default:
|
|
2535
|
-
const parsedBody = parsedOutput.body;
|
|
2536
|
-
return throwDefaultError({
|
|
2537
|
-
output,
|
|
2538
|
-
parsedBody,
|
|
2539
|
-
errorCode
|
|
2540
|
-
});
|
|
2541
|
-
}
|
|
2542
|
-
}, "de_DeleteWorkloadCommandError");
|
|
2543
1907
|
var de_DeleteWorkloadShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2544
1908
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2545
|
-
return
|
|
1909
|
+
return de_CommandError(output, context);
|
|
2546
1910
|
}
|
|
2547
1911
|
const contents = (0, import_smithy_client.map)({
|
|
2548
1912
|
$metadata: deserializeMetadata(output)
|
|
@@ -2550,43 +1914,9 @@ var de_DeleteWorkloadShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2550
1914
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2551
1915
|
return contents;
|
|
2552
1916
|
}, "de_DeleteWorkloadShareCommand");
|
|
2553
|
-
var de_DeleteWorkloadShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2554
|
-
const parsedOutput = {
|
|
2555
|
-
...output,
|
|
2556
|
-
body: await parseErrorBody(output.body, context)
|
|
2557
|
-
};
|
|
2558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
|
-
switch (errorCode) {
|
|
2560
|
-
case "AccessDeniedException":
|
|
2561
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2562
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2563
|
-
case "ConflictException":
|
|
2564
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2565
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2566
|
-
case "InternalServerException":
|
|
2567
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2569
|
-
case "ResourceNotFoundException":
|
|
2570
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2571
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2572
|
-
case "ThrottlingException":
|
|
2573
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2575
|
-
case "ValidationException":
|
|
2576
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2578
|
-
default:
|
|
2579
|
-
const parsedBody = parsedOutput.body;
|
|
2580
|
-
return throwDefaultError({
|
|
2581
|
-
output,
|
|
2582
|
-
parsedBody,
|
|
2583
|
-
errorCode
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
}, "de_DeleteWorkloadShareCommandError");
|
|
2587
1917
|
var de_DisassociateLensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2588
1918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2589
|
-
return
|
|
1919
|
+
return de_CommandError(output, context);
|
|
2590
1920
|
}
|
|
2591
1921
|
const contents = (0, import_smithy_client.map)({
|
|
2592
1922
|
$metadata: deserializeMetadata(output)
|
|
@@ -2594,43 +1924,9 @@ var de_DisassociateLensesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2594
1924
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2595
1925
|
return contents;
|
|
2596
1926
|
}, "de_DisassociateLensesCommand");
|
|
2597
|
-
var de_DisassociateLensesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2598
|
-
const parsedOutput = {
|
|
2599
|
-
...output,
|
|
2600
|
-
body: await parseErrorBody(output.body, context)
|
|
2601
|
-
};
|
|
2602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2603
|
-
switch (errorCode) {
|
|
2604
|
-
case "AccessDeniedException":
|
|
2605
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ConflictException":
|
|
2608
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2609
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "InternalServerException":
|
|
2611
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "ResourceNotFoundException":
|
|
2614
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ThrottlingException":
|
|
2617
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2618
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "ValidationException":
|
|
2620
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
return throwDefaultError({
|
|
2625
|
-
output,
|
|
2626
|
-
parsedBody,
|
|
2627
|
-
errorCode
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
}, "de_DisassociateLensesCommandError");
|
|
2631
1927
|
var de_DisassociateProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
1928
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2633
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
2634
1930
|
}
|
|
2635
1931
|
const contents = (0, import_smithy_client.map)({
|
|
2636
1932
|
$metadata: deserializeMetadata(output)
|
|
@@ -2638,43 +1934,9 @@ var de_DisassociateProfilesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2638
1934
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2639
1935
|
return contents;
|
|
2640
1936
|
}, "de_DisassociateProfilesCommand");
|
|
2641
|
-
var de_DisassociateProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2642
|
-
const parsedOutput = {
|
|
2643
|
-
...output,
|
|
2644
|
-
body: await parseErrorBody(output.body, context)
|
|
2645
|
-
};
|
|
2646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2647
|
-
switch (errorCode) {
|
|
2648
|
-
case "AccessDeniedException":
|
|
2649
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ConflictException":
|
|
2652
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2653
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "InternalServerException":
|
|
2655
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2656
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "ResourceNotFoundException":
|
|
2658
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2659
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ThrottlingException":
|
|
2661
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2662
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "ValidationException":
|
|
2664
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2665
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2666
|
-
default:
|
|
2667
|
-
const parsedBody = parsedOutput.body;
|
|
2668
|
-
return throwDefaultError({
|
|
2669
|
-
output,
|
|
2670
|
-
parsedBody,
|
|
2671
|
-
errorCode
|
|
2672
|
-
});
|
|
2673
|
-
}
|
|
2674
|
-
}, "de_DisassociateProfilesCommandError");
|
|
2675
1937
|
var de_ExportLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2676
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2677
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
2678
1940
|
}
|
|
2679
1941
|
const contents = (0, import_smithy_client.map)({
|
|
2680
1942
|
$metadata: deserializeMetadata(output)
|
|
@@ -2686,40 +1948,9 @@ var de_ExportLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2686
1948
|
Object.assign(contents, doc);
|
|
2687
1949
|
return contents;
|
|
2688
1950
|
}, "de_ExportLensCommand");
|
|
2689
|
-
var de_ExportLensCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2690
|
-
const parsedOutput = {
|
|
2691
|
-
...output,
|
|
2692
|
-
body: await parseErrorBody(output.body, context)
|
|
2693
|
-
};
|
|
2694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2695
|
-
switch (errorCode) {
|
|
2696
|
-
case "AccessDeniedException":
|
|
2697
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2698
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2699
|
-
case "InternalServerException":
|
|
2700
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2702
|
-
case "ResourceNotFoundException":
|
|
2703
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2705
|
-
case "ThrottlingException":
|
|
2706
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ValidationException":
|
|
2709
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2711
|
-
default:
|
|
2712
|
-
const parsedBody = parsedOutput.body;
|
|
2713
|
-
return throwDefaultError({
|
|
2714
|
-
output,
|
|
2715
|
-
parsedBody,
|
|
2716
|
-
errorCode
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
}, "de_ExportLensCommandError");
|
|
2720
1951
|
var de_GetAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2721
1952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2722
|
-
return
|
|
1953
|
+
return de_CommandError(output, context);
|
|
2723
1954
|
}
|
|
2724
1955
|
const contents = (0, import_smithy_client.map)({
|
|
2725
1956
|
$metadata: deserializeMetadata(output)
|
|
@@ -2735,40 +1966,9 @@ var de_GetAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2735
1966
|
Object.assign(contents, doc);
|
|
2736
1967
|
return contents;
|
|
2737
1968
|
}, "de_GetAnswerCommand");
|
|
2738
|
-
var de_GetAnswerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2739
|
-
const parsedOutput = {
|
|
2740
|
-
...output,
|
|
2741
|
-
body: await parseErrorBody(output.body, context)
|
|
2742
|
-
};
|
|
2743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
|
-
switch (errorCode) {
|
|
2745
|
-
case "AccessDeniedException":
|
|
2746
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2747
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "InternalServerException":
|
|
2749
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2750
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2751
|
-
case "ResourceNotFoundException":
|
|
2752
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2753
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2754
|
-
case "ThrottlingException":
|
|
2755
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2756
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2757
|
-
case "ValidationException":
|
|
2758
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2760
|
-
default:
|
|
2761
|
-
const parsedBody = parsedOutput.body;
|
|
2762
|
-
return throwDefaultError({
|
|
2763
|
-
output,
|
|
2764
|
-
parsedBody,
|
|
2765
|
-
errorCode
|
|
2766
|
-
});
|
|
2767
|
-
}
|
|
2768
|
-
}, "de_GetAnswerCommandError");
|
|
2769
1969
|
var de_GetConsolidatedReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2770
1970
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2771
|
-
return
|
|
1971
|
+
return de_CommandError(output, context);
|
|
2772
1972
|
}
|
|
2773
1973
|
const contents = (0, import_smithy_client.map)({
|
|
2774
1974
|
$metadata: deserializeMetadata(output)
|
|
@@ -2782,40 +1982,9 @@ var de_GetConsolidatedReportCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2782
1982
|
Object.assign(contents, doc);
|
|
2783
1983
|
return contents;
|
|
2784
1984
|
}, "de_GetConsolidatedReportCommand");
|
|
2785
|
-
var de_GetConsolidatedReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2786
|
-
const parsedOutput = {
|
|
2787
|
-
...output,
|
|
2788
|
-
body: await parseErrorBody(output.body, context)
|
|
2789
|
-
};
|
|
2790
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2791
|
-
switch (errorCode) {
|
|
2792
|
-
case "AccessDeniedException":
|
|
2793
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2794
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2795
|
-
case "ConflictException":
|
|
2796
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
2797
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2798
|
-
case "InternalServerException":
|
|
2799
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2800
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ThrottlingException":
|
|
2802
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ValidationException":
|
|
2805
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2807
|
-
default:
|
|
2808
|
-
const parsedBody = parsedOutput.body;
|
|
2809
|
-
return throwDefaultError({
|
|
2810
|
-
output,
|
|
2811
|
-
parsedBody,
|
|
2812
|
-
errorCode
|
|
2813
|
-
});
|
|
2814
|
-
}
|
|
2815
|
-
}, "de_GetConsolidatedReportCommandError");
|
|
2816
1985
|
var de_GetLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2817
1986
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2818
|
-
return
|
|
1987
|
+
return de_CommandError(output, context);
|
|
2819
1988
|
}
|
|
2820
1989
|
const contents = (0, import_smithy_client.map)({
|
|
2821
1990
|
$metadata: deserializeMetadata(output)
|
|
@@ -2827,40 +1996,9 @@ var de_GetLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2827
1996
|
Object.assign(contents, doc);
|
|
2828
1997
|
return contents;
|
|
2829
1998
|
}, "de_GetLensCommand");
|
|
2830
|
-
var de_GetLensCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2831
|
-
const parsedOutput = {
|
|
2832
|
-
...output,
|
|
2833
|
-
body: await parseErrorBody(output.body, context)
|
|
2834
|
-
};
|
|
2835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
-
switch (errorCode) {
|
|
2837
|
-
case "AccessDeniedException":
|
|
2838
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "InternalServerException":
|
|
2841
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ResourceNotFoundException":
|
|
2844
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ThrottlingException":
|
|
2847
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ValidationException":
|
|
2850
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody,
|
|
2857
|
-
errorCode
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
}, "de_GetLensCommandError");
|
|
2861
1999
|
var de_GetLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2862
2000
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2863
|
-
return
|
|
2001
|
+
return de_CommandError(output, context);
|
|
2864
2002
|
}
|
|
2865
2003
|
const contents = (0, import_smithy_client.map)({
|
|
2866
2004
|
$metadata: deserializeMetadata(output)
|
|
@@ -2874,40 +2012,9 @@ var de_GetLensReviewCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2874
2012
|
Object.assign(contents, doc);
|
|
2875
2013
|
return contents;
|
|
2876
2014
|
}, "de_GetLensReviewCommand");
|
|
2877
|
-
var de_GetLensReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context)
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "AccessDeniedException":
|
|
2885
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2886
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "InternalServerException":
|
|
2888
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "ResourceNotFoundException":
|
|
2891
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "ThrottlingException":
|
|
2894
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2895
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "ValidationException":
|
|
2897
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2898
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2899
|
-
default:
|
|
2900
|
-
const parsedBody = parsedOutput.body;
|
|
2901
|
-
return throwDefaultError({
|
|
2902
|
-
output,
|
|
2903
|
-
parsedBody,
|
|
2904
|
-
errorCode
|
|
2905
|
-
});
|
|
2906
|
-
}
|
|
2907
|
-
}, "de_GetLensReviewCommandError");
|
|
2908
2015
|
var de_GetLensReviewReportCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2909
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2910
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
2911
2018
|
}
|
|
2912
2019
|
const contents = (0, import_smithy_client.map)({
|
|
2913
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -2921,40 +2028,9 @@ var de_GetLensReviewReportCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2921
2028
|
Object.assign(contents, doc);
|
|
2922
2029
|
return contents;
|
|
2923
2030
|
}, "de_GetLensReviewReportCommand");
|
|
2924
|
-
var de_GetLensReviewReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
|
-
const parsedOutput = {
|
|
2926
|
-
...output,
|
|
2927
|
-
body: await parseErrorBody(output.body, context)
|
|
2928
|
-
};
|
|
2929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2930
|
-
switch (errorCode) {
|
|
2931
|
-
case "AccessDeniedException":
|
|
2932
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "InternalServerException":
|
|
2935
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ResourceNotFoundException":
|
|
2938
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ThrottlingException":
|
|
2941
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2943
|
-
case "ValidationException":
|
|
2944
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2946
|
-
default:
|
|
2947
|
-
const parsedBody = parsedOutput.body;
|
|
2948
|
-
return throwDefaultError({
|
|
2949
|
-
output,
|
|
2950
|
-
parsedBody,
|
|
2951
|
-
errorCode
|
|
2952
|
-
});
|
|
2953
|
-
}
|
|
2954
|
-
}, "de_GetLensReviewReportCommandError");
|
|
2955
2031
|
var de_GetLensVersionDifferenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2956
2032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2957
|
-
return
|
|
2033
|
+
return de_CommandError(output, context);
|
|
2958
2034
|
}
|
|
2959
2035
|
const contents = (0, import_smithy_client.map)({
|
|
2960
2036
|
$metadata: deserializeMetadata(output)
|
|
@@ -2971,40 +2047,9 @@ var de_GetLensVersionDifferenceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2971
2047
|
Object.assign(contents, doc);
|
|
2972
2048
|
return contents;
|
|
2973
2049
|
}, "de_GetLensVersionDifferenceCommand");
|
|
2974
|
-
var de_GetLensVersionDifferenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2975
|
-
const parsedOutput = {
|
|
2976
|
-
...output,
|
|
2977
|
-
body: await parseErrorBody(output.body, context)
|
|
2978
|
-
};
|
|
2979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
|
-
switch (errorCode) {
|
|
2981
|
-
case "AccessDeniedException":
|
|
2982
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
2983
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "InternalServerException":
|
|
2985
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
2986
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ResourceNotFoundException":
|
|
2988
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
2989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "ThrottlingException":
|
|
2991
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
2992
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "ValidationException":
|
|
2994
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
2995
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2996
|
-
default:
|
|
2997
|
-
const parsedBody = parsedOutput.body;
|
|
2998
|
-
return throwDefaultError({
|
|
2999
|
-
output,
|
|
3000
|
-
parsedBody,
|
|
3001
|
-
errorCode
|
|
3002
|
-
});
|
|
3003
|
-
}
|
|
3004
|
-
}, "de_GetLensVersionDifferenceCommandError");
|
|
3005
2050
|
var de_GetMilestoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3006
2051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3007
|
-
return
|
|
2052
|
+
return de_CommandError(output, context);
|
|
3008
2053
|
}
|
|
3009
2054
|
const contents = (0, import_smithy_client.map)({
|
|
3010
2055
|
$metadata: deserializeMetadata(output)
|
|
@@ -3017,40 +2062,9 @@ var de_GetMilestoneCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3017
2062
|
Object.assign(contents, doc);
|
|
3018
2063
|
return contents;
|
|
3019
2064
|
}, "de_GetMilestoneCommand");
|
|
3020
|
-
var de_GetMilestoneCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3021
|
-
const parsedOutput = {
|
|
3022
|
-
...output,
|
|
3023
|
-
body: await parseErrorBody(output.body, context)
|
|
3024
|
-
};
|
|
3025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
|
-
switch (errorCode) {
|
|
3027
|
-
case "AccessDeniedException":
|
|
3028
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3029
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3030
|
-
case "InternalServerException":
|
|
3031
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3033
|
-
case "ResourceNotFoundException":
|
|
3034
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3036
|
-
case "ThrottlingException":
|
|
3037
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3038
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3039
|
-
case "ValidationException":
|
|
3040
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3041
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3042
|
-
default:
|
|
3043
|
-
const parsedBody = parsedOutput.body;
|
|
3044
|
-
return throwDefaultError({
|
|
3045
|
-
output,
|
|
3046
|
-
parsedBody,
|
|
3047
|
-
errorCode
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
}, "de_GetMilestoneCommandError");
|
|
3051
2065
|
var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3052
2066
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3053
|
-
return
|
|
2067
|
+
return de_CommandError(output, context);
|
|
3054
2068
|
}
|
|
3055
2069
|
const contents = (0, import_smithy_client.map)({
|
|
3056
2070
|
$metadata: deserializeMetadata(output)
|
|
@@ -3062,40 +2076,9 @@ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3062
2076
|
Object.assign(contents, doc);
|
|
3063
2077
|
return contents;
|
|
3064
2078
|
}, "de_GetProfileCommand");
|
|
3065
|
-
var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3066
|
-
const parsedOutput = {
|
|
3067
|
-
...output,
|
|
3068
|
-
body: await parseErrorBody(output.body, context)
|
|
3069
|
-
};
|
|
3070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3071
|
-
switch (errorCode) {
|
|
3072
|
-
case "AccessDeniedException":
|
|
3073
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3074
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3075
|
-
case "InternalServerException":
|
|
3076
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3077
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3078
|
-
case "ResourceNotFoundException":
|
|
3079
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3081
|
-
case "ThrottlingException":
|
|
3082
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3084
|
-
case "ValidationException":
|
|
3085
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3087
|
-
default:
|
|
3088
|
-
const parsedBody = parsedOutput.body;
|
|
3089
|
-
return throwDefaultError({
|
|
3090
|
-
output,
|
|
3091
|
-
parsedBody,
|
|
3092
|
-
errorCode
|
|
3093
|
-
});
|
|
3094
|
-
}
|
|
3095
|
-
}, "de_GetProfileCommandError");
|
|
3096
2079
|
var de_GetProfileTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3097
2080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3098
|
-
return
|
|
2081
|
+
return de_CommandError(output, context);
|
|
3099
2082
|
}
|
|
3100
2083
|
const contents = (0, import_smithy_client.map)({
|
|
3101
2084
|
$metadata: deserializeMetadata(output)
|
|
@@ -3107,40 +2090,9 @@ var de_GetProfileTemplateCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3107
2090
|
Object.assign(contents, doc);
|
|
3108
2091
|
return contents;
|
|
3109
2092
|
}, "de_GetProfileTemplateCommand");
|
|
3110
|
-
var de_GetProfileTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3111
|
-
const parsedOutput = {
|
|
3112
|
-
...output,
|
|
3113
|
-
body: await parseErrorBody(output.body, context)
|
|
3114
|
-
};
|
|
3115
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3116
|
-
switch (errorCode) {
|
|
3117
|
-
case "AccessDeniedException":
|
|
3118
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3119
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "InternalServerException":
|
|
3121
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3122
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ResourceNotFoundException":
|
|
3124
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3125
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ThrottlingException":
|
|
3127
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3128
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ValidationException":
|
|
3130
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3132
|
-
default:
|
|
3133
|
-
const parsedBody = parsedOutput.body;
|
|
3134
|
-
return throwDefaultError({
|
|
3135
|
-
output,
|
|
3136
|
-
parsedBody,
|
|
3137
|
-
errorCode
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3140
|
-
}, "de_GetProfileTemplateCommandError");
|
|
3141
2093
|
var de_GetReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3142
2094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3143
|
-
return
|
|
2095
|
+
return de_CommandError(output, context);
|
|
3144
2096
|
}
|
|
3145
2097
|
const contents = (0, import_smithy_client.map)({
|
|
3146
2098
|
$metadata: deserializeMetadata(output)
|
|
@@ -3152,40 +2104,9 @@ var de_GetReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3152
2104
|
Object.assign(contents, doc);
|
|
3153
2105
|
return contents;
|
|
3154
2106
|
}, "de_GetReviewTemplateCommand");
|
|
3155
|
-
var de_GetReviewTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3156
|
-
const parsedOutput = {
|
|
3157
|
-
...output,
|
|
3158
|
-
body: await parseErrorBody(output.body, context)
|
|
3159
|
-
};
|
|
3160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3161
|
-
switch (errorCode) {
|
|
3162
|
-
case "AccessDeniedException":
|
|
3163
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3165
|
-
case "InternalServerException":
|
|
3166
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3167
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3168
|
-
case "ResourceNotFoundException":
|
|
3169
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3170
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3171
|
-
case "ThrottlingException":
|
|
3172
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3173
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "ValidationException":
|
|
3175
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3176
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3177
|
-
default:
|
|
3178
|
-
const parsedBody = parsedOutput.body;
|
|
3179
|
-
return throwDefaultError({
|
|
3180
|
-
output,
|
|
3181
|
-
parsedBody,
|
|
3182
|
-
errorCode
|
|
3183
|
-
});
|
|
3184
|
-
}
|
|
3185
|
-
}, "de_GetReviewTemplateCommandError");
|
|
3186
2107
|
var de_GetReviewTemplateAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3187
2108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3188
|
-
return
|
|
2109
|
+
return de_CommandError(output, context);
|
|
3189
2110
|
}
|
|
3190
2111
|
const contents = (0, import_smithy_client.map)({
|
|
3191
2112
|
$metadata: deserializeMetadata(output)
|
|
@@ -3199,40 +2120,9 @@ var de_GetReviewTemplateAnswerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3199
2120
|
Object.assign(contents, doc);
|
|
3200
2121
|
return contents;
|
|
3201
2122
|
}, "de_GetReviewTemplateAnswerCommand");
|
|
3202
|
-
var de_GetReviewTemplateAnswerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3203
|
-
const parsedOutput = {
|
|
3204
|
-
...output,
|
|
3205
|
-
body: await parseErrorBody(output.body, context)
|
|
3206
|
-
};
|
|
3207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
|
-
switch (errorCode) {
|
|
3209
|
-
case "AccessDeniedException":
|
|
3210
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3211
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "InternalServerException":
|
|
3213
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "ResourceNotFoundException":
|
|
3216
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "ThrottlingException":
|
|
3219
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3221
|
-
case "ValidationException":
|
|
3222
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3224
|
-
default:
|
|
3225
|
-
const parsedBody = parsedOutput.body;
|
|
3226
|
-
return throwDefaultError({
|
|
3227
|
-
output,
|
|
3228
|
-
parsedBody,
|
|
3229
|
-
errorCode
|
|
3230
|
-
});
|
|
3231
|
-
}
|
|
3232
|
-
}, "de_GetReviewTemplateAnswerCommandError");
|
|
3233
2123
|
var de_GetReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3234
2124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3235
|
-
return
|
|
2125
|
+
return de_CommandError(output, context);
|
|
3236
2126
|
}
|
|
3237
2127
|
const contents = (0, import_smithy_client.map)({
|
|
3238
2128
|
$metadata: deserializeMetadata(output)
|
|
@@ -3245,40 +2135,9 @@ var de_GetReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (output
|
|
|
3245
2135
|
Object.assign(contents, doc);
|
|
3246
2136
|
return contents;
|
|
3247
2137
|
}, "de_GetReviewTemplateLensReviewCommand");
|
|
3248
|
-
var de_GetReviewTemplateLensReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
|
-
const parsedOutput = {
|
|
3250
|
-
...output,
|
|
3251
|
-
body: await parseErrorBody(output.body, context)
|
|
3252
|
-
};
|
|
3253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3254
|
-
switch (errorCode) {
|
|
3255
|
-
case "AccessDeniedException":
|
|
3256
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3257
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3258
|
-
case "InternalServerException":
|
|
3259
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3261
|
-
case "ResourceNotFoundException":
|
|
3262
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ThrottlingException":
|
|
3265
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ValidationException":
|
|
3268
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
}, "de_GetReviewTemplateLensReviewCommandError");
|
|
3279
2138
|
var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3280
2139
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3281
|
-
return
|
|
2140
|
+
return de_CommandError(output, context);
|
|
3282
2141
|
}
|
|
3283
2142
|
const contents = (0, import_smithy_client.map)({
|
|
3284
2143
|
$metadata: deserializeMetadata(output)
|
|
@@ -3290,40 +2149,9 @@ var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3290
2149
|
Object.assign(contents, doc);
|
|
3291
2150
|
return contents;
|
|
3292
2151
|
}, "de_GetWorkloadCommand");
|
|
3293
|
-
var de_GetWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3294
|
-
const parsedOutput = {
|
|
3295
|
-
...output,
|
|
3296
|
-
body: await parseErrorBody(output.body, context)
|
|
3297
|
-
};
|
|
3298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3299
|
-
switch (errorCode) {
|
|
3300
|
-
case "AccessDeniedException":
|
|
3301
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3303
|
-
case "InternalServerException":
|
|
3304
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "ResourceNotFoundException":
|
|
3307
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ThrottlingException":
|
|
3310
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ValidationException":
|
|
3313
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3315
|
-
default:
|
|
3316
|
-
const parsedBody = parsedOutput.body;
|
|
3317
|
-
return throwDefaultError({
|
|
3318
|
-
output,
|
|
3319
|
-
parsedBody,
|
|
3320
|
-
errorCode
|
|
3321
|
-
});
|
|
3322
|
-
}
|
|
3323
|
-
}, "de_GetWorkloadCommandError");
|
|
3324
2152
|
var de_ImportLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3325
2153
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3326
|
-
return
|
|
2154
|
+
return de_CommandError(output, context);
|
|
3327
2155
|
}
|
|
3328
2156
|
const contents = (0, import_smithy_client.map)({
|
|
3329
2157
|
$metadata: deserializeMetadata(output)
|
|
@@ -3336,46 +2164,9 @@ var de_ImportLensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3336
2164
|
Object.assign(contents, doc);
|
|
3337
2165
|
return contents;
|
|
3338
2166
|
}, "de_ImportLensCommand");
|
|
3339
|
-
var de_ImportLensCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3340
|
-
const parsedOutput = {
|
|
3341
|
-
...output,
|
|
3342
|
-
body: await parseErrorBody(output.body, context)
|
|
3343
|
-
};
|
|
3344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3345
|
-
switch (errorCode) {
|
|
3346
|
-
case "AccessDeniedException":
|
|
3347
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3348
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3349
|
-
case "ConflictException":
|
|
3350
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
3351
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3352
|
-
case "InternalServerException":
|
|
3353
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3354
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "ResourceNotFoundException":
|
|
3356
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "ServiceQuotaExceededException":
|
|
3359
|
-
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
3360
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ThrottlingException":
|
|
3362
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3363
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ValidationException":
|
|
3365
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3367
|
-
default:
|
|
3368
|
-
const parsedBody = parsedOutput.body;
|
|
3369
|
-
return throwDefaultError({
|
|
3370
|
-
output,
|
|
3371
|
-
parsedBody,
|
|
3372
|
-
errorCode
|
|
3373
|
-
});
|
|
3374
|
-
}
|
|
3375
|
-
}, "de_ImportLensCommandError");
|
|
3376
2167
|
var de_ListAnswersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3377
2168
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3378
|
-
return
|
|
2169
|
+
return de_CommandError(output, context);
|
|
3379
2170
|
}
|
|
3380
2171
|
const contents = (0, import_smithy_client.map)({
|
|
3381
2172
|
$metadata: deserializeMetadata(output)
|
|
@@ -3392,40 +2183,9 @@ var de_ListAnswersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3392
2183
|
Object.assign(contents, doc);
|
|
3393
2184
|
return contents;
|
|
3394
2185
|
}, "de_ListAnswersCommand");
|
|
3395
|
-
var de_ListAnswersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3396
|
-
const parsedOutput = {
|
|
3397
|
-
...output,
|
|
3398
|
-
body: await parseErrorBody(output.body, context)
|
|
3399
|
-
};
|
|
3400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3401
|
-
switch (errorCode) {
|
|
3402
|
-
case "AccessDeniedException":
|
|
3403
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3404
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "InternalServerException":
|
|
3406
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3407
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ResourceNotFoundException":
|
|
3409
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ThrottlingException":
|
|
3412
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3413
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ValidationException":
|
|
3415
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3417
|
-
default:
|
|
3418
|
-
const parsedBody = parsedOutput.body;
|
|
3419
|
-
return throwDefaultError({
|
|
3420
|
-
output,
|
|
3421
|
-
parsedBody,
|
|
3422
|
-
errorCode
|
|
3423
|
-
});
|
|
3424
|
-
}
|
|
3425
|
-
}, "de_ListAnswersCommandError");
|
|
3426
2186
|
var de_ListCheckDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3427
2187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3428
|
-
return
|
|
2188
|
+
return de_CommandError(output, context);
|
|
3429
2189
|
}
|
|
3430
2190
|
const contents = (0, import_smithy_client.map)({
|
|
3431
2191
|
$metadata: deserializeMetadata(output)
|
|
@@ -3438,40 +2198,9 @@ var de_ListCheckDetailsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3438
2198
|
Object.assign(contents, doc);
|
|
3439
2199
|
return contents;
|
|
3440
2200
|
}, "de_ListCheckDetailsCommand");
|
|
3441
|
-
var de_ListCheckDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3442
|
-
const parsedOutput = {
|
|
3443
|
-
...output,
|
|
3444
|
-
body: await parseErrorBody(output.body, context)
|
|
3445
|
-
};
|
|
3446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3447
|
-
switch (errorCode) {
|
|
3448
|
-
case "AccessDeniedException":
|
|
3449
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3450
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3451
|
-
case "InternalServerException":
|
|
3452
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3453
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "ResourceNotFoundException":
|
|
3455
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "ThrottlingException":
|
|
3458
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3459
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ValidationException":
|
|
3461
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3462
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3463
|
-
default:
|
|
3464
|
-
const parsedBody = parsedOutput.body;
|
|
3465
|
-
return throwDefaultError({
|
|
3466
|
-
output,
|
|
3467
|
-
parsedBody,
|
|
3468
|
-
errorCode
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3471
|
-
}, "de_ListCheckDetailsCommandError");
|
|
3472
2201
|
var de_ListCheckSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3473
2202
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3474
|
-
return
|
|
2203
|
+
return de_CommandError(output, context);
|
|
3475
2204
|
}
|
|
3476
2205
|
const contents = (0, import_smithy_client.map)({
|
|
3477
2206
|
$metadata: deserializeMetadata(output)
|
|
@@ -3484,40 +2213,9 @@ var de_ListCheckSummariesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3484
2213
|
Object.assign(contents, doc);
|
|
3485
2214
|
return contents;
|
|
3486
2215
|
}, "de_ListCheckSummariesCommand");
|
|
3487
|
-
var de_ListCheckSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3488
|
-
const parsedOutput = {
|
|
3489
|
-
...output,
|
|
3490
|
-
body: await parseErrorBody(output.body, context)
|
|
3491
|
-
};
|
|
3492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3493
|
-
switch (errorCode) {
|
|
3494
|
-
case "AccessDeniedException":
|
|
3495
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3496
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3497
|
-
case "InternalServerException":
|
|
3498
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3499
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3500
|
-
case "ResourceNotFoundException":
|
|
3501
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ThrottlingException":
|
|
3504
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3505
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ValidationException":
|
|
3507
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3508
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3509
|
-
default:
|
|
3510
|
-
const parsedBody = parsedOutput.body;
|
|
3511
|
-
return throwDefaultError({
|
|
3512
|
-
output,
|
|
3513
|
-
parsedBody,
|
|
3514
|
-
errorCode
|
|
3515
|
-
});
|
|
3516
|
-
}
|
|
3517
|
-
}, "de_ListCheckSummariesCommandError");
|
|
3518
2216
|
var de_ListLensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3519
2217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
|
-
return
|
|
2218
|
+
return de_CommandError(output, context);
|
|
3521
2219
|
}
|
|
3522
2220
|
const contents = (0, import_smithy_client.map)({
|
|
3523
2221
|
$metadata: deserializeMetadata(output)
|
|
@@ -3530,37 +2228,9 @@ var de_ListLensesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3530
2228
|
Object.assign(contents, doc);
|
|
3531
2229
|
return contents;
|
|
3532
2230
|
}, "de_ListLensesCommand");
|
|
3533
|
-
var de_ListLensesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3534
|
-
const parsedOutput = {
|
|
3535
|
-
...output,
|
|
3536
|
-
body: await parseErrorBody(output.body, context)
|
|
3537
|
-
};
|
|
3538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3539
|
-
switch (errorCode) {
|
|
3540
|
-
case "AccessDeniedException":
|
|
3541
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "InternalServerException":
|
|
3544
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3545
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ThrottlingException":
|
|
3547
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ValidationException":
|
|
3550
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
}, "de_ListLensesCommandError");
|
|
3561
2231
|
var de_ListLensReviewImprovementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3562
2232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3563
|
-
return
|
|
2233
|
+
return de_CommandError(output, context);
|
|
3564
2234
|
}
|
|
3565
2235
|
const contents = (0, import_smithy_client.map)({
|
|
3566
2236
|
$metadata: deserializeMetadata(output)
|
|
@@ -3577,40 +2247,9 @@ var de_ListLensReviewImprovementsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3577
2247
|
Object.assign(contents, doc);
|
|
3578
2248
|
return contents;
|
|
3579
2249
|
}, "de_ListLensReviewImprovementsCommand");
|
|
3580
|
-
var de_ListLensReviewImprovementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3581
|
-
const parsedOutput = {
|
|
3582
|
-
...output,
|
|
3583
|
-
body: await parseErrorBody(output.body, context)
|
|
3584
|
-
};
|
|
3585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3586
|
-
switch (errorCode) {
|
|
3587
|
-
case "AccessDeniedException":
|
|
3588
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3589
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "InternalServerException":
|
|
3591
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3592
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ResourceNotFoundException":
|
|
3594
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "ThrottlingException":
|
|
3597
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3598
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "ValidationException":
|
|
3600
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3601
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3602
|
-
default:
|
|
3603
|
-
const parsedBody = parsedOutput.body;
|
|
3604
|
-
return throwDefaultError({
|
|
3605
|
-
output,
|
|
3606
|
-
parsedBody,
|
|
3607
|
-
errorCode
|
|
3608
|
-
});
|
|
3609
|
-
}
|
|
3610
|
-
}, "de_ListLensReviewImprovementsCommandError");
|
|
3611
2250
|
var de_ListLensReviewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3612
2251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3613
|
-
return
|
|
2252
|
+
return de_CommandError(output, context);
|
|
3614
2253
|
}
|
|
3615
2254
|
const contents = (0, import_smithy_client.map)({
|
|
3616
2255
|
$metadata: deserializeMetadata(output)
|
|
@@ -3625,40 +2264,9 @@ var de_ListLensReviewsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3625
2264
|
Object.assign(contents, doc);
|
|
3626
2265
|
return contents;
|
|
3627
2266
|
}, "de_ListLensReviewsCommand");
|
|
3628
|
-
var de_ListLensReviewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
|
-
const parsedOutput = {
|
|
3630
|
-
...output,
|
|
3631
|
-
body: await parseErrorBody(output.body, context)
|
|
3632
|
-
};
|
|
3633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3634
|
-
switch (errorCode) {
|
|
3635
|
-
case "AccessDeniedException":
|
|
3636
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3638
|
-
case "InternalServerException":
|
|
3639
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3640
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3641
|
-
case "ResourceNotFoundException":
|
|
3642
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "ThrottlingException":
|
|
3645
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ValidationException":
|
|
3648
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3649
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3650
|
-
default:
|
|
3651
|
-
const parsedBody = parsedOutput.body;
|
|
3652
|
-
return throwDefaultError({
|
|
3653
|
-
output,
|
|
3654
|
-
parsedBody,
|
|
3655
|
-
errorCode
|
|
3656
|
-
});
|
|
3657
|
-
}
|
|
3658
|
-
}, "de_ListLensReviewsCommandError");
|
|
3659
2267
|
var de_ListLensSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3660
2268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3661
|
-
return
|
|
2269
|
+
return de_CommandError(output, context);
|
|
3662
2270
|
}
|
|
3663
2271
|
const contents = (0, import_smithy_client.map)({
|
|
3664
2272
|
$metadata: deserializeMetadata(output)
|
|
@@ -3671,40 +2279,9 @@ var de_ListLensSharesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3671
2279
|
Object.assign(contents, doc);
|
|
3672
2280
|
return contents;
|
|
3673
2281
|
}, "de_ListLensSharesCommand");
|
|
3674
|
-
var de_ListLensSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3675
|
-
const parsedOutput = {
|
|
3676
|
-
...output,
|
|
3677
|
-
body: await parseErrorBody(output.body, context)
|
|
3678
|
-
};
|
|
3679
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3680
|
-
switch (errorCode) {
|
|
3681
|
-
case "AccessDeniedException":
|
|
3682
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3683
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3684
|
-
case "InternalServerException":
|
|
3685
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3686
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3687
|
-
case "ResourceNotFoundException":
|
|
3688
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3689
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "ThrottlingException":
|
|
3691
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3692
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "ValidationException":
|
|
3694
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3695
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3696
|
-
default:
|
|
3697
|
-
const parsedBody = parsedOutput.body;
|
|
3698
|
-
return throwDefaultError({
|
|
3699
|
-
output,
|
|
3700
|
-
parsedBody,
|
|
3701
|
-
errorCode
|
|
3702
|
-
});
|
|
3703
|
-
}
|
|
3704
|
-
}, "de_ListLensSharesCommandError");
|
|
3705
2282
|
var de_ListMilestonesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3706
2283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3707
|
-
return
|
|
2284
|
+
return de_CommandError(output, context);
|
|
3708
2285
|
}
|
|
3709
2286
|
const contents = (0, import_smithy_client.map)({
|
|
3710
2287
|
$metadata: deserializeMetadata(output)
|
|
@@ -3718,40 +2295,9 @@ var de_ListMilestonesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3718
2295
|
Object.assign(contents, doc);
|
|
3719
2296
|
return contents;
|
|
3720
2297
|
}, "de_ListMilestonesCommand");
|
|
3721
|
-
var de_ListMilestonesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3722
|
-
const parsedOutput = {
|
|
3723
|
-
...output,
|
|
3724
|
-
body: await parseErrorBody(output.body, context)
|
|
3725
|
-
};
|
|
3726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3727
|
-
switch (errorCode) {
|
|
3728
|
-
case "AccessDeniedException":
|
|
3729
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3730
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3731
|
-
case "InternalServerException":
|
|
3732
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3733
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3734
|
-
case "ResourceNotFoundException":
|
|
3735
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3737
|
-
case "ThrottlingException":
|
|
3738
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3739
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "ValidationException":
|
|
3741
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3742
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3743
|
-
default:
|
|
3744
|
-
const parsedBody = parsedOutput.body;
|
|
3745
|
-
return throwDefaultError({
|
|
3746
|
-
output,
|
|
3747
|
-
parsedBody,
|
|
3748
|
-
errorCode
|
|
3749
|
-
});
|
|
3750
|
-
}
|
|
3751
|
-
}, "de_ListMilestonesCommandError");
|
|
3752
2298
|
var de_ListNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3753
2299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3754
|
-
return
|
|
2300
|
+
return de_CommandError(output, context);
|
|
3755
2301
|
}
|
|
3756
2302
|
const contents = (0, import_smithy_client.map)({
|
|
3757
2303
|
$metadata: deserializeMetadata(output)
|
|
@@ -3764,37 +2310,9 @@ var de_ListNotificationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3764
2310
|
Object.assign(contents, doc);
|
|
3765
2311
|
return contents;
|
|
3766
2312
|
}, "de_ListNotificationsCommand");
|
|
3767
|
-
var de_ListNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3768
|
-
const parsedOutput = {
|
|
3769
|
-
...output,
|
|
3770
|
-
body: await parseErrorBody(output.body, context)
|
|
3771
|
-
};
|
|
3772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3773
|
-
switch (errorCode) {
|
|
3774
|
-
case "AccessDeniedException":
|
|
3775
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3776
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3777
|
-
case "InternalServerException":
|
|
3778
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3779
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3780
|
-
case "ThrottlingException":
|
|
3781
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3782
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3783
|
-
case "ValidationException":
|
|
3784
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3785
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3786
|
-
default:
|
|
3787
|
-
const parsedBody = parsedOutput.body;
|
|
3788
|
-
return throwDefaultError({
|
|
3789
|
-
output,
|
|
3790
|
-
parsedBody,
|
|
3791
|
-
errorCode
|
|
3792
|
-
});
|
|
3793
|
-
}
|
|
3794
|
-
}, "de_ListNotificationsCommandError");
|
|
3795
2313
|
var de_ListProfileNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3796
2314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3797
|
-
return
|
|
2315
|
+
return de_CommandError(output, context);
|
|
3798
2316
|
}
|
|
3799
2317
|
const contents = (0, import_smithy_client.map)({
|
|
3800
2318
|
$metadata: deserializeMetadata(output)
|
|
@@ -3807,37 +2325,9 @@ var de_ListProfileNotificationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3807
2325
|
Object.assign(contents, doc);
|
|
3808
2326
|
return contents;
|
|
3809
2327
|
}, "de_ListProfileNotificationsCommand");
|
|
3810
|
-
var de_ListProfileNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3811
|
-
const parsedOutput = {
|
|
3812
|
-
...output,
|
|
3813
|
-
body: await parseErrorBody(output.body, context)
|
|
3814
|
-
};
|
|
3815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3816
|
-
switch (errorCode) {
|
|
3817
|
-
case "AccessDeniedException":
|
|
3818
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3819
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3820
|
-
case "InternalServerException":
|
|
3821
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3823
|
-
case "ThrottlingException":
|
|
3824
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ValidationException":
|
|
3827
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3828
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3829
|
-
default:
|
|
3830
|
-
const parsedBody = parsedOutput.body;
|
|
3831
|
-
return throwDefaultError({
|
|
3832
|
-
output,
|
|
3833
|
-
parsedBody,
|
|
3834
|
-
errorCode
|
|
3835
|
-
});
|
|
3836
|
-
}
|
|
3837
|
-
}, "de_ListProfileNotificationsCommandError");
|
|
3838
2328
|
var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3839
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3840
|
-
return
|
|
2330
|
+
return de_CommandError(output, context);
|
|
3841
2331
|
}
|
|
3842
2332
|
const contents = (0, import_smithy_client.map)({
|
|
3843
2333
|
$metadata: deserializeMetadata(output)
|
|
@@ -3850,37 +2340,9 @@ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3850
2340
|
Object.assign(contents, doc);
|
|
3851
2341
|
return contents;
|
|
3852
2342
|
}, "de_ListProfilesCommand");
|
|
3853
|
-
var de_ListProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3854
|
-
const parsedOutput = {
|
|
3855
|
-
...output,
|
|
3856
|
-
body: await parseErrorBody(output.body, context)
|
|
3857
|
-
};
|
|
3858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3859
|
-
switch (errorCode) {
|
|
3860
|
-
case "AccessDeniedException":
|
|
3861
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3862
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3863
|
-
case "InternalServerException":
|
|
3864
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3865
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3866
|
-
case "ThrottlingException":
|
|
3867
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3868
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3869
|
-
case "ValidationException":
|
|
3870
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3872
|
-
default:
|
|
3873
|
-
const parsedBody = parsedOutput.body;
|
|
3874
|
-
return throwDefaultError({
|
|
3875
|
-
output,
|
|
3876
|
-
parsedBody,
|
|
3877
|
-
errorCode
|
|
3878
|
-
});
|
|
3879
|
-
}
|
|
3880
|
-
}, "de_ListProfilesCommandError");
|
|
3881
2343
|
var de_ListProfileSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3882
2344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3883
|
-
return
|
|
2345
|
+
return de_CommandError(output, context);
|
|
3884
2346
|
}
|
|
3885
2347
|
const contents = (0, import_smithy_client.map)({
|
|
3886
2348
|
$metadata: deserializeMetadata(output)
|
|
@@ -3893,40 +2355,9 @@ var de_ListProfileSharesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3893
2355
|
Object.assign(contents, doc);
|
|
3894
2356
|
return contents;
|
|
3895
2357
|
}, "de_ListProfileSharesCommand");
|
|
3896
|
-
var de_ListProfileSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3897
|
-
const parsedOutput = {
|
|
3898
|
-
...output,
|
|
3899
|
-
body: await parseErrorBody(output.body, context)
|
|
3900
|
-
};
|
|
3901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3902
|
-
switch (errorCode) {
|
|
3903
|
-
case "AccessDeniedException":
|
|
3904
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3906
|
-
case "InternalServerException":
|
|
3907
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3909
|
-
case "ResourceNotFoundException":
|
|
3910
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3912
|
-
case "ThrottlingException":
|
|
3913
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3914
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3915
|
-
case "ValidationException":
|
|
3916
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3917
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3918
|
-
default:
|
|
3919
|
-
const parsedBody = parsedOutput.body;
|
|
3920
|
-
return throwDefaultError({
|
|
3921
|
-
output,
|
|
3922
|
-
parsedBody,
|
|
3923
|
-
errorCode
|
|
3924
|
-
});
|
|
3925
|
-
}
|
|
3926
|
-
}, "de_ListProfileSharesCommandError");
|
|
3927
2358
|
var de_ListReviewTemplateAnswersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3928
2359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3929
|
-
return
|
|
2360
|
+
return de_CommandError(output, context);
|
|
3930
2361
|
}
|
|
3931
2362
|
const contents = (0, import_smithy_client.map)({
|
|
3932
2363
|
$metadata: deserializeMetadata(output)
|
|
@@ -3941,40 +2372,9 @@ var de_ListReviewTemplateAnswersCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3941
2372
|
Object.assign(contents, doc);
|
|
3942
2373
|
return contents;
|
|
3943
2374
|
}, "de_ListReviewTemplateAnswersCommand");
|
|
3944
|
-
var de_ListReviewTemplateAnswersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3945
|
-
const parsedOutput = {
|
|
3946
|
-
...output,
|
|
3947
|
-
body: await parseErrorBody(output.body, context)
|
|
3948
|
-
};
|
|
3949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3950
|
-
switch (errorCode) {
|
|
3951
|
-
case "AccessDeniedException":
|
|
3952
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3953
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3954
|
-
case "InternalServerException":
|
|
3955
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
3956
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3957
|
-
case "ResourceNotFoundException":
|
|
3958
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
3959
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "ThrottlingException":
|
|
3961
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
3962
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "ValidationException":
|
|
3964
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
3965
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3966
|
-
default:
|
|
3967
|
-
const parsedBody = parsedOutput.body;
|
|
3968
|
-
return throwDefaultError({
|
|
3969
|
-
output,
|
|
3970
|
-
parsedBody,
|
|
3971
|
-
errorCode
|
|
3972
|
-
});
|
|
3973
|
-
}
|
|
3974
|
-
}, "de_ListReviewTemplateAnswersCommandError");
|
|
3975
2375
|
var de_ListReviewTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3976
2376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3977
|
-
return
|
|
2377
|
+
return de_CommandError(output, context);
|
|
3978
2378
|
}
|
|
3979
2379
|
const contents = (0, import_smithy_client.map)({
|
|
3980
2380
|
$metadata: deserializeMetadata(output)
|
|
@@ -3987,37 +2387,9 @@ var de_ListReviewTemplatesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3987
2387
|
Object.assign(contents, doc);
|
|
3988
2388
|
return contents;
|
|
3989
2389
|
}, "de_ListReviewTemplatesCommand");
|
|
3990
|
-
var de_ListReviewTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3991
|
-
const parsedOutput = {
|
|
3992
|
-
...output,
|
|
3993
|
-
body: await parseErrorBody(output.body, context)
|
|
3994
|
-
};
|
|
3995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3996
|
-
switch (errorCode) {
|
|
3997
|
-
case "AccessDeniedException":
|
|
3998
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
3999
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4000
|
-
case "InternalServerException":
|
|
4001
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4003
|
-
case "ThrottlingException":
|
|
4004
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4005
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4006
|
-
case "ValidationException":
|
|
4007
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4009
|
-
default:
|
|
4010
|
-
const parsedBody = parsedOutput.body;
|
|
4011
|
-
return throwDefaultError({
|
|
4012
|
-
output,
|
|
4013
|
-
parsedBody,
|
|
4014
|
-
errorCode
|
|
4015
|
-
});
|
|
4016
|
-
}
|
|
4017
|
-
}, "de_ListReviewTemplatesCommandError");
|
|
4018
2390
|
var de_ListShareInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4019
2391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4020
|
-
return
|
|
2392
|
+
return de_CommandError(output, context);
|
|
4021
2393
|
}
|
|
4022
2394
|
const contents = (0, import_smithy_client.map)({
|
|
4023
2395
|
$metadata: deserializeMetadata(output)
|
|
@@ -4030,37 +2402,9 @@ var de_ListShareInvitationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4030
2402
|
Object.assign(contents, doc);
|
|
4031
2403
|
return contents;
|
|
4032
2404
|
}, "de_ListShareInvitationsCommand");
|
|
4033
|
-
var de_ListShareInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4034
|
-
const parsedOutput = {
|
|
4035
|
-
...output,
|
|
4036
|
-
body: await parseErrorBody(output.body, context)
|
|
4037
|
-
};
|
|
4038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4039
|
-
switch (errorCode) {
|
|
4040
|
-
case "AccessDeniedException":
|
|
4041
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4043
|
-
case "InternalServerException":
|
|
4044
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4046
|
-
case "ThrottlingException":
|
|
4047
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4048
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4049
|
-
case "ValidationException":
|
|
4050
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4052
|
-
default:
|
|
4053
|
-
const parsedBody = parsedOutput.body;
|
|
4054
|
-
return throwDefaultError({
|
|
4055
|
-
output,
|
|
4056
|
-
parsedBody,
|
|
4057
|
-
errorCode
|
|
4058
|
-
});
|
|
4059
|
-
}
|
|
4060
|
-
}, "de_ListShareInvitationsCommandError");
|
|
4061
2405
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4062
2406
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4063
|
-
return
|
|
2407
|
+
return de_CommandError(output, context);
|
|
4064
2408
|
}
|
|
4065
2409
|
const contents = (0, import_smithy_client.map)({
|
|
4066
2410
|
$metadata: deserializeMetadata(output)
|
|
@@ -4072,31 +2416,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4072
2416
|
Object.assign(contents, doc);
|
|
4073
2417
|
return contents;
|
|
4074
2418
|
}, "de_ListTagsForResourceCommand");
|
|
4075
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4076
|
-
const parsedOutput = {
|
|
4077
|
-
...output,
|
|
4078
|
-
body: await parseErrorBody(output.body, context)
|
|
4079
|
-
};
|
|
4080
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
|
-
switch (errorCode) {
|
|
4082
|
-
case "InternalServerException":
|
|
4083
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4084
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4085
|
-
case "ResourceNotFoundException":
|
|
4086
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4088
|
-
default:
|
|
4089
|
-
const parsedBody = parsedOutput.body;
|
|
4090
|
-
return throwDefaultError({
|
|
4091
|
-
output,
|
|
4092
|
-
parsedBody,
|
|
4093
|
-
errorCode
|
|
4094
|
-
});
|
|
4095
|
-
}
|
|
4096
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4097
2419
|
var de_ListTemplateSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4098
2420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4099
|
-
return
|
|
2421
|
+
return de_CommandError(output, context);
|
|
4100
2422
|
}
|
|
4101
2423
|
const contents = (0, import_smithy_client.map)({
|
|
4102
2424
|
$metadata: deserializeMetadata(output)
|
|
@@ -4110,40 +2432,9 @@ var de_ListTemplateSharesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4110
2432
|
Object.assign(contents, doc);
|
|
4111
2433
|
return contents;
|
|
4112
2434
|
}, "de_ListTemplateSharesCommand");
|
|
4113
|
-
var de_ListTemplateSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4114
|
-
const parsedOutput = {
|
|
4115
|
-
...output,
|
|
4116
|
-
body: await parseErrorBody(output.body, context)
|
|
4117
|
-
};
|
|
4118
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4119
|
-
switch (errorCode) {
|
|
4120
|
-
case "AccessDeniedException":
|
|
4121
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4122
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4123
|
-
case "InternalServerException":
|
|
4124
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4125
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4126
|
-
case "ResourceNotFoundException":
|
|
4127
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4129
|
-
case "ThrottlingException":
|
|
4130
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4131
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4132
|
-
case "ValidationException":
|
|
4133
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4134
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4135
|
-
default:
|
|
4136
|
-
const parsedBody = parsedOutput.body;
|
|
4137
|
-
return throwDefaultError({
|
|
4138
|
-
output,
|
|
4139
|
-
parsedBody,
|
|
4140
|
-
errorCode
|
|
4141
|
-
});
|
|
4142
|
-
}
|
|
4143
|
-
}, "de_ListTemplateSharesCommandError");
|
|
4144
2435
|
var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4145
2436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4146
|
-
return
|
|
2437
|
+
return de_CommandError(output, context);
|
|
4147
2438
|
}
|
|
4148
2439
|
const contents = (0, import_smithy_client.map)({
|
|
4149
2440
|
$metadata: deserializeMetadata(output)
|
|
@@ -4156,37 +2447,9 @@ var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4156
2447
|
Object.assign(contents, doc);
|
|
4157
2448
|
return contents;
|
|
4158
2449
|
}, "de_ListWorkloadsCommand");
|
|
4159
|
-
var de_ListWorkloadsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4160
|
-
const parsedOutput = {
|
|
4161
|
-
...output,
|
|
4162
|
-
body: await parseErrorBody(output.body, context)
|
|
4163
|
-
};
|
|
4164
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4165
|
-
switch (errorCode) {
|
|
4166
|
-
case "AccessDeniedException":
|
|
4167
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4168
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4169
|
-
case "InternalServerException":
|
|
4170
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4171
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4172
|
-
case "ThrottlingException":
|
|
4173
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4174
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "ValidationException":
|
|
4176
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4178
|
-
default:
|
|
4179
|
-
const parsedBody = parsedOutput.body;
|
|
4180
|
-
return throwDefaultError({
|
|
4181
|
-
output,
|
|
4182
|
-
parsedBody,
|
|
4183
|
-
errorCode
|
|
4184
|
-
});
|
|
4185
|
-
}
|
|
4186
|
-
}, "de_ListWorkloadsCommandError");
|
|
4187
2450
|
var de_ListWorkloadSharesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4188
2451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4189
|
-
return
|
|
2452
|
+
return de_CommandError(output, context);
|
|
4190
2453
|
}
|
|
4191
2454
|
const contents = (0, import_smithy_client.map)({
|
|
4192
2455
|
$metadata: deserializeMetadata(output)
|
|
@@ -4200,40 +2463,9 @@ var de_ListWorkloadSharesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4200
2463
|
Object.assign(contents, doc);
|
|
4201
2464
|
return contents;
|
|
4202
2465
|
}, "de_ListWorkloadSharesCommand");
|
|
4203
|
-
var de_ListWorkloadSharesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4204
|
-
const parsedOutput = {
|
|
4205
|
-
...output,
|
|
4206
|
-
body: await parseErrorBody(output.body, context)
|
|
4207
|
-
};
|
|
4208
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4209
|
-
switch (errorCode) {
|
|
4210
|
-
case "AccessDeniedException":
|
|
4211
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4212
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4213
|
-
case "InternalServerException":
|
|
4214
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4215
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4216
|
-
case "ResourceNotFoundException":
|
|
4217
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4218
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4219
|
-
case "ThrottlingException":
|
|
4220
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4221
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4222
|
-
case "ValidationException":
|
|
4223
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4224
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4225
|
-
default:
|
|
4226
|
-
const parsedBody = parsedOutput.body;
|
|
4227
|
-
return throwDefaultError({
|
|
4228
|
-
output,
|
|
4229
|
-
parsedBody,
|
|
4230
|
-
errorCode
|
|
4231
|
-
});
|
|
4232
|
-
}
|
|
4233
|
-
}, "de_ListWorkloadSharesCommandError");
|
|
4234
2466
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4235
2467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4236
|
-
return
|
|
2468
|
+
return de_CommandError(output, context);
|
|
4237
2469
|
}
|
|
4238
2470
|
const contents = (0, import_smithy_client.map)({
|
|
4239
2471
|
$metadata: deserializeMetadata(output)
|
|
@@ -4241,31 +2473,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4241
2473
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4242
2474
|
return contents;
|
|
4243
2475
|
}, "de_TagResourceCommand");
|
|
4244
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4245
|
-
const parsedOutput = {
|
|
4246
|
-
...output,
|
|
4247
|
-
body: await parseErrorBody(output.body, context)
|
|
4248
|
-
};
|
|
4249
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4250
|
-
switch (errorCode) {
|
|
4251
|
-
case "InternalServerException":
|
|
4252
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4253
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4254
|
-
case "ResourceNotFoundException":
|
|
4255
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4257
|
-
default:
|
|
4258
|
-
const parsedBody = parsedOutput.body;
|
|
4259
|
-
return throwDefaultError({
|
|
4260
|
-
output,
|
|
4261
|
-
parsedBody,
|
|
4262
|
-
errorCode
|
|
4263
|
-
});
|
|
4264
|
-
}
|
|
4265
|
-
}, "de_TagResourceCommandError");
|
|
4266
2476
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4267
2477
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4268
|
-
return
|
|
2478
|
+
return de_CommandError(output, context);
|
|
4269
2479
|
}
|
|
4270
2480
|
const contents = (0, import_smithy_client.map)({
|
|
4271
2481
|
$metadata: deserializeMetadata(output)
|
|
@@ -4273,31 +2483,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4273
2483
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4274
2484
|
return contents;
|
|
4275
2485
|
}, "de_UntagResourceCommand");
|
|
4276
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4277
|
-
const parsedOutput = {
|
|
4278
|
-
...output,
|
|
4279
|
-
body: await parseErrorBody(output.body, context)
|
|
4280
|
-
};
|
|
4281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4282
|
-
switch (errorCode) {
|
|
4283
|
-
case "InternalServerException":
|
|
4284
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4285
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4286
|
-
case "ResourceNotFoundException":
|
|
4287
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4289
|
-
default:
|
|
4290
|
-
const parsedBody = parsedOutput.body;
|
|
4291
|
-
return throwDefaultError({
|
|
4292
|
-
output,
|
|
4293
|
-
parsedBody,
|
|
4294
|
-
errorCode
|
|
4295
|
-
});
|
|
4296
|
-
}
|
|
4297
|
-
}, "de_UntagResourceCommandError");
|
|
4298
2486
|
var de_UpdateAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4299
2487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4300
|
-
return
|
|
2488
|
+
return de_CommandError(output, context);
|
|
4301
2489
|
}
|
|
4302
2490
|
const contents = (0, import_smithy_client.map)({
|
|
4303
2491
|
$metadata: deserializeMetadata(output)
|
|
@@ -4312,43 +2500,9 @@ var de_UpdateAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4312
2500
|
Object.assign(contents, doc);
|
|
4313
2501
|
return contents;
|
|
4314
2502
|
}, "de_UpdateAnswerCommand");
|
|
4315
|
-
var de_UpdateAnswerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4316
|
-
const parsedOutput = {
|
|
4317
|
-
...output,
|
|
4318
|
-
body: await parseErrorBody(output.body, context)
|
|
4319
|
-
};
|
|
4320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4321
|
-
switch (errorCode) {
|
|
4322
|
-
case "AccessDeniedException":
|
|
4323
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4324
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4325
|
-
case "ConflictException":
|
|
4326
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4328
|
-
case "InternalServerException":
|
|
4329
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4331
|
-
case "ResourceNotFoundException":
|
|
4332
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4334
|
-
case "ThrottlingException":
|
|
4335
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4336
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4337
|
-
case "ValidationException":
|
|
4338
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4340
|
-
default:
|
|
4341
|
-
const parsedBody = parsedOutput.body;
|
|
4342
|
-
return throwDefaultError({
|
|
4343
|
-
output,
|
|
4344
|
-
parsedBody,
|
|
4345
|
-
errorCode
|
|
4346
|
-
});
|
|
4347
|
-
}
|
|
4348
|
-
}, "de_UpdateAnswerCommandError");
|
|
4349
2503
|
var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4350
2504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4351
|
-
return
|
|
2505
|
+
return de_CommandError(output, context);
|
|
4352
2506
|
}
|
|
4353
2507
|
const contents = (0, import_smithy_client.map)({
|
|
4354
2508
|
$metadata: deserializeMetadata(output)
|
|
@@ -4356,40 +2510,9 @@ var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4356
2510
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4357
2511
|
return contents;
|
|
4358
2512
|
}, "de_UpdateGlobalSettingsCommand");
|
|
4359
|
-
var de_UpdateGlobalSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4360
|
-
const parsedOutput = {
|
|
4361
|
-
...output,
|
|
4362
|
-
body: await parseErrorBody(output.body, context)
|
|
4363
|
-
};
|
|
4364
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4365
|
-
switch (errorCode) {
|
|
4366
|
-
case "AccessDeniedException":
|
|
4367
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4368
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4369
|
-
case "ConflictException":
|
|
4370
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4371
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4372
|
-
case "InternalServerException":
|
|
4373
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4374
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4375
|
-
case "ThrottlingException":
|
|
4376
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4377
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4378
|
-
case "ValidationException":
|
|
4379
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4380
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4381
|
-
default:
|
|
4382
|
-
const parsedBody = parsedOutput.body;
|
|
4383
|
-
return throwDefaultError({
|
|
4384
|
-
output,
|
|
4385
|
-
parsedBody,
|
|
4386
|
-
errorCode
|
|
4387
|
-
});
|
|
4388
|
-
}
|
|
4389
|
-
}, "de_UpdateGlobalSettingsCommandError");
|
|
4390
2513
|
var de_UpdateLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4391
2514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4392
|
-
return
|
|
2515
|
+
return de_CommandError(output, context);
|
|
4393
2516
|
}
|
|
4394
2517
|
const contents = (0, import_smithy_client.map)({
|
|
4395
2518
|
$metadata: deserializeMetadata(output)
|
|
@@ -4398,143 +2521,41 @@ var de_UpdateLensReviewCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4398
2521
|
const doc = (0, import_smithy_client.take)(data, {
|
|
4399
2522
|
LensReview: (_) => de_LensReview(_, context),
|
|
4400
2523
|
WorkloadId: import_smithy_client.expectString
|
|
4401
|
-
});
|
|
4402
|
-
Object.assign(contents, doc);
|
|
4403
|
-
return contents;
|
|
4404
|
-
}, "de_UpdateLensReviewCommand");
|
|
4405
|
-
var
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4423
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4424
|
-
case "ThrottlingException":
|
|
4425
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4426
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4427
|
-
case "ValidationException":
|
|
4428
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4429
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4430
|
-
default:
|
|
4431
|
-
const parsedBody = parsedOutput.body;
|
|
4432
|
-
return throwDefaultError({
|
|
4433
|
-
output,
|
|
4434
|
-
parsedBody,
|
|
4435
|
-
errorCode
|
|
4436
|
-
});
|
|
4437
|
-
}
|
|
4438
|
-
}, "de_UpdateLensReviewCommandError");
|
|
4439
|
-
var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4441
|
-
return de_UpdateProfileCommandError(output, context);
|
|
4442
|
-
}
|
|
4443
|
-
const contents = (0, import_smithy_client.map)({
|
|
4444
|
-
$metadata: deserializeMetadata(output)
|
|
4445
|
-
});
|
|
4446
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4447
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
4448
|
-
Profile: (_) => de_Profile(_, context)
|
|
4449
|
-
});
|
|
4450
|
-
Object.assign(contents, doc);
|
|
4451
|
-
return contents;
|
|
4452
|
-
}, "de_UpdateProfileCommand");
|
|
4453
|
-
var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4454
|
-
const parsedOutput = {
|
|
4455
|
-
...output,
|
|
4456
|
-
body: await parseErrorBody(output.body, context)
|
|
4457
|
-
};
|
|
4458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4459
|
-
switch (errorCode) {
|
|
4460
|
-
case "AccessDeniedException":
|
|
4461
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4462
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4463
|
-
case "ConflictException":
|
|
4464
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4465
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4466
|
-
case "InternalServerException":
|
|
4467
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4468
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4469
|
-
case "ResourceNotFoundException":
|
|
4470
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4472
|
-
case "ThrottlingException":
|
|
4473
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4474
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "ValidationException":
|
|
4476
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4477
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4478
|
-
default:
|
|
4479
|
-
const parsedBody = parsedOutput.body;
|
|
4480
|
-
return throwDefaultError({
|
|
4481
|
-
output,
|
|
4482
|
-
parsedBody,
|
|
4483
|
-
errorCode
|
|
4484
|
-
});
|
|
4485
|
-
}
|
|
4486
|
-
}, "de_UpdateProfileCommandError");
|
|
4487
|
-
var de_UpdateReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4488
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4489
|
-
return de_UpdateReviewTemplateCommandError(output, context);
|
|
4490
|
-
}
|
|
4491
|
-
const contents = (0, import_smithy_client.map)({
|
|
4492
|
-
$metadata: deserializeMetadata(output)
|
|
4493
|
-
});
|
|
4494
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4495
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
4496
|
-
ReviewTemplate: (_) => de_ReviewTemplate(_, context)
|
|
4497
|
-
});
|
|
4498
|
-
Object.assign(contents, doc);
|
|
4499
|
-
return contents;
|
|
4500
|
-
}, "de_UpdateReviewTemplateCommand");
|
|
4501
|
-
var de_UpdateReviewTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4502
|
-
const parsedOutput = {
|
|
4503
|
-
...output,
|
|
4504
|
-
body: await parseErrorBody(output.body, context)
|
|
4505
|
-
};
|
|
4506
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4507
|
-
switch (errorCode) {
|
|
4508
|
-
case "AccessDeniedException":
|
|
4509
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4510
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4511
|
-
case "ConflictException":
|
|
4512
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4513
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4514
|
-
case "InternalServerException":
|
|
4515
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4517
|
-
case "ResourceNotFoundException":
|
|
4518
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4520
|
-
case "ThrottlingException":
|
|
4521
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4522
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4523
|
-
case "ValidationException":
|
|
4524
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4525
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4526
|
-
default:
|
|
4527
|
-
const parsedBody = parsedOutput.body;
|
|
4528
|
-
return throwDefaultError({
|
|
4529
|
-
output,
|
|
4530
|
-
parsedBody,
|
|
4531
|
-
errorCode
|
|
4532
|
-
});
|
|
2524
|
+
});
|
|
2525
|
+
Object.assign(contents, doc);
|
|
2526
|
+
return contents;
|
|
2527
|
+
}, "de_UpdateLensReviewCommand");
|
|
2528
|
+
var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2530
|
+
return de_CommandError(output, context);
|
|
2531
|
+
}
|
|
2532
|
+
const contents = (0, import_smithy_client.map)({
|
|
2533
|
+
$metadata: deserializeMetadata(output)
|
|
2534
|
+
});
|
|
2535
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2536
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2537
|
+
Profile: (_) => de_Profile(_, context)
|
|
2538
|
+
});
|
|
2539
|
+
Object.assign(contents, doc);
|
|
2540
|
+
return contents;
|
|
2541
|
+
}, "de_UpdateProfileCommand");
|
|
2542
|
+
var de_UpdateReviewTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2544
|
+
return de_CommandError(output, context);
|
|
4533
2545
|
}
|
|
4534
|
-
|
|
2546
|
+
const contents = (0, import_smithy_client.map)({
|
|
2547
|
+
$metadata: deserializeMetadata(output)
|
|
2548
|
+
});
|
|
2549
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2550
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2551
|
+
ReviewTemplate: (_) => de_ReviewTemplate(_, context)
|
|
2552
|
+
});
|
|
2553
|
+
Object.assign(contents, doc);
|
|
2554
|
+
return contents;
|
|
2555
|
+
}, "de_UpdateReviewTemplateCommand");
|
|
4535
2556
|
var de_UpdateReviewTemplateAnswerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4536
2557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4537
|
-
return
|
|
2558
|
+
return de_CommandError(output, context);
|
|
4538
2559
|
}
|
|
4539
2560
|
const contents = (0, import_smithy_client.map)({
|
|
4540
2561
|
$metadata: deserializeMetadata(output)
|
|
@@ -4548,43 +2569,9 @@ var de_UpdateReviewTemplateAnswerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4548
2569
|
Object.assign(contents, doc);
|
|
4549
2570
|
return contents;
|
|
4550
2571
|
}, "de_UpdateReviewTemplateAnswerCommand");
|
|
4551
|
-
var de_UpdateReviewTemplateAnswerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4552
|
-
const parsedOutput = {
|
|
4553
|
-
...output,
|
|
4554
|
-
body: await parseErrorBody(output.body, context)
|
|
4555
|
-
};
|
|
4556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4557
|
-
switch (errorCode) {
|
|
4558
|
-
case "AccessDeniedException":
|
|
4559
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4561
|
-
case "ConflictException":
|
|
4562
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4564
|
-
case "InternalServerException":
|
|
4565
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4567
|
-
case "ResourceNotFoundException":
|
|
4568
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4570
|
-
case "ThrottlingException":
|
|
4571
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4572
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4573
|
-
case "ValidationException":
|
|
4574
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4575
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4576
|
-
default:
|
|
4577
|
-
const parsedBody = parsedOutput.body;
|
|
4578
|
-
return throwDefaultError({
|
|
4579
|
-
output,
|
|
4580
|
-
parsedBody,
|
|
4581
|
-
errorCode
|
|
4582
|
-
});
|
|
4583
|
-
}
|
|
4584
|
-
}, "de_UpdateReviewTemplateAnswerCommandError");
|
|
4585
2572
|
var de_UpdateReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4586
2573
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4587
|
-
return
|
|
2574
|
+
return de_CommandError(output, context);
|
|
4588
2575
|
}
|
|
4589
2576
|
const contents = (0, import_smithy_client.map)({
|
|
4590
2577
|
$metadata: deserializeMetadata(output)
|
|
@@ -4597,43 +2584,9 @@ var de_UpdateReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (out
|
|
|
4597
2584
|
Object.assign(contents, doc);
|
|
4598
2585
|
return contents;
|
|
4599
2586
|
}, "de_UpdateReviewTemplateLensReviewCommand");
|
|
4600
|
-
var de_UpdateReviewTemplateLensReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4601
|
-
const parsedOutput = {
|
|
4602
|
-
...output,
|
|
4603
|
-
body: await parseErrorBody(output.body, context)
|
|
4604
|
-
};
|
|
4605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4606
|
-
switch (errorCode) {
|
|
4607
|
-
case "AccessDeniedException":
|
|
4608
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4609
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4610
|
-
case "ConflictException":
|
|
4611
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4612
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4613
|
-
case "InternalServerException":
|
|
4614
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4616
|
-
case "ResourceNotFoundException":
|
|
4617
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4618
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4619
|
-
case "ThrottlingException":
|
|
4620
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4621
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4622
|
-
case "ValidationException":
|
|
4623
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4624
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4625
|
-
default:
|
|
4626
|
-
const parsedBody = parsedOutput.body;
|
|
4627
|
-
return throwDefaultError({
|
|
4628
|
-
output,
|
|
4629
|
-
parsedBody,
|
|
4630
|
-
errorCode
|
|
4631
|
-
});
|
|
4632
|
-
}
|
|
4633
|
-
}, "de_UpdateReviewTemplateLensReviewCommandError");
|
|
4634
2587
|
var de_UpdateShareInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4635
2588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4636
|
-
return
|
|
2589
|
+
return de_CommandError(output, context);
|
|
4637
2590
|
}
|
|
4638
2591
|
const contents = (0, import_smithy_client.map)({
|
|
4639
2592
|
$metadata: deserializeMetadata(output)
|
|
@@ -4645,43 +2598,9 @@ var de_UpdateShareInvitationCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4645
2598
|
Object.assign(contents, doc);
|
|
4646
2599
|
return contents;
|
|
4647
2600
|
}, "de_UpdateShareInvitationCommand");
|
|
4648
|
-
var de_UpdateShareInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4649
|
-
const parsedOutput = {
|
|
4650
|
-
...output,
|
|
4651
|
-
body: await parseErrorBody(output.body, context)
|
|
4652
|
-
};
|
|
4653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4654
|
-
switch (errorCode) {
|
|
4655
|
-
case "AccessDeniedException":
|
|
4656
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4657
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4658
|
-
case "ConflictException":
|
|
4659
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4660
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4661
|
-
case "InternalServerException":
|
|
4662
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4663
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4664
|
-
case "ResourceNotFoundException":
|
|
4665
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4666
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4667
|
-
case "ThrottlingException":
|
|
4668
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4669
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4670
|
-
case "ValidationException":
|
|
4671
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4672
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4673
|
-
default:
|
|
4674
|
-
const parsedBody = parsedOutput.body;
|
|
4675
|
-
return throwDefaultError({
|
|
4676
|
-
output,
|
|
4677
|
-
parsedBody,
|
|
4678
|
-
errorCode
|
|
4679
|
-
});
|
|
4680
|
-
}
|
|
4681
|
-
}, "de_UpdateShareInvitationCommandError");
|
|
4682
2601
|
var de_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4683
2602
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4684
|
-
return
|
|
2603
|
+
return de_CommandError(output, context);
|
|
4685
2604
|
}
|
|
4686
2605
|
const contents = (0, import_smithy_client.map)({
|
|
4687
2606
|
$metadata: deserializeMetadata(output)
|
|
@@ -4693,43 +2612,9 @@ var de_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4693
2612
|
Object.assign(contents, doc);
|
|
4694
2613
|
return contents;
|
|
4695
2614
|
}, "de_UpdateWorkloadCommand");
|
|
4696
|
-
var de_UpdateWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4697
|
-
const parsedOutput = {
|
|
4698
|
-
...output,
|
|
4699
|
-
body: await parseErrorBody(output.body, context)
|
|
4700
|
-
};
|
|
4701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4702
|
-
switch (errorCode) {
|
|
4703
|
-
case "AccessDeniedException":
|
|
4704
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4705
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4706
|
-
case "ConflictException":
|
|
4707
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4708
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4709
|
-
case "InternalServerException":
|
|
4710
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4711
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4712
|
-
case "ResourceNotFoundException":
|
|
4713
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4715
|
-
case "ThrottlingException":
|
|
4716
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4717
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4718
|
-
case "ValidationException":
|
|
4719
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4720
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4721
|
-
default:
|
|
4722
|
-
const parsedBody = parsedOutput.body;
|
|
4723
|
-
return throwDefaultError({
|
|
4724
|
-
output,
|
|
4725
|
-
parsedBody,
|
|
4726
|
-
errorCode
|
|
4727
|
-
});
|
|
4728
|
-
}
|
|
4729
|
-
}, "de_UpdateWorkloadCommandError");
|
|
4730
2615
|
var de_UpdateWorkloadShareCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4731
2616
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4732
|
-
return
|
|
2617
|
+
return de_CommandError(output, context);
|
|
4733
2618
|
}
|
|
4734
2619
|
const contents = (0, import_smithy_client.map)({
|
|
4735
2620
|
$metadata: deserializeMetadata(output)
|
|
@@ -4742,43 +2627,9 @@ var de_UpdateWorkloadShareCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4742
2627
|
Object.assign(contents, doc);
|
|
4743
2628
|
return contents;
|
|
4744
2629
|
}, "de_UpdateWorkloadShareCommand");
|
|
4745
|
-
var de_UpdateWorkloadShareCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4746
|
-
const parsedOutput = {
|
|
4747
|
-
...output,
|
|
4748
|
-
body: await parseErrorBody(output.body, context)
|
|
4749
|
-
};
|
|
4750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4751
|
-
switch (errorCode) {
|
|
4752
|
-
case "AccessDeniedException":
|
|
4753
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4754
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4755
|
-
case "ConflictException":
|
|
4756
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4757
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4758
|
-
case "InternalServerException":
|
|
4759
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4760
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4761
|
-
case "ResourceNotFoundException":
|
|
4762
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4763
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4764
|
-
case "ThrottlingException":
|
|
4765
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4766
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4767
|
-
case "ValidationException":
|
|
4768
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4769
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4770
|
-
default:
|
|
4771
|
-
const parsedBody = parsedOutput.body;
|
|
4772
|
-
return throwDefaultError({
|
|
4773
|
-
output,
|
|
4774
|
-
parsedBody,
|
|
4775
|
-
errorCode
|
|
4776
|
-
});
|
|
4777
|
-
}
|
|
4778
|
-
}, "de_UpdateWorkloadShareCommandError");
|
|
4779
2630
|
var de_UpgradeLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4780
2631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4781
|
-
return
|
|
2632
|
+
return de_CommandError(output, context);
|
|
4782
2633
|
}
|
|
4783
2634
|
const contents = (0, import_smithy_client.map)({
|
|
4784
2635
|
$metadata: deserializeMetadata(output)
|
|
@@ -4786,43 +2637,9 @@ var de_UpgradeLensReviewCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4786
2637
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4787
2638
|
return contents;
|
|
4788
2639
|
}, "de_UpgradeLensReviewCommand");
|
|
4789
|
-
var de_UpgradeLensReviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4790
|
-
const parsedOutput = {
|
|
4791
|
-
...output,
|
|
4792
|
-
body: await parseErrorBody(output.body, context)
|
|
4793
|
-
};
|
|
4794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4795
|
-
switch (errorCode) {
|
|
4796
|
-
case "AccessDeniedException":
|
|
4797
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4798
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4799
|
-
case "ConflictException":
|
|
4800
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4801
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4802
|
-
case "InternalServerException":
|
|
4803
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4805
|
-
case "ResourceNotFoundException":
|
|
4806
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4808
|
-
case "ThrottlingException":
|
|
4809
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4811
|
-
case "ValidationException":
|
|
4812
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4814
|
-
default:
|
|
4815
|
-
const parsedBody = parsedOutput.body;
|
|
4816
|
-
return throwDefaultError({
|
|
4817
|
-
output,
|
|
4818
|
-
parsedBody,
|
|
4819
|
-
errorCode
|
|
4820
|
-
});
|
|
4821
|
-
}
|
|
4822
|
-
}, "de_UpgradeLensReviewCommandError");
|
|
4823
2640
|
var de_UpgradeProfileVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4824
2641
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4825
|
-
return
|
|
2642
|
+
return de_CommandError(output, context);
|
|
4826
2643
|
}
|
|
4827
2644
|
const contents = (0, import_smithy_client.map)({
|
|
4828
2645
|
$metadata: deserializeMetadata(output)
|
|
@@ -4830,43 +2647,9 @@ var de_UpgradeProfileVersionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4830
2647
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4831
2648
|
return contents;
|
|
4832
2649
|
}, "de_UpgradeProfileVersionCommand");
|
|
4833
|
-
var de_UpgradeProfileVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4834
|
-
const parsedOutput = {
|
|
4835
|
-
...output,
|
|
4836
|
-
body: await parseErrorBody(output.body, context)
|
|
4837
|
-
};
|
|
4838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4839
|
-
switch (errorCode) {
|
|
4840
|
-
case "AccessDeniedException":
|
|
4841
|
-
case "com.amazonaws.wellarchitected#AccessDeniedException":
|
|
4842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4843
|
-
case "ConflictException":
|
|
4844
|
-
case "com.amazonaws.wellarchitected#ConflictException":
|
|
4845
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4846
|
-
case "InternalServerException":
|
|
4847
|
-
case "com.amazonaws.wellarchitected#InternalServerException":
|
|
4848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4849
|
-
case "ResourceNotFoundException":
|
|
4850
|
-
case "com.amazonaws.wellarchitected#ResourceNotFoundException":
|
|
4851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4852
|
-
case "ThrottlingException":
|
|
4853
|
-
case "com.amazonaws.wellarchitected#ThrottlingException":
|
|
4854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4855
|
-
case "ValidationException":
|
|
4856
|
-
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4858
|
-
default:
|
|
4859
|
-
const parsedBody = parsedOutput.body;
|
|
4860
|
-
return throwDefaultError({
|
|
4861
|
-
output,
|
|
4862
|
-
parsedBody,
|
|
4863
|
-
errorCode
|
|
4864
|
-
});
|
|
4865
|
-
}
|
|
4866
|
-
}, "de_UpgradeProfileVersionCommandError");
|
|
4867
2650
|
var de_UpgradeReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4868
2651
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4869
|
-
return
|
|
2652
|
+
return de_CommandError(output, context);
|
|
4870
2653
|
}
|
|
4871
2654
|
const contents = (0, import_smithy_client.map)({
|
|
4872
2655
|
$metadata: deserializeMetadata(output)
|
|
@@ -4874,7 +2657,7 @@ var de_UpgradeReviewTemplateLensReviewCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4874
2657
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4875
2658
|
return contents;
|
|
4876
2659
|
}, "de_UpgradeReviewTemplateLensReviewCommand");
|
|
4877
|
-
var
|
|
2660
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4878
2661
|
const parsedOutput = {
|
|
4879
2662
|
...output,
|
|
4880
2663
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4899,6 +2682,9 @@ var de_UpgradeReviewTemplateLensReviewCommandError = /* @__PURE__ */ __name(asyn
|
|
|
4899
2682
|
case "ValidationException":
|
|
4900
2683
|
case "com.amazonaws.wellarchitected#ValidationException":
|
|
4901
2684
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2685
|
+
case "ServiceQuotaExceededException":
|
|
2686
|
+
case "com.amazonaws.wellarchitected#ServiceQuotaExceededException":
|
|
2687
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4902
2688
|
default:
|
|
4903
2689
|
const parsedBody = parsedOutput.body;
|
|
4904
2690
|
return throwDefaultError({
|
|
@@ -4907,7 +2693,7 @@ var de_UpgradeReviewTemplateLensReviewCommandError = /* @__PURE__ */ __name(asyn
|
|
|
4907
2693
|
errorCode
|
|
4908
2694
|
});
|
|
4909
2695
|
}
|
|
4910
|
-
}, "
|
|
2696
|
+
}, "de_CommandError");
|
|
4911
2697
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WellArchitectedServiceException);
|
|
4912
2698
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4913
2699
|
const contents = (0, import_smithy_client.map)({});
|