@aws-sdk/client-resiliencehub 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1652,7 +1652,7 @@ var se_UpdateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (input, cont
1652
1652
  }, "se_UpdateResiliencyPolicyCommand");
1653
1653
  var de_AddDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1654
1654
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1655
- return de_AddDraftAppVersionResourceMappingsCommandError(output, context);
1655
+ return de_CommandError(output, context);
1656
1656
  }
1657
1657
  const contents = (0, import_smithy_client.map)({
1658
1658
  $metadata: deserializeMetadata(output)
@@ -1666,43 +1666,9 @@ var de_AddDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async
1666
1666
  Object.assign(contents, doc);
1667
1667
  return contents;
1668
1668
  }, "de_AddDraftAppVersionResourceMappingsCommand");
1669
- var de_AddDraftAppVersionResourceMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1670
- const parsedOutput = {
1671
- ...output,
1672
- body: await parseErrorBody(output.body, context)
1673
- };
1674
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
- switch (errorCode) {
1676
- case "AccessDeniedException":
1677
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1678
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1679
- case "ConflictException":
1680
- case "com.amazonaws.resiliencehub#ConflictException":
1681
- throw await de_ConflictExceptionRes(parsedOutput, context);
1682
- case "InternalServerException":
1683
- case "com.amazonaws.resiliencehub#InternalServerException":
1684
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1685
- case "ResourceNotFoundException":
1686
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1687
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1688
- case "ThrottlingException":
1689
- case "com.amazonaws.resiliencehub#ThrottlingException":
1690
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1691
- case "ValidationException":
1692
- case "com.amazonaws.resiliencehub#ValidationException":
1693
- throw await de_ValidationExceptionRes(parsedOutput, context);
1694
- default:
1695
- const parsedBody = parsedOutput.body;
1696
- return throwDefaultError({
1697
- output,
1698
- parsedBody,
1699
- errorCode
1700
- });
1701
- }
1702
- }, "de_AddDraftAppVersionResourceMappingsCommandError");
1703
1669
  var de_BatchUpdateRecommendationStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
1704
1670
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_BatchUpdateRecommendationStatusCommandError(output, context);
1671
+ return de_CommandError(output, context);
1706
1672
  }
1707
1673
  const contents = (0, import_smithy_client.map)({
1708
1674
  $metadata: deserializeMetadata(output)
@@ -1716,40 +1682,9 @@ var de_BatchUpdateRecommendationStatusCommand = /* @__PURE__ */ __name(async (ou
1716
1682
  Object.assign(contents, doc);
1717
1683
  return contents;
1718
1684
  }, "de_BatchUpdateRecommendationStatusCommand");
1719
- var de_BatchUpdateRecommendationStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
1720
- const parsedOutput = {
1721
- ...output,
1722
- body: await parseErrorBody(output.body, context)
1723
- };
1724
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1725
- switch (errorCode) {
1726
- case "AccessDeniedException":
1727
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1728
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1729
- case "InternalServerException":
1730
- case "com.amazonaws.resiliencehub#InternalServerException":
1731
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1732
- case "ResourceNotFoundException":
1733
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1734
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1735
- case "ThrottlingException":
1736
- case "com.amazonaws.resiliencehub#ThrottlingException":
1737
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1738
- case "ValidationException":
1739
- case "com.amazonaws.resiliencehub#ValidationException":
1740
- throw await de_ValidationExceptionRes(parsedOutput, context);
1741
- default:
1742
- const parsedBody = parsedOutput.body;
1743
- return throwDefaultError({
1744
- output,
1745
- parsedBody,
1746
- errorCode
1747
- });
1748
- }
1749
- }, "de_BatchUpdateRecommendationStatusCommandError");
1750
1685
  var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1751
1686
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1752
- return de_CreateAppCommandError(output, context);
1687
+ return de_CommandError(output, context);
1753
1688
  }
1754
1689
  const contents = (0, import_smithy_client.map)({
1755
1690
  $metadata: deserializeMetadata(output)
@@ -1761,46 +1696,9 @@ var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1761
1696
  Object.assign(contents, doc);
1762
1697
  return contents;
1763
1698
  }, "de_CreateAppCommand");
1764
- var de_CreateAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
1765
- const parsedOutput = {
1766
- ...output,
1767
- body: await parseErrorBody(output.body, context)
1768
- };
1769
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1770
- switch (errorCode) {
1771
- case "AccessDeniedException":
1772
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1773
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1774
- case "ConflictException":
1775
- case "com.amazonaws.resiliencehub#ConflictException":
1776
- throw await de_ConflictExceptionRes(parsedOutput, context);
1777
- case "InternalServerException":
1778
- case "com.amazonaws.resiliencehub#InternalServerException":
1779
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1780
- case "ResourceNotFoundException":
1781
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1782
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1783
- case "ServiceQuotaExceededException":
1784
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1785
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1786
- case "ThrottlingException":
1787
- case "com.amazonaws.resiliencehub#ThrottlingException":
1788
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1789
- case "ValidationException":
1790
- case "com.amazonaws.resiliencehub#ValidationException":
1791
- throw await de_ValidationExceptionRes(parsedOutput, context);
1792
- default:
1793
- const parsedBody = parsedOutput.body;
1794
- return throwDefaultError({
1795
- output,
1796
- parsedBody,
1797
- errorCode
1798
- });
1799
- }
1800
- }, "de_CreateAppCommandError");
1801
1699
  var de_CreateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
1802
1700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1803
- return de_CreateAppVersionAppComponentCommandError(output, context);
1701
+ return de_CommandError(output, context);
1804
1702
  }
1805
1703
  const contents = (0, import_smithy_client.map)({
1806
1704
  $metadata: deserializeMetadata(output)
@@ -1814,46 +1712,9 @@ var de_CreateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
1814
1712
  Object.assign(contents, doc);
1815
1713
  return contents;
1816
1714
  }, "de_CreateAppVersionAppComponentCommand");
1817
- var de_CreateAppVersionAppComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1818
- const parsedOutput = {
1819
- ...output,
1820
- body: await parseErrorBody(output.body, context)
1821
- };
1822
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1823
- switch (errorCode) {
1824
- case "AccessDeniedException":
1825
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1826
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1827
- case "ConflictException":
1828
- case "com.amazonaws.resiliencehub#ConflictException":
1829
- throw await de_ConflictExceptionRes(parsedOutput, context);
1830
- case "InternalServerException":
1831
- case "com.amazonaws.resiliencehub#InternalServerException":
1832
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1833
- case "ResourceNotFoundException":
1834
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
- case "ServiceQuotaExceededException":
1837
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1838
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1839
- case "ThrottlingException":
1840
- case "com.amazonaws.resiliencehub#ThrottlingException":
1841
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1842
- case "ValidationException":
1843
- case "com.amazonaws.resiliencehub#ValidationException":
1844
- throw await de_ValidationExceptionRes(parsedOutput, context);
1845
- default:
1846
- const parsedBody = parsedOutput.body;
1847
- return throwDefaultError({
1848
- output,
1849
- parsedBody,
1850
- errorCode
1851
- });
1852
- }
1853
- }, "de_CreateAppVersionAppComponentCommandError");
1854
1715
  var de_CreateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1855
1716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1856
- return de_CreateAppVersionResourceCommandError(output, context);
1717
+ return de_CommandError(output, context);
1857
1718
  }
1858
1719
  const contents = (0, import_smithy_client.map)({
1859
1720
  $metadata: deserializeMetadata(output)
@@ -1867,46 +1728,9 @@ var de_CreateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
1867
1728
  Object.assign(contents, doc);
1868
1729
  return contents;
1869
1730
  }, "de_CreateAppVersionResourceCommand");
1870
- var de_CreateAppVersionResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1871
- const parsedOutput = {
1872
- ...output,
1873
- body: await parseErrorBody(output.body, context)
1874
- };
1875
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1876
- switch (errorCode) {
1877
- case "AccessDeniedException":
1878
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1879
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1880
- case "ConflictException":
1881
- case "com.amazonaws.resiliencehub#ConflictException":
1882
- throw await de_ConflictExceptionRes(parsedOutput, context);
1883
- case "InternalServerException":
1884
- case "com.amazonaws.resiliencehub#InternalServerException":
1885
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1886
- case "ResourceNotFoundException":
1887
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1888
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1889
- case "ServiceQuotaExceededException":
1890
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1891
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1892
- case "ThrottlingException":
1893
- case "com.amazonaws.resiliencehub#ThrottlingException":
1894
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1895
- case "ValidationException":
1896
- case "com.amazonaws.resiliencehub#ValidationException":
1897
- throw await de_ValidationExceptionRes(parsedOutput, context);
1898
- default:
1899
- const parsedBody = parsedOutput.body;
1900
- return throwDefaultError({
1901
- output,
1902
- parsedBody,
1903
- errorCode
1904
- });
1905
- }
1906
- }, "de_CreateAppVersionResourceCommandError");
1907
1731
  var de_CreateRecommendationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1908
1732
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1909
- return de_CreateRecommendationTemplateCommandError(output, context);
1733
+ return de_CommandError(output, context);
1910
1734
  }
1911
1735
  const contents = (0, import_smithy_client.map)({
1912
1736
  $metadata: deserializeMetadata(output)
@@ -1918,46 +1742,9 @@ var de_CreateRecommendationTemplateCommand = /* @__PURE__ */ __name(async (outpu
1918
1742
  Object.assign(contents, doc);
1919
1743
  return contents;
1920
1744
  }, "de_CreateRecommendationTemplateCommand");
1921
- var de_CreateRecommendationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1922
- const parsedOutput = {
1923
- ...output,
1924
- body: await parseErrorBody(output.body, context)
1925
- };
1926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
- switch (errorCode) {
1928
- case "AccessDeniedException":
1929
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1930
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
- case "ConflictException":
1932
- case "com.amazonaws.resiliencehub#ConflictException":
1933
- throw await de_ConflictExceptionRes(parsedOutput, context);
1934
- case "InternalServerException":
1935
- case "com.amazonaws.resiliencehub#InternalServerException":
1936
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1937
- case "ResourceNotFoundException":
1938
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
1939
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1940
- case "ServiceQuotaExceededException":
1941
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1942
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1943
- case "ThrottlingException":
1944
- case "com.amazonaws.resiliencehub#ThrottlingException":
1945
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1946
- case "ValidationException":
1947
- case "com.amazonaws.resiliencehub#ValidationException":
1948
- throw await de_ValidationExceptionRes(parsedOutput, context);
1949
- default:
1950
- const parsedBody = parsedOutput.body;
1951
- return throwDefaultError({
1952
- output,
1953
- parsedBody,
1954
- errorCode
1955
- });
1956
- }
1957
- }, "de_CreateRecommendationTemplateCommandError");
1958
1745
  var de_CreateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1959
1746
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1960
- return de_CreateResiliencyPolicyCommandError(output, context);
1747
+ return de_CommandError(output, context);
1961
1748
  }
1962
1749
  const contents = (0, import_smithy_client.map)({
1963
1750
  $metadata: deserializeMetadata(output)
@@ -1969,43 +1756,9 @@ var de_CreateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
1969
1756
  Object.assign(contents, doc);
1970
1757
  return contents;
1971
1758
  }, "de_CreateResiliencyPolicyCommand");
