@aws-sdk/client-resiliencehub 3.525.0 → 3.529.1
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 +55 -95
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -318,6 +318,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
318
318
|
var import_types = require("@smithy/types");
|
|
319
319
|
|
|
320
320
|
// src/protocols/Aws_restJson1.ts
|
|
321
|
+
var import_core2 = require("@aws-sdk/core");
|
|
321
322
|
|
|
322
323
|
|
|
323
324
|
var import_uuid = require("uuid");
|
|
@@ -1715,7 +1716,7 @@ var de_AddDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async
|
|
|
1715
1716
|
const contents = (0, import_smithy_client.map)({
|
|
1716
1717
|
$metadata: deserializeMetadata(output)
|
|
1717
1718
|
});
|
|
1718
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1719
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1719
1720
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1720
1721
|
appArn: import_smithy_client.expectString,
|
|
1721
1722
|
appVersion: import_smithy_client.expectString,
|
|
@@ -1731,7 +1732,7 @@ var de_BatchUpdateRecommendationStatusCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1731
1732
|
const contents = (0, import_smithy_client.map)({
|
|
1732
1733
|
$metadata: deserializeMetadata(output)
|
|
1733
1734
|
});
|
|
1734
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1735
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1735
1736
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1736
1737
|
appArn: import_smithy_client.expectString,
|
|
1737
1738
|
failedEntries: import_smithy_client._json,
|
|
@@ -1747,7 +1748,7 @@ var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1747
1748
|
const contents = (0, import_smithy_client.map)({
|
|
1748
1749
|
$metadata: deserializeMetadata(output)
|
|
1749
1750
|
});
|
|
1750
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1751
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1751
1752
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1752
1753
|
app: (_) => de_App(_, context)
|
|
1753
1754
|
});
|
|
@@ -1761,7 +1762,7 @@ var de_CreateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1761
1762
|
const contents = (0, import_smithy_client.map)({
|
|
1762
1763
|
$metadata: deserializeMetadata(output)
|
|
1763
1764
|
});
|
|
1764
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1765
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1765
1766
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1766
1767
|
appArn: import_smithy_client.expectString,
|
|
1767
1768
|
appComponent: import_smithy_client._json,
|
|
@@ -1777,7 +1778,7 @@ var de_CreateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1777
1778
|
const contents = (0, import_smithy_client.map)({
|
|
1778
1779
|
$metadata: deserializeMetadata(output)
|
|
1779
1780
|
});
|
|
1780
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1781
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1781
1782
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1782
1783
|
appArn: import_smithy_client.expectString,
|
|
1783
1784
|
appVersion: import_smithy_client.expectString,
|
|
@@ -1793,7 +1794,7 @@ var de_CreateRecommendationTemplateCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1793
1794
|
const contents = (0, import_smithy_client.map)({
|
|
1794
1795
|
$metadata: deserializeMetadata(output)
|
|
1795
1796
|
});
|
|
1796
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1797
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1797
1798
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1798
1799
|
recommendationTemplate: (_) => de_RecommendationTemplate(_, context)
|
|
1799
1800
|
});
|
|
@@ -1807,7 +1808,7 @@ var de_CreateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1807
1808
|
const contents = (0, import_smithy_client.map)({
|
|
1808
1809
|
$metadata: deserializeMetadata(output)
|
|
1809
1810
|
});
|
|
1810
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1811
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1811
1812
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1812
1813
|
policy: (_) => de_ResiliencyPolicy(_, context)
|
|
1813
1814
|
});
|
|
@@ -1821,7 +1822,7 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1821
1822
|
const contents = (0, import_smithy_client.map)({
|
|
1822
1823
|
$metadata: deserializeMetadata(output)
|
|
1823
1824
|
});
|
|
1824
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1825
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1825
1826
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1826
1827
|
appArn: import_smithy_client.expectString
|
|
1827
1828
|
});
|
|
@@ -1835,7 +1836,7 @@ var de_DeleteAppAssessmentCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1835
1836
|
const contents = (0, import_smithy_client.map)({
|
|
1836
1837
|
$metadata: deserializeMetadata(output)
|
|
1837
1838
|
});
|
|
1838
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1839
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1839
1840
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1840
1841
|
assessmentArn: import_smithy_client.expectString,
|
|
1841
1842
|
assessmentStatus: import_smithy_client.expectString
|
|
@@ -1850,7 +1851,7 @@ var de_DeleteAppInputSourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1850
1851
|
const contents = (0, import_smithy_client.map)({
|
|
1851
1852
|
$metadata: deserializeMetadata(output)
|
|
1852
1853
|
});
|
|
1853
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1854
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1854
1855
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1855
1856
|
appArn: import_smithy_client.expectString,
|
|
1856
1857
|
appInputSource: import_smithy_client._json
|
|
@@ -1865,7 +1866,7 @@ var de_DeleteAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1865
1866
|
const contents = (0, import_smithy_client.map)({
|
|
1866
1867
|
$metadata: deserializeMetadata(output)
|
|
1867
1868
|
});
|
|
1868
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1869
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1869
1870
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1870
1871
|
appArn: import_smithy_client.expectString,
|
|
1871
1872
|
appComponent: import_smithy_client._json,
|
|
@@ -1881,7 +1882,7 @@ var de_DeleteAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1881
1882
|
const contents = (0, import_smithy_client.map)({
|
|
1882
1883
|
$metadata: deserializeMetadata(output)
|
|
1883
1884
|
});
|
|
1884
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1885
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1885
1886
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1886
1887
|
appArn: import_smithy_client.expectString,
|
|
1887
1888
|
appVersion: import_smithy_client.expectString,
|
|
@@ -1897,7 +1898,7 @@ var de_DeleteRecommendationTemplateCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1897
1898
|
const contents = (0, import_smithy_client.map)({
|
|
1898
1899
|
$metadata: deserializeMetadata(output)
|
|
1899
1900
|
});
|
|
1900
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1901
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1901
1902
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1902
1903
|
recommendationTemplateArn: import_smithy_client.expectString,
|
|
1903
1904
|
status: import_smithy_client.expectString
|
|
@@ -1912,7 +1913,7 @@ var de_DeleteResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1912
1913
|
const contents = (0, import_smithy_client.map)({
|
|
1913
1914
|
$metadata: deserializeMetadata(output)
|
|
1914
1915
|
});
|
|
1915
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1916
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1916
1917
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1917
1918
|
policyArn: import_smithy_client.expectString
|
|
1918
1919
|
});
|
|
@@ -1926,7 +1927,7 @@ var de_DescribeAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1926
1927
|
const contents = (0, import_smithy_client.map)({
|
|
1927
1928
|
$metadata: deserializeMetadata(output)
|
|
1928
1929
|
});
|
|
1929
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1930
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1930
1931
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1931
1932
|
app: (_) => de_App(_, context)
|
|
1932
1933
|
});
|
|
@@ -1940,7 +1941,7 @@ var de_DescribeAppAssessmentCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1940
1941
|
const contents = (0, import_smithy_client.map)({
|
|
1941
1942
|
$metadata: deserializeMetadata(output)
|
|
1942
1943
|
});
|
|
1943
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1944
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1944
1945
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1945
1946
|
assessment: (_) => de_AppAssessment(_, context)
|
|
1946
1947
|
});
|
|
@@ -1954,7 +1955,7 @@ var de_DescribeAppVersionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1954
1955
|
const contents = (0, import_smithy_client.map)({
|
|
1955
1956
|
$metadata: deserializeMetadata(output)
|
|
1956
1957
|
});
|
|
1957
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1958
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1958
1959
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1959
1960
|
additionalInfo: import_smithy_client._json,
|
|
1960
1961
|
appArn: import_smithy_client.expectString,
|
|
@@ -1970,7 +1971,7 @@ var de_DescribeAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (out
|
|
|
1970
1971
|
const contents = (0, import_smithy_client.map)({
|
|
1971
1972
|
$metadata: deserializeMetadata(output)
|
|
1972
1973
|
});
|
|
1973
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1974
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1974
1975
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1975
1976
|
appArn: import_smithy_client.expectString,
|
|
1976
1977
|
appComponent: import_smithy_client._json,
|
|
@@ -1986,7 +1987,7 @@ var de_DescribeAppVersionResourceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1986
1987
|
const contents = (0, import_smithy_client.map)({
|
|
1987
1988
|
$metadata: deserializeMetadata(output)
|
|
1988
1989
|
});
|
|
1989
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1990
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1990
1991
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1991
1992
|
appArn: import_smithy_client.expectString,
|
|
1992
1993
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2002,7 +2003,7 @@ var de_DescribeAppVersionResourcesResolutionStatusCommand = /* @__PURE__ */ __na
|
|
|
2002
2003
|
const contents = (0, import_smithy_client.map)({
|
|
2003
2004
|
$metadata: deserializeMetadata(output)
|
|
2004
2005
|
});
|
|
2005
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2006
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2006
2007
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2007
2008
|
appArn: import_smithy_client.expectString,
|
|
2008
2009
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2020,7 +2021,7 @@ var de_DescribeAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2020
2021
|
const contents = (0, import_smithy_client.map)({
|
|
2021
2022
|
$metadata: deserializeMetadata(output)
|
|
2022
2023
|
});
|
|
2023
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2024
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2024
2025
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2025
2026
|
appArn: import_smithy_client.expectString,
|
|
2026
2027
|
appTemplateBody: import_smithy_client.expectString,
|
|
@@ -2036,7 +2037,7 @@ var de_DescribeDraftAppVersionResourcesImportStatusCommand = /* @__PURE__ */ __n
|
|
|
2036
2037
|
const contents = (0, import_smithy_client.map)({
|
|
2037
2038
|
$metadata: deserializeMetadata(output)
|
|
2038
2039
|
});
|
|
2039
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2040
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2040
2041
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2041
2042
|
appArn: import_smithy_client.expectString,
|
|
2042
2043
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2054,7 +2055,7 @@ var de_DescribeResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2054
2055
|
const contents = (0, import_smithy_client.map)({
|
|
2055
2056
|
$metadata: deserializeMetadata(output)
|
|
2056
2057
|
});
|
|
2057
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2058
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2058
2059
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2059
2060
|
policy: (_) => de_ResiliencyPolicy(_, context)
|
|
2060
2061
|
});
|
|
@@ -2068,7 +2069,7 @@ var de_ImportResourcesToDraftAppVersionCommand = /* @__PURE__ */ __name(async (o
|
|
|
2068
2069
|
const contents = (0, import_smithy_client.map)({
|
|
2069
2070
|
$metadata: deserializeMetadata(output)
|
|
2070
2071
|
});
|
|
2071
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2072
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2072
2073
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2073
2074
|
appArn: import_smithy_client.expectString,
|
|
2074
2075
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2087,7 +2088,7 @@ var de_ListAlarmRecommendationsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2087
2088
|
const contents = (0, import_smithy_client.map)({
|
|
2088
2089
|
$metadata: deserializeMetadata(output)
|
|
2089
2090
|
});
|
|
2090
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2091
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2091
2092
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2092
2093
|
alarmRecommendations: import_smithy_client._json,
|
|
2093
2094
|
nextToken: import_smithy_client.expectString
|
|
@@ -2102,7 +2103,7 @@ var de_ListAppAssessmentComplianceDriftsCommand = /* @__PURE__ */ __name(async (
|
|
|
2102
2103
|
const contents = (0, import_smithy_client.map)({
|
|
2103
2104
|
$metadata: deserializeMetadata(output)
|
|
2104
2105
|
});
|
|
2105
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2106
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2106
2107
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2107
2108
|
complianceDrifts: import_smithy_client._json,
|
|
2108
2109
|
nextToken: import_smithy_client.expectString
|
|
@@ -2117,7 +2118,7 @@ var de_ListAppAssessmentsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2117
2118
|
const contents = (0, import_smithy_client.map)({
|
|
2118
2119
|
$metadata: deserializeMetadata(output)
|
|
2119
2120
|
});
|
|
2120
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2121
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2121
2122
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2122
2123
|
assessmentSummaries: (_) => de_AppAssessmentSummaryList(_, context),
|
|
2123
2124
|
nextToken: import_smithy_client.expectString
|
|
@@ -2132,7 +2133,7 @@ var de_ListAppComponentCompliancesCommand = /* @__PURE__ */ __name(async (output
|
|
|
2132
2133
|
const contents = (0, import_smithy_client.map)({
|
|
2133
2134
|
$metadata: deserializeMetadata(output)
|
|
2134
2135
|
});
|
|
2135
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2136
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2136
2137
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2137
2138
|
componentCompliances: (_) => de_ComponentCompliancesList(_, context),
|
|
2138
2139
|
nextToken: import_smithy_client.expectString
|
|
@@ -2147,7 +2148,7 @@ var de_ListAppComponentRecommendationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2147
2148
|
const contents = (0, import_smithy_client.map)({
|
|
2148
2149
|
$metadata: deserializeMetadata(output)
|
|
2149
2150
|
});
|
|
2150
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2151
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2151
2152
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2152
2153
|
componentRecommendations: (_) => de_ComponentRecommendationList(_, context),
|
|
2153
2154
|
nextToken: import_smithy_client.expectString
|
|
@@ -2162,7 +2163,7 @@ var de_ListAppInputSourcesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2162
2163
|
const contents = (0, import_smithy_client.map)({
|
|
2163
2164
|
$metadata: deserializeMetadata(output)
|
|
2164
2165
|
});
|
|
2165
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2166
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2166
2167
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2167
2168
|
appInputSources: import_smithy_client._json,
|
|
2168
2169
|
nextToken: import_smithy_client.expectString
|
|
@@ -2177,7 +2178,7 @@ var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2177
2178
|
const contents = (0, import_smithy_client.map)({
|
|
2178
2179
|
$metadata: deserializeMetadata(output)
|
|
2179
2180
|
});
|
|
2180
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2181
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2181
2182
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2182
2183
|
appSummaries: (_) => de_AppSummaryList(_, context),
|
|
2183
2184
|
nextToken: import_smithy_client.expectString
|
|
@@ -2192,7 +2193,7 @@ var de_ListAppVersionAppComponentsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2192
2193
|
const contents = (0, import_smithy_client.map)({
|
|
2193
2194
|
$metadata: deserializeMetadata(output)
|
|
2194
2195
|
});
|
|
2195
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2196
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2196
2197
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2197
2198
|
appArn: import_smithy_client.expectString,
|
|
2198
2199
|
appComponents: import_smithy_client._json,
|
|
@@ -2209,7 +2210,7 @@ var de_ListAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2209
2210
|
const contents = (0, import_smithy_client.map)({
|
|
2210
2211
|
$metadata: deserializeMetadata(output)
|
|
2211
2212
|
});
|
|
2212
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2213
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2213
2214
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2214
2215
|
nextToken: import_smithy_client.expectString,
|
|
2215
2216
|
resourceMappings: import_smithy_client._json
|
|
@@ -2224,7 +2225,7 @@ var de_ListAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2224
2225
|
const contents = (0, import_smithy_client.map)({
|
|
2225
2226
|
$metadata: deserializeMetadata(output)
|
|
2226
2227
|
});
|
|
2227
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2228
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2228
2229
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2229
2230
|
nextToken: import_smithy_client.expectString,
|
|
2230
2231
|
physicalResources: import_smithy_client._json,
|
|
@@ -2240,7 +2241,7 @@ var de_ListAppVersionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2240
2241
|
const contents = (0, import_smithy_client.map)({
|
|
2241
2242
|
$metadata: deserializeMetadata(output)
|
|
2242
2243
|
});
|
|
2243
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2244
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2244
2245
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2245
2246
|
appVersions: (_) => de_AppVersionList(_, context),
|
|
2246
2247
|
nextToken: import_smithy_client.expectString
|
|
@@ -2255,7 +2256,7 @@ var de_ListRecommendationTemplatesCommand = /* @__PURE__ */ __name(async (output
|
|
|
2255
2256
|
const contents = (0, import_smithy_client.map)({
|
|
2256
2257
|
$metadata: deserializeMetadata(output)
|
|
2257
2258
|
});
|
|
2258
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2259
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2259
2260
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2260
2261
|
nextToken: import_smithy_client.expectString,
|
|
2261
2262
|
recommendationTemplates: (_) => de_RecommendationTemplateList(_, context)
|
|
@@ -2270,7 +2271,7 @@ var de_ListResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2270
2271
|
const contents = (0, import_smithy_client.map)({
|
|
2271
2272
|
$metadata: deserializeMetadata(output)
|
|
2272
2273
|
});
|
|
2273
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2274
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2274
2275
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2275
2276
|
nextToken: import_smithy_client.expectString,
|
|
2276
2277
|
resiliencyPolicies: (_) => de_ResiliencyPolicies(_, context)
|
|
@@ -2285,7 +2286,7 @@ var de_ListSopRecommendationsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2285
2286
|
const contents = (0, import_smithy_client.map)({
|
|
2286
2287
|
$metadata: deserializeMetadata(output)
|
|
2287
2288
|
});
|
|
2288
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2289
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2289
2290
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2290
2291
|
nextToken: import_smithy_client.expectString,
|
|
2291
2292
|
sopRecommendations: import_smithy_client._json
|
|
@@ -2300,7 +2301,7 @@ var de_ListSuggestedResiliencyPoliciesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2300
2301
|
const contents = (0, import_smithy_client.map)({
|
|
2301
2302
|
$metadata: deserializeMetadata(output)
|
|
2302
2303
|
});
|
|
2303
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2304
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2304
2305
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2305
2306
|
nextToken: import_smithy_client.expectString,
|
|
2306
2307
|
resiliencyPolicies: (_) => de_ResiliencyPolicies(_, context)
|
|
@@ -2315,7 +2316,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2315
2316
|
const contents = (0, import_smithy_client.map)({
|
|
2316
2317
|
$metadata: deserializeMetadata(output)
|
|
2317
2318
|
});
|
|
2318
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2319
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2319
2320
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2320
2321
|
tags: import_smithy_client._json
|
|
2321
2322
|
});
|
|
@@ -2329,7 +2330,7 @@ var de_ListTestRecommendationsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2329
2330
|
const contents = (0, import_smithy_client.map)({
|
|
2330
2331
|
$metadata: deserializeMetadata(output)
|
|
2331
2332
|
});
|
|
2332
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2333
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2333
2334
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2334
2335
|
nextToken: import_smithy_client.expectString,
|
|
2335
2336
|
testRecommendations: import_smithy_client._json
|
|
@@ -2344,7 +2345,7 @@ var de_ListUnsupportedAppVersionResourcesCommand = /* @__PURE__ */ __name(async
|
|
|
2344
2345
|
const contents = (0, import_smithy_client.map)({
|
|
2345
2346
|
$metadata: deserializeMetadata(output)
|
|
2346
2347
|
});
|
|
2347
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2348
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2348
2349
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2349
2350
|
nextToken: import_smithy_client.expectString,
|
|
2350
2351
|
resolutionId: import_smithy_client.expectString,
|
|
@@ -2360,7 +2361,7 @@ var de_PublishAppVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2360
2361
|
const contents = (0, import_smithy_client.map)({
|
|
2361
2362
|
$metadata: deserializeMetadata(output)
|
|
2362
2363
|
});
|
|
2363
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2364
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2364
2365
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2365
2366
|
appArn: import_smithy_client.expectString,
|
|
2366
2367
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2377,7 +2378,7 @@ var de_PutDraftAppVersionTemplateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2377
2378
|
const contents = (0, import_smithy_client.map)({
|
|
2378
2379
|
$metadata: deserializeMetadata(output)
|
|
2379
2380
|
});
|
|
2380
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2381
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2381
2382
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2382
2383
|
appArn: import_smithy_client.expectString,
|
|
2383
2384
|
appVersion: import_smithy_client.expectString
|
|
@@ -2392,7 +2393,7 @@ var de_RemoveDraftAppVersionResourceMappingsCommand = /* @__PURE__ */ __name(asy
|
|
|
2392
2393
|
const contents = (0, import_smithy_client.map)({
|
|
2393
2394
|
$metadata: deserializeMetadata(output)
|
|
2394
2395
|
});
|
|
2395
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2396
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2396
2397
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2397
2398
|
appArn: import_smithy_client.expectString,
|
|
2398
2399
|
appVersion: import_smithy_client.expectString
|
|
@@ -2407,7 +2408,7 @@ var de_ResolveAppVersionResourcesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2407
2408
|
const contents = (0, import_smithy_client.map)({
|
|
2408
2409
|
$metadata: deserializeMetadata(output)
|
|
2409
2410
|
});
|
|
2410
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2411
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2411
2412
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2412
2413
|
appArn: import_smithy_client.expectString,
|
|
2413
2414
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2424,7 +2425,7 @@ var de_StartAppAssessmentCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2424
2425
|
const contents = (0, import_smithy_client.map)({
|
|
2425
2426
|
$metadata: deserializeMetadata(output)
|
|
2426
2427
|
});
|
|
2427
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2428
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2428
2429
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2429
2430
|
assessment: (_) => de_AppAssessment(_, context)
|
|
2430
2431
|
});
|
|
@@ -2458,7 +2459,7 @@ var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2458
2459
|
const contents = (0, import_smithy_client.map)({
|
|
2459
2460
|
$metadata: deserializeMetadata(output)
|
|
2460
2461
|
});
|
|
2461
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2462
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2462
2463
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2463
2464
|
app: (_) => de_App(_, context)
|
|
2464
2465
|
});
|
|
@@ -2472,7 +2473,7 @@ var de_UpdateAppVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2472
2473
|
const contents = (0, import_smithy_client.map)({
|
|
2473
2474
|
$metadata: deserializeMetadata(output)
|
|
2474
2475
|
});
|
|
2475
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2476
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2476
2477
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2477
2478
|
additionalInfo: import_smithy_client._json,
|
|
2478
2479
|
appArn: import_smithy_client.expectString,
|
|
@@ -2488,7 +2489,7 @@ var de_UpdateAppVersionAppComponentCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2488
2489
|
const contents = (0, import_smithy_client.map)({
|
|
2489
2490
|
$metadata: deserializeMetadata(output)
|
|
2490
2491
|
});
|
|
2491
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2492
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2492
2493
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2493
2494
|
appArn: import_smithy_client.expectString,
|
|
2494
2495
|
appComponent: import_smithy_client._json,
|
|
@@ -2504,7 +2505,7 @@ var de_UpdateAppVersionResourceCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2504
2505
|
const contents = (0, import_smithy_client.map)({
|
|
2505
2506
|
$metadata: deserializeMetadata(output)
|
|
2506
2507
|
});
|
|
2507
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2508
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2508
2509
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2509
2510
|
appArn: import_smithy_client.expectString,
|
|
2510
2511
|
appVersion: import_smithy_client.expectString,
|
|
@@ -2520,7 +2521,7 @@ var de_UpdateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2520
2521
|
const contents = (0, import_smithy_client.map)({
|
|
2521
2522
|
$metadata: deserializeMetadata(output)
|
|
2522
2523
|
});
|
|
2523
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
2524
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2524
2525
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2525
2526
|
policy: (_) => de_ResiliencyPolicy(_, context)
|
|
2526
2527
|
});
|
|
@@ -2530,9 +2531,9 @@ var de_UpdateResiliencyPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2530
2531
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2531
2532
|
const parsedOutput = {
|
|
2532
2533
|
...output,
|
|
2533
|
-
body: await
|
|
2534
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2534
2535
|
};
|
|
2535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2536
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2536
2537
|
switch (errorCode) {
|
|
2537
2538
|
case "AccessDeniedException":
|
|
2538
2539
|
case "com.amazonaws.resiliencehub#AccessDeniedException":
|
|
@@ -2906,7 +2907,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2906
2907
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2907
2908
|
cfId: output.headers["x-amz-cf-id"]
|
|
2908
2909
|
}), "deserializeMetadata");
|
|
2909
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2910
2910
|
var _aA = "appArn";
|
|
2911
2911
|
var _aAs = "assessmentArn";
|
|
2912
2912
|
var _aN = "assessmentName";
|
|
@@ -2923,46 +2923,6 @@ var _rTA = "recommendationTemplateArn";
|
|
|
2923
2923
|
var _s = "status";
|
|
2924
2924
|
var _tK = "tagKeys";
|
|
2925
2925
|
var _tLAT = "toLastAssessmentTime";
|
|
2926
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2927
|
-
if (encoded.length) {
|
|
2928
|
-
return JSON.parse(encoded);
|
|
2929
|
-
}
|
|
2930
|
-
return {};
|
|
2931
|
-
}), "parseBody");
|
|
2932
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2933
|
-
const value = await parseBody(errorBody, context);
|
|
2934
|
-
value.message = value.message ?? value.Message;
|
|
2935
|
-
return value;
|
|
2936
|
-
}, "parseErrorBody");
|
|
2937
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2938
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2939
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2940
|
-
let cleanValue = rawValue;
|
|
2941
|
-
if (typeof cleanValue === "number") {
|
|
2942
|
-
cleanValue = cleanValue.toString();
|
|
2943
|
-
}
|
|
2944
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2945
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2946
|
-
}
|
|
2947
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2948
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2949
|
-
}
|
|
2950
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2951
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2952
|
-
}
|
|
2953
|
-
return cleanValue;
|
|
2954
|
-
}, "sanitizeErrorCode");
|
|
2955
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2956
|
-
if (headerKey !== void 0) {
|
|
2957
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2958
|
-
}
|
|
2959
|
-
if (data.code !== void 0) {
|
|
2960
|
-
return sanitizeErrorCode(data.code);
|
|
2961
|
-
}
|
|
2962
|
-
if (data["__type"] !== void 0) {
|
|
2963
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2964
|
-
}
|
|
2965
|
-
}, "loadRestJsonErrorCode");
|
|
2966
2926
|
|
|
2967
2927
|
// src/commands/AddDraftAppVersionResourceMappingsCommand.ts
|
|
2968
2928
|
var _AddDraftAppVersionResourceMappingsCommand = class _AddDraftAppVersionResourceMappingsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -2095,43 +2096,3 @@ const _rTA = "recommendationTemplateArn";
|
|
|
2095
2096
|
const _s = "status";
|
|
2096
2097
|
const _tK = "tagKeys";
|
|
2097
2098
|
const _tLAT = "toLastAssessmentTime";
|
|
2098
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2099
|
-
if (encoded.length) {
|
|
2100
|
-
return JSON.parse(encoded);
|
|
2101
|
-
}
|
|
2102
|
-
return {};
|
|
2103
|
-
});
|
|
2104
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2105
|
-
const value = await parseBody(errorBody, context);
|
|
2106
|
-
value.message = value.message ?? value.Message;
|
|
2107
|
-
return value;
|
|
2108
|
-
};
|
|
2109
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2110
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2111
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2112
|
-
let cleanValue = rawValue;
|
|
2113
|
-
if (typeof cleanValue === "number") {
|
|
2114
|
-
cleanValue = cleanValue.toString();
|
|
2115
|
-
}
|
|
2116
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2117
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2118
|
-
}
|
|
2119
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2120
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2121
|
-
}
|
|
2122
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2123
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2124
|
-
}
|
|
2125
|
-
return cleanValue;
|
|
2126
|
-
};
|
|
2127
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2128
|
-
if (headerKey !== undefined) {
|
|
2129
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2130
|
-
}
|
|
2131
|
-
if (data.code !== undefined) {
|
|
2132
|
-
return sanitizeErrorCode(data.code);
|
|
2133
|
-
}
|
|
2134
|
-
if (data["__type"] !== undefined) {
|
|
2135
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2136
|
-
}
|
|
2137
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resiliencehub",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resiliencehub Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-resiliencehub",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|