@aws-sdk/client-drs 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/Drs.js +130 -137
- package/dist-es/DrsClient.js +22 -28
- package/dist-es/commands/CreateExtendedSourceServerCommand.js +21 -28
- package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteJobCommand.js +21 -28
- package/dist-es/commands/DeleteRecoveryInstanceCommand.js +22 -29
- package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
- package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
- package/dist-es/commands/DescribeJobsCommand.js +21 -28
- package/dist-es/commands/DescribeRecoveryInstancesCommand.js +21 -28
- package/dist-es/commands/DescribeRecoverySnapshotsCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
- package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
- package/dist-es/commands/DisconnectRecoveryInstanceCommand.js +22 -29
- package/dist-es/commands/DisconnectSourceServerCommand.js +21 -28
- package/dist-es/commands/GetFailbackReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/GetLaunchConfigurationCommand.js +21 -28
- package/dist-es/commands/GetReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/InitializeServiceCommand.js +21 -28
- package/dist-es/commands/ListExtensibleSourceServersCommand.js +21 -28
- package/dist-es/commands/ListStagingAccountsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
- package/dist-es/commands/StartFailbackLaunchCommand.js +21 -28
- package/dist-es/commands/StartRecoveryCommand.js +21 -28
- package/dist-es/commands/StopFailbackCommand.js +22 -29
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/TerminateRecoveryInstancesCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateFailbackReplicationConfigurationCommand.js +22 -29
- package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/DrsServiceException.js +5 -10
- package/dist-es/models/models_0.js +419 -204
- package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
- package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
- package/dist-es/pagination/DescribeRecoveryInstancesPaginator.js +25 -68
- package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
- package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
- package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +25 -68
- package/dist-es/pagination/ListStagingAccountsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2882 -3761
- 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-drs
|
|
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-drs
|
|
@@ -820,7 +820,7 @@ exports.deserializeAws_restJson1CreateExtendedSourceServerCommand = deserializeA
|
|
|
820
820
|
const deserializeAws_restJson1CreateExtendedSourceServerCommandError = async (output, context) => {
|
|
821
821
|
const parsedOutput = {
|
|
822
822
|
...output,
|
|
823
|
-
body: await
|
|
823
|
+
body: await parseErrorBody(output.body, context),
|
|
824
824
|
};
|
|
825
825
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
switch (errorCode) {
|
|
@@ -917,7 +917,7 @@ exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
|
|
|
917
917
|
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
918
918
|
const parsedOutput = {
|
|
919
919
|
...output,
|
|
920
|
-
body: await
|
|
920
|
+
body: await parseErrorBody(output.body, context),
|
|
921
921
|
};
|
|
922
922
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
923
|
switch (errorCode) {
|
|
@@ -963,7 +963,7 @@ exports.deserializeAws_restJson1DeleteJobCommand = deserializeAws_restJson1Delet
|
|
|
963
963
|
const deserializeAws_restJson1DeleteJobCommandError = async (output, context) => {
|
|
964
964
|
const parsedOutput = {
|
|
965
965
|
...output,
|
|
966
|
-
body: await
|
|
966
|
+
body: await parseErrorBody(output.body, context),
|
|
967
967
|
};
|
|
968
968
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
969
|
switch (errorCode) {
|
|
@@ -1006,7 +1006,7 @@ exports.deserializeAws_restJson1DeleteRecoveryInstanceCommand = deserializeAws_r
|
|
|
1006
1006
|
const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output, context) => {
|
|
1007
1007
|
const parsedOutput = {
|
|
1008
1008
|
...output,
|
|
1009
|
-
body: await
|
|
1009
|
+
body: await parseErrorBody(output.body, context),
|
|
1010
1010
|
};
|
|
1011
1011
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
1012
|
switch (errorCode) {
|
|
@@ -1049,7 +1049,7 @@ exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
|
|
|
1049
1049
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
|
-
body: await
|
|
1052
|
+
body: await parseErrorBody(output.body, context),
|
|
1053
1053
|
};
|
|
1054
1054
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1055
1055
|
switch (errorCode) {
|
|
@@ -1092,7 +1092,7 @@ exports.deserializeAws_restJson1DeleteSourceServerCommand = deserializeAws_restJ
|
|
|
1092
1092
|
const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, context) => {
|
|
1093
1093
|
const parsedOutput = {
|
|
1094
1094
|
...output,
|
|
1095
|
-
body: await
|
|
1095
|
+
body: await parseErrorBody(output.body, context),
|
|
1096
1096
|
};
|
|
1097
1097
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
1098
|
switch (errorCode) {
|
|
@@ -1141,7 +1141,7 @@ exports.deserializeAws_restJson1DescribeJobLogItemsCommand = deserializeAws_rest
|
|
|
1141
1141
|
const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, context) => {
|
|
1142
1142
|
const parsedOutput = {
|
|
1143
1143
|
...output,
|
|
1144
|
-
body: await
|
|
1144
|
+
body: await parseErrorBody(output.body, context),
|
|
1145
1145
|
};
|
|
1146
1146
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
1147
|
switch (errorCode) {
|
|
@@ -1187,7 +1187,7 @@ exports.deserializeAws_restJson1DescribeJobsCommand = deserializeAws_restJson1De
|
|
|
1187
1187
|
const deserializeAws_restJson1DescribeJobsCommandError = async (output, context) => {
|
|
1188
1188
|
const parsedOutput = {
|
|
1189
1189
|
...output,
|
|
1190
|
-
body: await
|
|
1190
|
+
body: await parseErrorBody(output.body, context),
|
|
1191
1191
|
};
|
|
1192
1192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
1193
|
switch (errorCode) {
|
|
@@ -1233,7 +1233,7 @@ exports.deserializeAws_restJson1DescribeRecoveryInstancesCommand = deserializeAw
|
|
|
1233
1233
|
const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (output, context) => {
|
|
1234
1234
|
const parsedOutput = {
|
|
1235
1235
|
...output,
|
|
1236
|
-
body: await
|
|
1236
|
+
body: await parseErrorBody(output.body, context),
|
|
1237
1237
|
};
|
|
1238
1238
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
1239
|
switch (errorCode) {
|
|
@@ -1279,7 +1279,7 @@ exports.deserializeAws_restJson1DescribeRecoverySnapshotsCommand = deserializeAw
|
|
|
1279
1279
|
const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (output, context) => {
|
|
1280
1280
|
const parsedOutput = {
|
|
1281
1281
|
...output,
|
|
1282
|
-
body: await
|
|
1282
|
+
body: await parseErrorBody(output.body, context),
|
|
1283
1283
|
};
|
|
1284
1284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1285
1285
|
switch (errorCode) {
|
|
@@ -1328,7 +1328,7 @@ exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand
|
|
|
1328
1328
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
1329
1329
|
const parsedOutput = {
|
|
1330
1330
|
...output,
|
|
1331
|
-
body: await
|
|
1331
|
+
body: await parseErrorBody(output.body, context),
|
|
1332
1332
|
};
|
|
1333
1333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1334
1334
|
switch (errorCode) {
|
|
@@ -1377,7 +1377,7 @@ exports.deserializeAws_restJson1DescribeSourceServersCommand = deserializeAws_re
|
|
|
1377
1377
|
const deserializeAws_restJson1DescribeSourceServersCommandError = async (output, context) => {
|
|
1378
1378
|
const parsedOutput = {
|
|
1379
1379
|
...output,
|
|
1380
|
-
body: await
|
|
1380
|
+
body: await parseErrorBody(output.body, context),
|
|
1381
1381
|
};
|
|
1382
1382
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1383
1383
|
switch (errorCode) {
|
|
@@ -1417,7 +1417,7 @@ exports.deserializeAws_restJson1DisconnectRecoveryInstanceCommand = deserializeA
|
|
|
1417
1417
|
const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (output, context) => {
|
|
1418
1418
|
const parsedOutput = {
|
|
1419
1419
|
...output,
|
|
1420
|
-
body: await
|
|
1420
|
+
body: await parseErrorBody(output.body, context),
|
|
1421
1421
|
};
|
|
1422
1422
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
1423
|
switch (errorCode) {
|
|
@@ -1490,7 +1490,7 @@ exports.deserializeAws_restJson1DisconnectSourceServerCommand = deserializeAws_r
|
|
|
1490
1490
|
const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output, context) => {
|
|
1491
1491
|
const parsedOutput = {
|
|
1492
1492
|
...output,
|
|
1493
|
-
body: await
|
|
1493
|
+
body: await parseErrorBody(output.body, context),
|
|
1494
1494
|
};
|
|
1495
1495
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
1496
|
switch (errorCode) {
|
|
@@ -1545,7 +1545,7 @@ exports.deserializeAws_restJson1GetFailbackReplicationConfigurationCommand = des
|
|
|
1545
1545
|
const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
1546
1546
|
const parsedOutput = {
|
|
1547
1547
|
...output,
|
|
1548
|
-
body: await
|
|
1548
|
+
body: await parseErrorBody(output.body, context),
|
|
1549
1549
|
};
|
|
1550
1550
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1551
|
switch (errorCode) {
|
|
@@ -1609,7 +1609,7 @@ exports.deserializeAws_restJson1GetLaunchConfigurationCommand = deserializeAws_r
|
|
|
1609
1609
|
const deserializeAws_restJson1GetLaunchConfigurationCommandError = 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) {
|
|
@@ -1697,7 +1697,7 @@ exports.deserializeAws_restJson1GetReplicationConfigurationCommand = deserialize
|
|
|
1697
1697
|
const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1698
1698
|
const parsedOutput = {
|
|
1699
1699
|
...output,
|
|
1700
|
-
body: await
|
|
1700
|
+
body: await parseErrorBody(output.body, context),
|
|
1701
1701
|
};
|
|
1702
1702
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1703
1703
|
switch (errorCode) {
|
|
@@ -1740,7 +1740,7 @@ exports.deserializeAws_restJson1InitializeServiceCommand = deserializeAws_restJs
|
|
|
1740
1740
|
const deserializeAws_restJson1InitializeServiceCommandError = async (output, context) => {
|
|
1741
1741
|
const parsedOutput = {
|
|
1742
1742
|
...output,
|
|
1743
|
-
body: await
|
|
1743
|
+
body: await parseErrorBody(output.body, context),
|
|
1744
1744
|
};
|
|
1745
1745
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
1746
|
switch (errorCode) {
|
|
@@ -1786,7 +1786,7 @@ exports.deserializeAws_restJson1ListExtensibleSourceServersCommand = deserialize
|
|
|
1786
1786
|
const deserializeAws_restJson1ListExtensibleSourceServersCommandError = async (output, context) => {
|
|
1787
1787
|
const parsedOutput = {
|
|
1788
1788
|
...output,
|
|
1789
|
-
body: await
|
|
1789
|
+
body: await parseErrorBody(output.body, context),
|
|
1790
1790
|
};
|
|
1791
1791
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
1792
|
switch (errorCode) {
|
|
@@ -1835,7 +1835,7 @@ exports.deserializeAws_restJson1ListStagingAccountsCommand = deserializeAws_rest
|
|
|
1835
1835
|
const deserializeAws_restJson1ListStagingAccountsCommandError = async (output, context) => {
|
|
1836
1836
|
const parsedOutput = {
|
|
1837
1837
|
...output,
|
|
1838
|
-
body: await
|
|
1838
|
+
body: await parseErrorBody(output.body, context),
|
|
1839
1839
|
};
|
|
1840
1840
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
1841
|
switch (errorCode) {
|
|
@@ -1881,7 +1881,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1881
1881
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1882
1882
|
const parsedOutput = {
|
|
1883
1883
|
...output,
|
|
1884
|
-
body: await
|
|
1884
|
+
body: await parseErrorBody(output.body, context),
|
|
1885
1885
|
};
|
|
1886
1886
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1887
1887
|
switch (errorCode) {
|
|
@@ -1951,7 +1951,7 @@ exports.deserializeAws_restJson1RetryDataReplicationCommand = deserializeAws_res
|
|
|
1951
1951
|
const deserializeAws_restJson1RetryDataReplicationCommandError = async (output, context) => {
|
|
1952
1952
|
const parsedOutput = {
|
|
1953
1953
|
...output,
|
|
1954
|
-
body: await
|
|
1954
|
+
body: await parseErrorBody(output.body, context),
|
|
1955
1955
|
};
|
|
1956
1956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
1957
|
switch (errorCode) {
|
|
@@ -1997,7 +1997,7 @@ exports.deserializeAws_restJson1StartFailbackLaunchCommand = deserializeAws_rest
|
|
|
1997
1997
|
const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, context) => {
|
|
1998
1998
|
const parsedOutput = {
|
|
1999
1999
|
...output,
|
|
2000
|
-
body: await
|
|
2000
|
+
body: await parseErrorBody(output.body, context),
|
|
2001
2001
|
};
|
|
2002
2002
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2003
2003
|
switch (errorCode) {
|
|
@@ -2046,7 +2046,7 @@ exports.deserializeAws_restJson1StartRecoveryCommand = deserializeAws_restJson1S
|
|
|
2046
2046
|
const deserializeAws_restJson1StartRecoveryCommandError = async (output, context) => {
|
|
2047
2047
|
const parsedOutput = {
|
|
2048
2048
|
...output,
|
|
2049
|
-
body: await
|
|
2049
|
+
body: await parseErrorBody(output.body, context),
|
|
2050
2050
|
};
|
|
2051
2051
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2052
2052
|
switch (errorCode) {
|
|
@@ -2089,7 +2089,7 @@ exports.deserializeAws_restJson1StopFailbackCommand = deserializeAws_restJson1St
|
|
|
2089
2089
|
const deserializeAws_restJson1StopFailbackCommandError = async (output, context) => {
|
|
2090
2090
|
const parsedOutput = {
|
|
2091
2091
|
...output,
|
|
2092
|
-
body: await
|
|
2092
|
+
body: await parseErrorBody(output.body, context),
|
|
2093
2093
|
};
|
|
2094
2094
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2095
2095
|
switch (errorCode) {
|
|
@@ -2129,7 +2129,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2129
2129
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2130
2130
|
const parsedOutput = {
|
|
2131
2131
|
...output,
|
|
2132
|
-
body: await
|
|
2132
|
+
body: await parseErrorBody(output.body, context),
|
|
2133
2133
|
};
|
|
2134
2134
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
2135
|
switch (errorCode) {
|
|
@@ -2175,7 +2175,7 @@ exports.deserializeAws_restJson1TerminateRecoveryInstancesCommand = deserializeA
|
|
|
2175
2175
|
const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (output, context) => {
|
|
2176
2176
|
const parsedOutput = {
|
|
2177
2177
|
...output,
|
|
2178
|
-
body: await
|
|
2178
|
+
body: await parseErrorBody(output.body, context),
|
|
2179
2179
|
};
|
|
2180
2180
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2181
|
switch (errorCode) {
|
|
@@ -2218,7 +2218,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2218
2218
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2219
2219
|
const parsedOutput = {
|
|
2220
2220
|
...output,
|
|
2221
|
-
body: await
|
|
2221
|
+
body: await parseErrorBody(output.body, context),
|
|
2222
2222
|
};
|
|
2223
2223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2224
2224
|
switch (errorCode) {
|
|
@@ -2261,7 +2261,7 @@ exports.deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand =
|
|
|
2261
2261
|
const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError = async (output, context) => {
|
|
2262
2262
|
const parsedOutput = {
|
|
2263
2263
|
...output,
|
|
2264
|
-
body: await
|
|
2264
|
+
body: await parseErrorBody(output.body, context),
|
|
2265
2265
|
};
|
|
2266
2266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
2267
|
switch (errorCode) {
|
|
@@ -2328,7 +2328,7 @@ exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = deserializeAw
|
|
|
2328
2328
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
2329
2329
|
const parsedOutput = {
|
|
2330
2330
|
...output,
|
|
2331
|
-
body: await
|
|
2331
|
+
body: await parseErrorBody(output.body, context),
|
|
2332
2332
|
};
|
|
2333
2333
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2334
2334
|
switch (errorCode) {
|
|
@@ -2422,7 +2422,7 @@ exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = deserial
|
|
|
2422
2422
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
2423
2423
|
const parsedOutput = {
|
|
2424
2424
|
...output,
|
|
2425
|
-
body: await
|
|
2425
|
+
body: await parseErrorBody(output.body, context),
|
|
2426
2426
|
};
|
|
2427
2427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2428
2428
|
switch (errorCode) {
|
|
@@ -2519,7 +2519,7 @@ exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
|
|
|
2519
2519
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
2520
2520
|
const parsedOutput = {
|
|
2521
2521
|
...output,
|
|
2522
|
-
body: await
|
|
2522
|
+
body: await parseErrorBody(output.body, context),
|
|
2523
2523
|
};
|
|
2524
2524
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2525
2525
|
switch (errorCode) {
|
|
@@ -3560,6 +3560,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3560
3560
|
}
|
|
3561
3561
|
return {};
|
|
3562
3562
|
});
|
|
3563
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3564
|
+
var _a;
|
|
3565
|
+
const value = await parseBody(errorBody, context);
|
|
3566
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3567
|
+
return value;
|
|
3568
|
+
};
|
|
3563
3569
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3564
3570
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3565
3571
|
const sanitizeErrorCode = (rawValue) => {
|