1972
- var de_CreateResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1973
- const parsedOutput = {
1974
- ...output,
1975
- body: await parseErrorBody(output.body, context)
1976
- };
1977
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1978
- switch (errorCode) {
1979
- case "AccessDeniedException":
1980
- case "com.amazonaws.resiliencehub#AccessDeniedException":
1981
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1982
- case "ConflictException":
1983
- case "com.amazonaws.resiliencehub#ConflictException":
1984
- throw await de_ConflictExceptionRes(parsedOutput, context);
1985
- case "InternalServerException":
1986
- case "com.amazonaws.resiliencehub#InternalServerException":
1987
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1988
- case "ServiceQuotaExceededException":
1989
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
1990
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1991
- case "ThrottlingException":
1992
- case "com.amazonaws.resiliencehub#ThrottlingException":
1993
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1994
- case "ValidationException":
1995
- case "com.amazonaws.resiliencehub#ValidationException":
1996
- throw await de_ValidationExceptionRes(parsedOutput, context);
1997
- default:
1998
- const parsedBody = parsedOutput.body;
1999
- return throwDefaultError({
2000
- output,
2001
- parsedBody,
2002
- errorCode
2003
- });
2004
- }
2005
- }, "de_CreateResiliencyPolicyCommandError");
2006
1759
  var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
2007
1760
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2008
- return de_DeleteAppCommandError(output, context);
1761
+ return de_CommandError(output, context);
2009
1762
  }
2010
1763
  const contents = (0, import_smithy_client.map)({
2011
1764
  $metadata: deserializeMetadata(output)
@@ -2017,40 +1770,9 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
2017
1770
  Object.assign(contents, doc);
2018
1771
  return contents;
2019
1772
  }, "de_DeleteAppCommand");
2020
- var de_DeleteAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
2021
- const parsedOutput = {
2022
- ...output,
2023
- body: await parseErrorBody(output.body, context)
2024
- };
2025
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2026
- switch (errorCode) {
2027
- case "ConflictException":
2028
- case "com.amazonaws.resiliencehub#ConflictException":
2029
- throw await de_ConflictExceptionRes(parsedOutput, context);
2030
- case "InternalServerException":
2031
- case "com.amazonaws.resiliencehub#InternalServerException":
2032
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2033
- case "ResourceNotFoundException":
2034
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2035
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2036
- case "ThrottlingException":
2037
- case "com.amazonaws.resiliencehub#ThrottlingException":
2038
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2039
- case "ValidationException":
2040
- case "com.amazonaws.resiliencehub#ValidationException":
2041
- throw await de_ValidationExceptionRes(parsedOutput, context);
2042
- default:
2043
- const parsedBody = parsedOutput.body;
2044
- return throwDefaultError({
2045
- output,
2046
- parsedBody,
2047
- errorCode
2048
- });
2049
- }
2050
- }, "de_DeleteAppCommandError");
2051
1773
  var de_DeleteAppAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2052
1774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2053
- return de_DeleteAppAssessmentCommandError(output, context);
1775
+ return de_CommandError(output, context);
2054
1776
  }
2055
1777
  const contents = (0, import_smithy_client.map)({
2056
1778
  $metadata: deserializeMetadata(output)
@@ -2063,43 +1785,9 @@ var de_DeleteAppAssessmentCommand = /* @__PURE__ */ __name(async (output, contex
2063
1785
  Object.assign(contents, doc);
2064
1786
  return contents;
2065
1787
  }, "de_DeleteAppAssessmentCommand");
2066
- var de_DeleteAppAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2067
- const parsedOutput = {
2068
- ...output,
2069
- body: await parseErrorBody(output.body, context)
2070
- };
2071
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2072
- switch (errorCode) {
2073
- case "AccessDeniedException":
2074
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2075
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2076
- case "ConflictException":
2077
- case "com.amazonaws.resiliencehub#ConflictException":
2078
- throw await de_ConflictExceptionRes(parsedOutput, context);
2079
- case "InternalServerException":
2080
- case "com.amazonaws.resiliencehub#InternalServerException":
2081
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2082
- case "ResourceNotFoundException":
2083
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2084
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2085
- case "ThrottlingException":
2086
- case "com.amazonaws.resiliencehub#ThrottlingException":
2087
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2088
- case "ValidationException":
2089
- case "com.amazonaws.resiliencehub#ValidationException":
2090
- throw await de_ValidationExceptionRes(parsedOutput, context);
2091
- default:
2092
- const parsedBody = parsedOutput.body;
2093
- return throwDefaultError({
2094
- output,
2095
- parsedBody,
2096
- errorCode
2097
- });
2098
- }
2099
- }, "de_DeleteAppAssessmentCommandError");
2100
1788
  var de_DeleteAppInputSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2101
1789
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2102
- return de_DeleteAppInputSourceCommandError(output, context);
1790
+ return de_CommandError(output, context);
2103
1791
  }
2104
1792
  const contents = (0, import_smithy_client.map)({
2105
1793
  $metadata: deserializeMetadata(output)
@@ -2112,43 +1800,9 @@ var de_DeleteAppInputSourceCommand = /* @__PURE__ */ __name(async (output, conte
2112
1800
  Object.assign(contents, doc);
2113
1801
  return contents;
2114
1802
  }, "de_DeleteAppInputSourceCommand");
2115
- var de_DeleteAppInputSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2116
- const parsedOutput = {
2117
- ...output,
2118
- body: await parseErrorBody(output.body, context)
2119
- };
2120
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2121
- switch (errorCode) {
2122
- case "AccessDeniedException":
2123
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2124
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2125
- case "ConflictException":
2126
- case "com.amazonaws.resiliencehub#ConflictException":
2127
- throw await de_ConflictExceptionRes(parsedOutput, context);
2128
- case "InternalServerException":
2129
- case "com.amazonaws.resiliencehub#InternalServerException":
2130
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2131
- case "ResourceNotFoundException":
2132
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2133
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2134
- case "ThrottlingException":
2135
- case "com.amazonaws.resiliencehub#ThrottlingException":
2136
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2137
- case "ValidationException":
2138
- case "com.amazonaws.resiliencehub#ValidationException":
2139
- throw await de_ValidationExceptionRes(parsedOutput, context);
2140
- default:
2141
- const parsedBody = parsedOutput.body;
2142
- return throwDefaultError({
2143
- output,
2144
- parsedBody,
2145
- errorCode
2146
- });
2147
- }
2148
- }, "de_DeleteAppInputSourceCommandError");
2149
1803
  var de_DeleteAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
2150
1804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2151
- return de_DeleteAppVersionAppComponentCommandError(output, context);
1805
+ return de_CommandError(output, context);
2152
1806
  }
2153
1807
  const contents = (0, import_smithy_client.map)({
2154
1808
  $metadata: deserializeMetadata(output)
@@ -2162,43 +1816,9 @@ var de_DeleteAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
2162
1816
  Object.assign(contents, doc);
2163
1817
  return contents;
2164
1818
  }, "de_DeleteAppVersionAppComponentCommand");
2165
- var de_DeleteAppVersionAppComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2166
- const parsedOutput = {
2167
- ...output,
2168
- body: await parseErrorBody(output.body, context)
2169
- };
2170
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2171
- switch (errorCode) {
2172
- case "AccessDeniedException":
2173
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2174
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2175
- case "ConflictException":
2176
- case "com.amazonaws.resiliencehub#ConflictException":
2177
- throw await de_ConflictExceptionRes(parsedOutput, context);
2178
- case "InternalServerException":
2179
- case "com.amazonaws.resiliencehub#InternalServerException":
2180
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2181
- case "ResourceNotFoundException":
2182
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2183
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2184
- case "ThrottlingException":
2185
- case "com.amazonaws.resiliencehub#ThrottlingException":
2186
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2187
- case "ValidationException":
2188
- case "com.amazonaws.resiliencehub#ValidationException":
2189
- throw await de_ValidationExceptionRes(parsedOutput, context);
2190
- default:
2191
- const parsedBody = parsedOutput.body;
2192
- return throwDefaultError({
2193
- output,
2194
- parsedBody,
2195
- errorCode
2196
- });
2197
- }
2198
- }, "de_DeleteAppVersionAppComponentCommandError");
2199
1819
  var de_DeleteAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2200
1820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2201
- return de_DeleteAppVersionResourceCommandError(output, context);
1821
+ return de_CommandError(output, context);
2202
1822
  }
2203
1823
  const contents = (0, import_smithy_client.map)({
2204
1824
  $metadata: deserializeMetadata(output)
@@ -2212,43 +1832,9 @@ var de_DeleteAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
2212
1832
  Object.assign(contents, doc);
2213
1833
  return contents;
2214
1834
  }, "de_DeleteAppVersionResourceCommand");
2215
- var de_DeleteAppVersionResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2216
- const parsedOutput = {
2217
- ...output,
2218
- body: await parseErrorBody(output.body, context)
2219
- };
2220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2221
- switch (errorCode) {
2222
- case "AccessDeniedException":
2223
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2224
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2225
- case "ConflictException":
2226
- case "com.amazonaws.resiliencehub#ConflictException":
2227
- throw await de_ConflictExceptionRes(parsedOutput, context);
2228
- case "InternalServerException":
2229
- case "com.amazonaws.resiliencehub#InternalServerException":
2230
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2231
- case "ResourceNotFoundException":
2232
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2233
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2234
- case "ThrottlingException":
2235
- case "com.amazonaws.resiliencehub#ThrottlingException":
2236
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2237
- case "ValidationException":
2238
- case "com.amazonaws.resiliencehub#ValidationException":
2239
- throw await de_ValidationExceptionRes(parsedOutput, context);
2240
- default:
2241
- const parsedBody = parsedOutput.body;
2242
- return throwDefaultError({
2243
- output,
2244
- parsedBody,
2245
- errorCode
2246
- });
2247
- }
2248
- }, "de_DeleteAppVersionResourceCommandError");
2249
1835
  var de_DeleteRecommendationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2250
1836
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2251
- return de_DeleteRecommendationTemplateCommandError(output, context);
1837
+ return de_CommandError(output, context);
2252
1838
  }
2253
1839
  const contents = (0, import_smithy_client.map)({
2254
1840
  $metadata: deserializeMetadata(output)
@@ -2261,40 +1847,9 @@ var de_DeleteRecommendationTemplateCommand = /* @__PURE__ */ __name(async (outpu
2261
1847
  Object.assign(contents, doc);
2262
1848
  return contents;
2263
1849
  }, "de_DeleteRecommendationTemplateCommand");
2264
- var de_DeleteRecommendationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2265
- const parsedOutput = {
2266
- ...output,
2267
- body: await parseErrorBody(output.body, context)
2268
- };
2269
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2270
- switch (errorCode) {
2271
- case "AccessDeniedException":
2272
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2273
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2274
- case "InternalServerException":
2275
- case "com.amazonaws.resiliencehub#InternalServerException":
2276
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2277
- case "ResourceNotFoundException":
2278
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2279
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2280
- case "ThrottlingException":
2281
- case "com.amazonaws.resiliencehub#ThrottlingException":
2282
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2283
- case "ValidationException":
2284
- case "com.amazonaws.resiliencehub#ValidationException":
2285
- throw await de_ValidationExceptionRes(parsedOutput, context);
2286
- default:
2287
- const parsedBody = parsedOutput.body;
2288
- return throwDefaultError({
2289
- output,
2290
- parsedBody,
2291
- errorCode
2292
- });
2293
- }
2294
- }, "de_DeleteRecommendationTemplateCommandError");
2295
1850
  var de_DeleteResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2296
1851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2297
- return de_DeleteResiliencyPolicyCommandError(output, context);
1852
+ return de_CommandError(output, context);
2298
1853
  }
2299
1854
  const contents = (0, import_smithy_client.map)({
2300
1855
  $metadata: deserializeMetadata(output)
@@ -2306,43 +1861,9 @@ var de_DeleteResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
2306
1861
  Object.assign(contents, doc);
2307
1862
  return contents;
2308
1863
  }, "de_DeleteResiliencyPolicyCommand");
