@aws-sdk/client-migrationhubstrategy 3.477.0 → 3.481.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.
Files changed (117) hide show
  1. package/dist-cjs/commands/GetApplicationComponentDetailsCommand.js +18 -41
  2. package/dist-cjs/commands/GetApplicationComponentStrategiesCommand.js +18 -41
  3. package/dist-cjs/commands/GetAssessmentCommand.js +18 -41
  4. package/dist-cjs/commands/GetImportFileTaskCommand.js +18 -41
  5. package/dist-cjs/commands/GetLatestAssessmentIdCommand.js +18 -41
  6. package/dist-cjs/commands/GetPortfolioPreferencesCommand.js +18 -41
  7. package/dist-cjs/commands/GetPortfolioSummaryCommand.js +18 -41
  8. package/dist-cjs/commands/GetRecommendationReportDetailsCommand.js +18 -41
  9. package/dist-cjs/commands/GetServerDetailsCommand.js +18 -41
  10. package/dist-cjs/commands/GetServerStrategiesCommand.js +18 -41
  11. package/dist-cjs/commands/ListAnalyzableServersCommand.js +18 -41
  12. package/dist-cjs/commands/ListApplicationComponentsCommand.js +18 -41
  13. package/dist-cjs/commands/ListCollectorsCommand.js +18 -41
  14. package/dist-cjs/commands/ListImportFileTaskCommand.js +18 -41
  15. package/dist-cjs/commands/ListServersCommand.js +18 -41
  16. package/dist-cjs/commands/PutPortfolioPreferencesCommand.js +18 -41
  17. package/dist-cjs/commands/StartAssessmentCommand.js +18 -41
  18. package/dist-cjs/commands/StartImportFileTaskCommand.js +18 -41
  19. package/dist-cjs/commands/StartRecommendationReportGenerationCommand.js +18 -41
  20. package/dist-cjs/commands/StopAssessmentCommand.js +18 -41
  21. package/dist-cjs/commands/UpdateApplicationComponentConfigCommand.js +18 -41
  22. package/dist-cjs/commands/UpdateServerConfigCommand.js +18 -41
  23. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  24. package/dist-cjs/pagination/GetServerDetailsPaginator.js +2 -24
  25. package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +2 -24
  26. package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +2 -24
  27. package/dist-cjs/pagination/ListCollectorsPaginator.js +2 -24
  28. package/dist-cjs/pagination/ListImportFileTaskPaginator.js +2 -24
  29. package/dist-cjs/pagination/ListServersPaginator.js +2 -24
  30. package/dist-es/commands/GetApplicationComponentDetailsCommand.js +18 -41
  31. package/dist-es/commands/GetApplicationComponentStrategiesCommand.js +18 -41
  32. package/dist-es/commands/GetAssessmentCommand.js +18 -41
  33. package/dist-es/commands/GetImportFileTaskCommand.js +18 -41
  34. package/dist-es/commands/GetLatestAssessmentIdCommand.js +18 -41
  35. package/dist-es/commands/GetPortfolioPreferencesCommand.js +18 -41
  36. package/dist-es/commands/GetPortfolioSummaryCommand.js +18 -41
  37. package/dist-es/commands/GetRecommendationReportDetailsCommand.js +18 -41
  38. package/dist-es/commands/GetServerDetailsCommand.js +18 -41
  39. package/dist-es/commands/GetServerStrategiesCommand.js +18 -41
  40. package/dist-es/commands/ListAnalyzableServersCommand.js +18 -41
  41. package/dist-es/commands/ListApplicationComponentsCommand.js +18 -41
  42. package/dist-es/commands/ListCollectorsCommand.js +18 -41
  43. package/dist-es/commands/ListImportFileTaskCommand.js +18 -41
  44. package/dist-es/commands/ListServersCommand.js +18 -41
  45. package/dist-es/commands/PutPortfolioPreferencesCommand.js +18 -41
  46. package/dist-es/commands/StartAssessmentCommand.js +18 -41
  47. package/dist-es/commands/StartImportFileTaskCommand.js +18 -41
  48. package/dist-es/commands/StartRecommendationReportGenerationCommand.js +18 -41
  49. package/dist-es/commands/StopAssessmentCommand.js +18 -41
  50. package/dist-es/commands/UpdateApplicationComponentConfigCommand.js +18 -41
  51. package/dist-es/commands/UpdateServerConfigCommand.js +18 -41
  52. package/dist-es/endpoint/EndpointParameters.js +6 -0
  53. package/dist-es/pagination/GetServerDetailsPaginator.js +2 -23
  54. package/dist-es/pagination/ListAnalyzableServersPaginator.js +2 -23
  55. package/dist-es/pagination/ListApplicationComponentsPaginator.js +2 -23
  56. package/dist-es/pagination/ListCollectorsPaginator.js +2 -23
  57. package/dist-es/pagination/ListImportFileTaskPaginator.js +2 -23
  58. package/dist-es/pagination/ListServersPaginator.js +2 -23
  59. package/dist-types/commands/GetApplicationComponentDetailsCommand.d.ts +6 -21
  60. package/dist-types/commands/GetApplicationComponentStrategiesCommand.d.ts +6 -21
  61. package/dist-types/commands/GetAssessmentCommand.d.ts +6 -21
  62. package/dist-types/commands/GetImportFileTaskCommand.d.ts +6 -21
  63. package/dist-types/commands/GetLatestAssessmentIdCommand.d.ts +6 -21
  64. package/dist-types/commands/GetPortfolioPreferencesCommand.d.ts +6 -21
  65. package/dist-types/commands/GetPortfolioSummaryCommand.d.ts +6 -21
  66. package/dist-types/commands/GetRecommendationReportDetailsCommand.d.ts +6 -21
  67. package/dist-types/commands/GetServerDetailsCommand.d.ts +6 -21
  68. package/dist-types/commands/GetServerStrategiesCommand.d.ts +6 -21
  69. package/dist-types/commands/ListAnalyzableServersCommand.d.ts +6 -21
  70. package/dist-types/commands/ListApplicationComponentsCommand.d.ts +6 -21
  71. package/dist-types/commands/ListCollectorsCommand.d.ts +6 -21
  72. package/dist-types/commands/ListImportFileTaskCommand.d.ts +6 -21
  73. package/dist-types/commands/ListServersCommand.d.ts +6 -21
  74. package/dist-types/commands/PutPortfolioPreferencesCommand.d.ts +6 -21
  75. package/dist-types/commands/StartAssessmentCommand.d.ts +6 -21
  76. package/dist-types/commands/StartImportFileTaskCommand.d.ts +6 -21
  77. package/dist-types/commands/StartRecommendationReportGenerationCommand.d.ts +6 -21
  78. package/dist-types/commands/StopAssessmentCommand.d.ts +6 -21
  79. package/dist-types/commands/UpdateApplicationComponentConfigCommand.d.ts +6 -21
  80. package/dist-types/commands/UpdateServerConfigCommand.d.ts +6 -21
  81. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  82. package/dist-types/pagination/GetServerDetailsPaginator.d.ts +1 -1
  83. package/dist-types/pagination/ListAnalyzableServersPaginator.d.ts +1 -1
  84. package/dist-types/pagination/ListApplicationComponentsPaginator.d.ts +1 -1
  85. package/dist-types/pagination/ListCollectorsPaginator.d.ts +1 -1
  86. package/dist-types/pagination/ListImportFileTaskPaginator.d.ts +1 -1
  87. package/dist-types/pagination/ListServersPaginator.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/GetApplicationComponentDetailsCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/GetApplicationComponentStrategiesCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/GetAssessmentCommand.d.ts +14 -23
  91. package/dist-types/ts3.4/commands/GetImportFileTaskCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/GetLatestAssessmentIdCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/GetPortfolioPreferencesCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/GetPortfolioSummaryCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/GetRecommendationReportDetailsCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/GetServerDetailsCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/GetServerStrategiesCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/ListAnalyzableServersCommand.d.ts +12 -24
  99. package/dist-types/ts3.4/commands/ListApplicationComponentsCommand.d.ts +12 -24
  100. package/dist-types/ts3.4/commands/ListCollectorsCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/ListImportFileTaskCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/ListServersCommand.d.ts +14 -23
  103. package/dist-types/ts3.4/commands/PutPortfolioPreferencesCommand.d.ts +12 -24
  104. package/dist-types/ts3.4/commands/StartAssessmentCommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/StartImportFileTaskCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/StartRecommendationReportGenerationCommand.d.ts +12 -24
  107. package/dist-types/ts3.4/commands/StopAssessmentCommand.d.ts +14 -23
  108. package/dist-types/ts3.4/commands/UpdateApplicationComponentConfigCommand.d.ts +12 -24
  109. package/dist-types/ts3.4/commands/UpdateServerConfigCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  111. package/dist-types/ts3.4/pagination/GetServerDetailsPaginator.d.ts +3 -3
  112. package/dist-types/ts3.4/pagination/ListAnalyzableServersPaginator.d.ts +3 -3
  113. package/dist-types/ts3.4/pagination/ListApplicationComponentsPaginator.d.ts +3 -3
  114. package/dist-types/ts3.4/pagination/ListCollectorsPaginator.d.ts +3 -3
  115. package/dist-types/ts3.4/pagination/ListImportFileTaskPaginator.d.ts +3 -3
  116. package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +3 -3
  117. package/package.json +11 -11
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdateApplicationComponentConfigRequestFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateApplicationComponentConfigCommand, se_UpdateApplicationComponentConfigCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateApplicationComponentConfigCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateApplicationComponentConfigCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "MigrationHubStrategyClient";
27
- const commandName = "UpdateApplicationComponentConfigCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateApplicationComponentConfigRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSMigrationHubStrategyRecommendation",
36
- operation: "UpdateApplicationComponentConfig",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateApplicationComponentConfigCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateApplicationComponentConfigCommand(output, context);
47
- }
8
+ export class UpdateApplicationComponentConfigCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSMigrationHubStrategyRecommendation", "UpdateApplicationComponentConfig", {})
20
+ .n("MigrationHubStrategyClient", "UpdateApplicationComponentConfigCommand")
21
+ .f(UpdateApplicationComponentConfigRequestFilterSensitiveLog, void 0)
22
+ .ser(se_UpdateApplicationComponentConfigCommand)
23
+ .de(de_UpdateApplicationComponentConfigCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateServerConfigCommand, se_UpdateServerConfigCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateServerConfigCommand 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, UpdateServerConfigCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "MigrationHubStrategyClient";
26
- const commandName = "UpdateServerConfigCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSMigrationHubStrategyRecommendation",
35
- operation: "UpdateServerConfig",
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_UpdateServerConfigCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateServerConfigCommand(output, context);
46
- }
7
+ export class UpdateServerConfigCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSMigrationHubStrategyRecommendation", "UpdateServerConfig", {})
19
+ .n("MigrationHubStrategyClient", "UpdateServerConfigCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateServerConfigCommand)
22
+ .de(de_UpdateServerConfigCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "migrationhub-strategy",
7
7
  };
8
8
  };
