@aws-sdk/client-drs 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/DescribeRecoveryInstancesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeRecoverySnapshotsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSourceNetworksPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSourceServersPaginator.js +2 -24
- package/dist-cjs/pagination/ListExtensibleSourceServersPaginator.js +2 -24
- package/dist-cjs/pagination/ListLaunchActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListStagingAccountsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +215 -566
- 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/DescribeRecoveryInstancesPaginator.js +2 -23
- package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +2 -23
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeSourceNetworksPaginator.js +2 -23
- package/dist-es/pagination/DescribeSourceServersPaginator.js +2 -23
- package/dist-es/pagination/ListExtensibleSourceServersPaginator.js +2 -23
- package/dist-es/pagination/ListLaunchActionsPaginator.js +2 -23
- package/dist-es/pagination/ListStagingAccountsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +216 -567
- 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/DescribeRecoveryInstancesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeRecoverySnapshotsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSourceNetworksPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSourceServersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListExtensibleSourceServersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLaunchActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStagingAccountsPaginator.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/DescribeRecoveryInstancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeRecoverySnapshotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSourceNetworksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSourceServersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListExtensibleSourceServersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLaunchActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStagingAccountsPaginator.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 DrsClient_1 = require("../DrsClient");
|
|
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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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)(DrsClient_1.DrsClient, 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 DrsClient_1 = require("../DrsClient");
|
|
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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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)(DrsClient_1.DrsClient, 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 DrsClient_1 = require("../DrsClient");
|
|
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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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)(DrsClient_1.DrsClient, 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.paginateDescribeRecoveryInstances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeRecoveryInstancesCommand_1 = require("../commands/DescribeRecoveryInstancesCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeRecoveryInstancesCommand_1.DescribeRecoveryInstancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeRecoveryInstances(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateDescribeRecoveryInstances = paginateDescribeRecoveryInstances;
|
|
7
|
+
exports.paginateDescribeRecoveryInstances = (0, core_1.createPaginator)(DrsClient_1.DrsClient, DescribeRecoveryInstancesCommand_1.DescribeRecoveryInstancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeRecoverySnapshots = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeRecoverySnapshotsCommand_1 = require("../commands/DescribeRecoverySnapshotsCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeRecoverySnapshotsCommand_1.DescribeRecoverySnapshotsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeRecoverySnapshots(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateDescribeRecoverySnapshots = paginateDescribeRecoverySnapshots;
|
|
7
|
+
exports.paginateDescribeRecoverySnapshots = (0, core_1.createPaginator)(DrsClient_1.DrsClient, DescribeRecoverySnapshotsCommand_1.DescribeRecoverySnapshotsCommand, "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 DrsClient_1 = require("../DrsClient");
|
|
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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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)(DrsClient_1.DrsClient, 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.paginateDescribeSourceNetworks = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeSourceNetworksCommand_1 = require("../commands/DescribeSourceNetworksCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeSourceNetworksCommand_1.DescribeSourceNetworksCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeSourceNetworks(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateDescribeSourceNetworks = paginateDescribeSourceNetworks;
|
|
7
|
+
exports.paginateDescribeSourceNetworks = (0, core_1.createPaginator)(DrsClient_1.DrsClient, DescribeSourceNetworksCommand_1.DescribeSourceNetworksCommand, "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 DrsClient_1 = require("../DrsClient");
|
|
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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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)(DrsClient_1.DrsClient, 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.paginateListExtensibleSourceServers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListExtensibleSourceServersCommand_1 = require("../commands/ListExtensibleSourceServersCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListExtensibleSourceServersCommand_1.ListExtensibleSourceServersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListExtensibleSourceServers(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateListExtensibleSourceServers = paginateListExtensibleSourceServers;
|
|
7
|
+
exports.paginateListExtensibleSourceServers = (0, core_1.createPaginator)(DrsClient_1.DrsClient, ListExtensibleSourceServersCommand_1.ListExtensibleSourceServersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLaunchActions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListLaunchActionsCommand_1 = require("../commands/ListLaunchActionsCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLaunchActionsCommand_1.ListLaunchActionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLaunchActions(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateListLaunchActions = paginateListLaunchActions;
|
|
7
|
+
exports.paginateListLaunchActions = (0, core_1.createPaginator)(DrsClient_1.DrsClient, ListLaunchActionsCommand_1.ListLaunchActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListStagingAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListStagingAccountsCommand_1 = require("../commands/ListStagingAccountsCommand");
|
|
5
6
|
const DrsClient_1 = require("../DrsClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListStagingAccountsCommand_1.ListStagingAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListStagingAccounts(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 DrsClient_1.DrsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Drs | DrsClient");
|
|
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.paginateListStagingAccounts = paginateListStagingAccounts;
|
|
7
|
+
exports.paginateListStagingAccounts = (0, core_1.createPaginator)(DrsClient_1.DrsClient, ListStagingAccountsCommand_1.ListStagingAccountsCommand, "nextToken", "nextToken", "maxResults");
|