@aws-sdk/client-migrationhubstrategy 3.433.0 → 3.436.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-cjs/runtimeConfig.js +2 -0
- package/dist-cjs/runtimeConfig.shared.js +15 -13
- 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-es/runtimeConfig.js +2 -0
- package/dist-es/runtimeConfig.shared.js +15 -13
- 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 +4 -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);
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2020-02-19",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "MigrationHubStrategy",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -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);
|