9
+ export const commonParams = {
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
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetServerDetailsCommand, } from "../commands/GetServerDetailsCommand";
2
3
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetServerDetailsCommand(input), ...args);
5
- };
6
- export async function* paginateGetServerDetails(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
- }
4
+ export const paginateGetServerDetails = createPaginator(MigrationHubStrategyClient, GetServerDetailsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListAnalyzableServersCommand, } from "../commands/ListAnalyzableServersCommand";
2
3
  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
- }
4
+ export const paginateListAnalyzableServers = createPaginator(MigrationHubStrategyClient, ListAnalyzableServersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListApplicationComponentsCommand, } from "../commands/ListApplicationComponentsCommand";
2
3
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListApplicationComponentsCommand(input), ...args);
5
- };
6
- export async function* paginateListApplicationComponents(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
- }
4
+ export const paginateListApplicationComponents = createPaginator(MigrationHubStrategyClient, ListApplicationComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCollectorsCommand, } from "../commands/ListCollectorsCommand";
2
3
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCollectorsCommand(input), ...args);
5
- };
6
- export async function* paginateListCollectors(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
- }
4
+ export const paginateListCollectors = createPaginator(MigrationHubStrategyClient, ListCollectorsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListImportFileTaskCommand, } from "../commands/ListImportFileTaskCommand";
2
3
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListImportFileTaskCommand(input), ...args);
5
- };
6
- export async function* paginateListImportFileTask(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
- }
4
+ export const paginateListImportFileTask = createPaginator(MigrationHubStrategyClient, ListImportFileTaskCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListServersCommand } from "../commands/ListServersCommand";
2
3
  import { MigrationHubStrategyClient } from "../MigrationHubStrategyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListServersCommand(input), ...args);
