@aws-sdk/client-route53-recovery-readiness 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 +38 -32
- package/dist-es/Route53RecoveryReadiness.js +130 -137
- package/dist-es/Route53RecoveryReadinessClient.js +22 -28
- package/dist-es/commands/CreateCellCommand.js +21 -28
- package/dist-es/commands/CreateCrossAccountAuthorizationCommand.js +21 -28
- package/dist-es/commands/CreateReadinessCheckCommand.js +21 -28
- package/dist-es/commands/CreateRecoveryGroupCommand.js +21 -28
- package/dist-es/commands/CreateResourceSetCommand.js +21 -28
- package/dist-es/commands/DeleteCellCommand.js +22 -29
- package/dist-es/commands/DeleteCrossAccountAuthorizationCommand.js +21 -28
- package/dist-es/commands/DeleteReadinessCheckCommand.js +22 -29
- package/dist-es/commands/DeleteRecoveryGroupCommand.js +22 -29
- package/dist-es/commands/DeleteResourceSetCommand.js +22 -29
- package/dist-es/commands/GetArchitectureRecommendationsCommand.js +21 -28
- package/dist-es/commands/GetCellCommand.js +21 -28
- package/dist-es/commands/GetCellReadinessSummaryCommand.js +21 -28
- package/dist-es/commands/GetReadinessCheckCommand.js +21 -28
- package/dist-es/commands/GetReadinessCheckResourceStatusCommand.js +21 -28
- package/dist-es/commands/GetReadinessCheckStatusCommand.js +21 -28
- package/dist-es/commands/GetRecoveryGroupCommand.js +21 -28
- package/dist-es/commands/GetRecoveryGroupReadinessSummaryCommand.js +21 -28
- package/dist-es/commands/GetResourceSetCommand.js +21 -28
- package/dist-es/commands/ListCellsCommand.js +21 -28
- package/dist-es/commands/ListCrossAccountAuthorizationsCommand.js +21 -28
- package/dist-es/commands/ListReadinessChecksCommand.js +21 -28
- package/dist-es/commands/ListRecoveryGroupsCommand.js +21 -28
- package/dist-es/commands/ListResourceSetsCommand.js +21 -28
- package/dist-es/commands/ListRulesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourcesCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateCellCommand.js +21 -28
- package/dist-es/commands/UpdateReadinessCheckCommand.js +21 -28
- package/dist-es/commands/UpdateRecoveryGroupCommand.js +21 -28
- package/dist-es/commands/UpdateResourceSetCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/Route53RecoveryReadinessServiceException.js +5 -10
- package/dist-es/models/models_0.js +294 -147
- package/dist-es/pagination/GetCellReadinessSummaryPaginator.js +25 -68
- package/dist-es/pagination/GetReadinessCheckResourceStatusPaginator.js +25 -68
- package/dist-es/pagination/GetReadinessCheckStatusPaginator.js +25 -68
- package/dist-es/pagination/GetRecoveryGroupReadinessSummaryPaginator.js +25 -68
- package/dist-es/pagination/ListCellsPaginator.js +25 -68
- package/dist-es/pagination/ListCrossAccountAuthorizationsPaginator.js +25 -68
- package/dist-es/pagination/ListReadinessChecksPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListResourceSetsPaginator.js +25 -68
- package/dist-es/pagination/ListRulesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2337 -3321
- 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-route53-recovery-readiness
|
|
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-route53-recovery-readiness
|
|
@@ -694,7 +694,7 @@ exports.deserializeAws_restJson1CreateCellCommand = deserializeAws_restJson1Crea
|
|
|
694
694
|
const deserializeAws_restJson1CreateCellCommandError = async (output, context) => {
|
|
695
695
|
const parsedOutput = {
|
|
696
696
|
...output,
|
|
697
|
-
body: await
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
698
|
};
|
|
699
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
700
|
switch (errorCode) {
|
|
@@ -740,7 +740,7 @@ exports.deserializeAws_restJson1CreateCrossAccountAuthorizationCommand = deseria
|
|
|
740
740
|
const deserializeAws_restJson1CreateCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
741
741
|
const parsedOutput = {
|
|
742
742
|
...output,
|
|
743
|
-
body: await
|
|
743
|
+
body: await parseErrorBody(output.body, context),
|
|
744
744
|
};
|
|
745
745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
746
746
|
switch (errorCode) {
|
|
@@ -795,7 +795,7 @@ exports.deserializeAws_restJson1CreateReadinessCheckCommand = deserializeAws_res
|
|
|
795
795
|
const deserializeAws_restJson1CreateReadinessCheckCommandError = async (output, context) => {
|
|
796
796
|
const parsedOutput = {
|
|
797
797
|
...output,
|
|
798
|
-
body: await
|
|
798
|
+
body: await parseErrorBody(output.body, context),
|
|
799
799
|
};
|
|
800
800
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
801
801
|
switch (errorCode) {
|
|
@@ -850,7 +850,7 @@ exports.deserializeAws_restJson1CreateRecoveryGroupCommand = deserializeAws_rest
|
|
|
850
850
|
const deserializeAws_restJson1CreateRecoveryGroupCommandError = async (output, context) => {
|
|
851
851
|
const parsedOutput = {
|
|
852
852
|
...output,
|
|
853
|
-
body: await
|
|
853
|
+
body: await parseErrorBody(output.body, context),
|
|
854
854
|
};
|
|
855
855
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
856
|
switch (errorCode) {
|
|
@@ -908,7 +908,7 @@ exports.deserializeAws_restJson1CreateResourceSetCommand = deserializeAws_restJs
|
|
|
908
908
|
const deserializeAws_restJson1CreateResourceSetCommandError = async (output, context) => {
|
|
909
909
|
const parsedOutput = {
|
|
910
910
|
...output,
|
|
911
|
-
body: await
|
|
911
|
+
body: await parseErrorBody(output.body, context),
|
|
912
912
|
};
|
|
913
913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
914
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_restJson1DeleteCellCommand = deserializeAws_restJson1Dele
|
|
|
951
951
|
const deserializeAws_restJson1DeleteCellCommandError = async (output, context) => {
|
|
952
952
|
const parsedOutput = {
|
|
953
953
|
...output,
|
|
954
|
-
body: await
|
|
954
|
+
body: await parseErrorBody(output.body, context),
|
|
955
955
|
};
|
|
956
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
957
|
switch (errorCode) {
|
|
@@ -994,7 +994,7 @@ exports.deserializeAws_restJson1DeleteCrossAccountAuthorizationCommand = deseria
|
|
|
994
994
|
const deserializeAws_restJson1DeleteCrossAccountAuthorizationCommandError = async (output, context) => {
|
|
995
995
|
const parsedOutput = {
|
|
996
996
|
...output,
|
|
997
|
-
body: await
|
|
997
|
+
body: await parseErrorBody(output.body, context),
|
|
998
998
|
};
|
|
999
999
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
1000
|
switch (errorCode) {
|
|
@@ -1034,7 +1034,7 @@ exports.deserializeAws_restJson1DeleteReadinessCheckCommand = deserializeAws_res
|
|
|
1034
1034
|
const deserializeAws_restJson1DeleteReadinessCheckCommandError = async (output, context) => {
|
|
1035
1035
|
const parsedOutput = {
|
|
1036
1036
|
...output,
|
|
1037
|
-
body: await
|
|
1037
|
+
body: await parseErrorBody(output.body, context),
|
|
1038
1038
|
};
|
|
1039
1039
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
1040
|
switch (errorCode) {
|
|
@@ -1077,7 +1077,7 @@ exports.deserializeAws_restJson1DeleteRecoveryGroupCommand = deserializeAws_rest
|
|
|
1077
1077
|
const deserializeAws_restJson1DeleteRecoveryGroupCommandError = async (output, context) => {
|
|
1078
1078
|
const parsedOutput = {
|
|
1079
1079
|
...output,
|
|
1080
|
-
body: await
|
|
1080
|
+
body: await parseErrorBody(output.body, context),
|
|
1081
1081
|
};
|
|
1082
1082
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
1083
|
switch (errorCode) {
|
|
@@ -1120,7 +1120,7 @@ exports.deserializeAws_restJson1DeleteResourceSetCommand = deserializeAws_restJs
|
|
|
1120
1120
|
const deserializeAws_restJson1DeleteResourceSetCommandError = async (output, context) => {
|
|
1121
1121
|
const parsedOutput = {
|
|
1122
1122
|
...output,
|
|
1123
|
-
body: await
|
|
1123
|
+
body: await parseErrorBody(output.body, context),
|
|
1124
1124
|
};
|
|
1125
1125
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
1126
|
switch (errorCode) {
|
|
@@ -1172,7 +1172,7 @@ exports.deserializeAws_restJson1GetArchitectureRecommendationsCommand = deserial
|
|
|
1172
1172
|
const deserializeAws_restJson1GetArchitectureRecommendationsCommandError = async (output, context) => {
|
|
1173
1173
|
const parsedOutput = {
|
|
1174
1174
|
...output,
|
|
1175
|
-
body: await
|
|
1175
|
+
body: await parseErrorBody(output.body, context),
|
|
1176
1176
|
};
|
|
1177
1177
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
1178
|
switch (errorCode) {
|
|
@@ -1230,7 +1230,7 @@ exports.deserializeAws_restJson1GetCellCommand = deserializeAws_restJson1GetCell
|
|
|
1230
1230
|
const deserializeAws_restJson1GetCellCommandError = async (output, context) => {
|
|
1231
1231
|
const parsedOutput = {
|
|
1232
1232
|
...output,
|
|
1233
|
-
body: await
|
|
1233
|
+
body: await parseErrorBody(output.body, context),
|
|
1234
1234
|
};
|
|
1235
1235
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
1236
|
switch (errorCode) {
|
|
@@ -1282,7 +1282,7 @@ exports.deserializeAws_restJson1GetCellReadinessSummaryCommand = deserializeAws_
|
|
|
1282
1282
|
const deserializeAws_restJson1GetCellReadinessSummaryCommandError = async (output, context) => {
|
|
1283
1283
|
const parsedOutput = {
|
|
1284
1284
|
...output,
|
|
1285
|
-
body: await
|
|
1285
|
+
body: await parseErrorBody(output.body, context),
|
|
1286
1286
|
};
|
|
1287
1287
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
1288
|
switch (errorCode) {
|
|
@@ -1337,7 +1337,7 @@ exports.deserializeAws_restJson1GetReadinessCheckCommand = deserializeAws_restJs
|
|
|
1337
1337
|
const deserializeAws_restJson1GetReadinessCheckCommandError = async (output, context) => {
|
|
1338
1338
|
const parsedOutput = {
|
|
1339
1339
|
...output,
|
|
1340
|
-
body: await
|
|
1340
|
+
body: await parseErrorBody(output.body, context),
|
|
1341
1341
|
};
|
|
1342
1342
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1343
1343
|
switch (errorCode) {
|
|
@@ -1389,7 +1389,7 @@ exports.deserializeAws_restJson1GetReadinessCheckResourceStatusCommand = deseria
|
|
|
1389
1389
|
const deserializeAws_restJson1GetReadinessCheckResourceStatusCommandError = async (output, context) => {
|
|
1390
1390
|
const parsedOutput = {
|
|
1391
1391
|
...output,
|
|
1392
|
-
body: await
|
|
1392
|
+
body: await parseErrorBody(output.body, context),
|
|
1393
1393
|
};
|
|
1394
1394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1395
|
switch (errorCode) {
|
|
@@ -1444,7 +1444,7 @@ exports.deserializeAws_restJson1GetReadinessCheckStatusCommand = deserializeAws_
|
|
|
1444
1444
|
const deserializeAws_restJson1GetReadinessCheckStatusCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
|
-
body: await
|
|
1447
|
+
body: await parseErrorBody(output.body, context),
|
|
1448
1448
|
};
|
|
1449
1449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1450
1450
|
switch (errorCode) {
|
|
@@ -1499,7 +1499,7 @@ exports.deserializeAws_restJson1GetRecoveryGroupCommand = deserializeAws_restJso
|
|
|
1499
1499
|
const deserializeAws_restJson1GetRecoveryGroupCommandError = async (output, context) => {
|
|
1500
1500
|
const parsedOutput = {
|
|
1501
1501
|
...output,
|
|
1502
|
-
body: await
|
|
1502
|
+
body: await parseErrorBody(output.body, context),
|
|
1503
1503
|
};
|
|
1504
1504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
1505
|
switch (errorCode) {
|
|
@@ -1551,7 +1551,7 @@ exports.deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommand = deseri
|
|
|
1551
1551
|
const deserializeAws_restJson1GetRecoveryGroupReadinessSummaryCommandError = async (output, context) => {
|
|
1552
1552
|
const parsedOutput = {
|
|
1553
1553
|
...output,
|
|
1554
|
-
body: await
|
|
1554
|
+
body: await parseErrorBody(output.body, context),
|
|
1555
1555
|
};
|
|
1556
1556
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1557
1557
|
switch (errorCode) {
|
|
@@ -1609,7 +1609,7 @@ exports.deserializeAws_restJson1GetResourceSetCommand = deserializeAws_restJson1
|
|
|
1609
1609
|
const deserializeAws_restJson1GetResourceSetCommandError = async (output, context) => {
|
|
1610
1610
|
const parsedOutput = {
|
|
1611
1611
|
...output,
|
|
1612
|
-
body: await
|
|
1612
|
+
body: await parseErrorBody(output.body, context),
|
|
1613
1613
|
};
|
|
1614
1614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1615
1615
|
switch (errorCode) {
|
|
@@ -1658,7 +1658,7 @@ exports.deserializeAws_restJson1ListCellsCommand = deserializeAws_restJson1ListC
|
|
|
1658
1658
|
const deserializeAws_restJson1ListCellsCommandError = async (output, context) => {
|
|
1659
1659
|
const parsedOutput = {
|
|
1660
1660
|
...output,
|
|
1661
|
-
body: await
|
|
1661
|
+
body: await parseErrorBody(output.body, context),
|
|
1662
1662
|
};
|
|
1663
1663
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1664
1664
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_restJson1ListCrossAccountAuthorizationsCommand = deserial
|
|
|
1704
1704
|
const deserializeAws_restJson1ListCrossAccountAuthorizationsCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -1750,7 +1750,7 @@ exports.deserializeAws_restJson1ListReadinessChecksCommand = deserializeAws_rest
|
|
|
1750
1750
|
const deserializeAws_restJson1ListReadinessChecksCommandError = async (output, context) => {
|
|
1751
1751
|
const parsedOutput = {
|
|
1752
1752
|
...output,
|
|
1753
|
-
body: await
|
|
1753
|
+
body: await parseErrorBody(output.body, context),
|
|
1754
1754
|
};
|
|
1755
1755
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1756
1756
|
switch (errorCode) {
|
|
@@ -1796,7 +1796,7 @@ exports.deserializeAws_restJson1ListRecoveryGroupsCommand = deserializeAws_restJ
|
|
|
1796
1796
|
const deserializeAws_restJson1ListRecoveryGroupsCommandError = async (output, context) => {
|
|
1797
1797
|
const parsedOutput = {
|
|
1798
1798
|
...output,
|
|
1799
|
-
body: await
|
|
1799
|
+
body: await parseErrorBody(output.body, context),
|
|
1800
1800
|
};
|
|
1801
1801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
1802
|
switch (errorCode) {
|
|
@@ -1842,7 +1842,7 @@ exports.deserializeAws_restJson1ListResourceSetsCommand = deserializeAws_restJso
|
|
|
1842
1842
|
const deserializeAws_restJson1ListResourceSetsCommandError = async (output, context) => {
|
|
1843
1843
|
const parsedOutput = {
|
|
1844
1844
|
...output,
|
|
1845
|
-
body: await
|
|
1845
|
+
body: await parseErrorBody(output.body, context),
|
|
1846
1846
|
};
|
|
1847
1847
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
1848
|
switch (errorCode) {
|
|
@@ -1888,7 +1888,7 @@ exports.deserializeAws_restJson1ListRulesCommand = deserializeAws_restJson1ListR
|
|
|
1888
1888
|
const deserializeAws_restJson1ListRulesCommandError = async (output, context) => {
|
|
1889
1889
|
const parsedOutput = {
|
|
1890
1890
|
...output,
|
|
1891
|
-
body: await
|
|
1891
|
+
body: await parseErrorBody(output.body, context),
|
|
1892
1892
|
};
|
|
1893
1893
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
1894
|
switch (errorCode) {
|
|
@@ -1931,7 +1931,7 @@ exports.deserializeAws_restJson1ListTagsForResourcesCommand = deserializeAws_res
|
|
|
1931
1931
|
const deserializeAws_restJson1ListTagsForResourcesCommandError = async (output, context) => {
|
|
1932
1932
|
const parsedOutput = {
|
|
1933
1933
|
...output,
|
|
1934
|
-
body: await
|
|
1934
|
+
body: await parseErrorBody(output.body, context),
|
|
1935
1935
|
};
|
|
1936
1936
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
1937
|
switch (errorCode) {
|
|
@@ -1968,7 +1968,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1968
1968
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1969
1969
|
const parsedOutput = {
|
|
1970
1970
|
...output,
|
|
1971
|
-
body: await
|
|
1971
|
+
body: await parseErrorBody(output.body, context),
|
|
1972
1972
|
};
|
|
1973
1973
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1974
1974
|
switch (errorCode) {
|
|
@@ -2005,7 +2005,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2005
2005
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2006
2006
|
const parsedOutput = {
|
|
2007
2007
|
...output,
|
|
2008
|
-
body: await
|
|
2008
|
+
body: await parseErrorBody(output.body, context),
|
|
2009
2009
|
};
|
|
2010
2010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2011
2011
|
switch (errorCode) {
|
|
@@ -2057,7 +2057,7 @@ exports.deserializeAws_restJson1UpdateCellCommand = deserializeAws_restJson1Upda
|
|
|
2057
2057
|
const deserializeAws_restJson1UpdateCellCommandError = async (output, context) => {
|
|
2058
2058
|
const parsedOutput = {
|
|
2059
2059
|
...output,
|
|
2060
|
-
body: await
|
|
2060
|
+
body: await parseErrorBody(output.body, context),
|
|
2061
2061
|
};
|
|
2062
2062
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2063
2063
|
switch (errorCode) {
|
|
@@ -2112,7 +2112,7 @@ exports.deserializeAws_restJson1UpdateReadinessCheckCommand = deserializeAws_res
|
|
|
2112
2112
|
const deserializeAws_restJson1UpdateReadinessCheckCommandError = async (output, context) => {
|
|
2113
2113
|
const parsedOutput = {
|
|
2114
2114
|
...output,
|
|
2115
|
-
body: await
|
|
2115
|
+
body: await parseErrorBody(output.body, context),
|
|
2116
2116
|
};
|
|
2117
2117
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
2118
|
switch (errorCode) {
|
|
@@ -2167,7 +2167,7 @@ exports.deserializeAws_restJson1UpdateRecoveryGroupCommand = deserializeAws_rest
|
|
|
2167
2167
|
const deserializeAws_restJson1UpdateRecoveryGroupCommandError = 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) {
|
|
@@ -2225,7 +2225,7 @@ exports.deserializeAws_restJson1UpdateResourceSetCommand = deserializeAws_restJs
|
|
|
2225
2225
|
const deserializeAws_restJson1UpdateResourceSetCommandError = async (output, context) => {
|
|
2226
2226
|
const parsedOutput = {
|
|
2227
2227
|
...output,
|
|
2228
|
-
body: await
|
|
2228
|
+
body: await parseErrorBody(output.body, context),
|
|
2229
2229
|
};
|
|
2230
2230
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
2231
|
switch (errorCode) {
|
|
@@ -2694,6 +2694,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2694
2694
|
}
|
|
2695
2695
|
return {};
|
|
2696
2696
|
});
|
|
2697
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2698
|
+
var _a;
|
|
2699
|
+
const value = await parseBody(errorBody, context);
|
|
2700
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2701
|
+
return value;
|
|
2702
|
+
};
|
|
2697
2703
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2698
2704
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2699
2705
|
const sanitizeErrorCode = (rawValue) => {
|