@aws-sdk/client-migrationhubstrategy 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/GetServerDetailsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalyzableServersPaginator.js +2 -24
- package/dist-cjs/pagination/ListApplicationComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCollectorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportFileTaskPaginator.js +2 -24
- package/dist-cjs/pagination/ListServersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +104 -261
- package/dist-es/pagination/GetServerDetailsPaginator.js +2 -23
- package/dist-es/pagination/ListAnalyzableServersPaginator.js +2 -23
- package/dist-es/pagination/ListApplicationComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListCollectorsPaginator.js +2 -23
- package/dist-es/pagination/ListImportFileTaskPaginator.js +2 -23
- package/dist-es/pagination/ListServersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +105 -262
- package/dist-types/pagination/GetServerDetailsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalyzableServersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApplicationComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCollectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportFileTaskPaginator.d.ts +1 -1
- package/dist-types/pagination/ListServersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetServerDetailsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalyzableServersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApplicationComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCollectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportFileTaskPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListServersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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");
|