@aws-sdk/client-migrationhubstrategy 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 +26 -20
- package/dist-es/MigrationHubStrategy.js +82 -89
- package/dist-es/MigrationHubStrategyClient.js +22 -28
- package/dist-es/commands/GetApplicationComponentDetailsCommand.js +21 -28
- package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +21 -28
- package/dist-es/commands/GetAssessmentCommand.js +21 -28
- package/dist-es/commands/GetImportFileTaskCommand.js +21 -28
- package/dist-es/commands/GetPortfolioPreferencesCommand.js +21 -28
- package/dist-es/commands/GetPortfolioSummaryCommand.js +21 -28
- package/dist-es/commands/GetRecommendationReportDetailsCommand.js +21 -28
- package/dist-es/commands/GetServerDetailsCommand.js +21 -28
- package/dist-es/commands/GetServerStrategiesCommand.js +21 -28
- package/dist-es/commands/ListApplicationComponentsCommand.js +21 -28
- package/dist-es/commands/ListCollectorsCommand.js +21 -28
- package/dist-es/commands/ListImportFileTaskCommand.js +21 -28
- package/dist-es/commands/ListServersCommand.js +21 -28
- package/dist-es/commands/PutPortfolioPreferencesCommand.js +21 -28
- package/dist-es/commands/StartAssessmentCommand.js +21 -28
- package/dist-es/commands/StartImportFileTaskCommand.js +21 -28
- package/dist-es/commands/StartRecommendationReportGenerationCommand.js +21 -28
- package/dist-es/commands/StopAssessmentCommand.js +21 -28
- package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +21 -28
- package/dist-es/commands/UpdateServerConfigCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MigrationHubStrategyServiceException.js +5 -10
- package/dist-es/models/models_0.js +338 -184
- package/dist-es/pagination/GetServerDetailsPaginator.js +25 -68
- package/dist-es/pagination/ListApplicationComponentsPaginator.js +25 -68
- package/dist-es/pagination/ListCollectorsPaginator.js +25 -68
- package/dist-es/pagination/ListImportFileTaskPaginator.js +25 -68
- package/dist-es/pagination/ListServersPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1660 -2224
- 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-migrationhubstrategy
|
|
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-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) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { GetApplicationComponentDetailsCommand, } from "./commands/GetApplicationComponentDetailsCommand";
|
|
3
2
|
import { GetApplicationComponentStrategiesCommand, } from "./commands/GetApplicationComponentStrategiesCommand";
|
|
4
3
|
import { GetAssessmentCommand, } from "./commands/GetAssessmentCommand";
|
|
@@ -20,291 +19,285 @@ import { StopAssessmentCommand, } from "./commands/StopAssessmentCommand";
|
|
|
20
19
|
import { UpdateApplicationComponentConfigCommand, } from "./commands/UpdateApplicationComponentConfigCommand";
|
|
21
20
|
import { UpdateServerConfigCommand, } from "./commands/UpdateServerConfigCommand";
|
|
22
21
|
import { MigrationHubStrategyClient } from "./MigrationHubStrategyClient";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
-
}
|
|
28
|
-
MigrationHubStrategy.prototype.getApplicationComponentDetails = function (args, optionsOrCb, cb) {
|
|
29
|
-
var command = new GetApplicationComponentDetailsCommand(args);
|
|
22
|
+
export class MigrationHubStrategy extends MigrationHubStrategyClient {
|
|
23
|
+
getApplicationComponentDetails(args, optionsOrCb, cb) {
|
|
24
|
+
const command = new GetApplicationComponentDetailsCommand(args);
|
|
30
25
|
if (typeof optionsOrCb === "function") {
|
|
31
26
|
this.send(command, optionsOrCb);
|
|
32
27
|
}
|
|
33
28
|
else if (typeof cb === "function") {
|
|
34
29
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(
|
|
30
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
31
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
32
|
}
|
|
38
33
|
else {
|
|
39
34
|
return this.send(command, optionsOrCb);
|
|
40
35
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
}
|
|
37
|
+
getApplicationComponentStrategies(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new GetApplicationComponentStrategiesCommand(args);
|
|
44
39
|
if (typeof optionsOrCb === "function") {
|
|
45
40
|
this.send(command, optionsOrCb);
|
|
46
41
|
}
|
|
47
42
|
else if (typeof cb === "function") {
|
|
48
43
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
45
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
46
|
}
|
|
52
47
|
else {
|
|
53
48
|
return this.send(command, optionsOrCb);
|
|
54
49
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
}
|
|
51
|
+
getAssessment(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new GetAssessmentCommand(args);
|
|
58
53
|
if (typeof optionsOrCb === "function") {
|
|
59
54
|
this.send(command, optionsOrCb);
|
|
60
55
|
}
|
|
61
56
|
else if (typeof cb === "function") {
|
|
62
57
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
59
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
60
|
}
|
|
66
61
|
else {
|
|
67
62
|
return this.send(command, optionsOrCb);
|
|
68
63
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
}
|
|
65
|
+
getImportFileTask(args, optionsOrCb, cb) {
|
|
66
|
+
const command = new GetImportFileTaskCommand(args);
|
|
72
67
|
if (typeof optionsOrCb === "function") {
|
|
73
68
|
this.send(command, optionsOrCb);
|
|
74
69
|
}
|
|
75
70
|
else if (typeof cb === "function") {
|
|
76
71
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(
|
|
72
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
73
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
74
|
}
|
|
80
75
|
else {
|
|
81
76
|
return this.send(command, optionsOrCb);
|
|
82
77
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
}
|
|
79
|
+
getPortfolioPreferences(args, optionsOrCb, cb) {
|
|
80
|
+
const command = new GetPortfolioPreferencesCommand(args);
|
|
86
81
|
if (typeof optionsOrCb === "function") {
|
|
87
82
|
this.send(command, optionsOrCb);
|
|
88
83
|
}
|
|
89
84
|
else if (typeof cb === "function") {
|
|
90
85
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(
|
|
86
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
87
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
88
|
}
|
|
94
89
|
else {
|
|
95
90
|
return this.send(command, optionsOrCb);
|
|
96
91
|
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
}
|
|
93
|
+
getPortfolioSummary(args, optionsOrCb, cb) {
|
|
94
|
+
const command = new GetPortfolioSummaryCommand(args);
|
|
100
95
|
if (typeof optionsOrCb === "function") {
|
|
101
96
|
this.send(command, optionsOrCb);
|
|
102
97
|
}
|
|
103
98
|
else if (typeof cb === "function") {
|
|
104
99
|
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(
|
|
100
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
101
|
this.send(command, optionsOrCb || {}, cb);
|
|
107
102
|
}
|
|
108
103
|
else {
|
|
109
104
|
return this.send(command, optionsOrCb);
|
|
110
105
|
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
106
|
+
}
|
|
107
|
+
getRecommendationReportDetails(args, optionsOrCb, cb) {
|
|
108
|
+
const command = new GetRecommendationReportDetailsCommand(args);
|
|
114
109
|
if (typeof optionsOrCb === "function") {
|
|
115
110
|
this.send(command, optionsOrCb);
|
|
116
111
|
}
|
|
117
112
|
else if (typeof cb === "function") {
|
|
118
113
|
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(
|
|
114
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
115
|
this.send(command, optionsOrCb || {}, cb);
|
|
121
116
|
}
|
|
122
117
|
else {
|
|
123
118
|
return this.send(command, optionsOrCb);
|
|
124
119
|
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
}
|
|
121
|
+
getServerDetails(args, optionsOrCb, cb) {
|
|
122
|
+
const command = new GetServerDetailsCommand(args);
|
|
128
123
|
if (typeof optionsOrCb === "function") {
|
|
129
124
|
this.send(command, optionsOrCb);
|
|
130
125
|
}
|
|
131
126
|
else if (typeof cb === "function") {
|
|
132
127
|
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error(
|
|
128
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
134
129
|
this.send(command, optionsOrCb || {}, cb);
|
|
135
130
|
}
|
|
136
131
|
else {
|
|
137
132
|
return this.send(command, optionsOrCb);
|
|
138
133
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
}
|
|
135
|
+
getServerStrategies(args, optionsOrCb, cb) {
|
|
136
|
+
const command = new GetServerStrategiesCommand(args);
|
|
142
137
|
if (typeof optionsOrCb === "function") {
|
|
143
138
|
this.send(command, optionsOrCb);
|
|
144
139
|
}
|
|
145
140
|
else if (typeof cb === "function") {
|
|
146
141
|
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error(
|
|
142
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
148
143
|
this.send(command, optionsOrCb || {}, cb);
|
|
149
144
|
}
|
|
150
145
|
else {
|
|
151
146
|
return this.send(command, optionsOrCb);
|
|
152
147
|
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
148
|
+
}
|
|
149
|
+
listApplicationComponents(args, optionsOrCb, cb) {
|
|
150
|
+
const command = new ListApplicationComponentsCommand(args);
|
|
156
151
|
if (typeof optionsOrCb === "function") {
|
|
157
152
|
this.send(command, optionsOrCb);
|
|
158
153
|
}
|
|
159
154
|
else if (typeof cb === "function") {
|
|
160
155
|
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error(
|
|
156
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
162
157
|
this.send(command, optionsOrCb || {}, cb);
|
|
163
158
|
}
|
|
164
159
|
else {
|
|
165
160
|
return this.send(command, optionsOrCb);
|
|
166
161
|
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
162
|
+
}
|
|
163
|
+
listCollectors(args, optionsOrCb, cb) {
|
|
164
|
+
const command = new ListCollectorsCommand(args);
|
|
170
165
|
if (typeof optionsOrCb === "function") {
|
|
171
166
|
this.send(command, optionsOrCb);
|
|
172
167
|
}
|
|
173
168
|
else if (typeof cb === "function") {
|
|
174
169
|
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error(
|
|
170
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
176
171
|
this.send(command, optionsOrCb || {}, cb);
|
|
177
172
|
}
|
|
178
173
|
else {
|
|
179
174
|
return this.send(command, optionsOrCb);
|
|
180
175
|
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
}
|
|
177
|
+
listImportFileTask(args, optionsOrCb, cb) {
|
|
178
|
+
const command = new ListImportFileTaskCommand(args);
|
|
184
179
|
if (typeof optionsOrCb === "function") {
|
|
185
180
|
this.send(command, optionsOrCb);
|
|
186
181
|
}
|
|
187
182
|
else if (typeof cb === "function") {
|
|
188
183
|
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error(
|
|
184
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
190
185
|
this.send(command, optionsOrCb || {}, cb);
|
|
191
186
|
}
|
|
192
187
|
else {
|
|
193
188
|
return this.send(command, optionsOrCb);
|
|
194
189
|
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
190
|
+
}
|
|
191
|
+
listServers(args, optionsOrCb, cb) {
|
|
192
|
+
const command = new ListServersCommand(args);
|
|
198
193
|
if (typeof optionsOrCb === "function") {
|
|
199
194
|
this.send(command, optionsOrCb);
|
|
200
195
|
}
|
|
201
196
|
else if (typeof cb === "function") {
|
|
202
197
|
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error(
|
|
198
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
204
199
|
this.send(command, optionsOrCb || {}, cb);
|
|
205
200
|
}
|
|
206
201
|
else {
|
|
207
202
|
return this.send(command, optionsOrCb);
|
|
208
203
|
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
204
|
+
}
|
|
205
|
+
putPortfolioPreferences(args, optionsOrCb, cb) {
|
|
206
|
+
const command = new PutPortfolioPreferencesCommand(args);
|
|
212
207
|
if (typeof optionsOrCb === "function") {
|
|
213
208
|
this.send(command, optionsOrCb);
|
|
214
209
|
}
|
|
215
210
|
else if (typeof cb === "function") {
|
|
216
211
|
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error(
|
|
212
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
218
213
|
this.send(command, optionsOrCb || {}, cb);
|
|
219
214
|
}
|
|
220
215
|
else {
|
|
221
216
|
return this.send(command, optionsOrCb);
|
|
222
217
|
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
}
|
|
219
|
+
startAssessment(args, optionsOrCb, cb) {
|
|
220
|
+
const command = new StartAssessmentCommand(args);
|
|
226
221
|
if (typeof optionsOrCb === "function") {
|
|
227
222
|
this.send(command, optionsOrCb);
|
|
228
223
|
}
|
|
229
224
|
else if (typeof cb === "function") {
|
|
230
225
|
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error(
|
|
226
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
232
227
|
this.send(command, optionsOrCb || {}, cb);
|
|
233
228
|
}
|
|
234
229
|
else {
|
|
235
230
|
return this.send(command, optionsOrCb);
|
|
236
231
|
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
}
|
|
233
|
+
startImportFileTask(args, optionsOrCb, cb) {
|
|
234
|
+
const command = new StartImportFileTaskCommand(args);
|
|
240
235
|
if (typeof optionsOrCb === "function") {
|
|
241
236
|
this.send(command, optionsOrCb);
|
|
242
237
|
}
|
|
243
238
|
else if (typeof cb === "function") {
|
|
244
239
|
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error(
|
|
240
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
246
241
|
this.send(command, optionsOrCb || {}, cb);
|
|
247
242
|
}
|
|
248
243
|
else {
|
|
249
244
|
return this.send(command, optionsOrCb);
|
|
250
245
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
246
|
+
}
|
|
247
|
+
startRecommendationReportGeneration(args, optionsOrCb, cb) {
|
|
248
|
+
const command = new StartRecommendationReportGenerationCommand(args);
|
|
254
249
|
if (typeof optionsOrCb === "function") {
|
|
255
250
|
this.send(command, optionsOrCb);
|
|
256
251
|
}
|
|
257
252
|
else if (typeof cb === "function") {
|
|
258
253
|
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error(
|
|
254
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
260
255
|
this.send(command, optionsOrCb || {}, cb);
|
|
261
256
|
}
|
|
262
257
|
else {
|
|
263
258
|
return this.send(command, optionsOrCb);
|
|
264
259
|
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
260
|
+
}
|
|
261
|
+
stopAssessment(args, optionsOrCb, cb) {
|
|
262
|
+
const command = new StopAssessmentCommand(args);
|
|
268
263
|
if (typeof optionsOrCb === "function") {
|
|
269
264
|
this.send(command, optionsOrCb);
|
|
270
265
|
}
|
|
271
266
|
else if (typeof cb === "function") {
|
|
272
267
|
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error(
|
|
268
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
274
269
|
this.send(command, optionsOrCb || {}, cb);
|
|
275
270
|
}
|
|
276
271
|
else {
|
|
277
272
|
return this.send(command, optionsOrCb);
|
|
278
273
|
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
274
|
+
}
|
|
275
|
+
updateApplicationComponentConfig(args, optionsOrCb, cb) {
|
|
276
|
+
const command = new UpdateApplicationComponentConfigCommand(args);
|
|
282
277
|
if (typeof optionsOrCb === "function") {
|
|
283
278
|
this.send(command, optionsOrCb);
|
|
284
279
|
}
|
|
285
280
|
else if (typeof cb === "function") {
|
|
286
281
|
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error(
|
|
282
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
288
283
|
this.send(command, optionsOrCb || {}, cb);
|
|
289
284
|
}
|
|
290
285
|
else {
|
|
291
286
|
return this.send(command, optionsOrCb);
|
|
292
287
|
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
}
|
|
289
|
+
updateServerConfig(args, optionsOrCb, cb) {
|
|
290
|
+
const command = new UpdateServerConfigCommand(args);
|
|
296
291
|
if (typeof optionsOrCb === "function") {
|
|
297
292
|
this.send(command, optionsOrCb);
|
|
298
293
|
}
|
|
299
294
|
else if (typeof cb === "function") {
|
|
300
295
|
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error(
|
|
296
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
302
297
|
this.send(command, optionsOrCb || {}, cb);
|
|
303
298
|
}
|
|
304
299
|
else {
|
|
305
300
|
return this.send(command, optionsOrCb);
|
|
306
301
|
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
}(MigrationHubStrategyClient));
|
|
310
|
-
export { MigrationHubStrategy };
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class MigrationHubStrategyClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { MigrationHubStrategyClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|