@aws-sdk/client-batch 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/DescribeComputeEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeJobDefinitionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeJobQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchedulingPoliciesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +103 -271
- package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeJobQueuesPaginator.js +2 -23
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +104 -272
- package/dist-types/pagination/DescribeComputeEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeJobDefinitionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeJobQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeComputeEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeJobDefinitionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeJobQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.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.paginateDescribeComputeEnvironments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchClient_1 = require("../BatchClient");
|
|
5
6
|
const DescribeComputeEnvironmentsCommand_1 = require("../commands/DescribeComputeEnvironmentsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeComputeEnvironmentsCommand_1.DescribeComputeEnvironmentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeComputeEnvironments(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 BatchClient_1.BatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
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.paginateDescribeComputeEnvironments = paginateDescribeComputeEnvironments;
|
|
7
|
+
exports.paginateDescribeComputeEnvironments = (0, core_1.createPaginator)(BatchClient_1.BatchClient, DescribeComputeEnvironmentsCommand_1.DescribeComputeEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeJobDefinitions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchClient_1 = require("../BatchClient");
|
|
5
6
|
const DescribeJobDefinitionsCommand_1 = require("../commands/DescribeJobDefinitionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeJobDefinitionsCommand_1.DescribeJobDefinitionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeJobDefinitions(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 BatchClient_1.BatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
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.paginateDescribeJobDefinitions = paginateDescribeJobDefinitions;
|
|
7
|
+
exports.paginateDescribeJobDefinitions = (0, core_1.createPaginator)(BatchClient_1.BatchClient, DescribeJobDefinitionsCommand_1.DescribeJobDefinitionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeJobQueues = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchClient_1 = require("../BatchClient");
|
|
5
6
|
const DescribeJobQueuesCommand_1 = require("../commands/DescribeJobQueuesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeJobQueuesCommand_1.DescribeJobQueuesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeJobQueues(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 BatchClient_1.BatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
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.paginateDescribeJobQueues = paginateDescribeJobQueues;
|
|
7
|
+
exports.paginateDescribeJobQueues = (0, core_1.createPaginator)(BatchClient_1.BatchClient, DescribeJobQueuesCommand_1.DescribeJobQueuesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListJobs = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchClient_1 = require("../BatchClient");
|
|
5
6
|
const ListJobsCommand_1 = require("../commands/ListJobsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListJobsCommand_1.ListJobsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListJobs(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 BatchClient_1.BatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
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.paginateListJobs = paginateListJobs;
|
|
7
|
+
exports.paginateListJobs = (0, core_1.createPaginator)(BatchClient_1.BatchClient, ListJobsCommand_1.ListJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSchedulingPolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchClient_1 = require("../BatchClient");
|
|
5
6
|
const ListSchedulingPoliciesCommand_1 = require("../commands/ListSchedulingPoliciesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSchedulingPolicies(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 BatchClient_1.BatchClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
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.paginateListSchedulingPolicies = paginateListSchedulingPolicies;
|
|
7
|
+
exports.paginateListSchedulingPolicies = (0, core_1.createPaginator)(BatchClient_1.BatchClient, ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand, "nextToken", "nextToken", "maxResults");
|