@aws-sdk/client-migrationhuborchestrator 3.477.0 → 3.478.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 (29) hide show
  1. package/dist-cjs/pagination/ListPluginsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListTemplateStepsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListTemplatesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  8. package/dist-es/pagination/ListPluginsPaginator.js +2 -23
  9. package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +2 -23
  10. package/dist-es/pagination/ListTemplateStepsPaginator.js +2 -23
  11. package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
  12. package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +2 -23
  13. package/dist-es/pagination/ListWorkflowStepsPaginator.js +2 -23
  14. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  15. package/dist-types/pagination/ListPluginsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  22. package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +3 -3
  24. package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  29. package/package.json +5 -5
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListPlugins = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListPluginsCommand_1 = require("../commands/ListPluginsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListPluginsCommand_1.ListPluginsCommand(input), ...args);
8
- };
9
- async function* paginateListPlugins(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListPlugins = paginateListPlugins;
7
+ exports.paginateListPlugins = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListPluginsCommand_1.ListPluginsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTemplateStepGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTemplateStepGroupsCommand_1 = require("../commands/ListTemplateStepGroupsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTemplateStepGroupsCommand_1.ListTemplateStepGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListTemplateStepGroups(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListTemplateStepGroups = paginateListTemplateStepGroups;
7
+ exports.paginateListTemplateStepGroups = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListTemplateStepGroupsCommand_1.ListTemplateStepGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTemplateSteps = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTemplateStepsCommand_1 = require("../commands/ListTemplateStepsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTemplateStepsCommand_1.ListTemplateStepsCommand(input), ...args);
8
- };
9
- async function* paginateListTemplateSteps(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListTemplateSteps = paginateListTemplateSteps;
7
+ exports.paginateListTemplateSteps = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListTemplateStepsCommand_1.ListTemplateStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTemplates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListTemplatesCommand_1 = require("../commands/ListTemplatesCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListTemplatesCommand_1.ListTemplatesCommand(input), ...args);
8
- };
9
- async function* paginateListTemplates(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListTemplates = paginateListTemplates;
7
+ exports.paginateListTemplates = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListTemplatesCommand_1.ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflowStepGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkflowStepGroupsCommand_1 = require("../commands/ListWorkflowStepGroupsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowStepGroupsCommand_1.ListWorkflowStepGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflowStepGroups(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListWorkflowStepGroups = paginateListWorkflowStepGroups;
7
+ exports.paginateListWorkflowStepGroups = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListWorkflowStepGroupsCommand_1.ListWorkflowStepGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflowSteps = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkflowStepsCommand_1 = require("../commands/ListWorkflowStepsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowStepsCommand_1.ListWorkflowStepsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflowSteps(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListWorkflowSteps = paginateListWorkflowSteps;
7
+ exports.paginateListWorkflowSteps = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListWorkflowStepsCommand_1.ListWorkflowStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflows = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
5
6
  const MigrationHubOrchestratorClient_1 = require("../MigrationHubOrchestratorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflows(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 MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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.paginateListWorkflows = paginateListWorkflows;
7
+ exports.paginateListWorkflows = (0, core_1.createPaginator)(MigrationHubOrchestratorClient_1.MigrationHubOrchestratorClient, ListWorkflowsCommand_1.ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPluginsCommand } from "../commands/ListPluginsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPluginsCommand(input), ...args);
5
- };
6
- export async function* paginateListPlugins(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListPlugins = createPaginator(MigrationHubOrchestratorClient, ListPluginsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTemplateStepGroupsCommand, } from "../commands/ListTemplateStepGroupsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTemplateStepGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListTemplateStepGroups(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListTemplateStepGroups = createPaginator(MigrationHubOrchestratorClient, ListTemplateStepGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTemplateStepsCommand, } from "../commands/ListTemplateStepsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTemplateStepsCommand(input), ...args);
5
- };
6
- export async function* paginateListTemplateSteps(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListTemplateSteps = createPaginator(MigrationHubOrchestratorClient, ListTemplateStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTemplatesCommand, } from "../commands/ListTemplatesCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTemplatesCommand(input), ...args);
5
- };
6
- export async function* paginateListTemplates(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListTemplates = createPaginator(MigrationHubOrchestratorClient, ListTemplatesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowStepGroupsCommand, } from "../commands/ListWorkflowStepGroupsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowStepGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowStepGroups(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListWorkflowStepGroups = createPaginator(MigrationHubOrchestratorClient, ListWorkflowStepGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowStepsCommand, } from "../commands/ListWorkflowStepsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowStepsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowSteps(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListWorkflowSteps = createPaginator(MigrationHubOrchestratorClient, ListWorkflowStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkflowsCommand, } from "../commands/ListWorkflowsCommand";
2
3
  import { MigrationHubOrchestratorClient } from "../MigrationHubOrchestratorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflows(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 MigrationHubOrchestratorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected MigrationHubOrchestrator | MigrationHubOrchestratorClient");
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 paginateListWorkflows = createPaginator(MigrationHubOrchestratorClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPlugins(config: MigrationHubOrchestratorPaginationConfiguration, input: ListPluginsCommandInput, ...additionalArguments: any): Paginator<ListPluginsCommandOutput>;
7
+ export declare const paginateListPlugins: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListPluginsCommandInput, ...rest: any[]) => Paginator<ListPluginsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTemplateStepGroups(config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplateStepGroupsCommandInput, ...additionalArguments: any): Paginator<ListTemplateStepGroupsCommandOutput>;
7
+ export declare const paginateListTemplateStepGroups: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplateStepGroupsCommandInput, ...rest: any[]) => Paginator<ListTemplateStepGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTemplateSteps(config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplateStepsCommandInput, ...additionalArguments: any): Paginator<ListTemplateStepsCommandOutput>;
7
+ export declare const paginateListTemplateSteps: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplateStepsCommandInput, ...rest: any[]) => Paginator<ListTemplateStepsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListTemplates(config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplatesCommandInput, ...additionalArguments: any): Paginator<ListTemplatesCommandOutput>;
7
+ export declare const paginateListTemplates: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListTemplatesCommandInput, ...rest: any[]) => Paginator<ListTemplatesCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListWorkflowStepGroups(config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowStepGroupsCommandInput, ...additionalArguments: any): Paginator<ListWorkflowStepGroupsCommandOutput>;
7
+ export declare const paginateListWorkflowStepGroups: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowStepGroupsCommandInput, ...rest: any[]) => Paginator<ListWorkflowStepGroupsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListWorkflowSteps(config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowStepsCommandInput, ...additionalArguments: any): Paginator<ListWorkflowStepsCommandOutput>;
7
+ export declare const paginateListWorkflowSteps: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowStepsCommandInput, ...rest: any[]) => Paginator<ListWorkflowStepsCommandOutput>;
@@ -4,4 +4,4 @@ import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListWorkflows(config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowsCommandInput, ...additionalArguments: any): Paginator<ListWorkflowsCommandOutput>;
7
+ export declare const paginateListWorkflows: (config: MigrationHubOrchestratorPaginationConfiguration, input: ListWorkflowsCommandInput, ...rest: any[]) => Paginator<ListWorkflowsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListPluginsCommandOutput,
5
5
  } from "../commands/ListPluginsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListPlugins(