2309
- var de_DeleteResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2310
- const parsedOutput = {
2311
- ...output,
2312
- body: await parseErrorBody(output.body, context)
2313
- };
2314
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2315
- switch (errorCode) {
2316
- case "AccessDeniedException":
2317
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2318
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2319
- case "ConflictException":
2320
- case "com.amazonaws.resiliencehub#ConflictException":
2321
- throw await de_ConflictExceptionRes(parsedOutput, context);
2322
- case "InternalServerException":
2323
- case "com.amazonaws.resiliencehub#InternalServerException":
2324
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2325
- case "ResourceNotFoundException":
2326
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2327
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2328
- case "ThrottlingException":
2329
- case "com.amazonaws.resiliencehub#ThrottlingException":
2330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2331
- case "ValidationException":
2332
- case "com.amazonaws.resiliencehub#ValidationException":
2333
- throw await de_ValidationExceptionRes(parsedOutput, context);
2334
- default:
2335
- const parsedBody = parsedOutput.body;
2336
- return throwDefaultError({
2337
- output,
2338
- parsedBody,
2339
- errorCode
2340
- });
2341
- }
2342
- }, "de_DeleteResiliencyPolicyCommandError");
2343
1864
  var de_DescribeAppCommand = /* @__PURE__ */ __name(async (output, context) => {
2344
1865
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2345
- return de_DescribeAppCommandError(output, context);
1866
+ return de_CommandError(output, context);
2346
1867
  }
2347
1868
  const contents = (0, import_smithy_client.map)({
2348
1869
  $metadata: deserializeMetadata(output)
@@ -2354,40 +1875,9 @@ var de_DescribeAppCommand = /* @__PURE__ */ __name(async (output, context) => {
2354
1875
  Object.assign(contents, doc);
2355
1876
  return contents;
2356
1877
  }, "de_DescribeAppCommand");
2357
- var de_DescribeAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
2358
- const parsedOutput = {
2359
- ...output,
2360
- body: await parseErrorBody(output.body, context)
2361
- };
2362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2363
- switch (errorCode) {
2364
- case "AccessDeniedException":
2365
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2366
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2367
- case "InternalServerException":
2368
- case "com.amazonaws.resiliencehub#InternalServerException":
2369
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2370
- case "ResourceNotFoundException":
2371
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2372
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2373
- case "ThrottlingException":
2374
- case "com.amazonaws.resiliencehub#ThrottlingException":
2375
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2376
- case "ValidationException":
2377
- case "com.amazonaws.resiliencehub#ValidationException":
2378
- throw await de_ValidationExceptionRes(parsedOutput, context);
2379
- default:
2380
- const parsedBody = parsedOutput.body;
2381
- return throwDefaultError({
2382
- output,
2383
- parsedBody,
2384
- errorCode
2385
- });
2386
- }
2387
- }, "de_DescribeAppCommandError");
2388
1878
  var de_DescribeAppAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2389
1879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2390
- return de_DescribeAppAssessmentCommandError(output, context);
1880
+ return de_CommandError(output, context);
2391
1881
  }
2392
1882
  const contents = (0, import_smithy_client.map)({
2393
1883
  $metadata: deserializeMetadata(output)
@@ -2399,40 +1889,9 @@ var de_DescribeAppAssessmentCommand = /* @__PURE__ */ __name(async (output, cont
2399
1889
  Object.assign(contents, doc);
2400
1890
  return contents;
2401
1891
  }, "de_DescribeAppAssessmentCommand");
2402
- var de_DescribeAppAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2403
- const parsedOutput = {
2404
- ...output,
2405
- body: await parseErrorBody(output.body, context)
2406
- };
2407
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2408
- switch (errorCode) {
2409
- case "AccessDeniedException":
2410
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2411
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2412
- case "InternalServerException":
2413
- case "com.amazonaws.resiliencehub#InternalServerException":
2414
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2415
- case "ResourceNotFoundException":
2416
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2417
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2418
- case "ThrottlingException":
2419
- case "com.amazonaws.resiliencehub#ThrottlingException":
2420
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2421
- case "ValidationException":
2422
- case "com.amazonaws.resiliencehub#ValidationException":
2423
- throw await de_ValidationExceptionRes(parsedOutput, context);
2424
- default:
2425
- const parsedBody = parsedOutput.body;
2426
- return throwDefaultError({
2427
- output,
2428
- parsedBody,
2429
- errorCode
2430
- });
2431
- }
2432
- }, "de_DescribeAppAssessmentCommandError");
2433
1892
  var de_DescribeAppVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
2434
1893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
- return de_DescribeAppVersionCommandError(output, context);
1894
+ return de_CommandError(output, context);
2436
1895
  }
2437
1896
  const contents = (0, import_smithy_client.map)({
2438
1897
  $metadata: deserializeMetadata(output)
@@ -2446,40 +1905,9 @@ var de_DescribeAppVersionCommand = /* @__PURE__ */ __name(async (output, context
2446
1905
  Object.assign(contents, doc);
2447
1906
  return contents;
2448
1907
  }, "de_DescribeAppVersionCommand");
2449
- var de_DescribeAppVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2450
- const parsedOutput = {
2451
- ...output,
2452
- body: await parseErrorBody(output.body, context)
2453
- };
2454
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2455
- switch (errorCode) {
2456
- case "AccessDeniedException":
2457
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2458
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2459
- case "InternalServerException":
2460
- case "com.amazonaws.resiliencehub#InternalServerException":
2461
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2462
- case "ResourceNotFoundException":
2463
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2465
- case "ThrottlingException":
2466
- case "com.amazonaws.resiliencehub#ThrottlingException":
2467
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2468
- case "ValidationException":
2469
- case "com.amazonaws.resiliencehub#ValidationException":
2470
- throw await de_ValidationExceptionRes(parsedOutput, context);
2471
- default:
2472
- const parsedBody = parsedOutput.body;
2473
- return throwDefaultError({
2474
- output,
2475
- parsedBody,
2476
- errorCode
2477
- });
2478
- }
2479
- }, "de_DescribeAppVersionCommandError");
2480
1908
  var de_DescribeAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
2481
1909
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2482
- return de_DescribeAppVersionAppComponentCommandError(output, context);
1910
+ return de_CommandError(output, context);
2483
1911
  }
2484
1912
  const contents = (0, import_smithy_client.map)({
2485
1913
  $metadata: deserializeMetadata(output)
@@ -2493,43 +1921,9 @@ var de_DescribeAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (out
2493
1921
  Object.assign(contents, doc);
2494
1922
  return contents;
2495
1923
  }, "de_DescribeAppVersionAppComponentCommand");
2496
- var de_DescribeAppVersionAppComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2497
- const parsedOutput = {
2498
- ...output,
2499
- body: await parseErrorBody(output.body, context)
2500
- };
2501
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2502
- switch (errorCode) {
2503
- case "AccessDeniedException":
2504
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2505
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2506
- case "ConflictException":
2507
- case "com.amazonaws.resiliencehub#ConflictException":
2508
- throw await de_ConflictExceptionRes(parsedOutput, context);
2509
- case "InternalServerException":
2510
- case "com.amazonaws.resiliencehub#InternalServerException":
2511
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2512
- case "ResourceNotFoundException":
2513
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2514
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2515
- case "ThrottlingException":
2516
- case "com.amazonaws.resiliencehub#ThrottlingException":
2517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2518
- case "ValidationException":
2519
- case "com.amazonaws.resiliencehub#ValidationException":
2520
- throw await de_ValidationExceptionRes(parsedOutput, context);
2521
- default:
2522
- const parsedBody = parsedOutput.body;
2523
- return throwDefaultError({
2524
- output,
2525
- parsedBody,
2526
- errorCode
2527
- });
2528
- }
2529
- }, "de_DescribeAppVersionAppComponentCommandError");
2530
1924
  var de_DescribeAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2531
1925
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2532
- return de_DescribeAppVersionResourceCommandError(output, context);
1926
+ return de_CommandError(output, context);
2533
1927
  }
2534
1928
  const contents = (0, import_smithy_client.map)({
2535
1929
  $metadata: deserializeMetadata(output)
@@ -2543,43 +1937,9 @@ var de_DescribeAppVersionResourceCommand = /* @__PURE__ */ __name(async (output,
2543
1937
  Object.assign(contents, doc);
2544
1938
  return contents;
2545
1939
  }, "de_DescribeAppVersionResourceCommand");
2546
- var de_DescribeAppVersionResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2547
- const parsedOutput = {
2548
- ...output,
2549
- body: await parseErrorBody(output.body, context)
2550
- };
2551
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2552
- switch (errorCode) {
2553
- case "AccessDeniedException":
2554
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2555
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2556
- case "ConflictException":
2557
- case "com.amazonaws.resiliencehub#ConflictException":
2558
- throw await de_ConflictExceptionRes(parsedOutput, context);
2559
- case "InternalServerException":
2560
- case "com.amazonaws.resiliencehub#InternalServerException":
2561
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2562
- case "ResourceNotFoundException":
2563
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2564
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2565
- case "ThrottlingException":
2566
- case "com.amazonaws.resiliencehub#ThrottlingException":
2567
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2568
- case "ValidationException":
2569
- case "com.amazonaws.resiliencehub#ValidationException":
2570
- throw await de_ValidationExceptionRes(parsedOutput, context);
2571
- default:
2572
- const parsedBody = parsedOutput.body;
2573
- return throwDefaultError({
2574
- output,
2575
- parsedBody,
2576
- errorCode
2577
- });
2578
- }
2579
- }, "de_DescribeAppVersionResourceCommandError");
2580
1940
  var de_DescribeAppVersionResourcesResolutionStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2581
1941
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2582
- return de_DescribeAppVersionResourcesResolutionStatusCommandError(output, context);
1942
+ return de_CommandError(output, context);
2583
1943
  }
2584
1944
  const contents = (0, import_smithy_client.map)({
2585
1945
  $metadata: deserializeMetadata(output)
@@ -2595,40 +1955,9 @@ var de_DescribeAppVersionResourcesResolutionStatusCommand = /* @__PURE__ */ __na
2595
1955
  Object.assign(contents, doc);
2596
1956
  return contents;
2597
1957
  }, "de_DescribeAppVersionResourcesResolutionStatusCommand");
2598
- var de_DescribeAppVersionResourcesResolutionStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2599
- const parsedOutput = {
2600
- ...output,
2601
- body: await parseErrorBody(output.body, context)
2602
- };
2603
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2604
- switch (errorCode) {
2605
- case "AccessDeniedException":
2606
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2607
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2608
- case "InternalServerException":
2609
- case "com.amazonaws.resiliencehub#InternalServerException":
2610
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2611
- case "ResourceNotFoundException":
2612
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2613
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2614
- case "ThrottlingException":
2615
- case "com.amazonaws.resiliencehub#ThrottlingException":
2616
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2617
- case "ValidationException":
2618
- case "com.amazonaws.resiliencehub#ValidationException":
2619
- throw await de_ValidationExceptionRes(parsedOutput, context);
2620
- default:
2621
- const parsedBody = parsedOutput.body;
2622
- return throwDefaultError({
2623
- output,
2624
- parsedBody,
2625
- errorCode
2626
- });
2627
- }
2628
- }, "de_DescribeAppVersionResourcesResolutionStatusCommandError");
2629
1958
  var de_DescribeAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2630
1959
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2631
- return de_DescribeAppVersionTemplateCommandError(output, context);
1960
+ return de_CommandError(output, context);
2632
1961
  }