5
- };
6
- export async function* paginateListServers(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
- }
4
+ export const paginateListServers = createPaginator(MigrationHubStrategyClient, ListServersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetApplicationComponentDetailsRequest, GetApplicationComponentDetailsResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetApplicationComponentDetailsCommandInput extends GetApplicati
21
20
  */
22
21
  export interface GetApplicationComponentDetailsCommandOutput extends GetApplicationComponentDetailsResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetApplicationComponentDetailsCommand_base: {
24
+ new (input: GetApplicationComponentDetailsCommandInput): import("@smithy/smithy-client").CommandImpl<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves details about an application component. </p>
@@ -145,23 +148,5 @@ export interface GetApplicationComponentDetailsCommandOutput extends GetApplicat
145
148
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
146
149
  *
147
150
  */
148
- export declare class GetApplicationComponentDetailsCommand extends $Command<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput, MigrationHubStrategyClientResolvedConfig> {
149
- readonly input: GetApplicationComponentDetailsCommandInput;
150
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
151
- /**
152
- * @public
153
- */
154
- constructor(input: GetApplicationComponentDetailsCommandInput);
155
- /**
156
- * @internal
157
- */
158
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetApplicationComponentDetailsCommandInput, GetApplicationComponentDetailsCommandOutput>;
159
- /**
160
- * @internal
161
- */
162
- private serialize;
163
- /**
164
- * @internal
165
- */
166
- private deserialize;
151
+ export declare class GetApplicationComponentDetailsCommand extends GetApplicationComponentDetailsCommand_base {
167
152
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetApplicationComponentStrategiesRequest, GetApplicationComponentStrategiesResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetApplicationComponentStrategiesCommandInput extends GetApplic
21
20
  */
22
21
  export interface GetApplicationComponentStrategiesCommandOutput extends GetApplicationComponentStrategiesResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetApplicationComponentStrategiesCommand_base: {
24
+ new (input: GetApplicationComponentStrategiesCommandInput): import("@smithy/smithy-client").CommandImpl<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves a list of all the recommended strategies and tools for an application component
@@ -75,23 +78,5 @@ export interface GetApplicationComponentStrategiesCommandOutput extends GetAppli
75
78
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
76
79
  *
77
80
  */
78
- export declare class GetApplicationComponentStrategiesCommand extends $Command<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput, MigrationHubStrategyClientResolvedConfig> {
79
- readonly input: GetApplicationComponentStrategiesCommandInput;
80
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
81
- /**
82
- * @public
83
- */
84
- constructor(input: GetApplicationComponentStrategiesCommandInput);
85
- /**
86
- * @internal
87
- */
88
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetApplicationComponentStrategiesCommandInput, GetApplicationComponentStrategiesCommandOutput>;
89
- /**
90
- * @internal
91
- */
92
- private serialize;
93
- /**
94
- * @internal
95
- */
96
- private deserialize;
81
+ export declare class GetApplicationComponentStrategiesCommand extends GetApplicationComponentStrategiesCommand_base {
97
82
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetAssessmentRequest, GetAssessmentResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetAssessmentCommandInput extends GetAssessmentRequest {
21
20
  */
22
21
  export interface GetAssessmentCommandOutput extends GetAssessmentResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetAssessmentCommand_base: {
24
+ new (input: GetAssessmentCommandInput): import("@smithy/smithy-client").CommandImpl<GetAssessmentCommandInput, GetAssessmentCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves the status of an on-going assessment. </p>
@@ -83,23 +86,5 @@ export interface GetAssessmentCommandOutput extends GetAssessmentResponse, __Met
83
86
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
84
87
  *
85
88
  */
86
- export declare class GetAssessmentCommand extends $Command<GetAssessmentCommandInput, GetAssessmentCommandOutput, MigrationHubStrategyClientResolvedConfig> {
87
- readonly input: GetAssessmentCommandInput;
88
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
89
- /**
90
- * @public
91
- */
92
- constructor(input: GetAssessmentCommandInput);
93
- /**
94
- * @internal
95
- */
96
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAssessmentCommandInput, GetAssessmentCommandOutput>;
97
- /**
98
- * @internal
99
- */
100
- private serialize;
101
- /**
102
- * @internal
103
- */
104
- private deserialize;
89
+ export declare class GetAssessmentCommand extends GetAssessmentCommand_base {
105
90
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetImportFileTaskRequest, GetImportFileTaskResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetImportFileTaskCommandInput extends GetImportFileTaskRequest
21
20
  */
22
21
  export interface GetImportFileTaskCommandOutput extends GetImportFileTaskResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetImportFileTaskCommand_base: {
24
+ new (input: GetImportFileTaskCommandInput): import("@smithy/smithy-client").CommandImpl<GetImportFileTaskCommandInput, GetImportFileTaskCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves the details about a specific import task. </p>
@@ -77,23 +80,5 @@ export interface GetImportFileTaskCommandOutput extends GetImportFileTaskRespons
77
80
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
78
81
  *
79
82
  */
80
- export declare class GetImportFileTaskCommand extends $Command<GetImportFileTaskCommandInput, GetImportFileTaskCommandOutput, MigrationHubStrategyClientResolvedConfig> {
81
- readonly input: GetImportFileTaskCommandInput;
82
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
83
- /**
84
- * @public
85
- */
86
- constructor(input: GetImportFileTaskCommandInput);
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetImportFileTaskCommandInput, GetImportFileTaskCommandOutput>;
91
- /**
92
- * @internal
93
- */
94
- private serialize;
95
- /**
96
- * @internal
97
- */
98
- private deserialize;
83
+ export declare class GetImportFileTaskCommand extends GetImportFileTaskCommand_base {
99
84
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetLatestAssessmentIdRequest, GetLatestAssessmentIdResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetLatestAssessmentIdCommandInput extends GetLatestAssessmentId
21
20
  */
22
21
  export interface GetLatestAssessmentIdCommandOutput extends GetLatestAssessmentIdResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetLatestAssessmentIdCommand_base: {
24
+ new (input: GetLatestAssessmentIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Retrieve the latest ID of a specific assessment task.</p>
@@ -62,23 +65,5 @@ export interface GetLatestAssessmentIdCommandOutput extends GetLatestAssessmentI
62
65
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
63
66
  *
64
67
  */
65
- export declare class GetLatestAssessmentIdCommand extends $Command<GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput, MigrationHubStrategyClientResolvedConfig> {
66
- readonly input: GetLatestAssessmentIdCommandInput;
67
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
68
- /**
69
- * @public
70
- */
71
- constructor(input: GetLatestAssessmentIdCommandInput);
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLatestAssessmentIdCommandInput, GetLatestAssessmentIdCommandOutput>;
76
- /**
77
- * @internal
78
- */
79
- private serialize;
80
- /**
81
- * @internal
82
- */
83
- private deserialize;
68
+ export declare class GetLatestAssessmentIdCommand extends GetLatestAssessmentIdCommand_base {
84
69
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetPortfolioPreferencesRequest, GetPortfolioPreferencesResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetPortfolioPreferencesCommandInput extends GetPortfolioPrefere
21
20
  */
22
21
  export interface GetPortfolioPreferencesCommandOutput extends GetPortfolioPreferencesResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetPortfolioPreferencesCommand_base: {
24
+ new (input: GetPortfolioPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<GetPortfolioPreferencesCommandInput, GetPortfolioPreferencesCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves your migration and modernization preferences. </p>
@@ -109,23 +112,5 @@ export interface GetPortfolioPreferencesCommandOutput extends GetPortfolioPrefer
109
112
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
110
113
  *
111
114
  */
112
- export declare class GetPortfolioPreferencesCommand extends $Command<GetPortfolioPreferencesCommandInput, GetPortfolioPreferencesCommandOutput, MigrationHubStrategyClientResolvedConfig> {
113
- readonly input: GetPortfolioPreferencesCommandInput;
114
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
115
- /**
116
- * @public
117
- */
118
- constructor(input: GetPortfolioPreferencesCommandInput);
119
- /**
120
- * @internal
121
- */
122
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPortfolioPreferencesCommandInput, GetPortfolioPreferencesCommandOutput>;
123
- /**
124
- * @internal
125
- */
126
- private serialize;
127
- /**
128
- * @internal
129
- */
130
- private deserialize;
115
+ export declare class GetPortfolioPreferencesCommand extends GetPortfolioPreferencesCommand_base {
131
116
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubStrategyClient";
5
4
  import { GetPortfolioSummaryRequest, GetPortfolioSummaryResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetPortfolioSummaryCommandInput extends GetPortfolioSummaryRequ
21
20
  */
22
21
  export interface GetPortfolioSummaryCommandOutput extends GetPortfolioSummaryResponse, __MetadataBearer {
23
22
  }
23
+ declare const GetPortfolioSummaryCommand_base: {
24
+ new (input: GetPortfolioSummaryCommandInput): import("@smithy/smithy-client").CommandImpl<GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput, MigrationHubStrategyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p> Retrieves overall summary including the number of servers to rehost and the overall
@@ -110,23 +113,5 @@ export interface GetPortfolioSummaryCommandOutput extends GetPortfolioSummaryRes
110
113
  * <p>Base exception class for all service exceptions from MigrationHubStrategy service.</p>
111
114
  *
112
115
  */
113
- export declare class GetPortfolioSummaryCommand extends $Command<GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput, MigrationHubStrategyClientResolvedConfig> {
114
- readonly input: GetPortfolioSummaryCommandInput;
115
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
116
- /**
117
- * @public
118
- */
119
- constructor(input: GetPortfolioSummaryCommandInput);
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubStrategyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPortfolioSummaryCommandInput, GetPortfolioSummaryCommandOutput>;
124
- /**
125
- * @internal
126
- */
127
- private serialize;
128
- /**
129
- * @internal
130
- */
131
- private deserialize;
116
+ export declare class GetPortfolioSummaryCommand extends GetPortfolioSummaryCommand_base {
132
117
  }