@aws-sdk/client-migrationhuborchestrator 3.476.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 (31) 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-cjs/protocols/Aws_restJson1.js +179 -382
  9. package/dist-es/pagination/ListPluginsPaginator.js +2 -23
  10. package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +2 -23
  11. package/dist-es/pagination/ListTemplateStepsPaginator.js +2 -23
  12. package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
  13. package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +2 -23
  14. package/dist-es/pagination/ListWorkflowStepsPaginator.js +2 -23
  15. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +180 -383
  17. package/dist-types/pagination/ListPluginsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -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");