2633
1962
  const contents = (0, import_smithy_client.map)({
2634
1963
  $metadata: deserializeMetadata(output)
@@ -2642,40 +1971,9 @@ var de_DescribeAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output,
2642
1971
  Object.assign(contents, doc);
2643
1972
  return contents;
2644
1973
  }, "de_DescribeAppVersionTemplateCommand");
2645
- var de_DescribeAppVersionTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2646
- const parsedOutput = {
2647
- ...output,
2648
- body: await parseErrorBody(output.body, context)
2649
- };
2650
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2651
- switch (errorCode) {
2652
- case "AccessDeniedException":
2653
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2654
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2655
- case "InternalServerException":
2656
- case "com.amazonaws.resiliencehub#InternalServerException":
2657
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2658
- case "ResourceNotFoundException":
2659
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2660
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2661
- case "ThrottlingException":
2662
- case "com.amazonaws.resiliencehub#ThrottlingException":
2663
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2664
- case "ValidationException":
2665
- case "com.amazonaws.resiliencehub#ValidationException":
2666
- throw await de_ValidationExceptionRes(parsedOutput, context);
2667
- default:
2668
- const parsedBody = parsedOutput.body;
2669
- return throwDefaultError({
2670
- output,
2671
- parsedBody,
2672
- errorCode
2673
- });
2674
- }
2675
- }, "de_DescribeAppVersionTemplateCommandError");
2676
1974
  var de_DescribeDraftAppVersionResourcesImportStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2677
1975
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2678
- return de_DescribeDraftAppVersionResourcesImportStatusCommandError(output, context);
1976
+ return de_CommandError(output, context);
2679
1977
  }
2680
1978
  const contents = (0, import_smithy_client.map)({
2681
1979
  $metadata: deserializeMetadata(output)
@@ -2691,40 +1989,9 @@ var de_DescribeDraftAppVersionResourcesImportStatusCommand = /* @__PURE__ */ __n
2691
1989
  Object.assign(contents, doc);
2692
1990
  return contents;
2693
1991
  }, "de_DescribeDraftAppVersionResourcesImportStatusCommand");
2694
- var de_DescribeDraftAppVersionResourcesImportStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2695
- const parsedOutput = {
2696
- ...output,
2697
- body: await parseErrorBody(output.body, context)
2698
- };
2699
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2700
- switch (errorCode) {
2701
- case "AccessDeniedException":
2702
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2703
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2704
- case "InternalServerException":
2705
- case "com.amazonaws.resiliencehub#InternalServerException":
2706
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2707
- case "ResourceNotFoundException":
2708
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2709
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2710
- case "ThrottlingException":
2711
- case "com.amazonaws.resiliencehub#ThrottlingException":
2712
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2713
- case "ValidationException":
2714
- case "com.amazonaws.resiliencehub#ValidationException":
2715
- throw await de_ValidationExceptionRes(parsedOutput, context);
2716
- default:
2717
- const parsedBody = parsedOutput.body;
2718
- return throwDefaultError({
2719
- output,
2720
- parsedBody,
2721
- errorCode
2722
- });
2723
- }
2724
- }, "de_DescribeDraftAppVersionResourcesImportStatusCommandError");
2725
1992
  var de_DescribeResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2726
1993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2727
- return de_DescribeResiliencyPolicyCommandError(output, context);
1994
+ return de_CommandError(output, context);
2728
1995
  }
2729
1996
  const contents = (0, import_smithy_client.map)({
2730
1997
  $metadata: deserializeMetadata(output)
@@ -2736,40 +2003,9 @@ var de_DescribeResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, c
2736
2003
  Object.assign(contents, doc);
2737
2004
  return contents;
2738
2005
  }, "de_DescribeResiliencyPolicyCommand");
2739
- var de_DescribeResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2740
- const parsedOutput = {
2741
- ...output,
2742
- body: await parseErrorBody(output.body, context)
2743
- };
2744
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2745
- switch (errorCode) {
2746
- case "AccessDeniedException":
2747
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2748
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2749
- case "InternalServerException":
2750
- case "com.amazonaws.resiliencehub#InternalServerException":
2751
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2752
- case "ResourceNotFoundException":
2753
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2754
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2755
- case "ThrottlingException":
2756
- case "com.amazonaws.resiliencehub#ThrottlingException":
2757
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2758
- case "ValidationException":
2759
- case "com.amazonaws.resiliencehub#ValidationException":
2760
- throw await de_ValidationExceptionRes(parsedOutput, context);
2761
- default:
2762
- const parsedBody = parsedOutput.body;
2763
- return throwDefaultError({
2764
- output,
2765
- parsedBody,
2766
- errorCode
2767
- });
2768
- }
2769
- }, "de_DescribeResiliencyPolicyCommandError");
2770
2006
  var de_ImportResourcesToDraftAppVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
2771
2007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2772
- return de_ImportResourcesToDraftAppVersionCommandError(output, context);
2008
+ return de_CommandError(output, context);
2773
2009
  }
2774
2010
  const contents = (0, import_smithy_client.map)({
2775
2011
  $metadata: deserializeMetadata(output)
@@ -2786,46 +2022,9 @@ var de_ImportResourcesToDraftAppVersionCommand = /* @__PURE__ */ __name(async (o
2786
2022
  Object.assign(contents, doc);
2787
2023
  return contents;
2788
2024
  }, "de_ImportResourcesToDraftAppVersionCommand");
2789
- var de_ImportResourcesToDraftAppVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2790
- const parsedOutput = {
2791
- ...output,
2792
- body: await parseErrorBody(output.body, context)
2793
- };
2794
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2795
- switch (errorCode) {
2796
- case "AccessDeniedException":
2797
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2798
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2799
- case "ConflictException":
2800
- case "com.amazonaws.resiliencehub#ConflictException":
2801
- throw await de_ConflictExceptionRes(parsedOutput, context);
2802
- case "InternalServerException":
2803
- case "com.amazonaws.resiliencehub#InternalServerException":
2804
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2805
- case "ResourceNotFoundException":
2806
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2807
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2808
- case "ServiceQuotaExceededException":
2809
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
2810
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2811
- case "ThrottlingException":
2812
- case "com.amazonaws.resiliencehub#ThrottlingException":
2813
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2814
- case "ValidationException":
2815
- case "com.amazonaws.resiliencehub#ValidationException":
2816
- throw await de_ValidationExceptionRes(parsedOutput, context);
2817
- default:
2818
- const parsedBody = parsedOutput.body;
2819
- return throwDefaultError({
2820
- output,
2821
- parsedBody,
2822
- errorCode
2823
- });
2824
- }
2825
- }, "de_ImportResourcesToDraftAppVersionCommandError");
2826
2025
  var de_ListAlarmRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2827
2026
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2828
- return de_ListAlarmRecommendationsCommandError(output, context);
2027
+ return de_CommandError(output, context);
2829
2028
  }
2830
2029
  const contents = (0, import_smithy_client.map)({
2831
2030
  $metadata: deserializeMetadata(output)
@@ -2838,40 +2037,9 @@ var de_ListAlarmRecommendationsCommand = /* @__PURE__ */ __name(async (output, c
2838
2037
  Object.assign(contents, doc);
2839
2038
  return contents;
2840
2039
  }, "de_ListAlarmRecommendationsCommand");
2841
- var de_ListAlarmRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2842
- const parsedOutput = {
2843
- ...output,
2844
- body: await parseErrorBody(output.body, context)
2845
- };
2846
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2847
- switch (errorCode) {
2848
- case "AccessDeniedException":
2849
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2850
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2851
- case "InternalServerException":
2852
- case "com.amazonaws.resiliencehub#InternalServerException":
2853
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2854
- case "ResourceNotFoundException":
2855
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2856
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2857
- case "ThrottlingException":
2858
- case "com.amazonaws.resiliencehub#ThrottlingException":
2859
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2860
- case "ValidationException":
2861
- case "com.amazonaws.resiliencehub#ValidationException":
2862
- throw await de_ValidationExceptionRes(parsedOutput, context);
2863
- default:
2864
- const parsedBody = parsedOutput.body;
2865
- return throwDefaultError({
2866
- output,
2867
- parsedBody,
2868
- errorCode
2869
- });
2870
- }
2871
- }, "de_ListAlarmRecommendationsCommandError");
2872
2040
  var de_ListAppAssessmentComplianceDriftsCommand = /* @__PURE__ */ __name(async (output, context) => {
2873
2041
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2874
- return de_ListAppAssessmentComplianceDriftsCommandError(output, context);
2042
+ return de_CommandError(output, context);
2875
2043
  }
2876
2044
  const contents = (0, import_smithy_client.map)({
2877
2045
  $metadata: deserializeMetadata(output)
@@ -2884,37 +2052,9 @@ var de_ListAppAssessmentComplianceDriftsCommand = /* @__PURE__ */ __name(async (
2884
2052
  Object.assign(contents, doc);
2885
2053
  return contents;
2886
2054
  }, "de_ListAppAssessmentComplianceDriftsCommand");
2887
- var de_ListAppAssessmentComplianceDriftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2888
- const parsedOutput = {
2889
- ...output,
2890
- body: await parseErrorBody(output.body, context)
2891
- };
2892
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2893
- switch (errorCode) {
2894
- case "AccessDeniedException":
2895
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2896
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2897
- case "InternalServerException":
2898
- case "com.amazonaws.resiliencehub#InternalServerException":
2899
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2900
- case "ThrottlingException":
2901
- case "com.amazonaws.resiliencehub#ThrottlingException":
2902
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2903
- case "ValidationException":
2904
- case "com.amazonaws.resiliencehub#ValidationException":
2905
- throw await de_ValidationExceptionRes(parsedOutput, context);
2906
- default:
2907
- const parsedBody = parsedOutput.body;
2908
- return throwDefaultError({
2909
- output,
2910
- parsedBody,
2911
- errorCode
2912
- });
2913
- }
2914
- }, "de_ListAppAssessmentComplianceDriftsCommandError");
2915
2055
  var de_ListAppAssessmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2916
2056
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2917
- return de_ListAppAssessmentsCommandError(output, context);
2057
+ return de_CommandError(output, context);
2918
2058
  }
