@aws-sdk/client-resiliencehub 3.180.0 → 3.181.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +45 -39
- package/dist-es/protocols/Aws_restJson1.js +52 -39
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**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) => {
|
|
@@ -1034,7 +1034,7 @@ var deserializeAws_restJson1AddDraftAppVersionResourceMappingsCommandError = fun
|
|
|
1034
1034
|
case 0:
|
|
1035
1035
|
_a = [__assign({}, output)];
|
|
1036
1036
|
_c = {};
|
|
1037
|
-
return [4,
|
|
1037
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1038
1038
|
case 1:
|
|
1039
1039
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1040
1040
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1110,7 +1110,7 @@ var deserializeAws_restJson1CreateAppCommandError = function (output, context) {
|
|
|
1110
1110
|
case 0:
|
|
1111
1111
|
_a = [__assign({}, output)];
|
|
1112
1112
|
_c = {};
|
|
1113
|
-
return [4,
|
|
1113
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1114
1114
|
case 1:
|
|
1115
1115
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1116
1116
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1190,7 +1190,7 @@ var deserializeAws_restJson1CreateRecommendationTemplateCommandError = function
|
|
|
1190
1190
|
case 0:
|
|
1191
1191
|
_a = [__assign({}, output)];
|
|
1192
1192
|
_c = {};
|
|
1193
|
-
return [4,
|
|
1193
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1194
1194
|
case 1:
|
|
1195
1195
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1196
1196
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1266,7 +1266,7 @@ var deserializeAws_restJson1CreateResiliencyPolicyCommandError = function (outpu
|
|
|
1266
1266
|
case 0:
|
|
1267
1267
|
_a = [__assign({}, output)];
|
|
1268
1268
|
_c = {};
|
|
1269
|
-
return [4,
|
|
1269
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1270
1270
|
case 1:
|
|
1271
1271
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1272
1272
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1342,7 +1342,7 @@ var deserializeAws_restJson1DeleteAppCommandError = function (output, context) {
|
|
|
1342
1342
|
case 0:
|
|
1343
1343
|
_a = [__assign({}, output)];
|
|
1344
1344
|
_c = {};
|
|
1345
|
-
return [4,
|
|
1345
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1346
1346
|
case 1:
|
|
1347
1347
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1348
1348
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1417,7 +1417,7 @@ var deserializeAws_restJson1DeleteAppAssessmentCommandError = function (output,
|
|
|
1417
1417
|
case 0:
|
|
1418
1418
|
_a = [__assign({}, output)];
|
|
1419
1419
|
_c = {};
|
|
1420
|
-
return [4,
|
|
1420
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1421
1421
|
case 1:
|
|
1422
1422
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1423
1423
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1496,7 +1496,7 @@ var deserializeAws_restJson1DeleteRecommendationTemplateCommandError = function
|
|
|
1496
1496
|
case 0:
|
|
1497
1497
|
_a = [__assign({}, output)];
|
|
1498
1498
|
_c = {};
|
|
1499
|
-
return [4,
|
|
1499
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1500
1500
|
case 1:
|
|
1501
1501
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1502
1502
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1568,7 +1568,7 @@ var deserializeAws_restJson1DeleteResiliencyPolicyCommandError = function (outpu
|
|
|
1568
1568
|
case 0:
|
|
1569
1569
|
_a = [__assign({}, output)];
|
|
1570
1570
|
_c = {};
|
|
1571
|
-
return [4,
|
|
1571
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1572
1572
|
case 1:
|
|
1573
1573
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1574
1574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1644,7 +1644,7 @@ var deserializeAws_restJson1DescribeAppCommandError = function (output, context)
|
|
|
1644
1644
|
case 0:
|
|
1645
1645
|
_a = [__assign({}, output)];
|
|
1646
1646
|
_c = {};
|
|
1647
|
-
return [4,
|
|
1647
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1648
1648
|
case 1:
|
|
1649
1649
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1650
1650
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1716,7 +1716,7 @@ var deserializeAws_restJson1DescribeAppAssessmentCommandError = function (output
|
|
|
1716
1716
|
case 0:
|
|
1717
1717
|
_a = [__assign({}, output)];
|
|
1718
1718
|
_c = {};
|
|
1719
|
-
return [4,
|
|
1719
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1720
1720
|
case 1:
|
|
1721
1721
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1722
1722
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1800,7 +1800,7 @@ var deserializeAws_restJson1DescribeAppVersionResourcesResolutionStatusCommandEr
|
|
|
1800
1800
|
case 0:
|
|
1801
1801
|
_a = [__assign({}, output)];
|
|
1802
1802
|
_c = {};
|
|
1803
|
-
return [4,
|
|
1803
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1804
1804
|
case 1:
|
|
1805
1805
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1806
1806
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1878,7 +1878,7 @@ var deserializeAws_restJson1DescribeAppVersionTemplateCommandError = function (o
|
|
|
1878
1878
|
case 0:
|
|
1879
1879
|
_a = [__assign({}, output)];
|
|
1880
1880
|
_c = {};
|
|
1881
|
-
return [4,
|
|
1881
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1882
1882
|
case 1:
|
|
1883
1883
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1884
1884
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1962,7 +1962,7 @@ var deserializeAws_restJson1DescribeDraftAppVersionResourcesImportStatusCommandE
|
|
|
1962
1962
|
case 0:
|
|
1963
1963
|
_a = [__assign({}, output)];
|
|
1964
1964
|
_c = {};
|
|
1965
|
-
return [4,
|
|
1965
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1966
1966
|
case 1:
|
|
1967
1967
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1968
1968
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2034,7 +2034,7 @@ var deserializeAws_restJson1DescribeResiliencyPolicyCommandError = function (out
|
|
|
2034
2034
|
case 0:
|
|
2035
2035
|
_a = [__assign({}, output)];
|
|
2036
2036
|
_c = {};
|
|
2037
|
-
return [4,
|
|
2037
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2038
2038
|
case 1:
|
|
2039
2039
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2040
2040
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2118,7 +2118,7 @@ var deserializeAws_restJson1ImportResourcesToDraftAppVersionCommandError = funct
|
|
|
2118
2118
|
case 0:
|
|
2119
2119
|
_a = [__assign({}, output)];
|
|
2120
2120
|
_c = {};
|
|
2121
|
-
return [4,
|
|
2121
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2122
2122
|
case 1:
|
|
2123
2123
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2124
2124
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2197,7 +2197,7 @@ var deserializeAws_restJson1ListAlarmRecommendationsCommandError = function (out
|
|
|
2197
2197
|
case 0:
|
|
2198
2198
|
_a = [__assign({}, output)];
|
|
2199
2199
|
_c = {};
|
|
2200
|
-
return [4,
|
|
2200
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2201
2201
|
case 1:
|
|
2202
2202
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2203
2203
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2272,7 +2272,7 @@ var deserializeAws_restJson1ListAppAssessmentsCommandError = function (output, c
|
|
|
2272
2272
|
case 0:
|
|
2273
2273
|
_a = [__assign({}, output)];
|
|
2274
2274
|
_c = {};
|
|
2275
|
-
return [4,
|
|
2275
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2276
2276
|
case 1:
|
|
2277
2277
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2278
2278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2347,7 +2347,7 @@ var deserializeAws_restJson1ListAppComponentCompliancesCommandError = function (
|
|
|
2347
2347
|
case 0:
|
|
2348
2348
|
_a = [__assign({}, output)];
|
|
2349
2349
|
_c = {};
|
|
2350
|
-
return [4,
|
|
2350
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2351
2351
|
case 1:
|
|
2352
2352
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2353
2353
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2422,7 +2422,7 @@ var deserializeAws_restJson1ListAppComponentRecommendationsCommandError = functi
|
|
|
2422
2422
|
case 0:
|
|
2423
2423
|
_a = [__assign({}, output)];
|
|
2424
2424
|
_c = {};
|
|
2425
|
-
return [4,
|
|
2425
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2426
2426
|
case 1:
|
|
2427
2427
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2428
2428
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2497,7 +2497,7 @@ var deserializeAws_restJson1ListAppsCommandError = function (output, context) {
|
|
|
2497
2497
|
case 0:
|
|
2498
2498
|
_a = [__assign({}, output)];
|
|
2499
2499
|
_c = {};
|
|
2500
|
-
return [4,
|
|
2500
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2501
2501
|
case 1:
|
|
2502
2502
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2503
2503
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2568,7 +2568,7 @@ var deserializeAws_restJson1ListAppVersionResourceMappingsCommandError = functio
|
|
|
2568
2568
|
case 0:
|
|
2569
2569
|
_a = [__assign({}, output)];
|
|
2570
2570
|
_c = {};
|
|
2571
|
-
return [4,
|
|
2571
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2572
2572
|
case 1:
|
|
2573
2573
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2574
2574
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2646,7 +2646,7 @@ var deserializeAws_restJson1ListAppVersionResourcesCommandError = function (outp
|
|
|
2646
2646
|
case 0:
|
|
2647
2647
|
_a = [__assign({}, output)];
|
|
2648
2648
|
_c = {};
|
|
2649
|
-
return [4,
|
|
2649
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2650
2650
|
case 1:
|
|
2651
2651
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2652
2652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2725,7 +2725,7 @@ var deserializeAws_restJson1ListAppVersionsCommandError = function (output, cont
|
|
|
2725
2725
|
case 0:
|
|
2726
2726
|
_a = [__assign({}, output)];
|
|
2727
2727
|
_c = {};
|
|
2728
|
-
return [4,
|
|
2728
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2729
2729
|
case 1:
|
|
2730
2730
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2731
2731
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2796,7 +2796,7 @@ var deserializeAws_restJson1ListRecommendationTemplatesCommandError = function (
|
|
|
2796
2796
|
case 0:
|
|
2797
2797
|
_a = [__assign({}, output)];
|
|
2798
2798
|
_c = {};
|
|
2799
|
-
return [4,
|
|
2799
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2800
2800
|
case 1:
|
|
2801
2801
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2802
2802
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2867,7 +2867,7 @@ var deserializeAws_restJson1ListResiliencyPoliciesCommandError = function (outpu
|
|
|
2867
2867
|
case 0:
|
|
2868
2868
|
_a = [__assign({}, output)];
|
|
2869
2869
|
_c = {};
|
|
2870
|
-
return [4,
|
|
2870
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2871
2871
|
case 1:
|
|
2872
2872
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2873
2873
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2942,7 +2942,7 @@ var deserializeAws_restJson1ListSopRecommendationsCommandError = function (outpu
|
|
|
2942
2942
|
case 0:
|
|
2943
2943
|
_a = [__assign({}, output)];
|
|
2944
2944
|
_c = {};
|
|
2945
|
-
return [4,
|
|
2945
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2946
2946
|
case 1:
|
|
2947
2947
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2948
2948
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3021,7 +3021,7 @@ var deserializeAws_restJson1ListSuggestedResiliencyPoliciesCommandError = functi
|
|
|
3021
3021
|
case 0:
|
|
3022
3022
|
_a = [__assign({}, output)];
|
|
3023
3023
|
_c = {};
|
|
3024
|
-
return [4,
|
|
3024
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3025
3025
|
case 1:
|
|
3026
3026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3027
3027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3093,7 +3093,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3093
3093
|
case 0:
|
|
3094
3094
|
_a = [__assign({}, output)];
|
|
3095
3095
|
_c = {};
|
|
3096
|
-
return [4,
|
|
3096
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3097
3097
|
case 1:
|
|
3098
3098
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3099
3099
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3168,7 +3168,7 @@ var deserializeAws_restJson1ListTestRecommendationsCommandError = function (outp
|
|
|
3168
3168
|
case 0:
|
|
3169
3169
|
_a = [__assign({}, output)];
|
|
3170
3170
|
_c = {};
|
|
3171
|
-
return [4,
|
|
3171
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3172
3172
|
case 1:
|
|
3173
3173
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3174
3174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3250,7 +3250,7 @@ var deserializeAws_restJson1ListUnsupportedAppVersionResourcesCommandError = fun
|
|
|
3250
3250
|
case 0:
|
|
3251
3251
|
_a = [__assign({}, output)];
|
|
3252
3252
|
_c = {};
|
|
3253
|
-
return [4,
|
|
3253
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3254
3254
|
case 1:
|
|
3255
3255
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3256
3256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3329,7 +3329,7 @@ var deserializeAws_restJson1PublishAppVersionCommandError = function (output, co
|
|
|
3329
3329
|
case 0:
|
|
3330
3330
|
_a = [__assign({}, output)];
|
|
3331
3331
|
_c = {};
|
|
3332
|
-
return [4,
|
|
3332
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3333
3333
|
case 1:
|
|
3334
3334
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3335
3335
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3408,7 +3408,7 @@ var deserializeAws_restJson1PutDraftAppVersionTemplateCommandError = function (o
|
|
|
3408
3408
|
case 0:
|
|
3409
3409
|
_a = [__assign({}, output)];
|
|
3410
3410
|
_c = {};
|
|
3411
|
-
return [4,
|
|
3411
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3412
3412
|
case 1:
|
|
3413
3413
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3414
3414
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3487,7 +3487,7 @@ var deserializeAws_restJson1RemoveDraftAppVersionResourceMappingsCommandError =
|
|
|
3487
3487
|
case 0:
|
|
3488
3488
|
_a = [__assign({}, output)];
|
|
3489
3489
|
_c = {};
|
|
3490
|
-
return [4,
|
|
3490
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3491
3491
|
case 1:
|
|
3492
3492
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3493
3493
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3572,7 +3572,7 @@ var deserializeAws_restJson1ResolveAppVersionResourcesCommandError = function (o
|
|
|
3572
3572
|
case 0:
|
|
3573
3573
|
_a = [__assign({}, output)];
|
|
3574
3574
|
_c = {};
|
|
3575
|
-
return [4,
|
|
3575
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3576
3576
|
case 1:
|
|
3577
3577
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3578
3578
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3648,7 +3648,7 @@ var deserializeAws_restJson1StartAppAssessmentCommandError = function (output, c
|
|
|
3648
3648
|
case 0:
|
|
3649
3649
|
_a = [__assign({}, output)];
|
|
3650
3650
|
_c = {};
|
|
3651
|
-
return [4,
|
|
3651
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3652
3652
|
case 1:
|
|
3653
3653
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3654
3654
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3723,7 +3723,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3723
3723
|
case 0:
|
|
3724
3724
|
_a = [__assign({}, output)];
|
|
3725
3725
|
_c = {};
|
|
3726
|
-
return [4,
|
|
3726
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3727
3727
|
case 1:
|
|
3728
3728
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3729
3729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3790,7 +3790,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3790
3790
|
case 0:
|
|
3791
3791
|
_a = [__assign({}, output)];
|
|
3792
3792
|
_c = {};
|
|
3793
|
-
return [4,
|
|
3793
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3794
3794
|
case 1:
|
|
3795
3795
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3796
3796
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3862,7 +3862,7 @@ var deserializeAws_restJson1UpdateAppCommandError = function (output, context) {
|
|
|
3862
3862
|
case 0:
|
|
3863
3863
|
_a = [__assign({}, output)];
|
|
3864
3864
|
_c = {};
|
|
3865
|
-
return [4,
|
|
3865
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3866
3866
|
case 1:
|
|
3867
3867
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3868
3868
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3938,7 +3938,7 @@ var deserializeAws_restJson1UpdateResiliencyPolicyCommandError = function (outpu
|
|
|
3938
3938
|
case 0:
|
|
3939
3939
|
_a = [__assign({}, output)];
|
|
3940
3940
|
_c = {};
|
|
3941
|
-
return [4,
|
|
3941
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3942
3942
|
case 1:
|
|
3943
3943
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3944
3944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4841,6 +4841,19 @@ var parseBody = function (streamBody, context) {
|
|
|
4841
4841
|
return {};
|
|
4842
4842
|
});
|
|
4843
4843
|
};
|
|
4844
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4845
|
+
var value;
|
|
4846
|
+
var _a;
|
|
4847
|
+
return __generator(this, function (_b) {
|
|
4848
|
+
switch (_b.label) {
|
|
4849
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
4850
|
+
case 1:
|
|
4851
|
+
value = _b.sent();
|
|
4852
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4853
|
+
return [2, value];
|
|
4854
|
+
}
|
|
4855
|
+
});
|
|
4856
|
+
}); };
|
|
4844
4857
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4845
4858
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4846
4859
|
var sanitizeErrorCode = function (rawValue) {
|
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.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|