@aws-sdk/client-mgn 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/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-cjs/protocols/Aws_restJson1.js +295 -786
- 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-es/protocols/Aws_restJson1.js +296 -787
- 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 +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeJobLogItems = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeJobLogItemsCommand_1 = require("../commands/DescribeJobLogItemsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeJobLogItemsCommand_1.DescribeJobLogItemsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeJobLogItems(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeJobLogItems = paginateDescribeJobLogItems;
|
|
7
|
+
exports.paginateDescribeJobLogItems = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeJobLogItemsCommand_1.DescribeJobLogItemsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeJobsCommand_1 = require("../commands/DescribeJobsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeJobsCommand_1.DescribeJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeJobs(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeJobs = paginateDescribeJobs;
|
|
7
|
+
exports.paginateDescribeJobs = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeJobsCommand_1.DescribeJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeLaunchConfigurationTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeLaunchConfigurationTemplatesCommand_1 = require("../commands/DescribeLaunchConfigurationTemplatesCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeLaunchConfigurationTemplatesCommand_1.DescribeLaunchConfigurationTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeLaunchConfigurationTemplates(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeLaunchConfigurationTemplates = paginateDescribeLaunchConfigurationTemplates;
|
|
7
|
+
exports.paginateDescribeLaunchConfigurationTemplates = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeLaunchConfigurationTemplatesCommand_1.DescribeLaunchConfigurationTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeReplicationConfigurationTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeReplicationConfigurationTemplatesCommand_1 = require("../commands/DescribeReplicationConfigurationTemplatesCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeReplicationConfigurationTemplatesCommand_1.DescribeReplicationConfigurationTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeReplicationConfigurationTemplates(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeReplicationConfigurationTemplates = paginateDescribeReplicationConfigurationTemplates;
|
|
7
|
+
exports.paginateDescribeReplicationConfigurationTemplates = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeReplicationConfigurationTemplatesCommand_1.DescribeReplicationConfigurationTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeSourceServers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeSourceServersCommand_1 = require("../commands/DescribeSourceServersCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeSourceServersCommand_1.DescribeSourceServersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeSourceServers(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeSourceServers = paginateDescribeSourceServers;
|
|
7
|
+
exports.paginateDescribeSourceServers = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeSourceServersCommand_1.DescribeSourceServersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeVcenterClients = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeVcenterClientsCommand_1 = require("../commands/DescribeVcenterClientsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeVcenterClientsCommand_1.DescribeVcenterClientsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeVcenterClients(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateDescribeVcenterClients = paginateDescribeVcenterClients;
|
|
7
|
+
exports.paginateDescribeVcenterClients = (0, core_1.createPaginator)(MgnClient_1.MgnClient, DescribeVcenterClientsCommand_1.DescribeVcenterClientsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApplications = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApplications(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListApplications = paginateListApplications;
|
|
7
|
+
exports.paginateListApplications = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListApplicationsCommand_1.ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConnectors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConnectorsCommand_1 = require("../commands/ListConnectorsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConnectorsCommand_1.ListConnectorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConnectors(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListConnectors = paginateListConnectors;
|
|
7
|
+
exports.paginateListConnectors = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListConnectorsCommand_1.ListConnectorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExportErrors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExportErrorsCommand_1 = require("../commands/ListExportErrorsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExportErrorsCommand_1.ListExportErrorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExportErrors(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListExportErrors = paginateListExportErrors;
|
|
7
|
+
exports.paginateListExportErrors = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListExportErrorsCommand_1.ListExportErrorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListExports = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExportsCommand_1 = require("../commands/ListExportsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExportsCommand_1.ListExportsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExports(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListExports = paginateListExports;
|
|
7
|
+
exports.paginateListExports = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListExportsCommand_1.ListExportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListImportErrors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListImportErrorsCommand_1 = require("../commands/ListImportErrorsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListImportErrorsCommand_1.ListImportErrorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListImportErrors(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListImportErrors = paginateListImportErrors;
|
|
7
|
+
exports.paginateListImportErrors = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListImportErrorsCommand_1.ListImportErrorsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListImports = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListImportsCommand_1 = require("../commands/ListImportsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListImports(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListImports = paginateListImports;
|
|
7
|
+
exports.paginateListImports = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListImportsCommand_1.ListImportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListManagedAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListManagedAccountsCommand_1 = require("../commands/ListManagedAccountsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListManagedAccountsCommand_1.ListManagedAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListManagedAccounts(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListManagedAccounts = paginateListManagedAccounts;
|
|
7
|
+
exports.paginateListManagedAccounts = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListManagedAccountsCommand_1.ListManagedAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSourceServerActions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSourceServerActionsCommand_1 = require("../commands/ListSourceServerActionsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSourceServerActionsCommand_1.ListSourceServerActionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSourceServerActions(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListSourceServerActions = paginateListSourceServerActions;
|
|
7
|
+
exports.paginateListSourceServerActions = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListSourceServerActionsCommand_1.ListSourceServerActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTemplateActions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTemplateActionsCommand_1 = require("../commands/ListTemplateActionsCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTemplateActionsCommand_1.ListTemplateActionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTemplateActions(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListTemplateActions = paginateListTemplateActions;
|
|
7
|
+
exports.paginateListTemplateActions = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListTemplateActionsCommand_1.ListTemplateActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListWaves = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListWavesCommand_1 = require("../commands/ListWavesCommand");
|
|
5
6
|
const MgnClient_1 = require("../MgnClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListWavesCommand_1.ListWavesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListWaves(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 MgnClient_1.MgnClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
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.paginateListWaves = paginateListWaves;
|
|
7
|
+
exports.paginateListWaves = (0, core_1.createPaginator)(MgnClient_1.MgnClient, ListWavesCommand_1.ListWavesCommand, "nextToken", "nextToken", "maxResults");
|