@aws-sdk/client-mgn 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.
- package/dist-cjs/pagination/DescribeJobLogItemsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeJobsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSourceServersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeVcenterClientsPaginator.js +2 -24
- package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListConnectorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListExportErrorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListExportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportErrorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListImportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedAccountsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceServerActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTemplateActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWavesPaginator.js +2 -24
- package/dist-es/pagination/DescribeJobLogItemsPaginator.js +2 -23
- package/dist-es/pagination/DescribeJobsPaginator.js +2 -23
- package/dist-es/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeSourceServersPaginator.js +2 -23
- package/dist-es/pagination/DescribeVcenterClientsPaginator.js +2 -23
- package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
- package/dist-es/pagination/ListConnectorsPaginator.js +2 -23
- package/dist-es/pagination/ListExportErrorsPaginator.js +2 -23
- package/dist-es/pagination/ListExportsPaginator.js +2 -23
- package/dist-es/pagination/ListImportErrorsPaginator.js +2 -23
- package/dist-es/pagination/ListImportsPaginator.js +2 -23
- package/dist-es/pagination/ListManagedAccountsPaginator.js +2 -23
- package/dist-es/pagination/ListSourceServerActionsPaginator.js +2 -23
- package/dist-es/pagination/ListTemplateActionsPaginator.js +2 -23
- package/dist-es/pagination/ListWavesPaginator.js +2 -23
- package/dist-types/pagination/DescribeJobLogItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSourceServersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConnectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExportErrorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportErrorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListImportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedAccountsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWavesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeJobLogItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSourceServersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeVcenterClientsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExportErrorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportErrorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedAccountsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceServerActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTemplateActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWavesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeSourceServersCommand, } from "../commands/DescribeSourceServersCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeSourceServersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeSourceServers(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateDescribeSourceServers = createPaginator(MgnClient, DescribeSourceServersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeVcenterClientsCommand, } from "../commands/DescribeVcenterClientsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeVcenterClientsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeVcenterClients(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateDescribeVcenterClients = createPaginator(MgnClient, DescribeVcenterClientsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApplicationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApplications(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListApplications = createPaginator(MgnClient, ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListConnectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListConnectors(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListConnectors = createPaginator(MgnClient, ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListExportErrorsCommand, } from "../commands/ListExportErrorsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListExportErrorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListExportErrors(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListExportErrors = createPaginator(MgnClient, ListExportErrorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListExportsCommand } from "../commands/ListExportsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListExportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListExports(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListExports = createPaginator(MgnClient, ListExportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImportErrorsCommand, } from "../commands/ListImportErrorsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImportErrorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImportErrors(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListImportErrors = createPaginator(MgnClient, ListImportErrorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListImportsCommand } from "../commands/ListImportsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListImportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListImports(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListImports = createPaginator(MgnClient, ListImportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListManagedAccountsCommand, } from "../commands/ListManagedAccountsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListManagedAccountsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListManagedAccounts(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListManagedAccounts = createPaginator(MgnClient, ListManagedAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSourceServerActionsCommand, } from "../commands/ListSourceServerActionsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSourceServerActionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSourceServerActions(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListSourceServerActions = createPaginator(MgnClient, ListSourceServerActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTemplateActionsCommand, } from "../commands/ListTemplateActionsCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTemplateActionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTemplateActions(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListTemplateActions = createPaginator(MgnClient, ListTemplateActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListWavesCommand } from "../commands/ListWavesCommand";
|
|
2
3
|
import { MgnClient } from "../MgnClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListWavesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListWaves(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 MgnClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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 paginateListWaves = createPaginator(MgnClient, ListWavesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobLogItems: (config: MgnPaginationConfiguration, input: DescribeJobLogItemsCommandInput, ...rest: any[]) => Paginator<DescribeJobLogItemsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobs: (config: MgnPaginationConfiguration, input: DescribeJobsCommandInput, ...rest: any[]) => Paginator<DescribeJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLaunchConfigurationTemplates: (config: MgnPaginationConfiguration, input: DescribeLaunchConfigurationTemplatesCommandInput, ...rest: any[]) => Paginator<DescribeLaunchConfigurationTemplatesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeReplicationConfigurationTemplates: (config: MgnPaginationConfiguration, input: DescribeReplicationConfigurationTemplatesCommandInput, ...rest: any[]) => Paginator<DescribeReplicationConfigurationTemplatesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSourceServers: (config: MgnPaginationConfiguration, input: DescribeSourceServersCommandInput, ...rest: any[]) => Paginator<DescribeSourceServersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeVcenterClients: (config: MgnPaginationConfiguration, input: DescribeVcenterClientsCommandInput, ...rest: any[]) => Paginator<DescribeVcenterClientsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (config: MgnPaginationConfiguration, input: ListApplicationsCommandInput, ...rest: any[]) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListConnectors: (config: MgnPaginationConfiguration, input: ListConnectorsCommandInput, ...rest: any[]) => Paginator<ListConnectorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExportErrors: (config: MgnPaginationConfiguration, input: ListExportErrorsCommandInput, ...rest: any[]) => Paginator<ListExportErrorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExports: (config: MgnPaginationConfiguration, input: ListExportsCommandInput, ...rest: any[]) => Paginator<ListExportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImportErrors: (config: MgnPaginationConfiguration, input: ListImportErrorsCommandInput, ...rest: any[]) => Paginator<ListImportErrorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImports: (config: MgnPaginationConfiguration, input: ListImportsCommandInput, ...rest: any[]) => Paginator<ListImportsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListManagedAccounts: (config: MgnPaginationConfiguration, input: ListManagedAccountsCommandInput, ...rest: any[]) => Paginator<ListManagedAccountsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSourceServerActions: (config: MgnPaginationConfiguration, input: ListSourceServerActionsCommandInput, ...rest: any[]) => Paginator<ListSourceServerActionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTemplateActions: (config: MgnPaginationConfiguration, input: ListTemplateActionsCommandInput, ...rest: any[]) => Paginator<ListTemplateActionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { MgnPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListWaves: (config: MgnPaginationConfiguration, input: ListWavesCommandInput, ...rest: any[]) => Paginator<ListWavesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeJobLogItemsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeJobLogItemsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobLogItems: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeJobLogItemsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeJobLogItemsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeJobsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeJobsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobs: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeJobsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeJobsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeLaunchConfigurationTemplatesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeLaunchConfigurationTemplatesCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLaunchConfigurationTemplates: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeLaunchConfigurationTemplatesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeLaunchConfigurationTemplatesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeReplicationConfigurationTemplatesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeReplicationConfigurationTemplatesCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeReplicationConfigurationTemplates: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeReplicationConfigurationTemplatesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeReplicationConfigurationTemplatesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeSourceServersCommandOutput,
|
|
5
5
|
} from "../commands/DescribeSourceServersCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSourceServers: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeSourceServersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeSourceServersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeVcenterClientsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeVcenterClientsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeVcenterClients: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: DescribeVcenterClientsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeVcenterClientsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListApplicationsCommandOutput,
|
|
5
5
|
} from "../commands/ListApplicationsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApplications: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListApplicationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListApplicationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListConnectorsCommandOutput,
|
|
5
5
|
} from "../commands/ListConnectorsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListConnectors: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListConnectorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListConnectorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListExportErrorsCommandOutput,
|
|
5
5
|
} from "../commands/ListExportErrorsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExportErrors: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListExportErrorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListExportErrorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListExportsCommandOutput,
|
|
5
5
|
} from "../commands/ListExportsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListExports: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListExportsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListExportsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListImportErrorsCommandOutput,
|
|
5
5
|
} from "../commands/ListImportErrorsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImportErrors: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListImportErrorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListImportErrorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListImportsCommandOutput,
|
|
5
5
|
} from "../commands/ListImportsCommand";
|
|
6
6
|
import { MgnPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListImports: (
|
|
8
8
|
config: MgnPaginationConfiguration,
|
|
9
9
|
input: ListImportsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListImportsCommandOutput>;
|