@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.
- package/dist-cjs/pagination/ListPluginsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplateStepsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +179 -382
- package/dist-es/pagination/ListPluginsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplateStepsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowStepsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +180 -383
- package/dist-types/pagination/ListPluginsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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");
|