7
+ export declare const paginateListPlugins: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListPluginsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListPluginsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListPluginsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTemplateStepGroupsCommandOutput,
5
5
  } from "../commands/ListTemplateStepGroupsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTemplateStepGroups(
7
+ export declare const paginateListTemplateStepGroups: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListTemplateStepGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTemplateStepGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTemplateStepGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTemplateStepsCommandOutput,
5
5
  } from "../commands/ListTemplateStepsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTemplateSteps(
7
+ export declare const paginateListTemplateSteps: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListTemplateStepsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTemplateStepsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTemplateStepsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListTemplatesCommandOutput,
5
5
  } from "../commands/ListTemplatesCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListTemplates(
7
+ export declare const paginateListTemplates: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListTemplatesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTemplatesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListTemplatesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListWorkflowStepGroupsCommandOutput,
5
5
  } from "../commands/ListWorkflowStepGroupsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListWorkflowStepGroups(
7
+ export declare const paginateListWorkflowStepGroups: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListWorkflowStepGroupsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkflowStepGroupsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListWorkflowStepGroupsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListWorkflowStepsCommandOutput,
5
5
  } from "../commands/ListWorkflowStepsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListWorkflowSteps(
7
+ export declare const paginateListWorkflowSteps: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListWorkflowStepsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkflowStepsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListWorkflowStepsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListWorkflowsCommandOutput,
5
5
  } from "../commands/ListWorkflowsCommand";
6
6
  import { MigrationHubOrchestratorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListWorkflows(
7
+ export declare const paginateListWorkflows: (
8
8
  config: MigrationHubOrchestratorPaginationConfiguration,
9
9
  input: ListWorkflowsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkflowsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListWorkflowsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhuborchestrator",
3
3
  "description": "AWS SDK for JavaScript Migrationhuborchestrator Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.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",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.477.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
24
  "@aws-sdk/core": "3.477.0",
25
- "@aws-sdk/credential-provider-node": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",