@aws-sdk/client-mgn 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 +39 -33
- package/dist-es/Mgn.js +134 -141
- package/dist-es/MgnClient.js +22 -28
- package/dist-es/commands/ChangeServerLifeCycleStateCommand.js +21 -28
- package/dist-es/commands/CreateLaunchConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/CreateReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteJobCommand.js +21 -28
- package/dist-es/commands/DeleteLaunchConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteSourceServerCommand.js +21 -28
- package/dist-es/commands/DeleteVcenterClientCommand.js +22 -29
- package/dist-es/commands/DescribeJobLogItemsCommand.js +21 -28
- package/dist-es/commands/DescribeJobsCommand.js +21 -28
- package/dist-es/commands/DescribeLaunchConfigurationTemplatesCommand.js +21 -28
- package/dist-es/commands/DescribeReplicationConfigurationTemplatesCommand.js +21 -28
- package/dist-es/commands/DescribeSourceServersCommand.js +21 -28
- package/dist-es/commands/DescribeVcenterClientsCommand.js +21 -28
- package/dist-es/commands/DisconnectFromServiceCommand.js +21 -28
- package/dist-es/commands/FinalizeCutoverCommand.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/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/MarkAsArchivedCommand.js +21 -28
- package/dist-es/commands/RetryDataReplicationCommand.js +21 -28
- package/dist-es/commands/StartCutoverCommand.js +21 -28
- package/dist-es/commands/StartReplicationCommand.js +21 -28
- package/dist-es/commands/StartTestCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +22 -29
- package/dist-es/commands/TerminateTargetInstancesCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +22 -29
- package/dist-es/commands/UpdateLaunchConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateLaunchConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateReplicationConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateReplicationConfigurationTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateSourceServerReplicationTypeCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MgnServiceException.js +5 -10
- package/dist-es/models/models_0.js +410 -202
- package/dist-es/pagination/DescribeJobLogItemsPaginator.js +25 -68
- package/dist-es/pagination/DescribeJobsPaginator.js +25 -68
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +25 -68
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +25 -68
- package/dist-es/pagination/DescribeSourceServersPaginator.js +25 -68
- package/dist-es/pagination/DescribeVcenterClientsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +2923 -3786
- 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-mgn
|
|
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-mgn
|
|
@@ -871,7 +871,7 @@ exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = deserializeA
|
|
|
871
871
|
const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (output, context) => {
|
|
872
872
|
const parsedOutput = {
|
|
873
873
|
...output,
|
|
874
|
-
body: await
|
|
874
|
+
body: await parseErrorBody(output.body, context),
|
|
875
875
|
};
|
|
876
876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
877
|
switch (errorCode) {
|
|
@@ -923,7 +923,7 @@ exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = deser
|
|
|
923
923
|
const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
924
924
|
const parsedOutput = {
|
|
925
925
|
...output,
|
|
926
|
-
body: await
|
|
926
|
+
body: await parseErrorBody(output.body, context),
|
|
927
927
|
};
|
|
928
928
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
929
|
switch (errorCode) {
|
|
@@ -1005,7 +1005,7 @@ exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand =
|
|
|
1005
1005
|
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1006
1006
|
const parsedOutput = {
|
|
1007
1007
|
...output,
|
|
1008
|
-
body: await
|
|
1008
|
+
body: await parseErrorBody(output.body, context),
|
|
1009
1009
|
};
|
|
1010
1010
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1011
|
switch (errorCode) {
|
|
@@ -1042,7 +1042,7 @@ exports.deserializeAws_restJson1DeleteJobCommand = deserializeAws_restJson1Delet
|
|
|
1042
1042
|
const deserializeAws_restJson1DeleteJobCommandError = async (output, context) => {
|
|
1043
1043
|
const parsedOutput = {
|
|
1044
1044
|
...output,
|
|
1045
|
-
body: await
|
|
1045
|
+
body: await parseErrorBody(output.body, context),
|
|
1046
1046
|
};
|
|
1047
1047
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
1048
|
switch (errorCode) {
|
|
@@ -1079,7 +1079,7 @@ exports.deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = deser
|
|
|
1079
1079
|
const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1080
1080
|
const parsedOutput = {
|
|
1081
1081
|
...output,
|
|
1082
|
-
body: await
|
|
1082
|
+
body: await parseErrorBody(output.body, context),
|
|
1083
1083
|
};
|
|
1084
1084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1085
|
switch (errorCode) {
|
|
@@ -1116,7 +1116,7 @@ exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand =
|
|
|
1116
1116
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1117
1117
|
const parsedOutput = {
|
|
1118
1118
|
...output,
|
|
1119
|
-
body: await
|
|
1119
|
+
body: await parseErrorBody(output.body, context),
|
|
1120
1120
|
};
|
|
1121
1121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1122
|
switch (errorCode) {
|
|
@@ -1153,7 +1153,7 @@ exports.deserializeAws_restJson1DeleteSourceServerCommand = deserializeAws_restJ
|
|
|
1153
1153
|
const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, context) => {
|
|
1154
1154
|
const parsedOutput = {
|
|
1155
1155
|
...output,
|
|
1156
|
-
body: await
|
|
1156
|
+
body: await parseErrorBody(output.body, context),
|
|
1157
1157
|
};
|
|
1158
1158
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
1159
|
switch (errorCode) {
|
|
@@ -1190,7 +1190,7 @@ exports.deserializeAws_restJson1DeleteVcenterClientCommand = deserializeAws_rest
|
|
|
1190
1190
|
const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, context) => {
|
|
1191
1191
|
const parsedOutput = {
|
|
1192
1192
|
...output,
|
|
1193
|
-
body: await
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
1194
|
};
|
|
1195
1195
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
1196
|
switch (errorCode) {
|
|
@@ -1233,7 +1233,7 @@ exports.deserializeAws_restJson1DescribeJobLogItemsCommand = deserializeAws_rest
|
|
|
1233
1233
|
const deserializeAws_restJson1DescribeJobLogItemsCommandError = 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) {
|
|
@@ -1273,7 +1273,7 @@ exports.deserializeAws_restJson1DescribeJobsCommand = deserializeAws_restJson1De
|
|
|
1273
1273
|
const deserializeAws_restJson1DescribeJobsCommandError = async (output, context) => {
|
|
1274
1274
|
const parsedOutput = {
|
|
1275
1275
|
...output,
|
|
1276
|
-
body: await
|
|
1276
|
+
body: await parseErrorBody(output.body, context),
|
|
1277
1277
|
};
|
|
1278
1278
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1279
1279
|
switch (errorCode) {
|
|
@@ -1313,7 +1313,7 @@ exports.deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = de
|
|
|
1313
1313
|
const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError = async (output, context) => {
|
|
1314
1314
|
const parsedOutput = {
|
|
1315
1315
|
...output,
|
|
1316
|
-
body: await
|
|
1316
|
+
body: await parseErrorBody(output.body, context),
|
|
1317
1317
|
};
|
|
1318
1318
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
1319
|
switch (errorCode) {
|
|
@@ -1356,7 +1356,7 @@ exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand
|
|
|
1356
1356
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
1357
1357
|
const parsedOutput = {
|
|
1358
1358
|
...output,
|
|
1359
|
-
body: await
|
|
1359
|
+
body: await parseErrorBody(output.body, context),
|
|
1360
1360
|
};
|
|
1361
1361
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
1362
|
switch (errorCode) {
|
|
@@ -1399,7 +1399,7 @@ exports.deserializeAws_restJson1DescribeSourceServersCommand = deserializeAws_re
|
|
|
1399
1399
|
const deserializeAws_restJson1DescribeSourceServersCommandError = async (output, context) => {
|
|
1400
1400
|
const parsedOutput = {
|
|
1401
1401
|
...output,
|
|
1402
|
-
body: await
|
|
1402
|
+
body: await parseErrorBody(output.body, context),
|
|
1403
1403
|
};
|
|
1404
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
1405
|
switch (errorCode) {
|
|
@@ -1439,7 +1439,7 @@ exports.deserializeAws_restJson1DescribeVcenterClientsCommand = deserializeAws_r
|
|
|
1439
1439
|
const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output, context) => {
|
|
1440
1440
|
const parsedOutput = {
|
|
1441
1441
|
...output,
|
|
1442
|
-
body: await
|
|
1442
|
+
body: await parseErrorBody(output.body, context),
|
|
1443
1443
|
};
|
|
1444
1444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1445
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_restJson1DisconnectFromServiceCommand = deserializeAws_re
|
|
|
1506
1506
|
const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1573,7 +1573,7 @@ exports.deserializeAws_restJson1FinalizeCutoverCommand = deserializeAws_restJson
|
|
|
1573
1573
|
const deserializeAws_restJson1FinalizeCutoverCommandError = 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) {
|
|
@@ -1643,7 +1643,7 @@ exports.deserializeAws_restJson1GetLaunchConfigurationCommand = deserializeAws_r
|
|
|
1643
1643
|
const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output, context) => {
|
|
1644
1644
|
const parsedOutput = {
|
|
1645
1645
|
...output,
|
|
1646
|
-
body: await
|
|
1646
|
+
body: await parseErrorBody(output.body, context),
|
|
1647
1647
|
};
|
|
1648
1648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1649
|
switch (errorCode) {
|
|
@@ -1722,7 +1722,7 @@ exports.deserializeAws_restJson1GetReplicationConfigurationCommand = deserialize
|
|
|
1722
1722
|
const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1723
1723
|
const parsedOutput = {
|
|
1724
1724
|
...output,
|
|
1725
|
-
body: await
|
|
1725
|
+
body: await parseErrorBody(output.body, context),
|
|
1726
1726
|
};
|
|
1727
1727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
1728
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1InitializeServiceCommand = deserializeAws_restJs
|
|
|
1756
1756
|
const deserializeAws_restJson1InitializeServiceCommandError = async (output, context) => {
|
|
1757
1757
|
const parsedOutput = {
|
|
1758
1758
|
...output,
|
|
1759
|
-
body: await
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
1760
|
};
|
|
1761
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1762
|
switch (errorCode) {
|
|
@@ -1793,7 +1793,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1793
1793
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1794
1794
|
const parsedOutput = {
|
|
1795
1795
|
...output,
|
|
1796
|
-
body: await
|
|
1796
|
+
body: await parseErrorBody(output.body, context),
|
|
1797
1797
|
};
|
|
1798
1798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
1799
|
switch (errorCode) {
|
|
@@ -1866,7 +1866,7 @@ exports.deserializeAws_restJson1MarkAsArchivedCommand = deserializeAws_restJson1
|
|
|
1866
1866
|
const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, context) => {
|
|
1867
1867
|
const parsedOutput = {
|
|
1868
1868
|
...output,
|
|
1869
|
-
body: await
|
|
1869
|
+
body: await parseErrorBody(output.body, context),
|
|
1870
1870
|
};
|
|
1871
1871
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1872
1872
|
switch (errorCode) {
|
|
@@ -1933,7 +1933,7 @@ exports.deserializeAws_restJson1RetryDataReplicationCommand = deserializeAws_res
|
|
|
1933
1933
|
const deserializeAws_restJson1RetryDataReplicationCommandError = async (output, context) => {
|
|
1934
1934
|
const parsedOutput = {
|
|
1935
1935
|
...output,
|
|
1936
|
-
body: await
|
|
1936
|
+
body: await parseErrorBody(output.body, context),
|
|
1937
1937
|
};
|
|
1938
1938
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
1939
|
switch (errorCode) {
|
|
@@ -1973,7 +1973,7 @@ exports.deserializeAws_restJson1StartCutoverCommand = deserializeAws_restJson1St
|
|
|
1973
1973
|
const deserializeAws_restJson1StartCutoverCommandError = async (output, context) => {
|
|
1974
1974
|
const parsedOutput = {
|
|
1975
1975
|
...output,
|
|
1976
|
-
body: await
|
|
1976
|
+
body: await parseErrorBody(output.body, context),
|
|
1977
1977
|
};
|
|
1978
1978
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
1979
|
switch (errorCode) {
|
|
@@ -2040,7 +2040,7 @@ exports.deserializeAws_restJson1StartReplicationCommand = deserializeAws_restJso
|
|
|
2040
2040
|
const deserializeAws_restJson1StartReplicationCommandError = async (output, context) => {
|
|
2041
2041
|
const parsedOutput = {
|
|
2042
2042
|
...output,
|
|
2043
|
-
body: await
|
|
2043
|
+
body: await parseErrorBody(output.body, context),
|
|
2044
2044
|
};
|
|
2045
2045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
2046
|
switch (errorCode) {
|
|
@@ -2086,7 +2086,7 @@ exports.deserializeAws_restJson1StartTestCommand = deserializeAws_restJson1Start
|
|
|
2086
2086
|
const deserializeAws_restJson1StartTestCommandError = async (output, context) => {
|
|
2087
2087
|
const parsedOutput = {
|
|
2088
2088
|
...output,
|
|
2089
|
-
body: await
|
|
2089
|
+
body: await parseErrorBody(output.body, context),
|
|
2090
2090
|
};
|
|
2091
2091
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
2092
|
switch (errorCode) {
|
|
@@ -2123,7 +2123,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
2123
2123
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
2124
2124
|
const parsedOutput = {
|
|
2125
2125
|
...output,
|
|
2126
|
-
body: await
|
|
2126
|
+
body: await parseErrorBody(output.body, context),
|
|
2127
2127
|
};
|
|
2128
2128
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2129
2129
|
switch (errorCode) {
|
|
@@ -2169,7 +2169,7 @@ exports.deserializeAws_restJson1TerminateTargetInstancesCommand = deserializeAws
|
|
|
2169
2169
|
const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (output, context) => {
|
|
2170
2170
|
const parsedOutput = {
|
|
2171
2171
|
...output,
|
|
2172
|
-
body: await
|
|
2172
|
+
body: await parseErrorBody(output.body, context),
|
|
2173
2173
|
};
|
|
2174
2174
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2175
2175
|
switch (errorCode) {
|
|
@@ -2206,7 +2206,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
2206
2206
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
2207
2207
|
const parsedOutput = {
|
|
2208
2208
|
...output,
|
|
2209
|
-
body: await
|
|
2209
|
+
body: await parseErrorBody(output.body, context),
|
|
2210
2210
|
};
|
|
2211
2211
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
2212
|
switch (errorCode) {
|
|
@@ -2279,7 +2279,7 @@ exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = deserializeAw
|
|
|
2279
2279
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
2280
2280
|
const parsedOutput = {
|
|
2281
2281
|
...output,
|
|
2282
|
-
body: await
|
|
2282
|
+
body: await parseErrorBody(output.body, context),
|
|
2283
2283
|
};
|
|
2284
2284
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
2285
|
switch (errorCode) {
|
|
@@ -2331,7 +2331,7 @@ exports.deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = deser
|
|
|
2331
2331
|
const deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
2332
2332
|
const parsedOutput = {
|
|
2333
2333
|
...output,
|
|
2334
|
-
body: await
|
|
2334
|
+
body: await parseErrorBody(output.body, context),
|
|
2335
2335
|
};
|
|
2336
2336
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
2337
|
switch (errorCode) {
|
|
@@ -2416,7 +2416,7 @@ exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = deserial
|
|
|
2416
2416
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
2417
2417
|
const parsedOutput = {
|
|
2418
2418
|
...output,
|
|
2419
|
-
body: await
|
|
2419
|
+
body: await parseErrorBody(output.body, context),
|
|
2420
2420
|
};
|
|
2421
2421
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
2422
|
switch (errorCode) {
|
|
@@ -2504,7 +2504,7 @@ exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand =
|
|
|
2504
2504
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
2505
2505
|
const parsedOutput = {
|
|
2506
2506
|
...output,
|
|
2507
|
-
body: await
|
|
2507
|
+
body: await parseErrorBody(output.body, context),
|
|
2508
2508
|
};
|
|
2509
2509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2510
|
switch (errorCode) {
|
|
@@ -2574,7 +2574,7 @@ exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = deser
|
|
|
2574
2574
|
const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = 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) {
|
|
@@ -3558,6 +3558,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
3558
3558
|
}
|
|
3559
3559
|
return {};
|
|
3560
3560
|
});
|
|
3561
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
3562
|
+
var _a;
|
|
3563
|
+
const value = await parseBody(errorBody, context);
|
|
3564
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3565
|
+
return value;
|
|
3566
|
+
};
|
|
3561
3567
|
const loadRestJsonErrorCode = (output, data) => {
|
|
3562
3568
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3563
3569
|
const sanitizeErrorCode = (rawValue) => {
|