2919
2059
  const contents = (0, import_smithy_client.map)({
2920
2060
  $metadata: deserializeMetadata(output)
@@ -2927,40 +2067,9 @@ var de_ListAppAssessmentsCommand = /* @__PURE__ */ __name(async (output, context
2927
2067
  Object.assign(contents, doc);
2928
2068
  return contents;
2929
2069
  }, "de_ListAppAssessmentsCommand");
2930
- var de_ListAppAssessmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2931
- const parsedOutput = {
2932
- ...output,
2933
- body: await parseErrorBody(output.body, context)
2934
- };
2935
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2936
- switch (errorCode) {
2937
- case "AccessDeniedException":
2938
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2939
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2940
- case "InternalServerException":
2941
- case "com.amazonaws.resiliencehub#InternalServerException":
2942
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2943
- case "ResourceNotFoundException":
2944
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2945
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2946
- case "ThrottlingException":
2947
- case "com.amazonaws.resiliencehub#ThrottlingException":
2948
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2949
- case "ValidationException":
2950
- case "com.amazonaws.resiliencehub#ValidationException":
2951
- throw await de_ValidationExceptionRes(parsedOutput, context);
2952
- default:
2953
- const parsedBody = parsedOutput.body;
2954
- return throwDefaultError({
2955
- output,
2956
- parsedBody,
2957
- errorCode
2958
- });
2959
- }
2960
- }, "de_ListAppAssessmentsCommandError");
2961
2070
  var de_ListAppComponentCompliancesCommand = /* @__PURE__ */ __name(async (output, context) => {
2962
2071
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2963
- return de_ListAppComponentCompliancesCommandError(output, context);
2072
+ return de_CommandError(output, context);
2964
2073
  }
2965
2074
  const contents = (0, import_smithy_client.map)({
2966
2075
  $metadata: deserializeMetadata(output)
@@ -2973,40 +2082,9 @@ var de_ListAppComponentCompliancesCommand = /* @__PURE__ */ __name(async (output
2973
2082
  Object.assign(contents, doc);
2974
2083
  return contents;
2975
2084
  }, "de_ListAppComponentCompliancesCommand");
2976
- var de_ListAppComponentCompliancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2977
- const parsedOutput = {
2978
- ...output,
2979
- body: await parseErrorBody(output.body, context)
2980
- };
2981
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2982
- switch (errorCode) {
2983
- case "AccessDeniedException":
2984
- case "com.amazonaws.resiliencehub#AccessDeniedException":
2985
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2986
- case "InternalServerException":
2987
- case "com.amazonaws.resiliencehub#InternalServerException":
2988
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2989
- case "ResourceNotFoundException":
2990
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
2991
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2992
- case "ThrottlingException":
2993
- case "com.amazonaws.resiliencehub#ThrottlingException":
2994
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2995
- case "ValidationException":
2996
- case "com.amazonaws.resiliencehub#ValidationException":
2997
- throw await de_ValidationExceptionRes(parsedOutput, context);
2998
- default:
2999
- const parsedBody = parsedOutput.body;
3000
- return throwDefaultError({
3001
- output,
3002
- parsedBody,
3003
- errorCode
3004
- });
3005
- }
3006
- }, "de_ListAppComponentCompliancesCommandError");
3007
2085
  var de_ListAppComponentRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3008
2086
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3009
- return de_ListAppComponentRecommendationsCommandError(output, context);
2087
+ return de_CommandError(output, context);
3010
2088
  }
3011
2089
  const contents = (0, import_smithy_client.map)({
3012
2090
  $metadata: deserializeMetadata(output)
@@ -3019,40 +2097,9 @@ var de_ListAppComponentRecommendationsCommand = /* @__PURE__ */ __name(async (ou
3019
2097
  Object.assign(contents, doc);
3020
2098
  return contents;
3021
2099
  }, "de_ListAppComponentRecommendationsCommand");
3022
- var de_ListAppComponentRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3023
- const parsedOutput = {
3024
- ...output,
3025
- body: await parseErrorBody(output.body, context)
3026
- };
3027
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3028
- switch (errorCode) {
3029
- case "AccessDeniedException":
3030
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3031
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3032
- case "InternalServerException":
3033
- case "com.amazonaws.resiliencehub#InternalServerException":
3034
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3035
- case "ResourceNotFoundException":
3036
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3037
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3038
- case "ThrottlingException":
3039
- case "com.amazonaws.resiliencehub#ThrottlingException":
3040
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3041
- case "ValidationException":
3042
- case "com.amazonaws.resiliencehub#ValidationException":
3043
- throw await de_ValidationExceptionRes(parsedOutput, context);
3044
- default:
3045
- const parsedBody = parsedOutput.body;
3046
- return throwDefaultError({
3047
- output,
3048
- parsedBody,
3049
- errorCode
3050
- });
3051
- }
3052
- }, "de_ListAppComponentRecommendationsCommandError");
3053
2100
  var de_ListAppInputSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
3054
2101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3055
- return de_ListAppInputSourcesCommandError(output, context);
2102
+ return de_CommandError(output, context);
3056
2103
  }
3057
2104
  const contents = (0, import_smithy_client.map)({
3058
2105
  $metadata: deserializeMetadata(output)
@@ -3065,40 +2112,9 @@ var de_ListAppInputSourcesCommand = /* @__PURE__ */ __name(async (output, contex
3065
2112
  Object.assign(contents, doc);
3066
2113
  return contents;
3067
2114
  }, "de_ListAppInputSourcesCommand");
3068
- var de_ListAppInputSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3069
- const parsedOutput = {
3070
- ...output,
3071
- body: await parseErrorBody(output.body, context)
3072
- };
3073
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3074
- switch (errorCode) {
3075
- case "AccessDeniedException":
3076
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3077
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3078
- case "InternalServerException":
3079
- case "com.amazonaws.resiliencehub#InternalServerException":
3080
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3081
- case "ResourceNotFoundException":
3082
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3083
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3084
- case "ThrottlingException":
3085
- case "com.amazonaws.resiliencehub#ThrottlingException":
3086
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3087
- case "ValidationException":
3088
- case "com.amazonaws.resiliencehub#ValidationException":
3089
- throw await de_ValidationExceptionRes(parsedOutput, context);
3090
- default:
3091
- const parsedBody = parsedOutput.body;
3092
- return throwDefaultError({
3093
- output,
3094
- parsedBody,
3095
- errorCode
3096
- });
3097
- }
3098
- }, "de_ListAppInputSourcesCommandError");
3099
2115
  var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
3100
2116
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3101
- return de_ListAppsCommandError(output, context);
2117
+ return de_CommandError(output, context);
3102
2118
  }
3103
2119
  const contents = (0, import_smithy_client.map)({
3104
2120
  $metadata: deserializeMetadata(output)
@@ -3111,37 +2127,9 @@ var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
3111
2127
  Object.assign(contents, doc);
3112
2128
  return contents;
3113
2129
  }, "de_ListAppsCommand");
3114
- var de_ListAppsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3115
- const parsedOutput = {
3116
- ...output,
3117
- body: await parseErrorBody(output.body, context)
3118
- };
3119
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3120
- switch (errorCode) {
3121
- case "AccessDeniedException":
3122
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3123
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3124
- case "InternalServerException":
3125
- case "com.amazonaws.resiliencehub#InternalServerException":
3126
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3127
- case "ThrottlingException":
3128
- case "com.amazonaws.resiliencehub#ThrottlingException":
3129
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3130
- case "ValidationException":
3131
- case "com.amazonaws.resiliencehub#ValidationException":
3132
- throw await de_ValidationExceptionRes(parsedOutput, context);
3133
- default:
3134
- const parsedBody = parsedOutput.body;
3135
- return throwDefaultError({
3136
- output,
3137
- parsedBody,
3138
- errorCode
3139
- });
3140
- }
3141
- }, "de_ListAppsCommandError");
3142
2130
  var de_ListAppVersionAppComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
3143
2131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3144
- return de_ListAppVersionAppComponentsCommandError(output, context);
2132
+ return de_CommandError(output, context);
3145
2133
  }
3146
2134
  const contents = (0, import_smithy_client.map)({
3147
2135
  $metadata: deserializeMetadata(output)
@@ -3156,43 +2144,9 @@ var de_ListAppVersionAppComponentsCommand = /* @__PURE__ */ __name(async (output
3156
2144
  Object.assign(contents, doc);
3157
2145
  return contents;
3158
2146
  }, "de_ListAppVersionAppComponentsCommand");
3159
- var de_ListAppVersionAppComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3160
- const parsedOutput = {
3161
- ...output,
3162
- body: await parseErrorBody(output.body, context)
3163
- };
3164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3165
- switch (errorCode) {
3166
- case "AccessDeniedException":
3167
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3168
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3169
- case "ConflictException":
3170
- case "com.amazonaws.resiliencehub#ConflictException":
3171
- throw await de_ConflictExceptionRes(parsedOutput, context);
3172
- case "InternalServerException":
3173
- case "com.amazonaws.resiliencehub#InternalServerException":
3174
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3175
- case "ResourceNotFoundException":
3176
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3177
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3178
- case "ThrottlingException":
3179
- case "com.amazonaws.resiliencehub#ThrottlingException":
3180
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3181
- case "ValidationException":
3182
- case "com.amazonaws.resiliencehub#ValidationException":
3183
- throw await de_ValidationExceptionRes(parsedOutput, context);
3184
- default:
3185
- const parsedBody = parsedOutput.body;
3186
- return throwDefaultError({
3187
- output,
3188
- parsedBody,
3189
- errorCode
3190
- });
3191
- }
3192
- }, "de_ListAppVersionAppComponentsCommandError");
3193
2147
  var de_ListAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3194
2148
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3195
- return de_ListAppVersionResourceMappingsCommandError(output, context);
2149
+ return de_CommandError(output, context);
3196
2150
  }
3197
2151
  const contents = (0, import_smithy_client.map)({
3198
2152
  $metadata: deserializeMetadata(output)
@@ -3205,40 +2159,9 @@ var de_ListAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (out
3205
2159
  Object.assign(contents, doc);
3206
2160
  return contents;
3207
2161
  }, "de_ListAppVersionResourceMappingsCommand");
3208
- var de_ListAppVersionResourceMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3209
- const parsedOutput = {
3210
- ...output,
3211
- body: await parseErrorBody(output.body, context)
3212
- };
3213
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3214
- switch (errorCode) {
3215
- case "AccessDeniedException":
3216
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3217
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3218
- case "InternalServerException":
3219
- case "com.amazonaws.resiliencehub#InternalServerException":
3220
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3221
- case "ResourceNotFoundException":
3222
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3223
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3224
- case "ThrottlingException":
3225
- case "com.amazonaws.resiliencehub#ThrottlingException":
3226
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3227
- case "ValidationException":
3228
- case "com.amazonaws.resiliencehub#ValidationException":
3229
- throw await de_ValidationExceptionRes(parsedOutput, context);
3230
- default:
3231
- const parsedBody = parsedOutput.body;
3232
- return throwDefaultError({
3233
- output,
3234
- parsedBody,
3235
- errorCode
3236
- });
3237
- }
3238
- }, "de_ListAppVersionResourceMappingsCommandError");
3239
2162
  var de_ListAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
3240
2163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3241
- return de_ListAppVersionResourcesCommandError(output, context);
2164
+ return de_CommandError(output, context);
3242
2165
  }
3243
2166
  const contents = (0, import_smithy_client.map)({
3244
2167
  $metadata: deserializeMetadata(output)
@@ -3252,43 +2175,9 @@ var de_ListAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, co
3252
2175
  Object.assign(contents, doc);
3253
2176
  return contents;
3254
2177
  }, "de_ListAppVersionResourcesCommand");
3255
- var de_ListAppVersionResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3256
- const parsedOutput = {
3257
- ...output,
3258
- body: await parseErrorBody(output.body, context)
3259
- };
3260
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3261
- switch (errorCode) {
3262
- case "AccessDeniedException":
3263
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3264
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3265
- case "ConflictException":
3266
- case "com.amazonaws.resiliencehub#ConflictException":
3267
- throw await de_ConflictExceptionRes(parsedOutput, context);
3268
- case "InternalServerException":
3269
- case "com.amazonaws.resiliencehub#InternalServerException":
3270
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3271
- case "ResourceNotFoundException":
3272
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3273
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3274
- case "ThrottlingException":
3275
- case "com.amazonaws.resiliencehub#ThrottlingException":
3276
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3277
- case "ValidationException":
3278
- case "com.amazonaws.resiliencehub#ValidationException":
3279
- throw await de_ValidationExceptionRes(parsedOutput, context);
3280
- default:
3281
- const parsedBody = parsedOutput.body;
3282
- return throwDefaultError({
3283
- output,
3284
- parsedBody,
3285
- errorCode
3286
- });
3287
- }
3288
- }, "de_ListAppVersionResourcesCommandError");
3289
2178
  var de_ListAppVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3290
2179
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3291
- return de_ListAppVersionsCommandError(output, context);
2180
+ return de_CommandError(output, context);
3292
2181
  }
