@aws-sdk/client-resiliencehub 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +45 -39
- package/dist-es/Resiliencehub.js +158 -165
- package/dist-es/ResiliencehubClient.js +22 -28
- package/dist-es/commands/AddDraftAppVersionResourceMappingsCommand.js +21 -28
- package/dist-es/commands/CreateAppCommand.js +21 -28
- package/dist-es/commands/CreateRecommendationTemplateCommand.js +21 -28
- package/dist-es/commands/CreateResiliencyPolicyCommand.js +21 -28
- package/dist-es/commands/DeleteAppAssessmentCommand.js +21 -28
- package/dist-es/commands/DeleteAppCommand.js +21 -28
- package/dist-es/commands/DeleteRecommendationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteResiliencyPolicyCommand.js +21 -28
- package/dist-es/commands/DescribeAppAssessmentCommand.js +21 -28
- package/dist-es/commands/DescribeAppCommand.js +21 -28
- package/dist-es/commands/DescribeAppVersionResourcesResolutionStatusCommand.js +21 -28
- package/dist-es/commands/DescribeAppVersionTemplateCommand.js +21 -28
- package/dist-es/commands/DescribeDraftAppVersionResourcesImportStatusCommand.js +21 -28
- package/dist-es/commands/DescribeResiliencyPolicyCommand.js +21 -28
- package/dist-es/commands/ImportResourcesToDraftAppVersionCommand.js +21 -28
- package/dist-es/commands/ListAlarmRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListAppAssessmentsCommand.js +21 -28
- package/dist-es/commands/ListAppComponentCompliancesCommand.js +21 -28
- package/dist-es/commands/ListAppComponentRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListAppVersionResourceMappingsCommand.js +21 -28
- package/dist-es/commands/ListAppVersionResourcesCommand.js +21 -28
- package/dist-es/commands/ListAppVersionsCommand.js +21 -28
- package/dist-es/commands/ListAppsCommand.js +21 -28
- package/dist-es/commands/ListRecommendationTemplatesCommand.js +21 -28
- package/dist-es/commands/ListResiliencyPoliciesCommand.js +21 -28
- package/dist-es/commands/ListSopRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListSuggestedResiliencyPoliciesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTestRecommendationsCommand.js +21 -28
- package/dist-es/commands/ListUnsupportedAppVersionResourcesCommand.js +21 -28
- package/dist-es/commands/PublishAppVersionCommand.js +21 -28
- package/dist-es/commands/PutDraftAppVersionTemplateCommand.js +21 -28
- package/dist-es/commands/RemoveDraftAppVersionResourceMappingsCommand.js +21 -28
- package/dist-es/commands/ResolveAppVersionResourcesCommand.js +21 -28
- package/dist-es/commands/StartAppAssessmentCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAppCommand.js +21 -28
- package/dist-es/commands/UpdateResiliencyPolicyCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ResiliencehubServiceException.js +5 -10
- package/dist-es/models/models_0.js +435 -198
- package/dist-es/pagination/ListAlarmRecommendationsPaginator.js +24 -67
- package/dist-es/pagination/ListAppAssessmentsPaginator.js +24 -67
- package/dist-es/pagination/ListAppComponentCompliancesPaginator.js +24 -67
- package/dist-es/pagination/ListAppComponentRecommendationsPaginator.js +24 -67
- package/dist-es/pagination/ListAppVersionResourceMappingsPaginator.js +24 -67
- package/dist-es/pagination/ListAppVersionResourcesPaginator.js +24 -67
- package/dist-es/pagination/ListAppVersionsPaginator.js +24 -67
- package/dist-es/pagination/ListAppsPaginator.js +24 -67
- package/dist-es/pagination/ListRecommendationTemplatesPaginator.js +24 -67
- package/dist-es/pagination/ListResiliencyPoliciesPaginator.js +24 -67
- package/dist-es/pagination/ListSopRecommendationsPaginator.js +24 -67
- package/dist-es/pagination/ListSuggestedResiliencyPoliciesPaginator.js +24 -67
- package/dist-es/pagination/ListTestRecommendationsPaginator.js +24 -67
- package/dist-es/pagination/ListUnsupportedAppVersionResourcesPaginator.js +24 -67
- package/dist-es/protocols/Aws_restJson1.js +3102 -4255
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-resiliencehub
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-resiliencehub
|
|
@@ -964,7 +964,7 @@ exports.deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommand = dese
|
|
|
964
964
|
const deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
965
965
|
const parsedOutput = {
|
|
966
966
|
...output,
|
|
967
|
-
body: await
|
|
967
|
+
body: await parseErrorBody(output.body, context),
|
|
968
968
|
};
|
|
969
969
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
970
|
switch (errorCode) {
|
|
@@ -1013,7 +1013,7 @@ exports.deserializeAws_restJson1CreateAppCommand = deserializeAws_restJson1Creat
|
|
|
1013
1013
|
const deserializeAws_restJson1CreateAppCommandError = async (output, context) => {
|
|
1014
1014
|
const parsedOutput = {
|
|
1015
1015
|
...output,
|
|
1016
|
-
body: await
|
|
1016
|
+
body: await parseErrorBody(output.body, context),
|
|
1017
1017
|
};
|
|
1018
1018
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1019
1019
|
switch (errorCode) {
|
|
@@ -1065,7 +1065,7 @@ exports.deserializeAws_restJson1CreateRecommendationTemplateCommand = deserializ
|
|
|
1065
1065
|
const deserializeAws_restJson1CreateRecommendationTemplateCommandError = async (output, context) => {
|
|
1066
1066
|
const parsedOutput = {
|
|
1067
1067
|
...output,
|
|
1068
|
-
body: await
|
|
1068
|
+
body: await parseErrorBody(output.body, context),
|
|
1069
1069
|
};
|
|
1070
1070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
1071
|
switch (errorCode) {
|
|
@@ -1114,7 +1114,7 @@ exports.deserializeAws_restJson1CreateResiliencyPolicyCommand = deserializeAws_r
|
|
|
1114
1114
|
const deserializeAws_restJson1CreateResiliencyPolicyCommandError = async (output, context) => {
|
|
1115
1115
|
const parsedOutput = {
|
|
1116
1116
|
...output,
|
|
1117
|
-
body: await
|
|
1117
|
+
body: await parseErrorBody(output.body, context),
|
|
1118
1118
|
};
|
|
1119
1119
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
1120
|
switch (errorCode) {
|
|
@@ -1163,7 +1163,7 @@ exports.deserializeAws_restJson1DeleteAppCommand = deserializeAws_restJson1Delet
|
|
|
1163
1163
|
const deserializeAws_restJson1DeleteAppCommandError = async (output, context) => {
|
|
1164
1164
|
const parsedOutput = {
|
|
1165
1165
|
...output,
|
|
1166
|
-
body: await
|
|
1166
|
+
body: await parseErrorBody(output.body, context),
|
|
1167
1167
|
};
|
|
1168
1168
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1169
1169
|
switch (errorCode) {
|
|
@@ -1212,7 +1212,7 @@ exports.deserializeAws_restJson1DeleteAppAssessmentCommand = deserializeAws_rest
|
|
|
1212
1212
|
const deserializeAws_restJson1DeleteAppAssessmentCommandError = async (output, context) => {
|
|
1213
1213
|
const parsedOutput = {
|
|
1214
1214
|
...output,
|
|
1215
|
-
body: await
|
|
1215
|
+
body: await parseErrorBody(output.body, context),
|
|
1216
1216
|
};
|
|
1217
1217
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
1218
|
switch (errorCode) {
|
|
@@ -1264,7 +1264,7 @@ exports.deserializeAws_restJson1DeleteRecommendationTemplateCommand = deserializ
|
|
|
1264
1264
|
const deserializeAws_restJson1DeleteRecommendationTemplateCommandError = async (output, context) => {
|
|
1265
1265
|
const parsedOutput = {
|
|
1266
1266
|
...output,
|
|
1267
|
-
body: await
|
|
1267
|
+
body: await parseErrorBody(output.body, context),
|
|
1268
1268
|
};
|
|
1269
1269
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
1270
|
switch (errorCode) {
|
|
@@ -1310,7 +1310,7 @@ exports.deserializeAws_restJson1DeleteResiliencyPolicyCommand = deserializeAws_r
|
|
|
1310
1310
|
const deserializeAws_restJson1DeleteResiliencyPolicyCommandError = async (output, context) => {
|
|
1311
1311
|
const parsedOutput = {
|
|
1312
1312
|
...output,
|
|
1313
|
-
body: await
|
|
1313
|
+
body: await parseErrorBody(output.body, context),
|
|
1314
1314
|
};
|
|
1315
1315
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1316
|
switch (errorCode) {
|
|
@@ -1359,7 +1359,7 @@ exports.deserializeAws_restJson1DescribeAppCommand = deserializeAws_restJson1Des
|
|
|
1359
1359
|
const deserializeAws_restJson1DescribeAppCommandError = async (output, context) => {
|
|
1360
1360
|
const parsedOutput = {
|
|
1361
1361
|
...output,
|
|
1362
|
-
body: await
|
|
1362
|
+
body: await parseErrorBody(output.body, context),
|
|
1363
1363
|
};
|
|
1364
1364
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1365
1365
|
switch (errorCode) {
|
|
@@ -1405,7 +1405,7 @@ exports.deserializeAws_restJson1DescribeAppAssessmentCommand = deserializeAws_re
|
|
|
1405
1405
|
const deserializeAws_restJson1DescribeAppAssessmentCommandError = async (output, context) => {
|
|
1406
1406
|
const parsedOutput = {
|
|
1407
1407
|
...output,
|
|
1408
|
-
body: await
|
|
1408
|
+
body: await parseErrorBody(output.body, context),
|
|
1409
1409
|
};
|
|
1410
1410
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
1411
|
switch (errorCode) {
|
|
@@ -1463,7 +1463,7 @@ exports.deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusComma
|
|
|
1463
1463
|
const deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommandError = async (output, context) => {
|
|
1464
1464
|
const parsedOutput = {
|
|
1465
1465
|
...output,
|
|
1466
|
-
body: await
|
|
1466
|
+
body: await parseErrorBody(output.body, context),
|
|
1467
1467
|
};
|
|
1468
1468
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1469
|
switch (errorCode) {
|
|
@@ -1515,7 +1515,7 @@ exports.deserializeAws_restJson1DescribeAppVersionTemplateCommand = deserializeA
|
|
|
1515
1515
|
const deserializeAws_restJson1DescribeAppVersionTemplateCommandError = async (output, context) => {
|
|
1516
1516
|
const parsedOutput = {
|
|
1517
1517
|
...output,
|
|
1518
|
-
body: await
|
|
1518
|
+
body: await parseErrorBody(output.body, context),
|
|
1519
1519
|
};
|
|
1520
1520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1521
1521
|
switch (errorCode) {
|
|
@@ -1573,7 +1573,7 @@ exports.deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusComm
|
|
|
1573
1573
|
const deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommandError = async (output, context) => {
|
|
1574
1574
|
const parsedOutput = {
|
|
1575
1575
|
...output,
|
|
1576
|
-
body: await
|
|
1576
|
+
body: await parseErrorBody(output.body, context),
|
|
1577
1577
|
};
|
|
1578
1578
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
1579
|
switch (errorCode) {
|
|
@@ -1619,7 +1619,7 @@ exports.deserializeAws_restJson1DescribeResiliencyPolicyCommand = deserializeAws
|
|
|
1619
1619
|
const deserializeAws_restJson1DescribeResiliencyPolicyCommandError = async (output, context) => {
|
|
1620
1620
|
const parsedOutput = {
|
|
1621
1621
|
...output,
|
|
1622
|
-
body: await
|
|
1622
|
+
body: await parseErrorBody(output.body, context),
|
|
1623
1623
|
};
|
|
1624
1624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
1625
|
switch (errorCode) {
|
|
@@ -1677,7 +1677,7 @@ exports.deserializeAws_restJson1ImportResourcesToDraftAppVersionCommand = deseri
|
|
|
1677
1677
|
const deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = async (output, context) => {
|
|
1678
1678
|
const parsedOutput = {
|
|
1679
1679
|
...output,
|
|
1680
|
-
body: await
|
|
1680
|
+
body: await parseErrorBody(output.body, context),
|
|
1681
1681
|
};
|
|
1682
1682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1683
|
switch (errorCode) {
|
|
@@ -1729,7 +1729,7 @@ exports.deserializeAws_restJson1ListAlarmRecommendationsCommand = deserializeAws
|
|
|
1729
1729
|
const deserializeAws_restJson1ListAlarmRecommendationsCommandError = async (output, context) => {
|
|
1730
1730
|
const parsedOutput = {
|
|
1731
1731
|
...output,
|
|
1732
|
-
body: await
|
|
1732
|
+
body: await parseErrorBody(output.body, context),
|
|
1733
1733
|
};
|
|
1734
1734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
1735
|
switch (errorCode) {
|
|
@@ -1778,7 +1778,7 @@ exports.deserializeAws_restJson1ListAppAssessmentsCommand = deserializeAws_restJ
|
|
|
1778
1778
|
const deserializeAws_restJson1ListAppAssessmentsCommandError = async (output, context) => {
|
|
1779
1779
|
const parsedOutput = {
|
|
1780
1780
|
...output,
|
|
1781
|
-
body: await
|
|
1781
|
+
body: await parseErrorBody(output.body, context),
|
|
1782
1782
|
};
|
|
1783
1783
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
1784
|
switch (errorCode) {
|
|
@@ -1827,7 +1827,7 @@ exports.deserializeAws_restJson1ListAppComponentCompliancesCommand = deserialize
|
|
|
1827
1827
|
const deserializeAws_restJson1ListAppComponentCompliancesCommandError = async (output, context) => {
|
|
1828
1828
|
const parsedOutput = {
|
|
1829
1829
|
...output,
|
|
1830
|
-
body: await
|
|
1830
|
+
body: await parseErrorBody(output.body, context),
|
|
1831
1831
|
};
|
|
1832
1832
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
1833
|
switch (errorCode) {
|
|
@@ -1876,7 +1876,7 @@ exports.deserializeAws_restJson1ListAppComponentRecommendationsCommand = deseria
|
|
|
1876
1876
|
const deserializeAws_restJson1ListAppComponentRecommendationsCommandError = async (output, context) => {
|
|
1877
1877
|
const parsedOutput = {
|
|
1878
1878
|
...output,
|
|
1879
|
-
body: await
|
|
1879
|
+
body: await parseErrorBody(output.body, context),
|
|
1880
1880
|
};
|
|
1881
1881
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1882
1882
|
switch (errorCode) {
|
|
@@ -1925,7 +1925,7 @@ exports.deserializeAws_restJson1ListAppsCommand = deserializeAws_restJson1ListAp
|
|
|
1925
1925
|
const deserializeAws_restJson1ListAppsCommandError = async (output, context) => {
|
|
1926
1926
|
const parsedOutput = {
|
|
1927
1927
|
...output,
|
|
1928
|
-
body: await
|
|
1928
|
+
body: await parseErrorBody(output.body, context),
|
|
1929
1929
|
};
|
|
1930
1930
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1931
1931
|
switch (errorCode) {
|
|
@@ -1971,7 +1971,7 @@ exports.deserializeAws_restJson1ListAppVersionResourceMappingsCommand = deserial
|
|
|
1971
1971
|
const deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
1972
1972
|
const parsedOutput = {
|
|
1973
1973
|
...output,
|
|
1974
|
-
body: await
|
|
1974
|
+
body: await parseErrorBody(output.body, context),
|
|
1975
1975
|
};
|
|
1976
1976
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1977
1977
|
switch (errorCode) {
|
|
@@ -2023,7 +2023,7 @@ exports.deserializeAws_restJson1ListAppVersionResourcesCommand = deserializeAws_
|
|
|
2023
2023
|
const deserializeAws_restJson1ListAppVersionResourcesCommandError = async (output, context) => {
|
|
2024
2024
|
const parsedOutput = {
|
|
2025
2025
|
...output,
|
|
2026
|
-
body: await
|
|
2026
|
+
body: await parseErrorBody(output.body, context),
|
|
2027
2027
|
};
|
|
2028
2028
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2029
2029
|
switch (errorCode) {
|
|
@@ -2075,7 +2075,7 @@ exports.deserializeAws_restJson1ListAppVersionsCommand = deserializeAws_restJson
|
|
|
2075
2075
|
const deserializeAws_restJson1ListAppVersionsCommandError = async (output, context) => {
|
|
2076
2076
|
const parsedOutput = {
|
|
2077
2077
|
...output,
|
|
2078
|
-
body: await
|
|
2078
|
+
body: await parseErrorBody(output.body, context),
|
|
2079
2079
|
};
|
|
2080
2080
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2081
2081
|
switch (errorCode) {
|
|
@@ -2121,7 +2121,7 @@ exports.deserializeAws_restJson1ListRecommendationTemplatesCommand = deserialize
|
|
|
2121
2121
|
const deserializeAws_restJson1ListRecommendationTemplatesCommandError = async (output, context) => {
|
|
2122
2122
|
const parsedOutput = {
|
|
2123
2123
|
...output,
|
|
2124
|
-
body: await
|
|
2124
|
+
body: await parseErrorBody(output.body, context),
|
|
2125
2125
|
};
|
|
2126
2126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2127
2127
|
switch (errorCode) {
|
|
@@ -2167,7 +2167,7 @@ exports.deserializeAws_restJson1ListResiliencyPoliciesCommand = deserializeAws_r
|
|
|
2167
2167
|
const deserializeAws_restJson1ListResiliencyPoliciesCommandError = async (output, context) => {
|
|
2168
2168
|
const parsedOutput = {
|
|
2169
2169
|
...output,
|
|
2170
|
-
body: await
|
|
2170
|
+
body: await parseErrorBody(output.body, context),
|
|
2171
2171
|
};
|
|
2172
2172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
2173
|
switch (errorCode) {
|
|
@@ -2216,7 +2216,7 @@ exports.deserializeAws_restJson1ListSopRecommendationsCommand = deserializeAws_r
|
|
|
2216
2216
|
const deserializeAws_restJson1ListSopRecommendationsCommandError = async (output, context) => {
|
|
2217
2217
|
const parsedOutput = {
|
|
2218
2218
|
...output,
|
|
2219
|
-
body: await
|
|
2219
|
+
body: await parseErrorBody(output.body, context),
|
|
2220
2220
|
};
|
|
2221
2221
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2222
2222
|
switch (errorCode) {
|
|
@@ -2268,7 +2268,7 @@ exports.deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommand = deseria
|
|
|
2268
2268
|
const deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = async (output, context) => {
|
|
2269
2269
|
const parsedOutput = {
|
|
2270
2270
|
...output,
|
|
2271
|
-
body: await
|
|
2271
|
+
body: await parseErrorBody(output.body, context),
|
|
2272
2272
|
};
|
|
2273
2273
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
2274
|
switch (errorCode) {
|
|
@@ -2314,7 +2314,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
2314
2314
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
2315
2315
|
const parsedOutput = {
|
|
2316
2316
|
...output,
|
|
2317
|
-
body: await
|
|
2317
|
+
body: await parseErrorBody(output.body, context),
|
|
2318
2318
|
};
|
|
2319
2319
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2320
2320
|
switch (errorCode) {
|
|
@@ -2363,7 +2363,7 @@ exports.deserializeAws_restJson1ListTestRecommendationsCommand = deserializeAws_
|
|
|
2363
2363
|
const deserializeAws_restJson1ListTestRecommendationsCommandError = async (output, context) => {
|
|
2364
2364
|
const parsedOutput = {
|
|
2365
2365
|
...output,
|
|
2366
|
-
body: await
|
|
2366
|
+
body: await parseErrorBody(output.body, context),
|
|
2367
2367
|
};
|
|
2368
2368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2369
|
switch (errorCode) {
|
|
@@ -2418,7 +2418,7 @@ exports.deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommand = dese
|
|
|
2418
2418
|
const deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = async (output, context) => {
|
|
2419
2419
|
const parsedOutput = {
|
|
2420
2420
|
...output,
|
|
2421
|
-
body: await
|
|
2421
|
+
body: await parseErrorBody(output.body, context),
|
|
2422
2422
|
};
|
|
2423
2423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2424
2424
|
switch (errorCode) {
|
|
@@ -2470,7 +2470,7 @@ exports.deserializeAws_restJson1PublishAppVersionCommand = deserializeAws_restJs
|
|
|
2470
2470
|
const deserializeAws_restJson1PublishAppVersionCommandError = async (output, context) => {
|
|
2471
2471
|
const parsedOutput = {
|
|
2472
2472
|
...output,
|
|
2473
|
-
body: await
|
|
2473
|
+
body: await parseErrorBody(output.body, context),
|
|
2474
2474
|
};
|
|
2475
2475
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
2476
|
switch (errorCode) {
|
|
@@ -2522,7 +2522,7 @@ exports.deserializeAws_restJson1PutDraftAppVersionTemplateCommand = deserializeA
|
|
|
2522
2522
|
const deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = async (output, context) => {
|
|
2523
2523
|
const parsedOutput = {
|
|
2524
2524
|
...output,
|
|
2525
|
-
body: await
|
|
2525
|
+
body: await parseErrorBody(output.body, context),
|
|
2526
2526
|
};
|
|
2527
2527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2528
2528
|
switch (errorCode) {
|
|
@@ -2574,7 +2574,7 @@ exports.deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommand = d
|
|
|
2574
2574
|
const deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError = async (output, context) => {
|
|
2575
2575
|
const parsedOutput = {
|
|
2576
2576
|
...output,
|
|
2577
|
-
body: await
|
|
2577
|
+
body: await parseErrorBody(output.body, context),
|
|
2578
2578
|
};
|
|
2579
2579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
2580
|
switch (errorCode) {
|
|
@@ -2632,7 +2632,7 @@ exports.deserializeAws_restJson1ResolveAppVersionResourcesCommand = deserializeA
|
|
|
2632
2632
|
const deserializeAws_restJson1ResolveAppVersionResourcesCommandError = async (output, context) => {
|
|
2633
2633
|
const parsedOutput = {
|
|
2634
2634
|
...output,
|
|
2635
|
-
body: await
|
|
2635
|
+
body: await parseErrorBody(output.body, context),
|
|
2636
2636
|
};
|
|
2637
2637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
2638
|
switch (errorCode) {
|
|
@@ -2681,7 +2681,7 @@ exports.deserializeAws_restJson1StartAppAssessmentCommand = deserializeAws_restJ
|
|
|
2681
2681
|
const deserializeAws_restJson1StartAppAssessmentCommandError = async (output, context) => {
|
|
2682
2682
|
const parsedOutput = {
|
|
2683
2683
|
...output,
|
|
2684
|
-
body: await
|
|
2684
|
+
body: await parseErrorBody(output.body, context),
|
|
2685
2685
|
};
|
|
2686
2686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2687
2687
|
switch (errorCode) {
|
|
@@ -2730,7 +2730,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2730
2730
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2731
2731
|
const parsedOutput = {
|
|
2732
2732
|
...output,
|
|
2733
|
-
body: await
|
|
2733
|
+
body: await parseErrorBody(output.body, context),
|
|
2734
2734
|
};
|
|
2735
2735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2736
2736
|
switch (errorCode) {
|
|
@@ -2773,7 +2773,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2773
2773
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2774
2774
|
const parsedOutput = {
|
|
2775
2775
|
...output,
|
|
2776
|
-
body: await
|
|
2776
|
+
body: await parseErrorBody(output.body, context),
|
|
2777
2777
|
};
|
|
2778
2778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2779
2779
|
switch (errorCode) {
|
|
@@ -2819,7 +2819,7 @@ exports.deserializeAws_restJson1UpdateAppCommand = deserializeAws_restJson1Updat
|
|
|
2819
2819
|
const deserializeAws_restJson1UpdateAppCommandError = async (output, context) => {
|
|
2820
2820
|
const parsedOutput = {
|
|
2821
2821
|
...output,
|
|
2822
|
-
body: await
|
|
2822
|
+
body: await parseErrorBody(output.body, context),
|
|
2823
2823
|
};
|
|
2824
2824
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
2825
|
switch (errorCode) {
|
|
@@ -2868,7 +2868,7 @@ exports.deserializeAws_restJson1UpdateResiliencyPolicyCommand = deserializeAws_r
|
|
|
2868
2868
|
const deserializeAws_restJson1UpdateResiliencyPolicyCommandError = async (output, context) => {
|
|
2869
2869
|
const parsedOutput = {
|
|
2870
2870
|
...output,
|
|
2871
|
-
body: await
|
|
2871
|
+
body: await parseErrorBody(output.body, context),
|
|
2872
2872
|
};
|
|
2873
2873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
2874
|
switch (errorCode) {
|
|
@@ -3776,6 +3776,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3776
3776
|
}
|
|
3777
3777
|
return {};
|
|
3778
3778
|
});
|
|
3779
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3780
|
+
var _a;
|
|
3781
|
+
const value = await parseBody(errorBody, context);
|
|
3782
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3783
|
+
return value;
|
|
3784
|
+
};
|
|
3779
3785
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3780
3786
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3781
3787
|
const sanitizeErrorCode = (rawValue) => {
|