@aws-sdk/client-migrationhubstrategy 3.433.0 → 3.435.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/README.md +8 -0
- package/dist-cjs/MigrationHubStrategy.js +2 -0
- package/dist-cjs/commands/ListAnalyzableServersCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +12 -6
- package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +69 -1
- package/dist-es/MigrationHubStrategy.js +2 -0
- package/dist-es/commands/ListAnalyzableServersCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +10 -4
- package/dist-es/pagination/ListAnalyzableServersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +66 -0
- package/dist-types/MigrationHubStrategy.d.ts +7 -0
- package/dist-types/MigrationHubStrategyClient.d.ts +3 -2
- package/dist-types/commands/ListAnalyzableServersCommand.d.ts +96 -0
- package/dist-types/commands/StartAssessmentCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +94 -12
- package/dist-types/pagination/ListAnalyzableServersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/MigrationHubStrategy.d.ts +17 -0
- package/dist-types/ts3.4/MigrationHubStrategyClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListAnalyzableServersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +29 -5
- package/dist-types/ts3.4/pagination/ListAnalyzableServersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -288,6 +288,14 @@ GetServerStrategies
|
|
|
288
288
|
|
|
289
289
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/classes/getserverstrategiescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/interfaces/getserverstrategiescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/interfaces/getserverstrategiescommandoutput.html)
|
|
290
290
|
|
|
291
|
+
</details>
|
|
292
|
+
<details>
|
|
293
|
+
<summary>
|
|
294
|
+
ListAnalyzableServers
|
|
295
|
+
</summary>
|
|
296
|
+
|
|
297
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/classes/listanalyzableserverscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/interfaces/listanalyzableserverscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-migrationhubstrategy/interfaces/listanalyzableserverscommandoutput.html)
|
|
298
|
+
|
|
291
299
|
</details>
|
|
292
300
|
<details>
|
|
293
301
|
<summary>
|
|
@@ -12,6 +12,7 @@ const GetPortfolioSummaryCommand_1 = require("./commands/GetPortfolioSummaryComm
|
|
|
12
12
|
const GetRecommendationReportDetailsCommand_1 = require("./commands/GetRecommendationReportDetailsCommand");
|
|
13
13
|
const GetServerDetailsCommand_1 = require("./commands/GetServerDetailsCommand");
|
|
14
14
|
const GetServerStrategiesCommand_1 = require("./commands/GetServerStrategiesCommand");
|
|
15
|
+
const ListAnalyzableServersCommand_1 = require("./commands/ListAnalyzableServersCommand");
|
|
15
16
|
const ListApplicationComponentsCommand_1 = require("./commands/ListApplicationComponentsCommand");
|
|
16
17
|
const ListCollectorsCommand_1 = require("./commands/ListCollectorsCommand");
|
|
17
18
|
const ListImportFileTaskCommand_1 = require("./commands/ListImportFileTaskCommand");
|
|
@@ -35,6 +36,7 @@ const commands = {
|
|
|
35
36
|
GetRecommendationReportDetailsCommand: GetRecommendationReportDetailsCommand_1.GetRecommendationReportDetailsCommand,
|
|
36
37
|
GetServerDetailsCommand: GetServerDetailsCommand_1.GetServerDetailsCommand,
|
|
37
38
|
GetServerStrategiesCommand: GetServerStrategiesCommand_1.GetServerStrategiesCommand,
|
|
39
|
+
ListAnalyzableServersCommand: ListAnalyzableServersCommand_1.ListAnalyzableServersCommand,
|
|
38
40
|
ListApplicationComponentsCommand: ListApplicationComponentsCommand_1.ListApplicationComponentsCommand,
|
|
39
41
|
ListCollectorsCommand: ListCollectorsCommand_1.ListCollectorsCommand,
|
|
40
42
|
ListImportFileTaskCommand: ListImportFileTaskCommand_1.ListImportFileTaskCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListAnalyzableServersCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListAnalyzableServersCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAnalyzableServersCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "MigrationHubStrategyClient";
|
|
29
|
+
const commandName = "ListAnalyzableServersCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AWSMigrationHubStrategyRecommendation",
|
|
38
|
+
operation: "ListAnalyzableServers",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_ListAnalyzableServersCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_ListAnalyzableServersCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListAnalyzableServersCommand = ListAnalyzableServersCommand;
|
|
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./GetPortfolioSummaryCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./GetRecommendationReportDetailsCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./GetServerDetailsCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./GetServerStrategiesCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListAnalyzableServersCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./ListApplicationComponentsCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListCollectorsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListImportFileTaskCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "isSet",
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateApplicationComponentConfigRequestFilterSensitiveLog = exports.VersionControl = exports.OutputFormat = exports.DataSourceType = exports.ServiceQuotaExceededException = exports.ConflictException = exports.ServerCriteria = void 0;
|
|
3
|
+
exports.PipelineType = exports.CollectorHealth = exports.ServiceLinkedRoleLockClientException = exports.GroupName = exports.SortOrder = exports.OSType = exports.ServerErrorCategory = exports.RecommendationReportStatus = exports.DatabaseMigrationPreference = exports.TargetDatabaseEngine = exports.HomogeneousTargetDatabaseEngine = exports.HeterogeneousTargetDatabaseEngine = exports.DatabaseManagementPreference = exports.DependencyException = exports.ValidationException = exports.ImportFileTaskStatus = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.AuthType = exports.Condition = exports.ServerOsType = exports.RunTimeAssessmentStatus = exports.AssessmentStatus = exports.AssessmentDataSourceType = exports.ManagementPreference = exports.SelfManageTargetDestination = exports.NoPreferenceTargetDestination = exports.AwsManagedTargetDestination = exports.ApplicationMode = exports.StrategyRecommendation = exports.ResourceSubType = exports.TransformationToolName = exports.TargetDestination = exports.Strategy = exports.InclusionStatus = exports.AppUnitErrorCategory = exports.AppType = exports.ApplicationComponentCriteria = exports.Severity = exports.AntipatternReportStatus = exports.AnalyzerNameUnion = exports.SourceCodeAnalyzerName = exports.RunTimeAnalyzerName = exports.BinaryAnalyzerName = exports.AnalysisType = exports.AnalysisStatusUnion = exports.SrcCodeOrDbAnalysisStatus = exports.RuntimeAnalysisStatus = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UpdateApplicationComponentConfigRequestFilterSensitiveLog = exports.VersionControl = exports.OutputFormat = exports.DataSourceType = exports.ServiceQuotaExceededException = exports.ConflictException = exports.ServerCriteria = exports.VersionControlType = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const MigrationHubStrategyServiceException_1 = require("./MigrationHubStrategyServiceException");
|
|
7
7
|
class AccessDeniedException extends MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException {
|
|
@@ -216,6 +216,11 @@ var ManagementPreference;
|
|
|
216
216
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
217
217
|
};
|
|
218
218
|
})(ManagementPreference = exports.ManagementPreference || (exports.ManagementPreference = {}));
|
|
219
|
+
exports.AssessmentDataSourceType = {
|
|
220
|
+
ADS: "ApplicationDiscoveryService",
|
|
221
|
+
MANUAL_IMPORT: "ManualImport",
|
|
222
|
+
SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector",
|
|
223
|
+
};
|
|
219
224
|
exports.AssessmentStatus = {
|
|
220
225
|
COMPLETE: "COMPLETE",
|
|
221
226
|
FAILED: "FAILED",
|
|
@@ -384,14 +389,14 @@ exports.OSType = {
|
|
|
384
389
|
LINUX: "LINUX",
|
|
385
390
|
WINDOWS: "WINDOWS",
|
|
386
391
|
};
|
|
387
|
-
exports.GroupName = {
|
|
388
|
-
EXTERNAL_ID: "ExternalId",
|
|
389
|
-
EXTERNAL_SOURCE_TYPE: "ExternalSourceType",
|
|
390
|
-
};
|
|
391
392
|
exports.SortOrder = {
|
|
392
393
|
ASC: "ASC",
|
|
393
394
|
DESC: "DESC",
|
|
394
395
|
};
|
|
396
|
+
exports.GroupName = {
|
|
397
|
+
EXTERNAL_ID: "ExternalId",
|
|
398
|
+
EXTERNAL_SOURCE_TYPE: "ExternalSourceType",
|
|
399
|
+
};
|
|
395
400
|
class ServiceLinkedRoleLockClientException extends MigrationHubStrategyServiceException_1.MigrationHubStrategyServiceException {
|
|
396
401
|
constructor(opts) {
|
|
397
402
|
super({
|
|
@@ -455,6 +460,7 @@ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
|
455
460
|
exports.DataSourceType = {
|
|
456
461
|
ADS: "ApplicationDiscoveryService",
|
|
457
462
|
IMPORT: "Import",
|
|
463
|
+
MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector",
|
|
458
464
|
MPA: "MPA",
|
|
459
465
|
};
|
|
460
466
|
exports.OutputFormat = {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListAnalyzableServers = void 0;
|
|
4
|
+
const ListAnalyzableServersCommand_1 = require("../commands/ListAnalyzableServersCommand");
|
|
5
|
+
const MigrationHubStrategyClient_1 = require("../MigrationHubStrategyClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListAnalyzableServersCommand_1.ListAnalyzableServersCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListAnalyzableServers(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof MigrationHubStrategyClient_1.MigrationHubStrategyClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListAnalyzableServers = paginateListAnalyzableServers;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./GetServerDetailsPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListAnalyzableServersPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListApplicationComponentsPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListCollectorsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListImportFileTaskPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateServerConfigCommand = exports.de_UpdateApplicationComponentConfigCommand = exports.de_StopAssessmentCommand = exports.de_StartRecommendationReportGenerationCommand = exports.de_StartImportFileTaskCommand = exports.de_StartAssessmentCommand = exports.de_PutPortfolioPreferencesCommand = exports.de_ListServersCommand = exports.de_ListImportFileTaskCommand = exports.de_ListCollectorsCommand = exports.de_ListApplicationComponentsCommand = exports.de_GetServerStrategiesCommand = exports.de_GetServerDetailsCommand = exports.de_GetRecommendationReportDetailsCommand = exports.de_GetPortfolioSummaryCommand = exports.de_GetPortfolioPreferencesCommand = exports.de_GetLatestAssessmentIdCommand = exports.de_GetImportFileTaskCommand = exports.de_GetAssessmentCommand = exports.de_GetApplicationComponentStrategiesCommand = exports.de_GetApplicationComponentDetailsCommand = exports.se_UpdateServerConfigCommand = exports.se_UpdateApplicationComponentConfigCommand = exports.se_StopAssessmentCommand = exports.se_StartRecommendationReportGenerationCommand = exports.se_StartImportFileTaskCommand = exports.se_StartAssessmentCommand = exports.se_PutPortfolioPreferencesCommand = exports.se_ListServersCommand = exports.se_ListImportFileTaskCommand = exports.se_ListCollectorsCommand = exports.se_ListApplicationComponentsCommand = exports.se_GetServerStrategiesCommand = exports.se_GetServerDetailsCommand = exports.se_GetRecommendationReportDetailsCommand = exports.se_GetPortfolioSummaryCommand = exports.se_GetPortfolioPreferencesCommand = exports.se_GetLatestAssessmentIdCommand = exports.se_GetImportFileTaskCommand = exports.se_GetAssessmentCommand = exports.se_GetApplicationComponentStrategiesCommand = exports.se_GetApplicationComponentDetailsCommand = void 0;
|
|
3
|
+
exports.de_UpdateServerConfigCommand = exports.de_UpdateApplicationComponentConfigCommand = exports.de_StopAssessmentCommand = exports.de_StartRecommendationReportGenerationCommand = exports.de_StartImportFileTaskCommand = exports.de_StartAssessmentCommand = exports.de_PutPortfolioPreferencesCommand = exports.de_ListServersCommand = exports.de_ListImportFileTaskCommand = exports.de_ListCollectorsCommand = exports.de_ListApplicationComponentsCommand = exports.de_ListAnalyzableServersCommand = exports.de_GetServerStrategiesCommand = exports.de_GetServerDetailsCommand = exports.de_GetRecommendationReportDetailsCommand = exports.de_GetPortfolioSummaryCommand = exports.de_GetPortfolioPreferencesCommand = exports.de_GetLatestAssessmentIdCommand = exports.de_GetImportFileTaskCommand = exports.de_GetAssessmentCommand = exports.de_GetApplicationComponentStrategiesCommand = exports.de_GetApplicationComponentDetailsCommand = exports.se_UpdateServerConfigCommand = exports.se_UpdateApplicationComponentConfigCommand = exports.se_StopAssessmentCommand = exports.se_StartRecommendationReportGenerationCommand = exports.se_StartImportFileTaskCommand = exports.se_StartAssessmentCommand = exports.se_PutPortfolioPreferencesCommand = exports.se_ListServersCommand = exports.se_ListImportFileTaskCommand = exports.se_ListCollectorsCommand = exports.se_ListApplicationComponentsCommand = exports.se_ListAnalyzableServersCommand = exports.se_GetServerStrategiesCommand = exports.se_GetServerDetailsCommand = exports.se_GetRecommendationReportDetailsCommand = exports.se_GetPortfolioSummaryCommand = exports.se_GetPortfolioPreferencesCommand = exports.se_GetLatestAssessmentIdCommand = exports.se_GetImportFileTaskCommand = exports.se_GetAssessmentCommand = exports.se_GetApplicationComponentStrategiesCommand = exports.se_GetApplicationComponentDetailsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const MigrationHubStrategyServiceException_1 = require("../models/MigrationHubStrategyServiceException");
|
|
@@ -188,6 +188,29 @@ const se_GetServerStrategiesCommand = async (input, context) => {
|
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
190
|
exports.se_GetServerStrategiesCommand = se_GetServerStrategiesCommand;
|
|
191
|
+
const se_ListAnalyzableServersCommand = async (input, context) => {
|
|
192
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
|
+
const headers = {
|
|
194
|
+
"content-type": "application/json",
|
|
195
|
+
};
|
|
196
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-analyzable-servers";
|
|
197
|
+
let body;
|
|
198
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
|
+
maxResults: [],
|
|
200
|
+
nextToken: [],
|
|
201
|
+
sort: [],
|
|
202
|
+
}));
|
|
203
|
+
return new protocol_http_1.HttpRequest({
|
|
204
|
+
protocol,
|
|
205
|
+
hostname,
|
|
206
|
+
port,
|
|
207
|
+
method: "POST",
|
|
208
|
+
headers,
|
|
209
|
+
path: resolvedPath,
|
|
210
|
+
body,
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
exports.se_ListAnalyzableServersCommand = se_ListAnalyzableServersCommand;
|
|
191
214
|
const se_ListApplicationComponentsCommand = async (input, context) => {
|
|
192
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
216
|
const headers = {
|
|
@@ -314,6 +337,7 @@ const se_StartAssessmentCommand = async (input, context) => {
|
|
|
314
337
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
|
|
315
338
|
let body;
|
|
316
339
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
340
|
+
assessmentDataSourceType: [],
|
|
317
341
|
assessmentTargets: (_) => (0, smithy_client_1._json)(_),
|
|
318
342
|
s3bucketForAnalysisData: [],
|
|
319
343
|
s3bucketForReportData: [],
|
|
@@ -901,6 +925,50 @@ const de_GetServerStrategiesCommandError = async (output, context) => {
|
|
|
901
925
|
});
|
|
902
926
|
}
|
|
903
927
|
};
|
|
928
|
+
const de_ListAnalyzableServersCommand = async (output, context) => {
|
|
929
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
930
|
+
return de_ListAnalyzableServersCommandError(output, context);
|
|
931
|
+
}
|
|
932
|
+
const contents = (0, smithy_client_1.map)({
|
|
933
|
+
$metadata: deserializeMetadata(output),
|
|
934
|
+
});
|
|
935
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
936
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
937
|
+
analyzableServers: smithy_client_1._json,
|
|
938
|
+
nextToken: smithy_client_1.expectString,
|
|
939
|
+
});
|
|
940
|
+
Object.assign(contents, doc);
|
|
941
|
+
return contents;
|
|
942
|
+
};
|
|
943
|
+
exports.de_ListAnalyzableServersCommand = de_ListAnalyzableServersCommand;
|
|
944
|
+
const de_ListAnalyzableServersCommandError = async (output, context) => {
|
|
945
|
+
const parsedOutput = {
|
|
946
|
+
...output,
|
|
947
|
+
body: await parseErrorBody(output.body, context),
|
|
948
|
+
};
|
|
949
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
950
|
+
switch (errorCode) {
|
|
951
|
+
case "AccessDeniedException":
|
|
952
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
953
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
954
|
+
case "InternalServerException":
|
|
955
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
956
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
957
|
+
case "ThrottlingException":
|
|
958
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
959
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
960
|
+
case "ValidationException":
|
|
961
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
962
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
963
|
+
default:
|
|
964
|
+
const parsedBody = parsedOutput.body;
|
|
965
|
+
return throwDefaultError({
|
|
966
|
+
output,
|
|
967
|
+
parsedBody,
|
|
968
|
+
errorCode,
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
};
|
|
904
972
|
const de_ListApplicationComponentsCommand = async (output, context) => {
|
|
905
973
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
906
974
|
return de_ListApplicationComponentsCommandError(output, context);
|
|
@@ -9,6 +9,7 @@ import { GetPortfolioSummaryCommand, } from "./commands/GetPortfolioSummaryComma
|
|
|
9
9
|
import { GetRecommendationReportDetailsCommand, } from "./commands/GetRecommendationReportDetailsCommand";
|
|
10
10
|
import { GetServerDetailsCommand, } from "./commands/GetServerDetailsCommand";
|
|
11
11
|
import { GetServerStrategiesCommand, } from "./commands/GetServerStrategiesCommand";
|
|
12
|
+
import { ListAnalyzableServersCommand, } from "./commands/ListAnalyzableServersCommand";
|
|
12
13
|
import { ListApplicationComponentsCommand, } from "./commands/ListApplicationComponentsCommand";
|
|
13
14
|
import { ListCollectorsCommand, } from "./commands/ListCollectorsCommand";
|
|
14
15
|
import { ListImportFileTaskCommand, } from "./commands/ListImportFileTaskCommand";
|
|
@@ -32,6 +33,7 @@ const commands = {
|
|
|
32
33
|
GetRecommendationReportDetailsCommand,
|
|
33
34
|
GetServerDetailsCommand,
|
|
34
35
|
GetServerStrategiesCommand,
|
|
36
|
+
ListAnalyzableServersCommand,
|
|
35
37
|
ListApplicationComponentsCommand,
|
|
36
38
|
ListCollectorsCommand,
|
|
37
39
|
ListImportFileTaskCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_ListAnalyzableServersCommand, se_ListAnalyzableServersCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListAnalyzableServersCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListAnalyzableServersCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "MigrationHubStrategyClient";
|
|
26
|
+
const commandName = "ListAnalyzableServersCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSMigrationHubStrategyRecommendation",
|
|
35
|
+
operation: "ListAnalyzableServers",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_ListAnalyzableServersCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_ListAnalyzableServersCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./GetPortfolioSummaryCommand";
|
|
|
8
8
|
export * from "./GetRecommendationReportDetailsCommand";
|
|
9
9
|
export * from "./GetServerDetailsCommand";
|
|
10
10
|
export * from "./GetServerStrategiesCommand";
|
|
11
|
+
export * from "./ListAnalyzableServersCommand";
|
|
11
12
|
export * from "./ListApplicationComponentsCommand";
|
|
12
13
|
export * from "./ListCollectorsCommand";
|
|
13
14
|
export * from "./ListImportFileTaskCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "isSet",
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }, { conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ endpoint: { url: "https://migrationhub-strategy-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://migrationhub-strategy.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -211,6 +211,11 @@ export var ManagementPreference;
|
|
|
211
211
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
212
212
|
};
|
|
213
213
|
})(ManagementPreference || (ManagementPreference = {}));
|
|
214
|
+
export const AssessmentDataSourceType = {
|
|
215
|
+
ADS: "ApplicationDiscoveryService",
|
|
216
|
+
MANUAL_IMPORT: "ManualImport",
|
|
217
|
+
SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector",
|
|
218
|
+
};
|
|
214
219
|
export const AssessmentStatus = {
|
|
215
220
|
COMPLETE: "COMPLETE",
|
|
216
221
|
FAILED: "FAILED",
|
|
@@ -374,14 +379,14 @@ export const OSType = {
|
|
|
374
379
|
LINUX: "LINUX",
|
|
375
380
|
WINDOWS: "WINDOWS",
|
|
376
381
|
};
|
|
377
|
-
export const GroupName = {
|
|
378
|
-
EXTERNAL_ID: "ExternalId",
|
|
379
|
-
EXTERNAL_SOURCE_TYPE: "ExternalSourceType",
|
|
380
|
-
};
|
|
381
382
|
export const SortOrder = {
|
|
382
383
|
ASC: "ASC",
|
|
383
384
|
DESC: "DESC",
|
|
384
385
|
};
|
|
386
|
+
export const GroupName = {
|
|
387
|
+
EXTERNAL_ID: "ExternalId",
|
|
388
|
+
EXTERNAL_SOURCE_TYPE: "ExternalSourceType",
|
|
389
|
+
};
|
|
385
390
|
export class ServiceLinkedRoleLockClientException extends __BaseException {
|
|
386
391
|
constructor(opts) {
|
|
387
392
|
super({
|
|
@@ -442,6 +447,7 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
442
447
|
export const DataSourceType = {
|
|
443
448
|
ADS: "ApplicationDiscoveryService",
|
|
444
449
|
IMPORT: "Import",
|
|
450
|
+
MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector",
|
|
445
451
|
MPA: "MPA",
|
|
446
452
|
};
|
|
447
453
|
export const OutputFormat = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListAnalyzableServersCommand, } from "../commands/ListAnalyzableServersCommand";
|
|
2
|
+
import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListAnalyzableServersCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListAnalyzableServers(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof MigrationHubStrategyClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected MigrationHubStrategy | MigrationHubStrategyClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetServerDetailsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListAnalyzableServersPaginator";
|
|
3
4
|
export * from "./ListApplicationComponentsPaginator";
|
|
4
5
|
export * from "./ListCollectorsPaginator";
|
|
5
6
|
export * from "./ListImportFileTaskPaginator";
|
|
@@ -175,6 +175,28 @@ export const se_GetServerStrategiesCommand = async (input, context) => {
|
|
|
175
175
|
body,
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
|
+
export const se_ListAnalyzableServersCommand = async (input, context) => {
|
|
179
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
|
+
const headers = {
|
|
181
|
+
"content-type": "application/json",
|
|
182
|
+
};
|
|
183
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-analyzable-servers";
|
|
184
|
+
let body;
|
|
185
|
+
body = JSON.stringify(take(input, {
|
|
186
|
+
maxResults: [],
|
|
187
|
+
nextToken: [],
|
|
188
|
+
sort: [],
|
|
189
|
+
}));
|
|
190
|
+
return new __HttpRequest({
|
|
191
|
+
protocol,
|
|
192
|
+
hostname,
|
|
193
|
+
port,
|
|
194
|
+
method: "POST",
|
|
195
|
+
headers,
|
|
196
|
+
path: resolvedPath,
|
|
197
|
+
body,
|
|
198
|
+
});
|
|
199
|
+
};
|
|
178
200
|
export const se_ListApplicationComponentsCommand = async (input, context) => {
|
|
179
201
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
202
|
const headers = {
|
|
@@ -296,6 +318,7 @@ export const se_StartAssessmentCommand = async (input, context) => {
|
|
|
296
318
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-assessment";
|
|
297
319
|
let body;
|
|
298
320
|
body = JSON.stringify(take(input, {
|
|
321
|
+
assessmentDataSourceType: [],
|
|
299
322
|
assessmentTargets: (_) => _json(_),
|
|
300
323
|
s3bucketForAnalysisData: [],
|
|
301
324
|
s3bucketForReportData: [],
|
|
@@ -867,6 +890,49 @@ const de_GetServerStrategiesCommandError = async (output, context) => {
|
|
|
867
890
|
});
|
|
868
891
|
}
|
|
869
892
|
};
|
|
893
|
+
export const de_ListAnalyzableServersCommand = async (output, context) => {
|
|
894
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
895
|
+
return de_ListAnalyzableServersCommandError(output, context);
|
|
896
|
+
}
|
|
897
|
+
const contents = map({
|
|
898
|
+
$metadata: deserializeMetadata(output),
|
|
899
|
+
});
|
|
900
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
901
|
+
const doc = take(data, {
|
|
902
|
+
analyzableServers: _json,
|
|
903
|
+
nextToken: __expectString,
|
|
904
|
+
});
|
|
905
|
+
Object.assign(contents, doc);
|
|
906
|
+
return contents;
|
|
907
|
+
};
|
|
908
|
+
const de_ListAnalyzableServersCommandError = async (output, context) => {
|
|
909
|
+
const parsedOutput = {
|
|
910
|
+
...output,
|
|
911
|
+
body: await parseErrorBody(output.body, context),
|
|
912
|
+
};
|
|
913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
switch (errorCode) {
|
|
915
|
+
case "AccessDeniedException":
|
|
916
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
917
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
918
|
+
case "InternalServerException":
|
|
919
|
+
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
920
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
921
|
+
case "ThrottlingException":
|
|
922
|
+
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
923
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
924
|
+
case "ValidationException":
|
|
925
|
+
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
926
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
927
|
+
default:
|
|
928
|
+
const parsedBody = parsedOutput.body;
|
|
929
|
+
return throwDefaultError({
|
|
930
|
+
output,
|
|
931
|
+
parsedBody,
|
|
932
|
+
errorCode,
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
};
|
|
870
936
|
export const de_ListApplicationComponentsCommand = async (output, context) => {
|
|
871
937
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
938
|
return de_ListApplicationComponentsCommandError(output, context);
|
|
@@ -9,6 +9,7 @@ import { GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput } fro
|
|
|
9
9
|
import { GetRecommendationReportDetailsCommandInput, GetRecommendationReportDetailsCommandOutput } from "./commands/GetRecommendationReportDetailsCommand";
|
|
10
10
|
import { GetServerDetailsCommandInput, GetServerDetailsCommandOutput } from "./commands/GetServerDetailsCommand";
|
|
11
11
|
import { GetServerStrategiesCommandInput, GetServerStrategiesCommandOutput } from "./commands/GetServerStrategiesCommand";
|
|
12
|
+
import { ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput } from "./commands/ListAnalyzableServersCommand";
|
|
12
13
|
import { ListApplicationComponentsCommandInput, ListApplicationComponentsCommandOutput } from "./commands/ListApplicationComponentsCommand";
|
|
13
14
|
import { ListCollectorsCommandInput, ListCollectorsCommandOutput } from "./commands/ListCollectorsCommand";
|
|
14
15
|
import { ListImportFileTaskCommandInput, ListImportFileTaskCommandOutput } from "./commands/ListImportFileTaskCommand";
|
|
@@ -82,6 +83,12 @@ export interface MigrationHubStrategy {
|
|
|
82
83
|
getServerStrategies(args: GetServerStrategiesCommandInput, options?: __HttpHandlerOptions): Promise<GetServerStrategiesCommandOutput>;
|
|
83
84
|
getServerStrategies(args: GetServerStrategiesCommandInput, cb: (err: any, data?: GetServerStrategiesCommandOutput) => void): void;
|
|
84
85
|
getServerStrategies(args: GetServerStrategiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServerStrategiesCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link ListAnalyzableServersCommand}
|
|
88
|
+
*/
|
|
89
|
+
listAnalyzableServers(args: ListAnalyzableServersCommandInput, options?: __HttpHandlerOptions): Promise<ListAnalyzableServersCommandOutput>;
|
|
90
|
+
listAnalyzableServers(args: ListAnalyzableServersCommandInput, cb: (err: any, data?: ListAnalyzableServersCommandOutput) => void): void;
|
|
91
|
+
listAnalyzableServers(args: ListAnalyzableServersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAnalyzableServersCommandOutput) => void): void;
|
|
85
92
|
/**
|
|
86
93
|
* @see {@link ListApplicationComponentsCommand}
|
|
87
94
|
*/
|
|
@@ -18,6 +18,7 @@ import { GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput } fro
|
|
|
18
18
|
import { GetRecommendationReportDetailsCommandInput, GetRecommendationReportDetailsCommandOutput } from "./commands/GetRecommendationReportDetailsCommand";
|
|
19
19
|
import { GetServerDetailsCommandInput, GetServerDetailsCommandOutput } from "./commands/GetServerDetailsCommand";
|
|
20
20
|
import { GetServerStrategiesCommandInput, GetServerStrategiesCommandOutput } from "./commands/GetServerStrategiesCommand";
|
|
21
|
+
import { ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput } from "./commands/ListAnalyzableServersCommand";
|
|
21
22
|
import { ListApplicationComponentsCommandInput, ListApplicationComponentsCommandOutput } from "./commands/ListApplicationComponentsCommand";
|
|
22
23
|
import { ListCollectorsCommandInput, ListCollectorsCommandOutput } from "./commands/ListCollectorsCommand";
|
|
23
24
|
import { ListImportFileTaskCommandInput, ListImportFileTaskCommandOutput } from "./commands/ListImportFileTaskCommand";
|
|
@@ -35,11 +36,11 @@ export { __Client };
|
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
38
|
-
export type ServiceInputTypes = GetApplicationComponentDetailsCommandInput | GetApplicationComponentStrategiesCommandInput | GetAssessmentCommandInput | GetImportFileTaskCommandInput | GetLatestAssessmentIdCommandInput | GetPortfolioPreferencesCommandInput | GetPortfolioSummaryCommandInput | GetRecommendationReportDetailsCommandInput | GetServerDetailsCommandInput | GetServerStrategiesCommandInput | ListApplicationComponentsCommandInput | ListCollectorsCommandInput | ListImportFileTaskCommandInput | ListServersCommandInput | PutPortfolioPreferencesCommandInput | StartAssessmentCommandInput | StartImportFileTaskCommandInput | StartRecommendationReportGenerationCommandInput | StopAssessmentCommandInput | UpdateApplicationComponentConfigCommandInput | UpdateServerConfigCommandInput;
|
|
39
|
+
export type ServiceInputTypes = GetApplicationComponentDetailsCommandInput | GetApplicationComponentStrategiesCommandInput | GetAssessmentCommandInput | GetImportFileTaskCommandInput | GetLatestAssessmentIdCommandInput | GetPortfolioPreferencesCommandInput | GetPortfolioSummaryCommandInput | GetRecommendationReportDetailsCommandInput | GetServerDetailsCommandInput | GetServerStrategiesCommandInput | ListAnalyzableServersCommandInput | ListApplicationComponentsCommandInput | ListCollectorsCommandInput | ListImportFileTaskCommandInput | ListServersCommandInput | PutPortfolioPreferencesCommandInput | StartAssessmentCommandInput | StartImportFileTaskCommandInput | StartRecommendationReportGenerationCommandInput | StopAssessmentCommandInput | UpdateApplicationComponentConfigCommandInput | UpdateServerConfigCommandInput;
|
|
39
40
|
/**
|
|
40
41
|
* @public
|
|
41
42
|
*/
|
|
42
|
-
export type ServiceOutputTypes = GetApplicationComponentDetailsCommandOutput | GetApplicationComponentStrategiesCommandOutput | GetAssessmentCommandOutput | GetImportFileTaskCommandOutput | GetLatestAssessmentIdCommandOutput | GetPortfolioPreferencesCommandOutput | GetPortfolioSummaryCommandOutput | GetRecommendationReportDetailsCommandOutput | GetServerDetailsCommandOutput | GetServerStrategiesCommandOutput | ListApplicationComponentsCommandOutput | ListCollectorsCommandOutput | ListImportFileTaskCommandOutput | ListServersCommandOutput | PutPortfolioPreferencesCommandOutput | StartAssessmentCommandOutput | StartImportFileTaskCommandOutput | StartRecommendationReportGenerationCommandOutput | StopAssessmentCommandOutput | UpdateApplicationComponentConfigCommandOutput | UpdateServerConfigCommandOutput;
|
|
43
|
+
export type ServiceOutputTypes = GetApplicationComponentDetailsCommandOutput | GetApplicationComponentStrategiesCommandOutput | GetAssessmentCommandOutput | GetImportFileTaskCommandOutput | GetLatestAssessmentIdCommandOutput | GetPortfolioPreferencesCommandOutput | GetPortfolioSummaryCommandOutput | GetRecommendationReportDetailsCommandOutput | GetServerDetailsCommandOutput | GetServerStrategiesCommandOutput | ListAnalyzableServersCommandOutput | ListApplicationComponentsCommandOutput | ListCollectorsCommandOutput | ListImportFileTaskCommandOutput | ListServersCommandOutput | PutPortfolioPreferencesCommandOutput | StartAssessmentCommandOutput | StartImportFileTaskCommandOutput | StartRecommendationReportGenerationCommandOutput | StopAssessmentCommandOutput | UpdateApplicationComponentConfigCommandOutput | UpdateServerConfigCommandOutput;
|
|
43
44
|
/**
|
|
44
45
|
* @public
|
|
45
46
|
*/
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
|
|
5
|
+
import { ListAnalyzableServersRequest, ListAnalyzableServersResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAnalyzableServersCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAnalyzableServersCommandInput extends ListAnalyzableServersRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAnalyzableServersCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAnalyzableServersCommandOutput extends ListAnalyzableServersResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { MigrationHubStrategyClient, ListAnalyzableServersCommand } from "@aws-sdk/client-migrationhubstrategy"; // ES Modules import
|
|
31
|
+
* // const { MigrationHubStrategyClient, ListAnalyzableServersCommand } = require("@aws-sdk/client-migrationhubstrategy"); // CommonJS import
|
|
32
|
+
* const client = new MigrationHubStrategyClient(config);
|
|
33
|
+
* const input = { // ListAnalyzableServersRequest
|
|
34
|
+
* sort: "STRING_VALUE",
|
|
35
|
+
* nextToken: "STRING_VALUE",
|
|
36
|
+
* maxResults: Number("int"),
|
|
37
|
+
* };
|
|
38
|
+
* const command = new ListAnalyzableServersCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // ListAnalyzableServersResponse
|
|
41
|
+
* // analyzableServers: [ // AnalyzableServerSummaryList
|
|
42
|
+
* // { // AnalyzableServerSummary
|
|
43
|
+
* // hostname: "STRING_VALUE",
|
|
44
|
+
* // ipAddress: "STRING_VALUE",
|
|
45
|
+
* // source: "STRING_VALUE",
|
|
46
|
+
* // vmId: "STRING_VALUE",
|
|
47
|
+
* // },
|
|
48
|
+
* // ],
|
|
49
|
+
* // nextToken: "STRING_VALUE",
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ListAnalyzableServersCommandInput - {@link ListAnalyzableServersCommandInput}
|
|
55
|
+
* @returns {@link ListAnalyzableServersCommandOutput}
|
|
56
|
+
* @see {@link ListAnalyzableServersCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ListAnalyzableServersCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link MigrationHubStrategyClientResolvedConfig | config} for MigrationHubStrategyClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p> The user does not have permission to perform the action. Check the
|
|
62
|
+
* AWS Identity and Access Management (IAM) policy associated with this user.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link InternalServerException} (server fault)
|
|
65
|
+
* <p> The server experienced an internal error. Try again. </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
68
|
+
* <p> The request was denied due to request throttling. </p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ValidationException} (client fault)
|
|
71
|
+
* <p> The request body isn't valid. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link MigrationHubStrategyServiceException}
|
|
74
|
+
* <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export declare class ListAnalyzableServersCommand extends $Command<ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput, MigrationHubStrategyClientResolvedConfig> {
|
|
78
|
+
readonly input: ListAnalyzableServersCommandInput;
|
|
79
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
constructor(input: ListAnalyzableServersCommandInput);
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput>;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
private serialize;
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
private deserialize;
|
|
96
|
+
}
|
|
@@ -42,6 +42,7 @@ export interface StartAssessmentCommandOutput extends StartAssessmentResponse, _
|
|
|
42
42
|
* ],
|
|
43
43
|
* },
|
|
44
44
|
* ],
|
|
45
|
+
* assessmentDataSourceType: "STRING_VALUE",
|
|
45
46
|
* };
|
|
46
47
|
* const command = new StartAssessmentCommand(input);
|
|
47
48
|
* const response = await client.send(command);
|
|
@@ -8,6 +8,7 @@ export * from "./GetPortfolioSummaryCommand";
|
|
|
8
8
|
export * from "./GetRecommendationReportDetailsCommand";
|
|
9
9
|
export * from "./GetServerDetailsCommand";
|
|
10
10
|
export * from "./GetServerStrategiesCommand";
|
|
11
|
+
export * from "./ListAnalyzableServersCommand";
|
|
11
12
|
export * from "./ListApplicationComponentsCommand";
|
|
12
13
|
export * from "./ListCollectorsCommand";
|
|
13
14
|
export * from "./ListImportFileTaskCommand";
|
|
@@ -100,6 +100,32 @@ export declare const AnalysisType: {
|
|
|
100
100
|
* @public
|
|
101
101
|
*/
|
|
102
102
|
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
103
|
+
/**
|
|
104
|
+
* @public
|
|
105
|
+
* Summary information about an analyzable server.
|
|
106
|
+
*/
|
|
107
|
+
export interface AnalyzableServerSummary {
|
|
108
|
+
/**
|
|
109
|
+
* @public
|
|
110
|
+
* The host name of the analyzable server.
|
|
111
|
+
*/
|
|
112
|
+
hostname?: string;
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
* The ip address of the analyzable server.
|
|
116
|
+
*/
|
|
117
|
+
ipAddress?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
* The data source of the analyzable server.
|
|
121
|
+
*/
|
|
122
|
+
source?: string;
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
* The virtual machine id of the analyzable server.
|
|
126
|
+
*/
|
|
127
|
+
vmId?: string;
|
|
128
|
+
}
|
|
103
129
|
/**
|
|
104
130
|
* @public
|
|
105
131
|
* @enum
|
|
@@ -900,6 +926,19 @@ export interface ApplicationPreferences {
|
|
|
900
926
|
*/
|
|
901
927
|
managementPreference?: ManagementPreference;
|
|
902
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* @public
|
|
931
|
+
* @enum
|
|
932
|
+
*/
|
|
933
|
+
export declare const AssessmentDataSourceType: {
|
|
934
|
+
readonly ADS: "ApplicationDiscoveryService";
|
|
935
|
+
readonly MANUAL_IMPORT: "ManualImport";
|
|
936
|
+
readonly SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector";
|
|
937
|
+
};
|
|
938
|
+
/**
|
|
939
|
+
* @public
|
|
940
|
+
*/
|
|
941
|
+
export type AssessmentDataSourceType = (typeof AssessmentDataSourceType)[keyof typeof AssessmentDataSourceType];
|
|
903
942
|
/**
|
|
904
943
|
* @public
|
|
905
944
|
* @enum
|
|
@@ -2021,6 +2060,55 @@ export interface GetServerStrategiesResponse {
|
|
|
2021
2060
|
*/
|
|
2022
2061
|
serverStrategies?: ServerStrategy[];
|
|
2023
2062
|
}
|
|
2063
|
+
/**
|
|
2064
|
+
* @public
|
|
2065
|
+
* @enum
|
|
2066
|
+
*/
|
|
2067
|
+
export declare const SortOrder: {
|
|
2068
|
+
readonly ASC: "ASC";
|
|
2069
|
+
readonly DESC: "DESC";
|
|
2070
|
+
};
|
|
2071
|
+
/**
|
|
2072
|
+
* @public
|
|
2073
|
+
*/
|
|
2074
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
2075
|
+
/**
|
|
2076
|
+
* @public
|
|
2077
|
+
* Represents input for ListAnalyzableServers operation.
|
|
2078
|
+
*/
|
|
2079
|
+
export interface ListAnalyzableServersRequest {
|
|
2080
|
+
/**
|
|
2081
|
+
* @public
|
|
2082
|
+
* Specifies whether to sort by ascending (ASC) or descending (DESC) order.
|
|
2083
|
+
*/
|
|
2084
|
+
sort?: SortOrder;
|
|
2085
|
+
/**
|
|
2086
|
+
* @public
|
|
2087
|
+
* The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.
|
|
2088
|
+
*/
|
|
2089
|
+
nextToken?: string;
|
|
2090
|
+
/**
|
|
2091
|
+
* @public
|
|
2092
|
+
* The maximum number of items to include in the response. The maximum value is 100.
|
|
2093
|
+
*/
|
|
2094
|
+
maxResults?: number;
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* @public
|
|
2098
|
+
* Represents output for ListAnalyzableServers operation.
|
|
2099
|
+
*/
|
|
2100
|
+
export interface ListAnalyzableServersResponse {
|
|
2101
|
+
/**
|
|
2102
|
+
* @public
|
|
2103
|
+
* The list of analyzable servers with summary information about each server.
|
|
2104
|
+
*/
|
|
2105
|
+
analyzableServers?: AnalyzableServerSummary[];
|
|
2106
|
+
/**
|
|
2107
|
+
* @public
|
|
2108
|
+
* The token you use to retrieve the next set of results, or null if there are no more results.
|
|
2109
|
+
*/
|
|
2110
|
+
nextToken?: string;
|
|
2111
|
+
}
|
|
2024
2112
|
/**
|
|
2025
2113
|
* @public
|
|
2026
2114
|
* @enum
|
|
@@ -2049,18 +2137,6 @@ export interface Group {
|
|
|
2049
2137
|
*/
|
|
2050
2138
|
value?: string;
|
|
2051
2139
|
}
|
|
2052
|
-
/**
|
|
2053
|
-
* @public
|
|
2054
|
-
* @enum
|
|
2055
|
-
*/
|
|
2056
|
-
export declare const SortOrder: {
|
|
2057
|
-
readonly ASC: "ASC";
|
|
2058
|
-
readonly DESC: "DESC";
|
|
2059
|
-
};
|
|
2060
|
-
/**
|
|
2061
|
-
* @public
|
|
2062
|
-
*/
|
|
2063
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
2064
2140
|
/**
|
|
2065
2141
|
* @public
|
|
2066
2142
|
*/
|
|
@@ -2600,6 +2676,11 @@ export interface StartAssessmentRequest {
|
|
|
2600
2676
|
* <p>List of criteria for assessment.</p>
|
|
2601
2677
|
*/
|
|
2602
2678
|
assessmentTargets?: AssessmentTarget[];
|
|
2679
|
+
/**
|
|
2680
|
+
* @public
|
|
2681
|
+
* The data source type of an assessment to be started.
|
|
2682
|
+
*/
|
|
2683
|
+
assessmentDataSourceType?: AssessmentDataSourceType;
|
|
2603
2684
|
}
|
|
2604
2685
|
/**
|
|
2605
2686
|
* @public
|
|
@@ -2618,6 +2699,7 @@ export interface StartAssessmentResponse {
|
|
|
2618
2699
|
export declare const DataSourceType: {
|
|
2619
2700
|
readonly ADS: "ApplicationDiscoveryService";
|
|
2620
2701
|
readonly IMPORT: "Import";
|
|
2702
|
+
readonly MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector";
|
|
2621
2703
|
readonly MPA: "MPA";
|
|
2622
2704
|
};
|
|
2623
2705
|
/**
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput } from "../commands/ListAnalyzableServersCommand";
|
|
3
|
+
import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListAnalyzableServers(config: MigrationHubStrategyPaginationConfiguration, input: ListAnalyzableServersCommandInput, ...additionalArguments: any): Paginator<ListAnalyzableServersCommandOutput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetServerDetailsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListAnalyzableServersPaginator";
|
|
3
4
|
export * from "./ListApplicationComponentsPaginator";
|
|
4
5
|
export * from "./ListCollectorsPaginator";
|
|
5
6
|
export * from "./ListImportFileTaskPaginator";
|
|
@@ -10,6 +10,7 @@ import { GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput } fro
|
|
|
10
10
|
import { GetRecommendationReportDetailsCommandInput, GetRecommendationReportDetailsCommandOutput } from "../commands/GetRecommendationReportDetailsCommand";
|
|
11
11
|
import { GetServerDetailsCommandInput, GetServerDetailsCommandOutput } from "../commands/GetServerDetailsCommand";
|
|
12
12
|
import { GetServerStrategiesCommandInput, GetServerStrategiesCommandOutput } from "../commands/GetServerStrategiesCommand";
|
|
13
|
+
import { ListAnalyzableServersCommandInput, ListAnalyzableServersCommandOutput } from "../commands/ListAnalyzableServersCommand";
|
|
13
14
|
import { ListApplicationComponentsCommandInput, ListApplicationComponentsCommandOutput } from "../commands/ListApplicationComponentsCommand";
|
|
14
15
|
import { ListCollectorsCommandInput, ListCollectorsCommandOutput } from "../commands/ListCollectorsCommand";
|
|
15
16
|
import { ListImportFileTaskCommandInput, ListImportFileTaskCommandOutput } from "../commands/ListImportFileTaskCommand";
|
|
@@ -61,6 +62,10 @@ export declare const se_GetServerDetailsCommand: (input: GetServerDetailsCommand
|
|
|
61
62
|
* serializeAws_restJson1GetServerStrategiesCommand
|
|
62
63
|
*/
|
|
63
64
|
export declare const se_GetServerStrategiesCommand: (input: GetServerStrategiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
|
+
/**
|
|
66
|
+
* serializeAws_restJson1ListAnalyzableServersCommand
|
|
67
|
+
*/
|
|
68
|
+
export declare const se_ListAnalyzableServersCommand: (input: ListAnalyzableServersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
69
|
/**
|
|
65
70
|
* serializeAws_restJson1ListApplicationComponentsCommand
|
|
66
71
|
*/
|
|
@@ -145,6 +150,10 @@ export declare const de_GetServerDetailsCommand: (output: __HttpResponse, contex
|
|
|
145
150
|
* deserializeAws_restJson1GetServerStrategiesCommand
|
|
146
151
|
*/
|
|
147
152
|
export declare const de_GetServerStrategiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetServerStrategiesCommandOutput>;
|
|
153
|
+
/**
|
|
154
|
+
* deserializeAws_restJson1ListAnalyzableServersCommand
|
|
155
|
+
*/
|
|
156
|
+
export declare const de_ListAnalyzableServersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAnalyzableServersCommandOutput>;
|
|
148
157
|
/**
|
|
149
158
|
* deserializeAws_restJson1ListApplicationComponentsCommand
|
|
150
159
|
*/
|
|
@@ -39,6 +39,10 @@ import {
|
|
|
39
39
|
GetServerStrategiesCommandInput,
|
|
40
40
|
GetServerStrategiesCommandOutput,
|
|
41
41
|
} from "./commands/GetServerStrategiesCommand";
|
|
42
|
+
import {
|
|
43
|
+
ListAnalyzableServersCommandInput,
|
|
44
|
+
ListAnalyzableServersCommandOutput,
|
|
45
|
+
} from "./commands/ListAnalyzableServersCommand";
|
|
42
46
|
import {
|
|
43
47
|
ListApplicationComponentsCommandInput,
|
|
44
48
|
ListApplicationComponentsCommandOutput,
|
|
@@ -221,6 +225,19 @@ export interface MigrationHubStrategy {
|
|
|
221
225
|
options: __HttpHandlerOptions,
|
|
222
226
|
cb: (err: any, data?: GetServerStrategiesCommandOutput) => void
|
|
223
227
|
): void;
|
|
228
|
+
listAnalyzableServers(
|
|
229
|
+
args: ListAnalyzableServersCommandInput,
|
|
230
|
+
options?: __HttpHandlerOptions
|
|
231
|
+
): Promise<ListAnalyzableServersCommandOutput>;
|
|
232
|
+
listAnalyzableServers(
|
|
233
|
+
args: ListAnalyzableServersCommandInput,
|
|
234
|
+
cb: (err: any, data?: ListAnalyzableServersCommandOutput) => void
|
|
235
|
+
): void;
|
|
236
|
+
listAnalyzableServers(
|
|
237
|
+
args: ListAnalyzableServersCommandInput,
|
|
238
|
+
options: __HttpHandlerOptions,
|
|
239
|
+
cb: (err: any, data?: ListAnalyzableServersCommandOutput) => void
|
|
240
|
+
): void;
|
|
224
241
|
listApplicationComponents(
|
|
225
242
|
args: ListApplicationComponentsCommandInput,
|
|
226
243
|
options?: __HttpHandlerOptions
|
|
@@ -85,6 +85,10 @@ import {
|
|
|
85
85
|
GetServerStrategiesCommandInput,
|
|
86
86
|
GetServerStrategiesCommandOutput,
|
|
87
87
|
} from "./commands/GetServerStrategiesCommand";
|
|
88
|
+
import {
|
|
89
|
+
ListAnalyzableServersCommandInput,
|
|
90
|
+
ListAnalyzableServersCommandOutput,
|
|
91
|
+
} from "./commands/ListAnalyzableServersCommand";
|
|
88
92
|
import {
|
|
89
93
|
ListApplicationComponentsCommandInput,
|
|
90
94
|
ListApplicationComponentsCommandOutput,
|
|
@@ -147,6 +151,7 @@ export type ServiceInputTypes =
|
|
|
147
151
|
| GetRecommendationReportDetailsCommandInput
|
|
148
152
|
| GetServerDetailsCommandInput
|
|
149
153
|
| GetServerStrategiesCommandInput
|
|
154
|
+
| ListAnalyzableServersCommandInput
|
|
150
155
|
| ListApplicationComponentsCommandInput
|
|
151
156
|
| ListCollectorsCommandInput
|
|
152
157
|
| ListImportFileTaskCommandInput
|
|
@@ -169,6 +174,7 @@ export type ServiceOutputTypes =
|
|
|
169
174
|
| GetRecommendationReportDetailsCommandOutput
|
|
170
175
|
| GetServerDetailsCommandOutput
|
|
171
176
|
| GetServerStrategiesCommandOutput
|
|
177
|
+
| ListAnalyzableServersCommandOutput
|
|
172
178
|
| ListApplicationComponentsCommandOutput
|
|
173
179
|
| ListCollectorsCommandOutput
|
|
174
180
|
| ListImportFileTaskCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
MigrationHubStrategyClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../MigrationHubStrategyClient";
|
|
14
|
+
import {
|
|
15
|
+
ListAnalyzableServersRequest,
|
|
16
|
+
ListAnalyzableServersResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface ListAnalyzableServersCommandInput
|
|
20
|
+
extends ListAnalyzableServersRequest {}
|
|
21
|
+
export interface ListAnalyzableServersCommandOutput
|
|
22
|
+
extends ListAnalyzableServersResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class ListAnalyzableServersCommand extends $Command<
|
|
25
|
+
ListAnalyzableServersCommandInput,
|
|
26
|
+
ListAnalyzableServersCommandOutput,
|
|
27
|
+
MigrationHubStrategyClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: ListAnalyzableServersCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: ListAnalyzableServersCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: MigrationHubStrategyClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
ListAnalyzableServersCommandInput,
|
|
38
|
+
ListAnalyzableServersCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./GetPortfolioSummaryCommand";
|
|
|
8
8
|
export * from "./GetRecommendationReportDetailsCommand";
|
|
9
9
|
export * from "./GetServerDetailsCommand";
|
|
10
10
|
export * from "./GetServerStrategiesCommand";
|
|
11
|
+
export * from "./ListAnalyzableServersCommand";
|
|
11
12
|
export * from "./ListApplicationComponentsCommand";
|
|
12
13
|
export * from "./ListCollectorsCommand";
|
|
13
14
|
export * from "./ListImportFileTaskCommand";
|
|
@@ -60,6 +60,12 @@ export declare const AnalysisType: {
|
|
|
60
60
|
readonly SOURCE_CODE_ANALYSIS: "SOURCE_CODE_ANALYSIS";
|
|
61
61
|
};
|
|
62
62
|
export type AnalysisType = (typeof AnalysisType)[keyof typeof AnalysisType];
|
|
63
|
+
export interface AnalyzableServerSummary {
|
|
64
|
+
hostname?: string;
|
|
65
|
+
ipAddress?: string;
|
|
66
|
+
source?: string;
|
|
67
|
+
vmId?: string;
|
|
68
|
+
}
|
|
63
69
|
export declare const BinaryAnalyzerName: {
|
|
64
70
|
readonly BYTECODE_ANALYZER: "BYTECODE_ANALYZER";
|
|
65
71
|
readonly DLL_ANALYZER: "DLL_ANALYZER";
|
|
@@ -405,6 +411,13 @@ export declare namespace ManagementPreference {
|
|
|
405
411
|
export interface ApplicationPreferences {
|
|
406
412
|
managementPreference?: ManagementPreference;
|
|
407
413
|
}
|
|
414
|
+
export declare const AssessmentDataSourceType: {
|
|
415
|
+
readonly ADS: "ApplicationDiscoveryService";
|
|
416
|
+
readonly MANUAL_IMPORT: "ManualImport";
|
|
417
|
+
readonly SR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector";
|
|
418
|
+
};
|
|
419
|
+
export type AssessmentDataSourceType =
|
|
420
|
+
(typeof AssessmentDataSourceType)[keyof typeof AssessmentDataSourceType];
|
|
408
421
|
export declare const AssessmentStatus: {
|
|
409
422
|
readonly COMPLETE: "COMPLETE";
|
|
410
423
|
readonly FAILED: "FAILED";
|
|
@@ -786,6 +799,20 @@ export interface ServerStrategy {
|
|
|
786
799
|
export interface GetServerStrategiesResponse {
|
|
787
800
|
serverStrategies?: ServerStrategy[];
|
|
788
801
|
}
|
|
802
|
+
export declare const SortOrder: {
|
|
803
|
+
readonly ASC: "ASC";
|
|
804
|
+
readonly DESC: "DESC";
|
|
805
|
+
};
|
|
806
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
807
|
+
export interface ListAnalyzableServersRequest {
|
|
808
|
+
sort?: SortOrder;
|
|
809
|
+
nextToken?: string;
|
|
810
|
+
maxResults?: number;
|
|
811
|
+
}
|
|
812
|
+
export interface ListAnalyzableServersResponse {
|
|
813
|
+
analyzableServers?: AnalyzableServerSummary[];
|
|
814
|
+
nextToken?: string;
|
|
815
|
+
}
|
|
789
816
|
export declare const GroupName: {
|
|
790
817
|
readonly EXTERNAL_ID: "ExternalId";
|
|
791
818
|
readonly EXTERNAL_SOURCE_TYPE: "ExternalSourceType";
|
|
@@ -795,11 +822,6 @@ export interface Group {
|
|
|
795
822
|
name?: GroupName;
|
|
796
823
|
value?: string;
|
|
797
824
|
}
|
|
798
|
-
export declare const SortOrder: {
|
|
799
|
-
readonly ASC: "ASC";
|
|
800
|
-
readonly DESC: "DESC";
|
|
801
|
-
};
|
|
802
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
803
825
|
export interface ListApplicationComponentsRequest {
|
|
804
826
|
applicationComponentCriteria?: ApplicationComponentCriteria;
|
|
805
827
|
filterValue?: string;
|
|
@@ -951,6 +973,7 @@ export interface StartAssessmentRequest {
|
|
|
951
973
|
s3bucketForAnalysisData?: string;
|
|
952
974
|
s3bucketForReportData?: string;
|
|
953
975
|
assessmentTargets?: AssessmentTarget[];
|
|
976
|
+
assessmentDataSourceType?: AssessmentDataSourceType;
|
|
954
977
|
}
|
|
955
978
|
export interface StartAssessmentResponse {
|
|
956
979
|
assessmentId?: string;
|
|
@@ -958,6 +981,7 @@ export interface StartAssessmentResponse {
|
|
|
958
981
|
export declare const DataSourceType: {
|
|
959
982
|
readonly ADS: "ApplicationDiscoveryService";
|
|
960
983
|
readonly IMPORT: "Import";
|
|
984
|
+
readonly MHSR_COLLECTOR: "StrategyRecommendationsApplicationDataCollector";
|
|
961
985
|
readonly MPA: "MPA";
|
|
962
986
|
};
|
|
963
987
|
export type DataSourceType =
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListAnalyzableServersCommandInput,
|
|
4
|
+
ListAnalyzableServersCommandOutput,
|
|
5
|
+
} from "../commands/ListAnalyzableServersCommand";
|
|
6
|
+
import { MigrationHubStrategyPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare function paginateListAnalyzableServers(
|
|
8
|
+
config: MigrationHubStrategyPaginationConfiguration,
|
|
9
|
+
input: ListAnalyzableServersCommandInput,
|
|
10
|
+
...additionalArguments: any
|
|
11
|
+
): Paginator<ListAnalyzableServersCommandOutput>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./GetServerDetailsPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListAnalyzableServersPaginator";
|
|
3
4
|
export * from "./ListApplicationComponentsPaginator";
|
|
4
5
|
export * from "./ListCollectorsPaginator";
|
|
5
6
|
export * from "./ListImportFileTaskPaginator";
|
|
@@ -43,6 +43,10 @@ import {
|
|
|
43
43
|
GetServerStrategiesCommandInput,
|
|
44
44
|
GetServerStrategiesCommandOutput,
|
|
45
45
|
} from "../commands/GetServerStrategiesCommand";
|
|
46
|
+
import {
|
|
47
|
+
ListAnalyzableServersCommandInput,
|
|
48
|
+
ListAnalyzableServersCommandOutput,
|
|
49
|
+
} from "../commands/ListAnalyzableServersCommand";
|
|
46
50
|
import {
|
|
47
51
|
ListApplicationComponentsCommandInput,
|
|
48
52
|
ListApplicationComponentsCommandOutput,
|
|
@@ -127,6 +131,10 @@ export declare const se_GetServerStrategiesCommand: (
|
|
|
127
131
|
input: GetServerStrategiesCommandInput,
|
|
128
132
|
context: __SerdeContext
|
|
129
133
|
) => Promise<__HttpRequest>;
|
|
134
|
+
export declare const se_ListAnalyzableServersCommand: (
|
|
135
|
+
input: ListAnalyzableServersCommandInput,
|
|
136
|
+
context: __SerdeContext
|
|
137
|
+
) => Promise<__HttpRequest>;
|
|
130
138
|
export declare const se_ListApplicationComponentsCommand: (
|
|
131
139
|
input: ListApplicationComponentsCommandInput,
|
|
132
140
|
context: __SerdeContext
|
|
@@ -211,6 +219,10 @@ export declare const de_GetServerStrategiesCommand: (
|
|
|
211
219
|
output: __HttpResponse,
|
|
212
220
|
context: __SerdeContext
|
|
213
221
|
) => Promise<GetServerStrategiesCommandOutput>;
|
|
222
|
+
export declare const de_ListAnalyzableServersCommand: (
|
|
223
|
+
output: __HttpResponse,
|
|
224
|
+
context: __SerdeContext
|
|
225
|
+
) => Promise<ListAnalyzableServersCommandOutput>;
|
|
214
226
|
export declare const de_ListApplicationComponentsCommand: (
|
|
215
227
|
output: __HttpResponse,
|
|
216
228
|
context: __SerdeContext
|
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.435.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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.435.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.435.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|