3293
2182
  const contents = (0, import_smithy_client.map)({
3294
2183
  $metadata: deserializeMetadata(output)
@@ -3301,37 +2190,9 @@ var de_ListAppVersionsCommand = /* @__PURE__ */ __name(async (output, context) =
3301
2190
  Object.assign(contents, doc);
3302
2191
  return contents;
3303
2192
  }, "de_ListAppVersionsCommand");
3304
- var de_ListAppVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3305
- const parsedOutput = {
3306
- ...output,
3307
- body: await parseErrorBody(output.body, context)
3308
- };
3309
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3310
- switch (errorCode) {
3311
- case "AccessDeniedException":
3312
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3313
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3314
- case "InternalServerException":
3315
- case "com.amazonaws.resiliencehub#InternalServerException":
3316
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3317
- case "ResourceNotFoundException":
3318
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3319
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3320
- case "ValidationException":
3321
- case "com.amazonaws.resiliencehub#ValidationException":
3322
- throw await de_ValidationExceptionRes(parsedOutput, context);
3323
- default:
3324
- const parsedBody = parsedOutput.body;
3325
- return throwDefaultError({
3326
- output,
3327
- parsedBody,
3328
- errorCode
3329
- });
3330
- }
3331
- }, "de_ListAppVersionsCommandError");
3332
2193
  var de_ListRecommendationTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
3333
2194
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3334
- return de_ListRecommendationTemplatesCommandError(output, context);
2195
+ return de_CommandError(output, context);
3335
2196
  }
3336
2197
  const contents = (0, import_smithy_client.map)({
3337
2198
  $metadata: deserializeMetadata(output)
@@ -3344,37 +2205,9 @@ var de_ListRecommendationTemplatesCommand = /* @__PURE__ */ __name(async (output
3344
2205
  Object.assign(contents, doc);
3345
2206
  return contents;
3346
2207
  }, "de_ListRecommendationTemplatesCommand");
3347
- var de_ListRecommendationTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3348
- const parsedOutput = {
3349
- ...output,
3350
- body: await parseErrorBody(output.body, context)
3351
- };
3352
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3353
- switch (errorCode) {
3354
- case "AccessDeniedException":
3355
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3356
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3357
- case "InternalServerException":
3358
- case "com.amazonaws.resiliencehub#InternalServerException":
3359
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3360
- case "ThrottlingException":
3361
- case "com.amazonaws.resiliencehub#ThrottlingException":
3362
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3363
- case "ValidationException":
3364
- case "com.amazonaws.resiliencehub#ValidationException":
3365
- throw await de_ValidationExceptionRes(parsedOutput, context);
3366
- default:
3367
- const parsedBody = parsedOutput.body;
3368
- return throwDefaultError({
3369
- output,
3370
- parsedBody,
3371
- errorCode
3372
- });
3373
- }
3374
- }, "de_ListRecommendationTemplatesCommandError");
3375
2208
  var de_ListResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
3376
2209
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3377
- return de_ListResiliencyPoliciesCommandError(output, context);
2210
+ return de_CommandError(output, context);
3378
2211
  }
3379
2212
  const contents = (0, import_smithy_client.map)({
3380
2213
  $metadata: deserializeMetadata(output)
@@ -3387,40 +2220,9 @@ var de_ListResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (output, con
3387
2220
  Object.assign(contents, doc);
3388
2221
  return contents;
3389
2222
  }, "de_ListResiliencyPoliciesCommand");
3390
- var de_ListResiliencyPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3391
- const parsedOutput = {
3392
- ...output,
3393
- body: await parseErrorBody(output.body, context)
3394
- };
3395
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3396
- switch (errorCode) {
3397
- case "AccessDeniedException":
3398
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3399
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3400
- case "InternalServerException":
3401
- case "com.amazonaws.resiliencehub#InternalServerException":
3402
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3403
- case "ResourceNotFoundException":
3404
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3405
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3406
- case "ThrottlingException":
3407
- case "com.amazonaws.resiliencehub#ThrottlingException":
3408
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3409
- case "ValidationException":
3410
- case "com.amazonaws.resiliencehub#ValidationException":
3411
- throw await de_ValidationExceptionRes(parsedOutput, context);
3412
- default:
3413
- const parsedBody = parsedOutput.body;
3414
- return throwDefaultError({
3415
- output,
3416
- parsedBody,
3417
- errorCode
3418
- });
3419
- }
3420
- }, "de_ListResiliencyPoliciesCommandError");
3421
2223
  var de_ListSopRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3422
2224
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3423
- return de_ListSopRecommendationsCommandError(output, context);
2225
+ return de_CommandError(output, context);
3424
2226
  }
3425
2227
  const contents = (0, import_smithy_client.map)({
3426
2228
  $metadata: deserializeMetadata(output)
@@ -3433,43 +2235,9 @@ var de_ListSopRecommendationsCommand = /* @__PURE__ */ __name(async (output, con
3433
2235
  Object.assign(contents, doc);
3434
2236
  return contents;
3435
2237
  }, "de_ListSopRecommendationsCommand");
3436
- var de_ListSopRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3437
- const parsedOutput = {
3438
- ...output,
3439
- body: await parseErrorBody(output.body, context)
3440
- };
3441
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3442
- switch (errorCode) {
3443
- case "AccessDeniedException":
3444
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3445
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3446
- case "ConflictException":
3447
- case "com.amazonaws.resiliencehub#ConflictException":
3448
- throw await de_ConflictExceptionRes(parsedOutput, context);
3449
- case "InternalServerException":
3450
- case "com.amazonaws.resiliencehub#InternalServerException":
3451
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3452
- case "ResourceNotFoundException":
3453
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3454
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3455
- case "ThrottlingException":
3456
- case "com.amazonaws.resiliencehub#ThrottlingException":
3457
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3458
- case "ValidationException":
3459
- case "com.amazonaws.resiliencehub#ValidationException":
3460
- throw await de_ValidationExceptionRes(parsedOutput, context);
3461
- default:
3462
- const parsedBody = parsedOutput.body;
3463
- return throwDefaultError({
3464
- output,
3465
- parsedBody,
3466
- errorCode
3467
- });
3468
- }
3469
- }, "de_ListSopRecommendationsCommandError");
3470
2238
  var de_ListSuggestedResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
3471
2239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3472
- return de_ListSuggestedResiliencyPoliciesCommandError(output, context);
2240
+ return de_CommandError(output, context);
3473
2241
  }
3474
2242
  const contents = (0, import_smithy_client.map)({
3475
2243
  $metadata: deserializeMetadata(output)
@@ -3482,40 +2250,9 @@ var de_ListSuggestedResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (ou
3482
2250
  Object.assign(contents, doc);
3483
2251
  return contents;
3484
2252
  }, "de_ListSuggestedResiliencyPoliciesCommand");
3485
- var de_ListSuggestedResiliencyPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3486
- const parsedOutput = {
3487
- ...output,
3488
- body: await parseErrorBody(output.body, context)
3489
- };
3490
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3491
- switch (errorCode) {
3492
- case "AccessDeniedException":
3493
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3494
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3495
- case "InternalServerException":
3496
- case "com.amazonaws.resiliencehub#InternalServerException":
3497
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3498
- case "ResourceNotFoundException":
3499
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3500
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3501
- case "ThrottlingException":
3502
- case "com.amazonaws.resiliencehub#ThrottlingException":
3503
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3504
- case "ValidationException":
3505
- case "com.amazonaws.resiliencehub#ValidationException":
3506
- throw await de_ValidationExceptionRes(parsedOutput, context);
3507
- default:
3508
- const parsedBody = parsedOutput.body;
3509
- return throwDefaultError({
3510
- output,
3511
- parsedBody,
3512
- errorCode
3513
- });
3514
- }
3515
- }, "de_ListSuggestedResiliencyPoliciesCommandError");
3516
2253
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3517
2254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3518
- return de_ListTagsForResourceCommandError(output, context);
2255
+ return de_CommandError(output, context);
3519
2256
  }
3520
2257
  const contents = (0, import_smithy_client.map)({
3521
2258
  $metadata: deserializeMetadata(output)
@@ -3527,40 +2264,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
3527
2264
  Object.assign(contents, doc);
3528
2265
  return contents;
3529
2266
  }, "de_ListTagsForResourceCommand");
3530
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3531
- const parsedOutput = {
3532
- ...output,
3533
- body: await parseErrorBody(output.body, context)
3534
- };
3535
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3536
- switch (errorCode) {
3537
- case "AccessDeniedException":
3538
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3539
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3540
- case "InternalServerException":
3541
- case "com.amazonaws.resiliencehub#InternalServerException":
3542
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3543
- case "ResourceNotFoundException":
3544
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3545
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3546
- case "ThrottlingException":
3547
- case "com.amazonaws.resiliencehub#ThrottlingException":
3548
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3549
- case "ValidationException":
3550
- case "com.amazonaws.resiliencehub#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_ListTagsForResourceCommandError");
3561
2267
  var de_ListTestRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3562
2268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3563
- return de_ListTestRecommendationsCommandError(output, context);
2269
+ return de_CommandError(output, context);
3564
2270
  }
3565
2271
  const contents = (0, import_smithy_client.map)({
3566
2272
  $metadata: deserializeMetadata(output)
@@ -3573,43 +2279,9 @@ var de_ListTestRecommendationsCommand = /* @__PURE__ */ __name(async (output, co
3573
2279
  Object.assign(contents, doc);
3574
2280
  return contents;
3575
2281
  }, "de_ListTestRecommendationsCommand");
3576
- var de_ListTestRecommendationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3577
- const parsedOutput = {
3578
- ...output,
3579
- body: await parseErrorBody(output.body, context)
3580
- };
3581
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3582
- switch (errorCode) {
3583
- case "AccessDeniedException":
3584
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3585
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3586
- case "ConflictException":
3587
- case "com.amazonaws.resiliencehub#ConflictException":
3588
- throw await de_ConflictExceptionRes(parsedOutput, context);
3589
- case "InternalServerException":
3590
- case "com.amazonaws.resiliencehub#InternalServerException":
3591
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3592
- case "ResourceNotFoundException":
3593
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3594
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3595
- case "ThrottlingException":
3596
- case "com.amazonaws.resiliencehub#ThrottlingException":
3597
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3598
- case "ValidationException":
3599
- case "com.amazonaws.resiliencehub#ValidationException":
3600
- throw await de_ValidationExceptionRes(parsedOutput, context);
3601
- default:
3602
- const parsedBody = parsedOutput.body;
3603
- return throwDefaultError({
3604
- output,
3605
- parsedBody,
3606
- errorCode
3607
- });
3608
- }
3609
- }, "de_ListTestRecommendationsCommandError");
3610
2282
  var de_ListUnsupportedAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
3611
2283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3612
- return de_ListUnsupportedAppVersionResourcesCommandError(output, context);
2284
+ return de_CommandError(output, context);
3613
2285
  }
