@aws-sdk/client-backup 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 +72 -66
- package/dist-es/Backup.js +266 -273
- package/dist-es/BackupClient.js +22 -28
- package/dist-es/commands/CreateBackupPlanCommand.js +21 -28
- package/dist-es/commands/CreateBackupSelectionCommand.js +21 -28
- package/dist-es/commands/CreateBackupVaultCommand.js +21 -28
- package/dist-es/commands/CreateFrameworkCommand.js +21 -28
- package/dist-es/commands/CreateReportPlanCommand.js +21 -28
- package/dist-es/commands/DeleteBackupPlanCommand.js +21 -28
- package/dist-es/commands/DeleteBackupSelectionCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultLockConfigurationCommand.js +22 -29
- package/dist-es/commands/DeleteBackupVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/DeleteFrameworkCommand.js +22 -29
- package/dist-es/commands/DeleteRecoveryPointCommand.js +22 -29
- package/dist-es/commands/DeleteReportPlanCommand.js +22 -29
- package/dist-es/commands/DescribeBackupJobCommand.js +21 -28
- package/dist-es/commands/DescribeBackupVaultCommand.js +21 -28
- package/dist-es/commands/DescribeCopyJobCommand.js +21 -28
- package/dist-es/commands/DescribeFrameworkCommand.js +21 -28
- package/dist-es/commands/DescribeGlobalSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeProtectedResourceCommand.js +21 -28
- package/dist-es/commands/DescribeRecoveryPointCommand.js +21 -28
- package/dist-es/commands/DescribeRegionSettingsCommand.js +21 -28
- package/dist-es/commands/DescribeReportJobCommand.js +21 -28
- package/dist-es/commands/DescribeReportPlanCommand.js +21 -28
- package/dist-es/commands/DescribeRestoreJobCommand.js +21 -28
- package/dist-es/commands/DisassociateRecoveryPointCommand.js +22 -29
- package/dist-es/commands/ExportBackupPlanTemplateCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanFromJSONCommand.js +21 -28
- package/dist-es/commands/GetBackupPlanFromTemplateCommand.js +21 -28
- package/dist-es/commands/GetBackupSelectionCommand.js +21 -28
- package/dist-es/commands/GetBackupVaultAccessPolicyCommand.js +21 -28
- package/dist-es/commands/GetBackupVaultNotificationsCommand.js +21 -28
- package/dist-es/commands/GetRecoveryPointRestoreMetadataCommand.js +21 -28
- package/dist-es/commands/GetSupportedResourceTypesCommand.js +22 -29
- package/dist-es/commands/ListBackupJobsCommand.js +21 -28
- package/dist-es/commands/ListBackupPlanTemplatesCommand.js +21 -28
- package/dist-es/commands/ListBackupPlanVersionsCommand.js +21 -28
- package/dist-es/commands/ListBackupPlansCommand.js +21 -28
- package/dist-es/commands/ListBackupSelectionsCommand.js +21 -28
- package/dist-es/commands/ListBackupVaultsCommand.js +21 -28
- package/dist-es/commands/ListCopyJobsCommand.js +21 -28
- package/dist-es/commands/ListFrameworksCommand.js +21 -28
- package/dist-es/commands/ListProtectedResourcesCommand.js +21 -28
- package/dist-es/commands/ListRecoveryPointsByBackupVaultCommand.js +21 -28
- package/dist-es/commands/ListRecoveryPointsByResourceCommand.js +21 -28
- package/dist-es/commands/ListReportJobsCommand.js +21 -28
- package/dist-es/commands/ListReportPlansCommand.js +21 -28
- package/dist-es/commands/ListRestoreJobsCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/PutBackupVaultAccessPolicyCommand.js +22 -29
- package/dist-es/commands/PutBackupVaultLockConfigurationCommand.js +22 -29
- package/dist-es/commands/PutBackupVaultNotificationsCommand.js +22 -29
- package/dist-es/commands/StartBackupJobCommand.js +21 -28
- package/dist-es/commands/StartCopyJobCommand.js +21 -28
- package/dist-es/commands/StartReportJobCommand.js +21 -28
- package/dist-es/commands/StartRestoreJobCommand.js +21 -28
- package/dist-es/commands/StopBackupJobCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateBackupPlanCommand.js +21 -28
- package/dist-es/commands/UpdateFrameworkCommand.js +21 -28
- package/dist-es/commands/UpdateGlobalSettingsCommand.js +22 -29
- package/dist-es/commands/UpdateRecoveryPointLifecycleCommand.js +21 -28
- package/dist-es/commands/UpdateRegionSettingsCommand.js +22 -29
- package/dist-es/commands/UpdateReportPlanCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/BackupServiceException.js +5 -10
- package/dist-es/models/models_0.js +607 -299
- package/dist-es/pagination/ListBackupJobsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlanTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlanVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupPlansPaginator.js +25 -68
- package/dist-es/pagination/ListBackupSelectionsPaginator.js +25 -68
- package/dist-es/pagination/ListBackupVaultsPaginator.js +25 -68
- package/dist-es/pagination/ListCopyJobsPaginator.js +25 -68
- package/dist-es/pagination/ListFrameworksPaginator.js +25 -68
- package/dist-es/pagination/ListProtectedResourcesPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryPointsByBackupVaultPaginator.js +25 -68
- package/dist-es/pagination/ListRecoveryPointsByResourcePaginator.js +25 -68
- package/dist-es/pagination/ListReportJobsPaginator.js +25 -68
- package/dist-es/pagination/ListReportPlansPaginator.js +25 -68
- package/dist-es/pagination/ListRestoreJobsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +5026 -6967
- 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-backup
|
|
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-backup
|
|
@@ -1513,7 +1513,7 @@ exports.deserializeAws_restJson1CreateBackupPlanCommand = deserializeAws_restJso
|
|
|
1513
1513
|
const deserializeAws_restJson1CreateBackupPlanCommandError = async (output, context) => {
|
|
1514
1514
|
const parsedOutput = {
|
|
1515
1515
|
...output,
|
|
1516
|
-
body: await
|
|
1516
|
+
body: await parseErrorBody(output.body, context),
|
|
1517
1517
|
};
|
|
1518
1518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
1519
|
switch (errorCode) {
|
|
@@ -1565,7 +1565,7 @@ exports.deserializeAws_restJson1CreateBackupSelectionCommand = deserializeAws_re
|
|
|
1565
1565
|
const deserializeAws_restJson1CreateBackupSelectionCommandError = async (output, context) => {
|
|
1566
1566
|
const parsedOutput = {
|
|
1567
1567
|
...output,
|
|
1568
|
-
body: await
|
|
1568
|
+
body: await parseErrorBody(output.body, context),
|
|
1569
1569
|
};
|
|
1570
1570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
1571
|
switch (errorCode) {
|
|
@@ -1617,7 +1617,7 @@ exports.deserializeAws_restJson1CreateBackupVaultCommand = deserializeAws_restJs
|
|
|
1617
1617
|
const deserializeAws_restJson1CreateBackupVaultCommandError = async (output, context) => {
|
|
1618
1618
|
const parsedOutput = {
|
|
1619
1619
|
...output,
|
|
1620
|
-
body: await
|
|
1620
|
+
body: await parseErrorBody(output.body, context),
|
|
1621
1621
|
};
|
|
1622
1622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
1623
|
switch (errorCode) {
|
|
@@ -1666,7 +1666,7 @@ exports.deserializeAws_restJson1CreateFrameworkCommand = deserializeAws_restJson
|
|
|
1666
1666
|
const deserializeAws_restJson1CreateFrameworkCommandError = async (output, context) => {
|
|
1667
1667
|
const parsedOutput = {
|
|
1668
1668
|
...output,
|
|
1669
|
-
body: await
|
|
1669
|
+
body: await parseErrorBody(output.body, context),
|
|
1670
1670
|
};
|
|
1671
1671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1672
|
switch (errorCode) {
|
|
@@ -1718,7 +1718,7 @@ exports.deserializeAws_restJson1CreateReportPlanCommand = deserializeAws_restJso
|
|
|
1718
1718
|
const deserializeAws_restJson1CreateReportPlanCommandError = async (output, context) => {
|
|
1719
1719
|
const parsedOutput = {
|
|
1720
1720
|
...output,
|
|
1721
|
-
body: await
|
|
1721
|
+
body: await parseErrorBody(output.body, context),
|
|
1722
1722
|
};
|
|
1723
1723
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1724
1724
|
switch (errorCode) {
|
|
@@ -1773,7 +1773,7 @@ exports.deserializeAws_restJson1DeleteBackupPlanCommand = deserializeAws_restJso
|
|
|
1773
1773
|
const deserializeAws_restJson1DeleteBackupPlanCommandError = async (output, context) => {
|
|
1774
1774
|
const parsedOutput = {
|
|
1775
1775
|
...output,
|
|
1776
|
-
body: await
|
|
1776
|
+
body: await parseErrorBody(output.body, context),
|
|
1777
1777
|
};
|
|
1778
1778
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1779
1779
|
switch (errorCode) {
|
|
@@ -1816,7 +1816,7 @@ exports.deserializeAws_restJson1DeleteBackupSelectionCommand = deserializeAws_re
|
|
|
1816
1816
|
const deserializeAws_restJson1DeleteBackupSelectionCommandError = async (output, context) => {
|
|
1817
1817
|
const parsedOutput = {
|
|
1818
1818
|
...output,
|
|
1819
|
-
body: await
|
|
1819
|
+
body: await parseErrorBody(output.body, context),
|
|
1820
1820
|
};
|
|
1821
1821
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1822
1822
|
switch (errorCode) {
|
|
@@ -1856,7 +1856,7 @@ exports.deserializeAws_restJson1DeleteBackupVaultCommand = deserializeAws_restJs
|
|
|
1856
1856
|
const deserializeAws_restJson1DeleteBackupVaultCommandError = async (output, context) => {
|
|
1857
1857
|
const parsedOutput = {
|
|
1858
1858
|
...output,
|
|
1859
|
-
body: await
|
|
1859
|
+
body: await parseErrorBody(output.body, context),
|
|
1860
1860
|
};
|
|
1861
1861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1862
1862
|
switch (errorCode) {
|
|
@@ -1899,7 +1899,7 @@ exports.deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = deseriali
|
|
|
1899
1899
|
const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommandError = async (output, context) => {
|
|
1900
1900
|
const parsedOutput = {
|
|
1901
1901
|
...output,
|
|
1902
|
-
body: await
|
|
1902
|
+
body: await parseErrorBody(output.body, context),
|
|
1903
1903
|
};
|
|
1904
1904
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1905
1905
|
switch (errorCode) {
|
|
@@ -1939,7 +1939,7 @@ exports.deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = dese
|
|
|
1939
1939
|
const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommandError = async (output, context) => {
|
|
1940
1940
|
const parsedOutput = {
|
|
1941
1941
|
...output,
|
|
1942
|
-
body: await
|
|
1942
|
+
body: await parseErrorBody(output.body, context),
|
|
1943
1943
|
};
|
|
1944
1944
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1945
1945
|
switch (errorCode) {
|
|
@@ -1982,7 +1982,7 @@ exports.deserializeAws_restJson1DeleteBackupVaultNotificationsCommand = deserial
|
|
|
1982
1982
|
const deserializeAws_restJson1DeleteBackupVaultNotificationsCommandError = async (output, context) => {
|
|
1983
1983
|
const parsedOutput = {
|
|
1984
1984
|
...output,
|
|
1985
|
-
body: await
|
|
1985
|
+
body: await parseErrorBody(output.body, context),
|
|
1986
1986
|
};
|
|
1987
1987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
1988
|
switch (errorCode) {
|
|
@@ -2022,7 +2022,7 @@ exports.deserializeAws_restJson1DeleteFrameworkCommand = deserializeAws_restJson
|
|
|
2022
2022
|
const deserializeAws_restJson1DeleteFrameworkCommandError = async (output, context) => {
|
|
2023
2023
|
const parsedOutput = {
|
|
2024
2024
|
...output,
|
|
2025
|
-
body: await
|
|
2025
|
+
body: await parseErrorBody(output.body, context),
|
|
2026
2026
|
};
|
|
2027
2027
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2028
2028
|
switch (errorCode) {
|
|
@@ -2065,7 +2065,7 @@ exports.deserializeAws_restJson1DeleteRecoveryPointCommand = deserializeAws_rest
|
|
|
2065
2065
|
const deserializeAws_restJson1DeleteRecoveryPointCommandError = async (output, context) => {
|
|
2066
2066
|
const parsedOutput = {
|
|
2067
2067
|
...output,
|
|
2068
|
-
body: await
|
|
2068
|
+
body: await parseErrorBody(output.body, context),
|
|
2069
2069
|
};
|
|
2070
2070
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
2071
|
switch (errorCode) {
|
|
@@ -2111,7 +2111,7 @@ exports.deserializeAws_restJson1DeleteReportPlanCommand = deserializeAws_restJso
|
|
|
2111
2111
|
const deserializeAws_restJson1DeleteReportPlanCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
|
-
body: await
|
|
2114
|
+
body: await parseErrorBody(output.body, context),
|
|
2115
2115
|
};
|
|
2116
2116
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
2117
|
switch (errorCode) {
|
|
@@ -2214,7 +2214,7 @@ exports.deserializeAws_restJson1DescribeBackupJobCommand = deserializeAws_restJs
|
|
|
2214
2214
|
const deserializeAws_restJson1DescribeBackupJobCommandError = async (output, context) => {
|
|
2215
2215
|
const parsedOutput = {
|
|
2216
2216
|
...output,
|
|
2217
|
-
body: await
|
|
2217
|
+
body: await parseErrorBody(output.body, context),
|
|
2218
2218
|
};
|
|
2219
2219
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
2220
|
switch (errorCode) {
|
|
@@ -2287,7 +2287,7 @@ exports.deserializeAws_restJson1DescribeBackupVaultCommand = deserializeAws_rest
|
|
|
2287
2287
|
const deserializeAws_restJson1DescribeBackupVaultCommandError = async (output, context) => {
|
|
2288
2288
|
const parsedOutput = {
|
|
2289
2289
|
...output,
|
|
2290
|
-
body: await
|
|
2290
|
+
body: await parseErrorBody(output.body, context),
|
|
2291
2291
|
};
|
|
2292
2292
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2293
2293
|
switch (errorCode) {
|
|
@@ -2330,7 +2330,7 @@ exports.deserializeAws_restJson1DescribeCopyJobCommand = deserializeAws_restJson
|
|
|
2330
2330
|
const deserializeAws_restJson1DescribeCopyJobCommandError = async (output, context) => {
|
|
2331
2331
|
const parsedOutput = {
|
|
2332
2332
|
...output,
|
|
2333
|
-
body: await
|
|
2333
|
+
body: await parseErrorBody(output.body, context),
|
|
2334
2334
|
};
|
|
2335
2335
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
2336
|
switch (errorCode) {
|
|
@@ -2394,7 +2394,7 @@ exports.deserializeAws_restJson1DescribeFrameworkCommand = deserializeAws_restJs
|
|
|
2394
2394
|
const deserializeAws_restJson1DescribeFrameworkCommandError = async (output, context) => {
|
|
2395
2395
|
const parsedOutput = {
|
|
2396
2396
|
...output,
|
|
2397
|
-
body: await
|
|
2397
|
+
body: await parseErrorBody(output.body, context),
|
|
2398
2398
|
};
|
|
2399
2399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2400
2400
|
switch (errorCode) {
|
|
@@ -2440,7 +2440,7 @@ exports.deserializeAws_restJson1DescribeGlobalSettingsCommand = deserializeAws_r
|
|
|
2440
2440
|
const deserializeAws_restJson1DescribeGlobalSettingsCommandError = async (output, context) => {
|
|
2441
2441
|
const parsedOutput = {
|
|
2442
2442
|
...output,
|
|
2443
|
-
body: await
|
|
2443
|
+
body: await parseErrorBody(output.body, context),
|
|
2444
2444
|
};
|
|
2445
2445
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2446
2446
|
switch (errorCode) {
|
|
@@ -2483,7 +2483,7 @@ exports.deserializeAws_restJson1DescribeProtectedResourceCommand = deserializeAw
|
|
|
2483
2483
|
const deserializeAws_restJson1DescribeProtectedResourceCommandError = async (output, context) => {
|
|
2484
2484
|
const parsedOutput = {
|
|
2485
2485
|
...output,
|
|
2486
|
-
body: await
|
|
2486
|
+
body: await parseErrorBody(output.body, context),
|
|
2487
2487
|
};
|
|
2488
2488
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2489
2489
|
switch (errorCode) {
|
|
@@ -2580,7 +2580,7 @@ exports.deserializeAws_restJson1DescribeRecoveryPointCommand = deserializeAws_re
|
|
|
2580
2580
|
const deserializeAws_restJson1DescribeRecoveryPointCommandError = async (output, context) => {
|
|
2581
2581
|
const parsedOutput = {
|
|
2582
2582
|
...output,
|
|
2583
|
-
body: await
|
|
2583
|
+
body: await parseErrorBody(output.body, context),
|
|
2584
2584
|
};
|
|
2585
2585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2586
2586
|
switch (errorCode) {
|
|
@@ -2626,7 +2626,7 @@ exports.deserializeAws_restJson1DescribeRegionSettingsCommand = deserializeAws_r
|
|
|
2626
2626
|
const deserializeAws_restJson1DescribeRegionSettingsCommandError = async (output, context) => {
|
|
2627
2627
|
const parsedOutput = {
|
|
2628
2628
|
...output,
|
|
2629
|
-
body: await
|
|
2629
|
+
body: await parseErrorBody(output.body, context),
|
|
2630
2630
|
};
|
|
2631
2631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
2632
|
switch (errorCode) {
|
|
@@ -2660,7 +2660,7 @@ exports.deserializeAws_restJson1DescribeReportJobCommand = deserializeAws_restJs
|
|
|
2660
2660
|
const deserializeAws_restJson1DescribeReportJobCommandError = async (output, context) => {
|
|
2661
2661
|
const parsedOutput = {
|
|
2662
2662
|
...output,
|
|
2663
|
-
body: await
|
|
2663
|
+
body: await parseErrorBody(output.body, context),
|
|
2664
2664
|
};
|
|
2665
2665
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2666
2666
|
switch (errorCode) {
|
|
@@ -2700,7 +2700,7 @@ exports.deserializeAws_restJson1DescribeReportPlanCommand = deserializeAws_restJ
|
|
|
2700
2700
|
const deserializeAws_restJson1DescribeReportPlanCommandError = async (output, context) => {
|
|
2701
2701
|
const parsedOutput = {
|
|
2702
2702
|
...output,
|
|
2703
|
-
body: await
|
|
2703
|
+
body: await parseErrorBody(output.body, context),
|
|
2704
2704
|
};
|
|
2705
2705
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2706
2706
|
switch (errorCode) {
|
|
@@ -2779,7 +2779,7 @@ exports.deserializeAws_restJson1DescribeRestoreJobCommand = deserializeAws_restJ
|
|
|
2779
2779
|
const deserializeAws_restJson1DescribeRestoreJobCommandError = async (output, context) => {
|
|
2780
2780
|
const parsedOutput = {
|
|
2781
2781
|
...output,
|
|
2782
|
-
body: await
|
|
2782
|
+
body: await parseErrorBody(output.body, context),
|
|
2783
2783
|
};
|
|
2784
2784
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2785
2785
|
switch (errorCode) {
|
|
@@ -2822,7 +2822,7 @@ exports.deserializeAws_restJson1DisassociateRecoveryPointCommand = deserializeAw
|
|
|
2822
2822
|
const deserializeAws_restJson1DisassociateRecoveryPointCommandError = async (output, context) => {
|
|
2823
2823
|
const parsedOutput = {
|
|
2824
2824
|
...output,
|
|
2825
|
-
body: await
|
|
2825
|
+
body: await parseErrorBody(output.body, context),
|
|
2826
2826
|
};
|
|
2827
2827
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
2828
|
switch (errorCode) {
|
|
@@ -2871,7 +2871,7 @@ exports.deserializeAws_restJson1ExportBackupPlanTemplateCommand = deserializeAws
|
|
|
2871
2871
|
const deserializeAws_restJson1ExportBackupPlanTemplateCommandError = async (output, context) => {
|
|
2872
2872
|
const parsedOutput = {
|
|
2873
2873
|
...output,
|
|
2874
|
-
body: await
|
|
2874
|
+
body: await parseErrorBody(output.body, context),
|
|
2875
2875
|
};
|
|
2876
2876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
2877
|
switch (errorCode) {
|
|
@@ -2938,7 +2938,7 @@ exports.deserializeAws_restJson1GetBackupPlanCommand = deserializeAws_restJson1G
|
|
|
2938
2938
|
const deserializeAws_restJson1GetBackupPlanCommandError = async (output, context) => {
|
|
2939
2939
|
const parsedOutput = {
|
|
2940
2940
|
...output,
|
|
2941
|
-
body: await
|
|
2941
|
+
body: await parseErrorBody(output.body, context),
|
|
2942
2942
|
};
|
|
2943
2943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
2944
|
switch (errorCode) {
|
|
@@ -2981,7 +2981,7 @@ exports.deserializeAws_restJson1GetBackupPlanFromJSONCommand = deserializeAws_re
|
|
|
2981
2981
|
const deserializeAws_restJson1GetBackupPlanFromJSONCommandError = async (output, context) => {
|
|
2982
2982
|
const parsedOutput = {
|
|
2983
2983
|
...output,
|
|
2984
|
-
body: await
|
|
2984
|
+
body: await parseErrorBody(output.body, context),
|
|
2985
2985
|
};
|
|
2986
2986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2987
2987
|
switch (errorCode) {
|
|
@@ -3027,7 +3027,7 @@ exports.deserializeAws_restJson1GetBackupPlanFromTemplateCommand = deserializeAw
|
|
|
3027
3027
|
const deserializeAws_restJson1GetBackupPlanFromTemplateCommandError = async (output, context) => {
|
|
3028
3028
|
const parsedOutput = {
|
|
3029
3029
|
...output,
|
|
3030
|
-
body: await
|
|
3030
|
+
body: await parseErrorBody(output.body, context),
|
|
3031
3031
|
};
|
|
3032
3032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3033
3033
|
switch (errorCode) {
|
|
@@ -3082,7 +3082,7 @@ exports.deserializeAws_restJson1GetBackupSelectionCommand = deserializeAws_restJ
|
|
|
3082
3082
|
const deserializeAws_restJson1GetBackupSelectionCommandError = async (output, context) => {
|
|
3083
3083
|
const parsedOutput = {
|
|
3084
3084
|
...output,
|
|
3085
|
-
body: await
|
|
3085
|
+
body: await parseErrorBody(output.body, context),
|
|
3086
3086
|
};
|
|
3087
3087
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
3088
|
switch (errorCode) {
|
|
@@ -3131,7 +3131,7 @@ exports.deserializeAws_restJson1GetBackupVaultAccessPolicyCommand = deserializeA
|
|
|
3131
3131
|
const deserializeAws_restJson1GetBackupVaultAccessPolicyCommandError = async (output, context) => {
|
|
3132
3132
|
const parsedOutput = {
|
|
3133
3133
|
...output,
|
|
3134
|
-
body: await
|
|
3134
|
+
body: await parseErrorBody(output.body, context),
|
|
3135
3135
|
};
|
|
3136
3136
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
3137
|
switch (errorCode) {
|
|
@@ -3183,7 +3183,7 @@ exports.deserializeAws_restJson1GetBackupVaultNotificationsCommand = deserialize
|
|
|
3183
3183
|
const deserializeAws_restJson1GetBackupVaultNotificationsCommandError = async (output, context) => {
|
|
3184
3184
|
const parsedOutput = {
|
|
3185
3185
|
...output,
|
|
3186
|
-
body: await
|
|
3186
|
+
body: await parseErrorBody(output.body, context),
|
|
3187
3187
|
};
|
|
3188
3188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3189
3189
|
switch (errorCode) {
|
|
@@ -3232,7 +3232,7 @@ exports.deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = deseria
|
|
|
3232
3232
|
const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommandError = async (output, context) => {
|
|
3233
3233
|
const parsedOutput = {
|
|
3234
3234
|
...output,
|
|
3235
|
-
body: await
|
|
3235
|
+
body: await parseErrorBody(output.body, context),
|
|
3236
3236
|
};
|
|
3237
3237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3238
3238
|
switch (errorCode) {
|
|
@@ -3275,7 +3275,7 @@ exports.deserializeAws_restJson1GetSupportedResourceTypesCommand = deserializeAw
|
|
|
3275
3275
|
const deserializeAws_restJson1GetSupportedResourceTypesCommandError = async (output, context) => {
|
|
3276
3276
|
const parsedOutput = {
|
|
3277
3277
|
...output,
|
|
3278
|
-
body: await
|
|
3278
|
+
body: await parseErrorBody(output.body, context),
|
|
3279
3279
|
};
|
|
3280
3280
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3281
3281
|
switch (errorCode) {
|
|
@@ -3312,7 +3312,7 @@ exports.deserializeAws_restJson1ListBackupJobsCommand = deserializeAws_restJson1
|
|
|
3312
3312
|
const deserializeAws_restJson1ListBackupJobsCommandError = async (output, context) => {
|
|
3313
3313
|
const parsedOutput = {
|
|
3314
3314
|
...output,
|
|
3315
|
-
body: await
|
|
3315
|
+
body: await parseErrorBody(output.body, context),
|
|
3316
3316
|
};
|
|
3317
3317
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3318
3318
|
switch (errorCode) {
|
|
@@ -3352,7 +3352,7 @@ exports.deserializeAws_restJson1ListBackupPlansCommand = deserializeAws_restJson
|
|
|
3352
3352
|
const deserializeAws_restJson1ListBackupPlansCommandError = async (output, context) => {
|
|
3353
3353
|
const parsedOutput = {
|
|
3354
3354
|
...output,
|
|
3355
|
-
body: await
|
|
3355
|
+
body: await parseErrorBody(output.body, context),
|
|
3356
3356
|
};
|
|
3357
3357
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
3358
|
switch (errorCode) {
|
|
@@ -3398,7 +3398,7 @@ exports.deserializeAws_restJson1ListBackupPlanTemplatesCommand = deserializeAws_
|
|
|
3398
3398
|
const deserializeAws_restJson1ListBackupPlanTemplatesCommandError = async (output, context) => {
|
|
3399
3399
|
const parsedOutput = {
|
|
3400
3400
|
...output,
|
|
3401
|
-
body: await
|
|
3401
|
+
body: await parseErrorBody(output.body, context),
|
|
3402
3402
|
};
|
|
3403
3403
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
3404
|
switch (errorCode) {
|
|
@@ -3444,7 +3444,7 @@ exports.deserializeAws_restJson1ListBackupPlanVersionsCommand = deserializeAws_r
|
|
|
3444
3444
|
const deserializeAws_restJson1ListBackupPlanVersionsCommandError = async (output, context) => {
|
|
3445
3445
|
const parsedOutput = {
|
|
3446
3446
|
...output,
|
|
3447
|
-
body: await
|
|
3447
|
+
body: await parseErrorBody(output.body, context),
|
|
3448
3448
|
};
|
|
3449
3449
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
3450
|
switch (errorCode) {
|
|
@@ -3490,7 +3490,7 @@ exports.deserializeAws_restJson1ListBackupSelectionsCommand = deserializeAws_res
|
|
|
3490
3490
|
const deserializeAws_restJson1ListBackupSelectionsCommandError = async (output, context) => {
|
|
3491
3491
|
const parsedOutput = {
|
|
3492
3492
|
...output,
|
|
3493
|
-
body: await
|
|
3493
|
+
body: await parseErrorBody(output.body, context),
|
|
3494
3494
|
};
|
|
3495
3495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3496
3496
|
switch (errorCode) {
|
|
@@ -3536,7 +3536,7 @@ exports.deserializeAws_restJson1ListBackupVaultsCommand = deserializeAws_restJso
|
|
|
3536
3536
|
const deserializeAws_restJson1ListBackupVaultsCommandError = async (output, context) => {
|
|
3537
3537
|
const parsedOutput = {
|
|
3538
3538
|
...output,
|
|
3539
|
-
body: await
|
|
3539
|
+
body: await parseErrorBody(output.body, context),
|
|
3540
3540
|
};
|
|
3541
3541
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3542
3542
|
switch (errorCode) {
|
|
@@ -3582,7 +3582,7 @@ exports.deserializeAws_restJson1ListCopyJobsCommand = deserializeAws_restJson1Li
|
|
|
3582
3582
|
const deserializeAws_restJson1ListCopyJobsCommandError = async (output, context) => {
|
|
3583
3583
|
const parsedOutput = {
|
|
3584
3584
|
...output,
|
|
3585
|
-
body: await
|
|
3585
|
+
body: await parseErrorBody(output.body, context),
|
|
3586
3586
|
};
|
|
3587
3587
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3588
3588
|
switch (errorCode) {
|
|
@@ -3622,7 +3622,7 @@ exports.deserializeAws_restJson1ListFrameworksCommand = deserializeAws_restJson1
|
|
|
3622
3622
|
const deserializeAws_restJson1ListFrameworksCommandError = async (output, context) => {
|
|
3623
3623
|
const parsedOutput = {
|
|
3624
3624
|
...output,
|
|
3625
|
-
body: await
|
|
3625
|
+
body: await parseErrorBody(output.body, context),
|
|
3626
3626
|
};
|
|
3627
3627
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3628
3628
|
switch (errorCode) {
|
|
@@ -3662,7 +3662,7 @@ exports.deserializeAws_restJson1ListProtectedResourcesCommand = deserializeAws_r
|
|
|
3662
3662
|
const deserializeAws_restJson1ListProtectedResourcesCommandError = async (output, context) => {
|
|
3663
3663
|
const parsedOutput = {
|
|
3664
3664
|
...output,
|
|
3665
|
-
body: await
|
|
3665
|
+
body: await parseErrorBody(output.body, context),
|
|
3666
3666
|
};
|
|
3667
3667
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3668
3668
|
switch (errorCode) {
|
|
@@ -3702,7 +3702,7 @@ exports.deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = deseria
|
|
|
3702
3702
|
const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommandError = async (output, context) => {
|
|
3703
3703
|
const parsedOutput = {
|
|
3704
3704
|
...output,
|
|
3705
|
-
body: await
|
|
3705
|
+
body: await parseErrorBody(output.body, context),
|
|
3706
3706
|
};
|
|
3707
3707
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3708
3708
|
switch (errorCode) {
|
|
@@ -3748,7 +3748,7 @@ exports.deserializeAws_restJson1ListRecoveryPointsByResourceCommand = deserializ
|
|
|
3748
3748
|
const deserializeAws_restJson1ListRecoveryPointsByResourceCommandError = async (output, context) => {
|
|
3749
3749
|
const parsedOutput = {
|
|
3750
3750
|
...output,
|
|
3751
|
-
body: await
|
|
3751
|
+
body: await parseErrorBody(output.body, context),
|
|
3752
3752
|
};
|
|
3753
3753
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3754
3754
|
switch (errorCode) {
|
|
@@ -3794,7 +3794,7 @@ exports.deserializeAws_restJson1ListReportJobsCommand = deserializeAws_restJson1
|
|
|
3794
3794
|
const deserializeAws_restJson1ListReportJobsCommandError = async (output, context) => {
|
|
3795
3795
|
const parsedOutput = {
|
|
3796
3796
|
...output,
|
|
3797
|
-
body: await
|
|
3797
|
+
body: await parseErrorBody(output.body, context),
|
|
3798
3798
|
};
|
|
3799
3799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3800
3800
|
switch (errorCode) {
|
|
@@ -3834,7 +3834,7 @@ exports.deserializeAws_restJson1ListReportPlansCommand = deserializeAws_restJson
|
|
|
3834
3834
|
const deserializeAws_restJson1ListReportPlansCommandError = async (output, context) => {
|
|
3835
3835
|
const parsedOutput = {
|
|
3836
3836
|
...output,
|
|
3837
|
-
body: await
|
|
3837
|
+
body: await parseErrorBody(output.body, context),
|
|
3838
3838
|
};
|
|
3839
3839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3840
3840
|
switch (errorCode) {
|
|
@@ -3874,7 +3874,7 @@ exports.deserializeAws_restJson1ListRestoreJobsCommand = deserializeAws_restJson
|
|
|
3874
3874
|
const deserializeAws_restJson1ListRestoreJobsCommandError = async (output, context) => {
|
|
3875
3875
|
const parsedOutput = {
|
|
3876
3876
|
...output,
|
|
3877
|
-
body: await
|
|
3877
|
+
body: await parseErrorBody(output.body, context),
|
|
3878
3878
|
};
|
|
3879
3879
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3880
3880
|
switch (errorCode) {
|
|
@@ -3920,7 +3920,7 @@ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTa
|
|
|
3920
3920
|
const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
|
|
3921
3921
|
const parsedOutput = {
|
|
3922
3922
|
...output,
|
|
3923
|
-
body: await
|
|
3923
|
+
body: await parseErrorBody(output.body, context),
|
|
3924
3924
|
};
|
|
3925
3925
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3926
3926
|
switch (errorCode) {
|
|
@@ -3960,7 +3960,7 @@ exports.deserializeAws_restJson1PutBackupVaultAccessPolicyCommand = deserializeA
|
|
|
3960
3960
|
const deserializeAws_restJson1PutBackupVaultAccessPolicyCommandError = async (output, context) => {
|
|
3961
3961
|
const parsedOutput = {
|
|
3962
3962
|
...output,
|
|
3963
|
-
body: await
|
|
3963
|
+
body: await parseErrorBody(output.body, context),
|
|
3964
3964
|
};
|
|
3965
3965
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3966
3966
|
switch (errorCode) {
|
|
@@ -4000,7 +4000,7 @@ exports.deserializeAws_restJson1PutBackupVaultLockConfigurationCommand = deseria
|
|
|
4000
4000
|
const deserializeAws_restJson1PutBackupVaultLockConfigurationCommandError = async (output, context) => {
|
|
4001
4001
|
const parsedOutput = {
|
|
4002
4002
|
...output,
|
|
4003
|
-
body: await
|
|
4003
|
+
body: await parseErrorBody(output.body, context),
|
|
4004
4004
|
};
|
|
4005
4005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4006
4006
|
switch (errorCode) {
|
|
@@ -4043,7 +4043,7 @@ exports.deserializeAws_restJson1PutBackupVaultNotificationsCommand = deserialize
|
|
|
4043
4043
|
const deserializeAws_restJson1PutBackupVaultNotificationsCommandError = async (output, context) => {
|
|
4044
4044
|
const parsedOutput = {
|
|
4045
4045
|
...output,
|
|
4046
|
-
body: await
|
|
4046
|
+
body: await parseErrorBody(output.body, context),
|
|
4047
4047
|
};
|
|
4048
4048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4049
4049
|
switch (errorCode) {
|
|
@@ -4092,7 +4092,7 @@ exports.deserializeAws_restJson1StartBackupJobCommand = deserializeAws_restJson1
|
|
|
4092
4092
|
const deserializeAws_restJson1StartBackupJobCommandError = async (output, context) => {
|
|
4093
4093
|
const parsedOutput = {
|
|
4094
4094
|
...output,
|
|
4095
|
-
body: await
|
|
4095
|
+
body: await parseErrorBody(output.body, context),
|
|
4096
4096
|
};
|
|
4097
4097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4098
4098
|
switch (errorCode) {
|
|
@@ -4144,7 +4144,7 @@ exports.deserializeAws_restJson1StartCopyJobCommand = deserializeAws_restJson1St
|
|
|
4144
4144
|
const deserializeAws_restJson1StartCopyJobCommandError = async (output, context) => {
|
|
4145
4145
|
const parsedOutput = {
|
|
4146
4146
|
...output,
|
|
4147
|
-
body: await
|
|
4147
|
+
body: await parseErrorBody(output.body, context),
|
|
4148
4148
|
};
|
|
4149
4149
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4150
4150
|
switch (errorCode) {
|
|
@@ -4193,7 +4193,7 @@ exports.deserializeAws_restJson1StartReportJobCommand = deserializeAws_restJson1
|
|
|
4193
4193
|
const deserializeAws_restJson1StartReportJobCommandError = async (output, context) => {
|
|
4194
4194
|
const parsedOutput = {
|
|
4195
4195
|
...output,
|
|
4196
|
-
body: await
|
|
4196
|
+
body: await parseErrorBody(output.body, context),
|
|
4197
4197
|
};
|
|
4198
4198
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4199
4199
|
switch (errorCode) {
|
|
@@ -4236,7 +4236,7 @@ exports.deserializeAws_restJson1StartRestoreJobCommand = deserializeAws_restJson
|
|
|
4236
4236
|
const deserializeAws_restJson1StartRestoreJobCommandError = async (output, context) => {
|
|
4237
4237
|
const parsedOutput = {
|
|
4238
4238
|
...output,
|
|
4239
|
-
body: await
|
|
4239
|
+
body: await parseErrorBody(output.body, context),
|
|
4240
4240
|
};
|
|
4241
4241
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4242
4242
|
switch (errorCode) {
|
|
@@ -4276,7 +4276,7 @@ exports.deserializeAws_restJson1StopBackupJobCommand = deserializeAws_restJson1S
|
|
|
4276
4276
|
const deserializeAws_restJson1StopBackupJobCommandError = async (output, context) => {
|
|
4277
4277
|
const parsedOutput = {
|
|
4278
4278
|
...output,
|
|
4279
|
-
body: await
|
|
4279
|
+
body: await parseErrorBody(output.body, context),
|
|
4280
4280
|
};
|
|
4281
4281
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4282
4282
|
switch (errorCode) {
|
|
@@ -4319,7 +4319,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
4319
4319
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
4320
4320
|
const parsedOutput = {
|
|
4321
4321
|
...output,
|
|
4322
|
-
body: await
|
|
4322
|
+
body: await parseErrorBody(output.body, context),
|
|
4323
4323
|
};
|
|
4324
4324
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4325
4325
|
switch (errorCode) {
|
|
@@ -4362,7 +4362,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
4362
4362
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
4363
4363
|
const parsedOutput = {
|
|
4364
4364
|
...output,
|
|
4365
|
-
body: await
|
|
4365
|
+
body: await parseErrorBody(output.body, context),
|
|
4366
4366
|
};
|
|
4367
4367
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4368
4368
|
switch (errorCode) {
|
|
@@ -4417,7 +4417,7 @@ exports.deserializeAws_restJson1UpdateBackupPlanCommand = deserializeAws_restJso
|
|
|
4417
4417
|
const deserializeAws_restJson1UpdateBackupPlanCommandError = async (output, context) => {
|
|
4418
4418
|
const parsedOutput = {
|
|
4419
4419
|
...output,
|
|
4420
|
-
body: await
|
|
4420
|
+
body: await parseErrorBody(output.body, context),
|
|
4421
4421
|
};
|
|
4422
4422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4423
4423
|
switch (errorCode) {
|
|
@@ -4466,7 +4466,7 @@ exports.deserializeAws_restJson1UpdateFrameworkCommand = deserializeAws_restJson
|
|
|
4466
4466
|
const deserializeAws_restJson1UpdateFrameworkCommandError = async (output, context) => {
|
|
4467
4467
|
const parsedOutput = {
|
|
4468
4468
|
...output,
|
|
4469
|
-
body: await
|
|
4469
|
+
body: await parseErrorBody(output.body, context),
|
|
4470
4470
|
};
|
|
4471
4471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4472
4472
|
switch (errorCode) {
|
|
@@ -4515,7 +4515,7 @@ exports.deserializeAws_restJson1UpdateGlobalSettingsCommand = deserializeAws_res
|
|
|
4515
4515
|
const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output, context) => {
|
|
4516
4516
|
const parsedOutput = {
|
|
4517
4517
|
...output,
|
|
4518
|
-
body: await
|
|
4518
|
+
body: await parseErrorBody(output.body, context),
|
|
4519
4519
|
};
|
|
4520
4520
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4521
4521
|
switch (errorCode) {
|
|
@@ -4567,7 +4567,7 @@ exports.deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = deserializ
|
|
|
4567
4567
|
const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (output, context) => {
|
|
4568
4568
|
const parsedOutput = {
|
|
4569
4569
|
...output,
|
|
4570
|
-
body: await
|
|
4570
|
+
body: await parseErrorBody(output.body, context),
|
|
4571
4571
|
};
|
|
4572
4572
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4573
4573
|
switch (errorCode) {
|
|
@@ -4610,7 +4610,7 @@ exports.deserializeAws_restJson1UpdateRegionSettingsCommand = deserializeAws_res
|
|
|
4610
4610
|
const deserializeAws_restJson1UpdateRegionSettingsCommandError = async (output, context) => {
|
|
4611
4611
|
const parsedOutput = {
|
|
4612
4612
|
...output,
|
|
4613
|
-
body: await
|
|
4613
|
+
body: await parseErrorBody(output.body, context),
|
|
4614
4614
|
};
|
|
4615
4615
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4616
4616
|
switch (errorCode) {
|
|
@@ -4656,7 +4656,7 @@ exports.deserializeAws_restJson1UpdateReportPlanCommand = deserializeAws_restJso
|
|
|
4656
4656
|
const deserializeAws_restJson1UpdateReportPlanCommandError = async (output, context) => {
|
|
4657
4657
|
const parsedOutput = {
|
|
4658
4658
|
...output,
|
|
4659
|
-
body: await
|
|
4659
|
+
body: await parseErrorBody(output.body, context),
|
|
4660
4660
|
};
|
|
4661
4661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4662
4662
|
switch (errorCode) {
|
|
@@ -5990,6 +5990,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5990
5990
|
}
|
|
5991
5991
|
return {};
|
|
5992
5992
|
});
|
|
5993
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
5994
|
+
var _a;
|
|
5995
|
+
const value = await parseBody(errorBody, context);
|
|
5996
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
5997
|
+
return value;
|
|
5998
|
+
};
|
|
5993
5999
|
const loadRestJsonErrorCode = (output, data) => {
|
|
5994
6000
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
5995
6001
|
const sanitizeErrorCode = (rawValue) => {
|