@aws-sdk/client-migrationhubstrategy 3.180.0 → 3.181.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +26 -20
- package/dist-es/protocols/Aws_restJson1.js +33 -20
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-migrationhubstrategy
|
|
@@ -464,7 +464,7 @@ exports.deserializeAws_restJson1GetApplicationComponentDetailsCommand = deserial
|
|
|
464
464
|
const deserializeAws_restJson1GetApplicationComponentDetailsCommandError = async (output, context) => {
|
|
465
465
|
const parsedOutput = {
|
|
466
466
|
...output,
|
|
467
|
-
body: await
|
|
467
|
+
body: await parseErrorBody(output.body, context),
|
|
468
468
|
};
|
|
469
469
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
470
|
switch (errorCode) {
|
|
@@ -504,7 +504,7 @@ exports.deserializeAws_restJson1GetApplicationComponentStrategiesCommand = deser
|
|
|
504
504
|
const deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = async (output, context) => {
|
|
505
505
|
const parsedOutput = {
|
|
506
506
|
...output,
|
|
507
|
-
body: await
|
|
507
|
+
body: await parseErrorBody(output.body, context),
|
|
508
508
|
};
|
|
509
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
510
|
switch (errorCode) {
|
|
@@ -547,7 +547,7 @@ exports.deserializeAws_restJson1GetAssessmentCommand = deserializeAws_restJson1G
|
|
|
547
547
|
const deserializeAws_restJson1GetAssessmentCommandError = async (output, context) => {
|
|
548
548
|
const parsedOutput = {
|
|
549
549
|
...output,
|
|
550
|
-
body: await
|
|
550
|
+
body: await parseErrorBody(output.body, context),
|
|
551
551
|
};
|
|
552
552
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
553
|
switch (errorCode) {
|
|
@@ -620,7 +620,7 @@ exports.deserializeAws_restJson1GetImportFileTaskCommand = deserializeAws_restJs
|
|
|
620
620
|
const deserializeAws_restJson1GetImportFileTaskCommandError = async (output, context) => {
|
|
621
621
|
const parsedOutput = {
|
|
622
622
|
...output,
|
|
623
|
-
body: await
|
|
623
|
+
body: await parseErrorBody(output.body, context),
|
|
624
624
|
};
|
|
625
625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
626
|
switch (errorCode) {
|
|
@@ -672,7 +672,7 @@ exports.deserializeAws_restJson1GetPortfolioPreferencesCommand = deserializeAws_
|
|
|
672
672
|
const deserializeAws_restJson1GetPortfolioPreferencesCommandError = async (output, context) => {
|
|
673
673
|
const parsedOutput = {
|
|
674
674
|
...output,
|
|
675
|
-
body: await
|
|
675
|
+
body: await parseErrorBody(output.body, context),
|
|
676
676
|
};
|
|
677
677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
678
678
|
switch (errorCode) {
|
|
@@ -715,7 +715,7 @@ exports.deserializeAws_restJson1GetPortfolioSummaryCommand = deserializeAws_rest
|
|
|
715
715
|
const deserializeAws_restJson1GetPortfolioSummaryCommandError = async (output, context) => {
|
|
716
716
|
const parsedOutput = {
|
|
717
717
|
...output,
|
|
718
|
-
body: await
|
|
718
|
+
body: await parseErrorBody(output.body, context),
|
|
719
719
|
};
|
|
720
720
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
721
|
switch (errorCode) {
|
|
@@ -758,7 +758,7 @@ exports.deserializeAws_restJson1GetRecommendationReportDetailsCommand = deserial
|
|
|
758
758
|
const deserializeAws_restJson1GetRecommendationReportDetailsCommandError = async (output, context) => {
|
|
759
759
|
const parsedOutput = {
|
|
760
760
|
...output,
|
|
761
|
-
body: await
|
|
761
|
+
body: await parseErrorBody(output.body, context),
|
|
762
762
|
};
|
|
763
763
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
764
|
switch (errorCode) {
|
|
@@ -810,7 +810,7 @@ exports.deserializeAws_restJson1GetServerDetailsCommand = deserializeAws_restJso
|
|
|
810
810
|
const deserializeAws_restJson1GetServerDetailsCommandError = async (output, context) => {
|
|
811
811
|
const parsedOutput = {
|
|
812
812
|
...output,
|
|
813
|
-
body: await
|
|
813
|
+
body: await parseErrorBody(output.body, context),
|
|
814
814
|
};
|
|
815
815
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
816
|
switch (errorCode) {
|
|
@@ -856,7 +856,7 @@ exports.deserializeAws_restJson1GetServerStrategiesCommand = deserializeAws_rest
|
|
|
856
856
|
const deserializeAws_restJson1GetServerStrategiesCommandError = async (output, context) => {
|
|
857
857
|
const parsedOutput = {
|
|
858
858
|
...output,
|
|
859
|
-
body: await
|
|
859
|
+
body: await parseErrorBody(output.body, context),
|
|
860
860
|
};
|
|
861
861
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
862
|
switch (errorCode) {
|
|
@@ -905,7 +905,7 @@ exports.deserializeAws_restJson1ListApplicationComponentsCommand = deserializeAw
|
|
|
905
905
|
const deserializeAws_restJson1ListApplicationComponentsCommandError = async (output, context) => {
|
|
906
906
|
const parsedOutput = {
|
|
907
907
|
...output,
|
|
908
|
-
body: await
|
|
908
|
+
body: await parseErrorBody(output.body, context),
|
|
909
909
|
};
|
|
910
910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
911
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_restJson1ListCollectorsCommand = deserializeAws_restJson1
|
|
|
951
951
|
const deserializeAws_restJson1ListCollectorsCommandError = 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) {
|
|
@@ -997,7 +997,7 @@ exports.deserializeAws_restJson1ListImportFileTaskCommand = deserializeAws_restJ
|
|
|
997
997
|
const deserializeAws_restJson1ListImportFileTaskCommandError = async (output, context) => {
|
|
998
998
|
const parsedOutput = {
|
|
999
999
|
...output,
|
|
1000
|
-
body: await
|
|
1000
|
+
body: await parseErrorBody(output.body, context),
|
|
1001
1001
|
};
|
|
1002
1002
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1003
1003
|
switch (errorCode) {
|
|
@@ -1043,7 +1043,7 @@ exports.deserializeAws_restJson1ListServersCommand = deserializeAws_restJson1Lis
|
|
|
1043
1043
|
const deserializeAws_restJson1ListServersCommandError = async (output, context) => {
|
|
1044
1044
|
const parsedOutput = {
|
|
1045
1045
|
...output,
|
|
1046
|
-
body: await
|
|
1046
|
+
body: await parseErrorBody(output.body, context),
|
|
1047
1047
|
};
|
|
1048
1048
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1049
1049
|
switch (errorCode) {
|
|
@@ -1083,7 +1083,7 @@ exports.deserializeAws_restJson1PutPortfolioPreferencesCommand = deserializeAws_
|
|
|
1083
1083
|
const deserializeAws_restJson1PutPortfolioPreferencesCommandError = async (output, context) => {
|
|
1084
1084
|
const parsedOutput = {
|
|
1085
1085
|
...output,
|
|
1086
|
-
body: await
|
|
1086
|
+
body: await parseErrorBody(output.body, context),
|
|
1087
1087
|
};
|
|
1088
1088
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1089
|
switch (errorCode) {
|
|
@@ -1129,7 +1129,7 @@ exports.deserializeAws_restJson1StartAssessmentCommand = deserializeAws_restJson
|
|
|
1129
1129
|
const deserializeAws_restJson1StartAssessmentCommandError = async (output, context) => {
|
|
1130
1130
|
const parsedOutput = {
|
|
1131
1131
|
...output,
|
|
1132
|
-
body: await
|
|
1132
|
+
body: await parseErrorBody(output.body, context),
|
|
1133
1133
|
};
|
|
1134
1134
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
1135
|
switch (errorCode) {
|
|
@@ -1172,7 +1172,7 @@ exports.deserializeAws_restJson1StartImportFileTaskCommand = deserializeAws_rest
|
|
|
1172
1172
|
const deserializeAws_restJson1StartImportFileTaskCommandError = 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) {
|
|
@@ -1218,7 +1218,7 @@ exports.deserializeAws_restJson1StartRecommendationReportGenerationCommand = des
|
|
|
1218
1218
|
const deserializeAws_restJson1StartRecommendationReportGenerationCommandError = async (output, context) => {
|
|
1219
1219
|
const parsedOutput = {
|
|
1220
1220
|
...output,
|
|
1221
|
-
body: await
|
|
1221
|
+
body: await parseErrorBody(output.body, context),
|
|
1222
1222
|
};
|
|
1223
1223
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
1224
|
switch (errorCode) {
|
|
@@ -1261,7 +1261,7 @@ exports.deserializeAws_restJson1StopAssessmentCommand = deserializeAws_restJson1
|
|
|
1261
1261
|
const deserializeAws_restJson1StopAssessmentCommandError = async (output, context) => {
|
|
1262
1262
|
const parsedOutput = {
|
|
1263
1263
|
...output,
|
|
1264
|
-
body: await
|
|
1264
|
+
body: await parseErrorBody(output.body, context),
|
|
1265
1265
|
};
|
|
1266
1266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
1267
|
switch (errorCode) {
|
|
@@ -1301,7 +1301,7 @@ exports.deserializeAws_restJson1UpdateApplicationComponentConfigCommand = deseri
|
|
|
1301
1301
|
const deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = async (output, context) => {
|
|
1302
1302
|
const parsedOutput = {
|
|
1303
1303
|
...output,
|
|
1304
|
-
body: await
|
|
1304
|
+
body: await parseErrorBody(output.body, context),
|
|
1305
1305
|
};
|
|
1306
1306
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1307
|
switch (errorCode) {
|
|
@@ -1341,7 +1341,7 @@ exports.deserializeAws_restJson1UpdateServerConfigCommand = deserializeAws_restJ
|
|
|
1341
1341
|
const deserializeAws_restJson1UpdateServerConfigCommandError = async (output, context) => {
|
|
1342
1342
|
const parsedOutput = {
|
|
1343
1343
|
...output,
|
|
1344
|
-
body: await
|
|
1344
|
+
body: await parseErrorBody(output.body, context),
|
|
1345
1345
|
};
|
|
1346
1346
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1347
1347
|
switch (errorCode) {
|
|
@@ -2252,6 +2252,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2252
2252
|
}
|
|
2253
2253
|
return {};
|
|
2254
2254
|
});
|
|
2255
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2256
|
+
var _a;
|
|
2257
|
+
const value = await parseBody(errorBody, context);
|
|
2258
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2259
|
+
return value;
|
|
2260
|
+
};
|
|
2255
2261
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2256
2262
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2257
2263
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -534,7 +534,7 @@ var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = functio
|
|
|
534
534
|
case 0:
|
|
535
535
|
_a = [__assign({}, output)];
|
|
536
536
|
_c = {};
|
|
537
|
-
return [4,
|
|
537
|
+
return [4, parseErrorBody(output.body, context)];
|
|
538
538
|
case 1:
|
|
539
539
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
540
540
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -598,7 +598,7 @@ var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = func
|
|
|
598
598
|
case 0:
|
|
599
599
|
_a = [__assign({}, output)];
|
|
600
600
|
_c = {};
|
|
601
|
-
return [4,
|
|
601
|
+
return [4, parseErrorBody(output.body, context)];
|
|
602
602
|
case 1:
|
|
603
603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
604
604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -665,7 +665,7 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
|
|
|
665
665
|
case 0:
|
|
666
666
|
_a = [__assign({}, output)];
|
|
667
667
|
_c = {};
|
|
668
|
-
return [4,
|
|
668
|
+
return [4, parseErrorBody(output.body, context)];
|
|
669
669
|
case 1:
|
|
670
670
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
671
671
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -763,7 +763,7 @@ var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, co
|
|
|
763
763
|
case 0:
|
|
764
764
|
_a = [__assign({}, output)];
|
|
765
765
|
_c = {};
|
|
766
|
-
return [4,
|
|
766
|
+
return [4, parseErrorBody(output.body, context)];
|
|
767
767
|
case 1:
|
|
768
768
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
769
769
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -841,7 +841,7 @@ var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (outp
|
|
|
841
841
|
case 0:
|
|
842
842
|
_a = [__assign({}, output)];
|
|
843
843
|
_c = {};
|
|
844
|
-
return [4,
|
|
844
|
+
return [4, parseErrorBody(output.body, context)];
|
|
845
845
|
case 1:
|
|
846
846
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
847
847
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -909,7 +909,7 @@ var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output,
|
|
|
909
909
|
case 0:
|
|
910
910
|
_a = [__assign({}, output)];
|
|
911
911
|
_c = {};
|
|
912
|
-
return [4,
|
|
912
|
+
return [4, parseErrorBody(output.body, context)];
|
|
913
913
|
case 1:
|
|
914
914
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
915
915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -976,7 +976,7 @@ var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = functio
|
|
|
976
976
|
case 0:
|
|
977
977
|
_a = [__assign({}, output)];
|
|
978
978
|
_c = {};
|
|
979
|
-
return [4,
|
|
979
|
+
return [4, parseErrorBody(output.body, context)];
|
|
980
980
|
case 1:
|
|
981
981
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
982
982
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1054,7 +1054,7 @@ var deserializeAws_restJson1GetServerDetailsCommandError = function (output, con
|
|
|
1054
1054
|
case 0:
|
|
1055
1055
|
_a = [__assign({}, output)];
|
|
1056
1056
|
_c = {};
|
|
1057
|
-
return [4,
|
|
1057
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1058
1058
|
case 1:
|
|
1059
1059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1060
1060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1126,7 +1126,7 @@ var deserializeAws_restJson1GetServerStrategiesCommandError = function (output,
|
|
|
1126
1126
|
case 0:
|
|
1127
1127
|
_a = [__assign({}, output)];
|
|
1128
1128
|
_c = {};
|
|
1129
|
-
return [4,
|
|
1129
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1130
1130
|
case 1:
|
|
1131
1131
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1132
1132
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1201,7 +1201,7 @@ var deserializeAws_restJson1ListApplicationComponentsCommandError = function (ou
|
|
|
1201
1201
|
case 0:
|
|
1202
1202
|
_a = [__assign({}, output)];
|
|
1203
1203
|
_c = {};
|
|
1204
|
-
return [4,
|
|
1204
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1205
1205
|
case 1:
|
|
1206
1206
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1207
1207
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1272,7 +1272,7 @@ var deserializeAws_restJson1ListCollectorsCommandError = function (output, conte
|
|
|
1272
1272
|
case 0:
|
|
1273
1273
|
_a = [__assign({}, output)];
|
|
1274
1274
|
_c = {};
|
|
1275
|
-
return [4,
|
|
1275
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1276
1276
|
case 1:
|
|
1277
1277
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1278
1278
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1343,7 +1343,7 @@ var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, c
|
|
|
1343
1343
|
case 0:
|
|
1344
1344
|
_a = [__assign({}, output)];
|
|
1345
1345
|
_c = {};
|
|
1346
|
-
return [4,
|
|
1346
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1347
1347
|
case 1:
|
|
1348
1348
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1349
1349
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1414,7 +1414,7 @@ var deserializeAws_restJson1ListServersCommandError = function (output, context)
|
|
|
1414
1414
|
case 0:
|
|
1415
1415
|
_a = [__assign({}, output)];
|
|
1416
1416
|
_c = {};
|
|
1417
|
-
return [4,
|
|
1417
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1418
1418
|
case 1:
|
|
1419
1419
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1420
1420
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1477,7 +1477,7 @@ var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (outp
|
|
|
1477
1477
|
case 0:
|
|
1478
1478
|
_a = [__assign({}, output)];
|
|
1479
1479
|
_c = {};
|
|
1480
|
-
return [4,
|
|
1480
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1481
1481
|
case 1:
|
|
1482
1482
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1483
1483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1549,7 +1549,7 @@ var deserializeAws_restJson1StartAssessmentCommandError = function (output, cont
|
|
|
1549
1549
|
case 0:
|
|
1550
1550
|
_a = [__assign({}, output)];
|
|
1551
1551
|
_c = {};
|
|
1552
|
-
return [4,
|
|
1552
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1553
1553
|
case 1:
|
|
1554
1554
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1555
1555
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1617,7 +1617,7 @@ var deserializeAws_restJson1StartImportFileTaskCommandError = function (output,
|
|
|
1617
1617
|
case 0:
|
|
1618
1618
|
_a = [__assign({}, output)];
|
|
1619
1619
|
_c = {};
|
|
1620
|
-
return [4,
|
|
1620
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1621
1621
|
case 1:
|
|
1622
1622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1623
1623
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1689,7 +1689,7 @@ var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = fu
|
|
|
1689
1689
|
case 0:
|
|
1690
1690
|
_a = [__assign({}, output)];
|
|
1691
1691
|
_c = {};
|
|
1692
|
-
return [4,
|
|
1692
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1693
1693
|
case 1:
|
|
1694
1694
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1695
1695
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1756,7 +1756,7 @@ var deserializeAws_restJson1StopAssessmentCommandError = function (output, conte
|
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
_a = [__assign({}, output)];
|
|
1758
1758
|
_c = {};
|
|
1759
|
-
return [4,
|
|
1759
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1760
1760
|
case 1:
|
|
1761
1761
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1762
1762
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1819,7 +1819,7 @@ var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = funct
|
|
|
1819
1819
|
case 0:
|
|
1820
1820
|
_a = [__assign({}, output)];
|
|
1821
1821
|
_c = {};
|
|
1822
|
-
return [4,
|
|
1822
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1823
1823
|
case 1:
|
|
1824
1824
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1825
1825
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1882,7 +1882,7 @@ var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, c
|
|
|
1882
1882
|
case 0:
|
|
1883
1883
|
_a = [__assign({}, output)];
|
|
1884
1884
|
_c = {};
|
|
1885
|
-
return [4,
|
|
1885
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1886
1886
|
case 1:
|
|
1887
1887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1888
1888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2775,6 +2775,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2775
2775
|
return {};
|
|
2776
2776
|
});
|
|
2777
2777
|
};
|
|
2778
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2779
|
+
var value;
|
|
2780
|
+
var _a;
|
|
2781
|
+
return __generator(this, function (_b) {
|
|
2782
|
+
switch (_b.label) {
|
|
2783
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2784
|
+
case 1:
|
|
2785
|
+
value = _b.sent();
|
|
2786
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2787
|
+
return [2, value];
|
|
2788
|
+
}
|
|
2789
|
+
});
|
|
2790
|
+
}); };
|
|
2778
2791
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2779
2792
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2780
2793
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migrationhubstrategy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migrationhubstrategy Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|