3614
2286
  const contents = (0, import_smithy_client.map)({
3615
2287
  $metadata: deserializeMetadata(output)
@@ -3623,43 +2295,9 @@ var de_ListUnsupportedAppVersionResourcesCommand = /* @__PURE__ */ __name(async
3623
2295
  Object.assign(contents, doc);
3624
2296
  return contents;
3625
2297
  }, "de_ListUnsupportedAppVersionResourcesCommand");
3626
- var de_ListUnsupportedAppVersionResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3627
- const parsedOutput = {
3628
- ...output,
3629
- body: await parseErrorBody(output.body, context)
3630
- };
3631
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3632
- switch (errorCode) {
3633
- case "AccessDeniedException":
3634
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3635
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3636
- case "ConflictException":
3637
- case "com.amazonaws.resiliencehub#ConflictException":
3638
- throw await de_ConflictExceptionRes(parsedOutput, context);
3639
- case "InternalServerException":
3640
- case "com.amazonaws.resiliencehub#InternalServerException":
3641
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3642
- case "ResourceNotFoundException":
3643
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3644
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3645
- case "ThrottlingException":
3646
- case "com.amazonaws.resiliencehub#ThrottlingException":
3647
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3648
- case "ValidationException":
3649
- case "com.amazonaws.resiliencehub#ValidationException":
3650
- throw await de_ValidationExceptionRes(parsedOutput, context);
3651
- default:
3652
- const parsedBody = parsedOutput.body;
3653
- return throwDefaultError({
3654
- output,
3655
- parsedBody,
3656
- errorCode
3657
- });
3658
- }
3659
- }, "de_ListUnsupportedAppVersionResourcesCommandError");
3660
2298
  var de_PublishAppVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
3661
2299
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3662
- return de_PublishAppVersionCommandError(output, context);
2300
+ return de_CommandError(output, context);
3663
2301
  }
3664
2302
  const contents = (0, import_smithy_client.map)({
3665
2303
  $metadata: deserializeMetadata(output)
@@ -3674,43 +2312,9 @@ var de_PublishAppVersionCommand = /* @__PURE__ */ __name(async (output, context)
3674
2312
  Object.assign(contents, doc);
3675
2313
  return contents;
3676
2314
  }, "de_PublishAppVersionCommand");
3677
- var de_PublishAppVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3678
- const parsedOutput = {
3679
- ...output,
3680
- body: await parseErrorBody(output.body, context)
3681
- };
3682
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3683
- switch (errorCode) {
3684
- case "AccessDeniedException":
3685
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3686
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3687
- case "ConflictException":
3688
- case "com.amazonaws.resiliencehub#ConflictException":
3689
- throw await de_ConflictExceptionRes(parsedOutput, context);
3690
- case "InternalServerException":
3691
- case "com.amazonaws.resiliencehub#InternalServerException":
3692
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3693
- case "ResourceNotFoundException":
3694
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3695
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3696
- case "ThrottlingException":
3697
- case "com.amazonaws.resiliencehub#ThrottlingException":
3698
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3699
- case "ValidationException":
3700
- case "com.amazonaws.resiliencehub#ValidationException":
3701
- throw await de_ValidationExceptionRes(parsedOutput, context);
3702
- default:
3703
- const parsedBody = parsedOutput.body;
3704
- return throwDefaultError({
3705
- output,
3706
- parsedBody,
3707
- errorCode
3708
- });
3709
- }
3710
- }, "de_PublishAppVersionCommandError");
3711
2315
  var de_PutDraftAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
3712
2316
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3713
- return de_PutDraftAppVersionTemplateCommandError(output, context);
2317
+ return de_CommandError(output, context);
3714
2318
  }
3715
2319
  const contents = (0, import_smithy_client.map)({
3716
2320
  $metadata: deserializeMetadata(output)
@@ -3723,143 +2327,41 @@ var de_PutDraftAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output,
3723
2327
  Object.assign(contents, doc);
3724
2328
  return contents;
3725
2329
  }, "de_PutDraftAppVersionTemplateCommand");
3726
- var de_PutDraftAppVersionTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
3727
- const parsedOutput = {
3728
- ...output,
3729
- body: await parseErrorBody(output.body, context)
3730
- };
3731
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3732
- switch (errorCode) {
3733
- case "AccessDeniedException":
3734
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3735
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3736
- case "ConflictException":
3737
- case "com.amazonaws.resiliencehub#ConflictException":
3738
- throw await de_ConflictExceptionRes(parsedOutput, context);
3739
- case "InternalServerException":
3740
- case "com.amazonaws.resiliencehub#InternalServerException":
3741
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3742
- case "ResourceNotFoundException":
3743
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3744
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3745
- case "ThrottlingException":
3746
- case "com.amazonaws.resiliencehub#ThrottlingException":
3747
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3748
- case "ValidationException":
3749
- case "com.amazonaws.resiliencehub#ValidationException":
3750
- throw await de_ValidationExceptionRes(parsedOutput, context);
3751
- default:
3752
- const parsedBody = parsedOutput.body;
3753
- return throwDefaultError({
3754
- output,
3755
- parsedBody,
3756
- errorCode
3757
- });
3758
- }
3759
- }, "de_PutDraftAppVersionTemplateCommandError");
3760
- var de_RemoveDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3761
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3762
- return de_RemoveDraftAppVersionResourceMappingsCommandError(output, context);
3763
- }
3764
- const contents = (0, import_smithy_client.map)({
3765
- $metadata: deserializeMetadata(output)
3766
- });
3767
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3768
- const doc = (0, import_smithy_client.take)(data, {
3769
- appArn: import_smithy_client.expectString,
3770
- appVersion: import_smithy_client.expectString
3771
- });
3772
- Object.assign(contents, doc);
3773
- return contents;
3774
- }, "de_RemoveDraftAppVersionResourceMappingsCommand");
3775
- var de_RemoveDraftAppVersionResourceMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3776
- const parsedOutput = {
3777
- ...output,
3778
- body: await parseErrorBody(output.body, context)
3779
- };
3780
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3781
- switch (errorCode) {
3782
- case "AccessDeniedException":
3783
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3784
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3785
- case "ConflictException":
3786
- case "com.amazonaws.resiliencehub#ConflictException":
3787
- throw await de_ConflictExceptionRes(parsedOutput, context);
3788
- case "InternalServerException":
3789
- case "com.amazonaws.resiliencehub#InternalServerException":
3790
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3791
- case "ResourceNotFoundException":
3792
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3793
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3794
- case "ThrottlingException":
3795
- case "com.amazonaws.resiliencehub#ThrottlingException":
3796
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3797
- case "ValidationException":
3798
- case "com.amazonaws.resiliencehub#ValidationException":
3799
- throw await de_ValidationExceptionRes(parsedOutput, context);
3800
- default:
3801
- const parsedBody = parsedOutput.body;
3802
- return throwDefaultError({
3803
- output,
3804
- parsedBody,
3805
- errorCode
3806
- });
3807
- }
3808
- }, "de_RemoveDraftAppVersionResourceMappingsCommandError");
3809
- var de_ResolveAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
3810
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3811
- return de_ResolveAppVersionResourcesCommandError(output, context);
3812
- }
3813
- const contents = (0, import_smithy_client.map)({
3814
- $metadata: deserializeMetadata(output)
3815
- });
3816
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3817
- const doc = (0, import_smithy_client.take)(data, {
3818
- appArn: import_smithy_client.expectString,
3819
- appVersion: import_smithy_client.expectString,
3820
- resolutionId: import_smithy_client.expectString,
3821
- status: import_smithy_client.expectString
3822
- });
3823
- Object.assign(contents, doc);
3824
- return contents;
3825
- }, "de_ResolveAppVersionResourcesCommand");
3826
- var de_ResolveAppVersionResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3827
- const parsedOutput = {
3828
- ...output,
3829
- body: await parseErrorBody(output.body, context)
3830
- };
3831
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3832
- switch (errorCode) {
3833
- case "AccessDeniedException":
3834
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3835
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3836
- case "ConflictException":
3837
- case "com.amazonaws.resiliencehub#ConflictException":
3838
- throw await de_ConflictExceptionRes(parsedOutput, context);
3839
- case "InternalServerException":
3840
- case "com.amazonaws.resiliencehub#InternalServerException":
3841
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3842
- case "ResourceNotFoundException":
3843
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3844
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3845
- case "ThrottlingException":
3846
- case "com.amazonaws.resiliencehub#ThrottlingException":
3847
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3848
- case "ValidationException":
3849
- case "com.amazonaws.resiliencehub#ValidationException":
3850
- throw await de_ValidationExceptionRes(parsedOutput, context);
3851
- default:
3852
- const parsedBody = parsedOutput.body;
3853
- return throwDefaultError({
3854
- output,
3855
- parsedBody,
3856
- errorCode
3857
- });
2330
+ var de_RemoveDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2331
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2332
+ return de_CommandError(output, context);
2333
+ }
2334
+ const contents = (0, import_smithy_client.map)({
2335
+ $metadata: deserializeMetadata(output)
2336
+ });
2337
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2338
+ const doc = (0, import_smithy_client.take)(data, {
2339
+ appArn: import_smithy_client.expectString,
2340
+ appVersion: import_smithy_client.expectString
2341
+ });
2342
+ Object.assign(contents, doc);
2343
+ return contents;
2344
+ }, "de_RemoveDraftAppVersionResourceMappingsCommand");
2345
+ var de_ResolveAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
2346
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2347
+ return de_CommandError(output, context);
3858
2348
  }
3859
- }, "de_ResolveAppVersionResourcesCommandError");
2349
+ const contents = (0, import_smithy_client.map)({
2350
+ $metadata: deserializeMetadata(output)
2351
+ });
2352
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2353
+ const doc = (0, import_smithy_client.take)(data, {
2354
+ appArn: import_smithy_client.expectString,
2355
+ appVersion: import_smithy_client.expectString,
2356
+ resolutionId: import_smithy_client.expectString,
2357
+ status: import_smithy_client.expectString
2358
+ });
2359
+ Object.assign(contents, doc);
2360
+ return contents;
2361
+ }, "de_ResolveAppVersionResourcesCommand");
3860
2362
  var de_StartAppAssessmentCommand = /* @__PURE__ */ __name(async (output, context) => {
3861
2363
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3862
- return de_StartAppAssessmentCommandError(output, context);
2364
+ return de_CommandError(output, context);
3863
2365
  }
3864
2366
  const contents = (0, import_smithy_client.map)({
3865
2367
  $metadata: deserializeMetadata(output)
@@ -3871,46 +2373,9 @@ var de_StartAppAssessmentCommand = /* @__PURE__ */ __name(async (output, context
3871
2373
  Object.assign(contents, doc);
3872
2374
  return contents;
3873
2375
  }, "de_StartAppAssessmentCommand");
3874
- var de_StartAppAssessmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
3875
- const parsedOutput = {
3876
- ...output,
3877
- body: await parseErrorBody(output.body, context)
3878
- };
3879
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3880
- switch (errorCode) {
3881
- case "AccessDeniedException":
3882
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3883
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3884
- case "ConflictException":
3885
- case "com.amazonaws.resiliencehub#ConflictException":
3886
- throw await de_ConflictExceptionRes(parsedOutput, context);
3887
- case "InternalServerException":
3888
- case "com.amazonaws.resiliencehub#InternalServerException":
3889
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3890
- case "ResourceNotFoundException":
3891
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3892
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3893
- case "ServiceQuotaExceededException":
3894
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
3895
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3896
- case "ThrottlingException":
3897
- case "com.amazonaws.resiliencehub#ThrottlingException":
3898
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3899
- case "ValidationException":
3900
- case "com.amazonaws.resiliencehub#ValidationException":
3901
- throw await de_ValidationExceptionRes(parsedOutput, context);
3902
- default:
3903
- const parsedBody = parsedOutput.body;
3904
- return throwDefaultError({
3905
- output,
3906
- parsedBody,
3907
- errorCode
3908
- });
3909
- }
3910
- }, "de_StartAppAssessmentCommandError");
3911
2376
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3912
2377
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3913
- return de_TagResourceCommandError(output, context);
2378
+ return de_CommandError(output, context);
3914
2379
  }
3915
2380
  const contents = (0, import_smithy_client.map)({
3916
2381
  $metadata: deserializeMetadata(output)
@@ -3918,40 +2383,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3918
2383
  await (0, import_smithy_client.collectBody)(output.body, context);
3919
2384
  return contents;
3920
2385
  }, "de_TagResourceCommand");
3921
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3922
- const parsedOutput = {
3923
- ...output,
3924
- body: await parseErrorBody(output.body, context)
3925
- };
3926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3927
- switch (errorCode) {
3928
- case "AccessDeniedException":
3929
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3930
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3931
- case "InternalServerException":
3932
- case "com.amazonaws.resiliencehub#InternalServerException":
3933
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3934
- case "ResourceNotFoundException":
3935
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3936
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3937
- case "ThrottlingException":
3938
- case "com.amazonaws.resiliencehub#ThrottlingException":
3939
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3940
- case "ValidationException":
3941
- case "com.amazonaws.resiliencehub#ValidationException":
3942
- throw await de_ValidationExceptionRes(parsedOutput, context);
3943
- default:
3944
- const parsedBody = parsedOutput.body;
3945
- return throwDefaultError({
3946
- output,
3947
- parsedBody,
3948
- errorCode
3949
- });
3950
- }
3951
- }, "de_TagResourceCommandError");
3952
2386
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3953
2387
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3954
- return de_UntagResourceCommandError(output, context);
2388
+ return de_CommandError(output, context);
3955
2389
  }
3956
2390
  const contents = (0, import_smithy_client.map)({
3957
2391
  $metadata: deserializeMetadata(output)
@@ -3959,40 +2393,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3959
2393
  await (0, import_smithy_client.collectBody)(output.body, context);
3960
2394
  return contents;
3961
2395
  }, "de_UntagResourceCommand");
3962
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3963
- const parsedOutput = {
3964
- ...output,
3965
- body: await parseErrorBody(output.body, context)
3966
- };
3967
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3968
- switch (errorCode) {
3969
- case "AccessDeniedException":
3970
- case "com.amazonaws.resiliencehub#AccessDeniedException":
3971
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3972
- case "InternalServerException":
3973
- case "com.amazonaws.resiliencehub#InternalServerException":
3974
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3975
- case "ResourceNotFoundException":
3976
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
3977
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3978
- case "ThrottlingException":
3979
- case "com.amazonaws.resiliencehub#ThrottlingException":
3980
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3981
- case "ValidationException":
3982
- case "com.amazonaws.resiliencehub#ValidationException":
3983
- throw await de_ValidationExceptionRes(parsedOutput, context);
3984
- default:
3985
- const parsedBody = parsedOutput.body;
3986
- return throwDefaultError({
3987
- output,
3988
- parsedBody,
3989
- errorCode
3990
- });
3991
- }
3992
- }, "de_UntagResourceCommandError");
3993
2396
  var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
3994
2397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3995
- return de_UpdateAppCommandError(output, context);
2398
+ return de_CommandError(output, context);
3996
2399
  }
3997
2400
  const contents = (0, import_smithy_client.map)({
3998
2401
  $metadata: deserializeMetadata(output)
@@ -4004,43 +2407,9 @@ var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
4004
2407
  Object.assign(contents, doc);
4005
2408
  return contents;
4006
2409
  }, "de_UpdateAppCommand");
4007
- var de_UpdateAppCommandError = /* @__PURE__ */ __name(async (output, context) => {
4008
- const parsedOutput = {
4009
- ...output,
4010
- body: await parseErrorBody(output.body, context)
4011
- };
4012
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4013
- switch (errorCode) {
4014
- case "AccessDeniedException":
4015
- case "com.amazonaws.resiliencehub#AccessDeniedException":
4016
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4017
- case "ConflictException":
4018
- case "com.amazonaws.resiliencehub#ConflictException":
4019
- throw await de_ConflictExceptionRes(parsedOutput, context);
4020
- case "InternalServerException":
4021
- case "com.amazonaws.resiliencehub#InternalServerException":
4022
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4023
- case "ResourceNotFoundException":
4024
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
4025
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4026
- case "ThrottlingException":
4027
- case "com.amazonaws.resiliencehub#ThrottlingException":
4028
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4029
- case "ValidationException":
4030
- case "com.amazonaws.resiliencehub#ValidationException":
4031
- throw await de_ValidationExceptionRes(parsedOutput, context);
4032
- default:
4033
- const parsedBody = parsedOutput.body;
4034
- return throwDefaultError({
4035
- output,
4036
- parsedBody,
4037
- errorCode
4038
- });
4039
- }
4040
- }, "de_UpdateAppCommandError");
4041
2410
  var de_UpdateAppVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
4042
2411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4043
- return de_UpdateAppVersionCommandError(output, context);
2412
+ return de_CommandError(output, context);
4044
2413
  }
4045
2414
  const contents = (0, import_smithy_client.map)({
4046
2415
  $metadata: deserializeMetadata(output)
@@ -4054,43 +2423,9 @@ var de_UpdateAppVersionCommand = /* @__PURE__ */ __name(async (output, context)
4054
2423
  Object.assign(contents, doc);
4055
2424
  return contents;
4056
2425
  }, "de_UpdateAppVersionCommand");
4057
- var de_UpdateAppVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
4058
- const parsedOutput = {
4059
- ...output,
4060
- body: await parseErrorBody(output.body, context)
4061
- };
4062
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4063
- switch (errorCode) {
4064
- case "AccessDeniedException":
4065
- case "com.amazonaws.resiliencehub#AccessDeniedException":
4066
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4067
- case "ConflictException":
4068
- case "com.amazonaws.resiliencehub#ConflictException":
4069
- throw await de_ConflictExceptionRes(parsedOutput, context);
4070
- case "InternalServerException":
4071
- case "com.amazonaws.resiliencehub#InternalServerException":
4072
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4073
- case "ResourceNotFoundException":
4074
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
4075
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4076
- case "ThrottlingException":
4077
- case "com.amazonaws.resiliencehub#ThrottlingException":
4078
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4079
- case "ValidationException":
4080
- case "com.amazonaws.resiliencehub#ValidationException":
4081
- throw await de_ValidationExceptionRes(parsedOutput, context);
4082
- default:
4083
- const parsedBody = parsedOutput.body;
4084
- return throwDefaultError({
4085
- output,
4086
- parsedBody,
4087
- errorCode
4088
- });
4089
- }
4090
- }, "de_UpdateAppVersionCommandError");
4091
2426
  var de_UpdateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
4092
2427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4093
- return de_UpdateAppVersionAppComponentCommandError(output, context);
2428
+ return de_CommandError(output, context);
4094
2429
  }
4095
2430
  const contents = (0, import_smithy_client.map)({
4096
2431
  $metadata: deserializeMetadata(output)
@@ -4104,43 +2439,9 @@ var de_UpdateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
4104
2439
  Object.assign(contents, doc);
4105
2440
  return contents;
4106
2441
  }, "de_UpdateAppVersionAppComponentCommand");
4107
- var de_UpdateAppVersionAppComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
4108
- const parsedOutput = {
4109
- ...output,
4110
- body: await parseErrorBody(output.body, context)
4111
- };
4112
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4113
- switch (errorCode) {
4114
- case "AccessDeniedException":
4115
- case "com.amazonaws.resiliencehub#AccessDeniedException":
4116
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4117
- case "ConflictException":
4118
- case "com.amazonaws.resiliencehub#ConflictException":
4119
- throw await de_ConflictExceptionRes(parsedOutput, context);
4120
- case "InternalServerException":
4121
- case "com.amazonaws.resiliencehub#InternalServerException":
4122
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4123
- case "ResourceNotFoundException":
4124
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
4125
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4126
- case "ThrottlingException":
4127
- case "com.amazonaws.resiliencehub#ThrottlingException":
4128
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4129
- case "ValidationException":
4130
- case "com.amazonaws.resiliencehub#ValidationException":
4131
- throw await de_ValidationExceptionRes(parsedOutput, context);
4132
- default:
4133
- const parsedBody = parsedOutput.body;
4134
- return throwDefaultError({
4135
- output,
4136
- parsedBody,
4137
- errorCode
4138
- });
4139
- }
4140
- }, "de_UpdateAppVersionAppComponentCommandError");
4141
2442
  var de_UpdateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4142
2443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4143
- return de_UpdateAppVersionResourceCommandError(output, context);
2444
+ return de_CommandError(output, context);
4144
2445
  }
4145
2446
  const contents = (0, import_smithy_client.map)({
4146
2447
  $metadata: deserializeMetadata(output)
@@ -4154,46 +2455,9 @@ var de_UpdateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
4154
2455
  Object.assign(contents, doc);
4155
2456
  return contents;
4156
2457
  }, "de_UpdateAppVersionResourceCommand");
4157
- var de_UpdateAppVersionResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4158
- const parsedOutput = {
4159
- ...output,
4160
- body: await parseErrorBody(output.body, context)
4161
- };
4162
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4163
- switch (errorCode) {
4164
- case "AccessDeniedException":
4165
- case "com.amazonaws.resiliencehub#AccessDeniedException":
4166
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4167
- case "ConflictException":
4168
- case "com.amazonaws.resiliencehub#ConflictException":
4169
- throw await de_ConflictExceptionRes(parsedOutput, context);
4170
- case "InternalServerException":
4171
- case "com.amazonaws.resiliencehub#InternalServerException":
4172
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4173
- case "ResourceNotFoundException":
4174
- case "com.amazonaws.resiliencehub#ResourceNotFoundException":
4175
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4176
- case "ServiceQuotaExceededException":
4177
- case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
4178
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4179
- case "ThrottlingException":
4180
- case "com.amazonaws.resiliencehub#ThrottlingException":
4181
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4182
- case "ValidationException":
4183
- case "com.amazonaws.resiliencehub#ValidationException":
4184
- throw await de_ValidationExceptionRes(parsedOutput, context);
4185
- default:
4186
- const parsedBody = parsedOutput.body;
4187
- return throwDefaultError({
4188
- output,
4189
- parsedBody,
4190
- errorCode
4191
- });
4192
- }
4193
- }, "de_UpdateAppVersionResourceCommandError");
4194
2458
  var de_UpdateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
4195
2459
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4196
- return de_UpdateResiliencyPolicyCommandError(output, context);
2460
+ return de_CommandError(output, context);
4197
2461
  }
4198
2462
  const contents = (0, import_smithy_client.map)({
4199
2463
  $metadata: deserializeMetadata(output)
@@ -4205,7 +2469,7 @@ var de_UpdateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
4205
2469
  Object.assign(contents, doc);
4206
2470
  return contents;
4207
2471
  }, "de_UpdateResiliencyPolicyCommand");
4208
- var de_UpdateResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2472
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4209
2473
  const parsedOutput = {
4210
2474
  ...output,
4211
2475
  body: await parseErrorBody(output.body, context)
@@ -4230,6 +2494,9 @@ var de_UpdateResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output
4230
2494
  case "ValidationException":
4231
2495
  case "com.amazonaws.resiliencehub#ValidationException":
4232
2496
  throw await de_ValidationExceptionRes(parsedOutput, context);
2497
+ case "ServiceQuotaExceededException":
2498
+ case "com.amazonaws.resiliencehub#ServiceQuotaExceededException":
2499
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4233
2500
  default:
4234
2501
  const parsedBody = parsedOutput.body;
4235
2502
  return throwDefaultError({
@@ -4238,7 +2505,7 @@ var de_UpdateResiliencyPolicyCommandError = /* @__PURE__ */ __name(async (output
4238
2505
  errorCode
4239
2506
  });
4240
2507
  }
4241
- }, "de_UpdateResiliencyPolicyCommandError");
2508
+ }, "de_CommandError");
4242
2509
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ResiliencehubServiceException);
4243
2510
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4244
2511
  const contents = (0, import_smithy_client.map)({});