@aws-sdk/client-batch 3.40.0 → 3.45.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/CHANGELOG.md +44 -0
- package/README.md +2 -2
- package/dist-cjs/Batch.js +75 -0
- package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +36 -0
- package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +36 -0
- package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +36 -0
- package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +25 -0
- package/dist-cjs/models/models_0.js +87 -3
- package/dist-cjs/pagination/ListSchedulingPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +509 -1
- package/dist-es/Batch.js +75 -0
- package/dist-es/commands/CreateSchedulingPolicyCommand.js +39 -0
- package/dist-es/commands/DeleteSchedulingPolicyCommand.js +39 -0
- package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +39 -0
- package/dist-es/commands/ListSchedulingPoliciesCommand.js +39 -0
- package/dist-es/commands/UpdateSchedulingPolicyCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +25 -0
- package/dist-es/models/models_0.js +56 -0
- package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +584 -13
- package/dist-types/Batch.d.ts +50 -12
- package/dist-types/BatchClient.d.ts +9 -4
- package/dist-types/commands/CancelJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateComputeEnvironmentCommand.d.ts +5 -6
- package/dist-types/commands/CreateJobQueueCommand.d.ts +1 -1
- package/dist-types/commands/CreateSchedulingPolicyCommand.d.ts +35 -0
- package/dist-types/commands/DeleteComputeEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobQueueCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSchedulingPolicyCommand.d.ts +36 -0
- package/dist-types/commands/DeregisterJobDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeComputeEnvironmentsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobDefinitionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobQueuesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSchedulingPoliciesCommand.d.ts +35 -0
- package/dist-types/commands/ListJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListSchedulingPoliciesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/dist-types/commands/RegisterJobDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/SubmitJobCommand.d.ts +5 -2
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/TerminateJobCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateComputeEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateJobQueueCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSchedulingPolicyCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +455 -114
- package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Batch.d.ts +25 -0
- package/dist-types/ts3.4/BatchClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateSchedulingPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSchedulingPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeSchedulingPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSchedulingPoliciesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSchedulingPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +164 -0
- package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +15 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **clients:** merge default variants by comparing tags ([#3044](https://github.com/aws/aws-sdk-js-v3/issues/3044)) ([d65a310](https://github.com/aws/aws-sdk-js-v3/commit/d65a310ed5a471e72633a18ae6f3c98390e20783))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
51
|
|
|
8
52
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native.
|
|
|
9
9
|
|
|
10
10
|
<fullname>Batch</fullname>
|
|
11
11
|
|
|
12
|
-
<p>Using Batch, you can run batch computing workloads on the Cloud. Batch computing is a common means for
|
|
12
|
+
<p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
|
|
13
13
|
developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
|
|
14
14
|
this computing workload to remove the undifferentiated heavy lifting of configuring and managing required
|
|
15
15
|
infrastructure. At the same time, it also adopts a familiar batch computing software approach. Given these
|
|
@@ -18,7 +18,7 @@ helping you to eliminate capacity constraints, reduce compute costs, and deliver
|
|
|
18
18
|
<p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
|
|
19
19
|
provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
|
|
20
20
|
workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
|
|
21
|
-
your time and energy on analyzing results and solving your specific problems
|
|
21
|
+
your time and energy on analyzing results and solving your specific problems.</p>
|
|
22
22
|
|
|
23
23
|
## Installing
|
|
24
24
|
|
package/dist-cjs/Batch.js
CHANGED
|
@@ -5,14 +5,18 @@ const BatchClient_1 = require("./BatchClient");
|
|
|
5
5
|
const CancelJobCommand_1 = require("./commands/CancelJobCommand");
|
|
6
6
|
const CreateComputeEnvironmentCommand_1 = require("./commands/CreateComputeEnvironmentCommand");
|
|
7
7
|
const CreateJobQueueCommand_1 = require("./commands/CreateJobQueueCommand");
|
|
8
|
+
const CreateSchedulingPolicyCommand_1 = require("./commands/CreateSchedulingPolicyCommand");
|
|
8
9
|
const DeleteComputeEnvironmentCommand_1 = require("./commands/DeleteComputeEnvironmentCommand");
|
|
9
10
|
const DeleteJobQueueCommand_1 = require("./commands/DeleteJobQueueCommand");
|
|
11
|
+
const DeleteSchedulingPolicyCommand_1 = require("./commands/DeleteSchedulingPolicyCommand");
|
|
10
12
|
const DeregisterJobDefinitionCommand_1 = require("./commands/DeregisterJobDefinitionCommand");
|
|
11
13
|
const DescribeComputeEnvironmentsCommand_1 = require("./commands/DescribeComputeEnvironmentsCommand");
|
|
12
14
|
const DescribeJobDefinitionsCommand_1 = require("./commands/DescribeJobDefinitionsCommand");
|
|
13
15
|
const DescribeJobQueuesCommand_1 = require("./commands/DescribeJobQueuesCommand");
|
|
14
16
|
const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
|
|
17
|
+
const DescribeSchedulingPoliciesCommand_1 = require("./commands/DescribeSchedulingPoliciesCommand");
|
|
15
18
|
const ListJobsCommand_1 = require("./commands/ListJobsCommand");
|
|
19
|
+
const ListSchedulingPoliciesCommand_1 = require("./commands/ListSchedulingPoliciesCommand");
|
|
16
20
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
17
21
|
const RegisterJobDefinitionCommand_1 = require("./commands/RegisterJobDefinitionCommand");
|
|
18
22
|
const SubmitJobCommand_1 = require("./commands/SubmitJobCommand");
|
|
@@ -21,6 +25,7 @@ const TerminateJobCommand_1 = require("./commands/TerminateJobCommand");
|
|
|
21
25
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
22
26
|
const UpdateComputeEnvironmentCommand_1 = require("./commands/UpdateComputeEnvironmentCommand");
|
|
23
27
|
const UpdateJobQueueCommand_1 = require("./commands/UpdateJobQueueCommand");
|
|
28
|
+
const UpdateSchedulingPolicyCommand_1 = require("./commands/UpdateSchedulingPolicyCommand");
|
|
24
29
|
class Batch extends BatchClient_1.BatchClient {
|
|
25
30
|
cancelJob(args, optionsOrCb, cb) {
|
|
26
31
|
const command = new CancelJobCommand_1.CancelJobCommand(args);
|
|
@@ -64,6 +69,20 @@ class Batch extends BatchClient_1.BatchClient {
|
|
|
64
69
|
return this.send(command, optionsOrCb);
|
|
65
70
|
}
|
|
66
71
|
}
|
|
72
|
+
createSchedulingPolicy(args, optionsOrCb, cb) {
|
|
73
|
+
const command = new CreateSchedulingPolicyCommand_1.CreateSchedulingPolicyCommand(args);
|
|
74
|
+
if (typeof optionsOrCb === "function") {
|
|
75
|
+
this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
else if (typeof cb === "function") {
|
|
78
|
+
if (typeof optionsOrCb !== "object")
|
|
79
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
return this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
67
86
|
deleteComputeEnvironment(args, optionsOrCb, cb) {
|
|
68
87
|
const command = new DeleteComputeEnvironmentCommand_1.DeleteComputeEnvironmentCommand(args);
|
|
69
88
|
if (typeof optionsOrCb === "function") {
|
|
@@ -92,6 +111,20 @@ class Batch extends BatchClient_1.BatchClient {
|
|
|
92
111
|
return this.send(command, optionsOrCb);
|
|
93
112
|
}
|
|
94
113
|
}
|
|
114
|
+
deleteSchedulingPolicy(args, optionsOrCb, cb) {
|
|
115
|
+
const command = new DeleteSchedulingPolicyCommand_1.DeleteSchedulingPolicyCommand(args);
|
|
116
|
+
if (typeof optionsOrCb === "function") {
|
|
117
|
+
this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
else if (typeof cb === "function") {
|
|
120
|
+
if (typeof optionsOrCb !== "object")
|
|
121
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
95
128
|
deregisterJobDefinition(args, optionsOrCb, cb) {
|
|
96
129
|
const command = new DeregisterJobDefinitionCommand_1.DeregisterJobDefinitionCommand(args);
|
|
97
130
|
if (typeof optionsOrCb === "function") {
|
|
@@ -162,6 +195,20 @@ class Batch extends BatchClient_1.BatchClient {
|
|
|
162
195
|
return this.send(command, optionsOrCb);
|
|
163
196
|
}
|
|
164
197
|
}
|
|
198
|
+
describeSchedulingPolicies(args, optionsOrCb, cb) {
|
|
199
|
+
const command = new DescribeSchedulingPoliciesCommand_1.DescribeSchedulingPoliciesCommand(args);
|
|
200
|
+
if (typeof optionsOrCb === "function") {
|
|
201
|
+
this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
else if (typeof cb === "function") {
|
|
204
|
+
if (typeof optionsOrCb !== "object")
|
|
205
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
206
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
return this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
165
212
|
listJobs(args, optionsOrCb, cb) {
|
|
166
213
|
const command = new ListJobsCommand_1.ListJobsCommand(args);
|
|
167
214
|
if (typeof optionsOrCb === "function") {
|
|
@@ -176,6 +223,20 @@ class Batch extends BatchClient_1.BatchClient {
|
|
|
176
223
|
return this.send(command, optionsOrCb);
|
|
177
224
|
}
|
|
178
225
|
}
|
|
226
|
+
listSchedulingPolicies(args, optionsOrCb, cb) {
|
|
227
|
+
const command = new ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand(args);
|
|
228
|
+
if (typeof optionsOrCb === "function") {
|
|
229
|
+
this.send(command, optionsOrCb);
|
|
230
|
+
}
|
|
231
|
+
else if (typeof cb === "function") {
|
|
232
|
+
if (typeof optionsOrCb !== "object")
|
|
233
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
234
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
return this.send(command, optionsOrCb);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
179
240
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
180
241
|
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
181
242
|
if (typeof optionsOrCb === "function") {
|
|
@@ -288,5 +349,19 @@ class Batch extends BatchClient_1.BatchClient {
|
|
|
288
349
|
return this.send(command, optionsOrCb);
|
|
289
350
|
}
|
|
290
351
|
}
|
|
352
|
+
updateSchedulingPolicy(args, optionsOrCb, cb) {
|
|
353
|
+
const command = new UpdateSchedulingPolicyCommand_1.UpdateSchedulingPolicyCommand(args);
|
|
354
|
+
if (typeof optionsOrCb === "function") {
|
|
355
|
+
this.send(command, optionsOrCb);
|
|
356
|
+
}
|
|
357
|
+
else if (typeof cb === "function") {
|
|
358
|
+
if (typeof optionsOrCb !== "object")
|
|
359
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
360
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
return this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
291
366
|
}
|
|
292
367
|
exports.Batch = Batch;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSchedulingPolicyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateSchedulingPolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BatchClient";
|
|
18
|
+
const commandName = "CreateSchedulingPolicyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateSchedulingPolicyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateSchedulingPolicyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1CreateSchedulingPolicyCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1CreateSchedulingPolicyCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateSchedulingPolicyCommand = CreateSchedulingPolicyCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSchedulingPolicyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteSchedulingPolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BatchClient";
|
|
18
|
+
const commandName = "DeleteSchedulingPolicyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteSchedulingPolicyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DeleteSchedulingPolicyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DeleteSchedulingPolicyCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DeleteSchedulingPolicyCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteSchedulingPolicyCommand = DeleteSchedulingPolicyCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeSchedulingPoliciesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DescribeSchedulingPoliciesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BatchClient";
|
|
18
|
+
const commandName = "DescribeSchedulingPoliciesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeSchedulingPoliciesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeSchedulingPoliciesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1DescribeSchedulingPoliciesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1DescribeSchedulingPoliciesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeSchedulingPoliciesCommand = DescribeSchedulingPoliciesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSchedulingPoliciesCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListSchedulingPoliciesCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BatchClient";
|
|
18
|
+
const commandName = "ListSchedulingPoliciesCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListSchedulingPoliciesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListSchedulingPoliciesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1ListSchedulingPoliciesCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1ListSchedulingPoliciesCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListSchedulingPoliciesCommand = ListSchedulingPoliciesCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSchedulingPolicyCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateSchedulingPolicyCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BatchClient";
|
|
18
|
+
const commandName = "UpdateSchedulingPolicyCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateSchedulingPolicyRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateSchedulingPolicyResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateSchedulingPolicyCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateSchedulingPolicyCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateSchedulingPolicyCommand = UpdateSchedulingPolicyCommand;
|
|
@@ -4,14 +4,18 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CancelJobCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./CreateComputeEnvironmentCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateJobQueueCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./CreateSchedulingPolicyCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DeleteComputeEnvironmentCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DeleteJobQueueCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeleteSchedulingPolicyCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./DeregisterJobDefinitionCommand"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./DescribeComputeEnvironmentsCommand"), exports);
|
|
11
13
|
tslib_1.__exportStar(require("./DescribeJobDefinitionsCommand"), exports);
|
|
12
14
|
tslib_1.__exportStar(require("./DescribeJobQueuesCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DescribeJobsCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./DescribeSchedulingPoliciesCommand"), exports);
|
|
14
17
|
tslib_1.__exportStar(require("./ListJobsCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./ListSchedulingPoliciesCommand"), exports);
|
|
15
19
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
16
20
|
tslib_1.__exportStar(require("./RegisterJobDefinitionCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./SubmitJobCommand"), exports);
|
|
@@ -20,3 +24,4 @@ tslib_1.__exportStar(require("./TerminateJobCommand"), exports);
|
|
|
20
24
|
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
|
21
25
|
tslib_1.__exportStar(require("./UpdateComputeEnvironmentCommand"), exports);
|
|
22
26
|
tslib_1.__exportStar(require("./UpdateJobQueueCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./UpdateSchedulingPolicyCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -87,6 +87,7 @@ const partitionHash = {
|
|
|
87
87
|
"ap-south-1",
|
|
88
88
|
"ap-southeast-1",
|
|
89
89
|
"ap-southeast-2",
|
|
90
|
+
"ap-southeast-3",
|
|
90
91
|
"ca-central-1",
|
|
91
92
|
"eu-central-1",
|
|
92
93
|
"eu-north-1",
|
|
@@ -115,6 +116,14 @@ const partitionHash = {
|
|
|
115
116
|
hostname: "fips.batch.{region}.amazonaws.com",
|
|
116
117
|
tags: ["fips"],
|
|
117
118
|
},
|
|
119
|
+
{
|
|
120
|
+
hostname: "batch-fips.{region}.api.aws",
|
|
121
|
+
tags: ["dualstack", "fips"],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
hostname: "batch.{region}.api.aws",
|
|
125
|
+
tags: ["dualstack"],
|
|
126
|
+
},
|
|
118
127
|
],
|
|
119
128
|
},
|
|
120
129
|
"aws-cn": {
|
|
@@ -147,6 +156,10 @@ const partitionHash = {
|
|
|
147
156
|
hostname: "batch.{region}.c2s.ic.gov",
|
|
148
157
|
tags: [],
|
|
149
158
|
},
|
|
159
|
+
{
|
|
160
|
+
hostname: "batch-fips.{region}.c2s.ic.gov",
|
|
161
|
+
tags: ["fips"],
|
|
162
|
+
},
|
|
150
163
|
],
|
|
151
164
|
},
|
|
152
165
|
"aws-iso-b": {
|
|
@@ -157,6 +170,10 @@ const partitionHash = {
|
|
|
157
170
|
hostname: "batch.{region}.sc2s.sgov.gov",
|
|
158
171
|
tags: [],
|
|
159
172
|
},
|
|
173
|
+
{
|
|
174
|
+
hostname: "batch-fips.{region}.sc2s.sgov.gov",
|
|
175
|
+
tags: ["fips"],
|
|
176
|
+
},
|
|
160
177
|
],
|
|
161
178
|
},
|
|
162
179
|
"aws-us-gov": {
|
|
@@ -171,6 +188,14 @@ const partitionHash = {
|
|
|
171
188
|
hostname: "batch.{region}.amazonaws.com",
|
|
172
189
|
tags: ["fips"],
|
|
173
190
|
},
|
|
191
|
+
{
|
|
192
|
+
hostname: "batch-fips.{region}.api.aws",
|
|
193
|
+
tags: ["dualstack", "fips"],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
hostname: "batch.{region}.api.aws",
|
|
197
|
+
tags: ["dualstack"],
|
|
198
|
+
},
|
|
174
199
|
],
|
|
175
200
|
},
|
|
176
201
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateJobQueueResponse = exports.UpdateJobQueueRequest = exports.UpdateComputeEnvironmentResponse = exports.UpdateComputeEnvironmentRequest = void 0;
|
|
3
|
+
exports.Secret = exports.LogDriver = exports.LinuxParameters = exports.Tmpfs = exports.Device = exports.DeviceCgroupPermission = exports.FargatePlatformConfiguration = exports.KeyValuePair = exports.DescribeJobDefinitionsRequest = exports.DescribeComputeEnvironmentsResponse = exports.ComputeEnvironmentDetail = exports.CEStatus = exports.DescribeComputeEnvironmentsRequest = exports.DeregisterJobDefinitionResponse = exports.DeregisterJobDefinitionRequest = exports.DeleteSchedulingPolicyResponse = exports.DeleteSchedulingPolicyRequest = exports.DeleteJobQueueResponse = exports.DeleteJobQueueRequest = exports.DeleteComputeEnvironmentResponse = exports.DeleteComputeEnvironmentRequest = exports.CreateSchedulingPolicyResponse = exports.CreateSchedulingPolicyRequest = exports.FairsharePolicy = exports.ShareAttributes = exports.CreateJobQueueResponse = exports.CreateJobQueueRequest = exports.JQState = exports.ComputeEnvironmentOrder = exports.CreateComputeEnvironmentResponse = exports.CreateComputeEnvironmentRequest = exports.CEType = exports.CEState = exports.ComputeResource = exports.CRType = exports.LaunchTemplateSpecification = exports.Ec2Configuration = exports.CRAllocationStrategy = exports.ServerException = exports.ClientException = exports.CancelJobResponse = exports.CancelJobRequest = exports.AttemptDetail = exports.AttemptContainerDetail = exports.NetworkInterface = exports.AssignPublicIp = exports.ArrayPropertiesSummary = exports.ArrayPropertiesDetail = exports.ArrayProperties = exports.ArrayJobDependency = void 0;
|
|
4
|
+
exports.RegisterJobDefinitionResponse = exports.RegisterJobDefinitionRequest = exports.JobDefinitionType = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSchedulingPoliciesResponse = exports.SchedulingPolicyListingDetail = exports.ListSchedulingPoliciesRequest = exports.ListJobsResponse = exports.JobSummary = exports.NodePropertiesSummary = exports.ContainerSummary = exports.ListJobsRequest = exports.KeyValuesPair = exports.DescribeSchedulingPoliciesResponse = exports.SchedulingPolicyDetail = exports.DescribeSchedulingPoliciesRequest = exports.DescribeJobsResponse = exports.JobDetail = exports.JobStatus = exports.NodeDetails = exports.JobDependency = exports.ContainerDetail = exports.DescribeJobsRequest = exports.DescribeJobQueuesResponse = exports.JobQueueDetail = exports.JQStatus = exports.DescribeJobQueuesRequest = exports.DescribeJobDefinitionsResponse = exports.JobDefinition = exports.JobTimeout = exports.RetryStrategy = exports.EvaluateOnExit = exports.RetryAction = exports.PlatformCapability = exports.NodeProperties = exports.NodeRangeProperty = exports.ContainerProperties = exports.Volume = exports.Host = exports.EFSVolumeConfiguration = exports.EFSTransitEncryption = exports.EFSAuthorizationConfig = exports.EFSAuthorizationConfigIAM = exports.Ulimit = exports.ResourceRequirement = exports.ResourceType = exports.NetworkConfiguration = exports.MountPoint = exports.LogConfiguration = void 0;
|
|
5
|
+
exports.UpdateSchedulingPolicyResponse = exports.UpdateSchedulingPolicyRequest = exports.UpdateJobQueueResponse = exports.UpdateJobQueueRequest = exports.UpdateComputeEnvironmentResponse = exports.UpdateComputeEnvironmentRequest = exports.ComputeResourceUpdate = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TerminateJobResponse = exports.TerminateJobRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SubmitJobResponse = exports.SubmitJobRequest = exports.NodeOverrides = exports.NodePropertyOverride = exports.ContainerOverrides = void 0;
|
|
6
6
|
var ArrayJobDependency;
|
|
7
7
|
(function (ArrayJobDependency) {
|
|
8
8
|
ArrayJobDependency["N_TO_N"] = "N_TO_N";
|
|
@@ -149,6 +149,30 @@ var CreateJobQueueResponse;
|
|
|
149
149
|
...obj,
|
|
150
150
|
});
|
|
151
151
|
})(CreateJobQueueResponse = exports.CreateJobQueueResponse || (exports.CreateJobQueueResponse = {}));
|
|
152
|
+
var ShareAttributes;
|
|
153
|
+
(function (ShareAttributes) {
|
|
154
|
+
ShareAttributes.filterSensitiveLog = (obj) => ({
|
|
155
|
+
...obj,
|
|
156
|
+
});
|
|
157
|
+
})(ShareAttributes = exports.ShareAttributes || (exports.ShareAttributes = {}));
|
|
158
|
+
var FairsharePolicy;
|
|
159
|
+
(function (FairsharePolicy) {
|
|
160
|
+
FairsharePolicy.filterSensitiveLog = (obj) => ({
|
|
161
|
+
...obj,
|
|
162
|
+
});
|
|
163
|
+
})(FairsharePolicy = exports.FairsharePolicy || (exports.FairsharePolicy = {}));
|
|
164
|
+
var CreateSchedulingPolicyRequest;
|
|
165
|
+
(function (CreateSchedulingPolicyRequest) {
|
|
166
|
+
CreateSchedulingPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
167
|
+
...obj,
|
|
168
|
+
});
|
|
169
|
+
})(CreateSchedulingPolicyRequest = exports.CreateSchedulingPolicyRequest || (exports.CreateSchedulingPolicyRequest = {}));
|
|
170
|
+
var CreateSchedulingPolicyResponse;
|
|
171
|
+
(function (CreateSchedulingPolicyResponse) {
|
|
172
|
+
CreateSchedulingPolicyResponse.filterSensitiveLog = (obj) => ({
|
|
173
|
+
...obj,
|
|
174
|
+
});
|
|
175
|
+
})(CreateSchedulingPolicyResponse = exports.CreateSchedulingPolicyResponse || (exports.CreateSchedulingPolicyResponse = {}));
|
|
152
176
|
var DeleteComputeEnvironmentRequest;
|
|
153
177
|
(function (DeleteComputeEnvironmentRequest) {
|
|
154
178
|
DeleteComputeEnvironmentRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -173,6 +197,18 @@ var DeleteJobQueueResponse;
|
|
|
173
197
|
...obj,
|
|
174
198
|
});
|
|
175
199
|
})(DeleteJobQueueResponse = exports.DeleteJobQueueResponse || (exports.DeleteJobQueueResponse = {}));
|
|
200
|
+
var DeleteSchedulingPolicyRequest;
|
|
201
|
+
(function (DeleteSchedulingPolicyRequest) {
|
|
202
|
+
DeleteSchedulingPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
203
|
+
...obj,
|
|
204
|
+
});
|
|
205
|
+
})(DeleteSchedulingPolicyRequest = exports.DeleteSchedulingPolicyRequest || (exports.DeleteSchedulingPolicyRequest = {}));
|
|
206
|
+
var DeleteSchedulingPolicyResponse;
|
|
207
|
+
(function (DeleteSchedulingPolicyResponse) {
|
|
208
|
+
DeleteSchedulingPolicyResponse.filterSensitiveLog = (obj) => ({
|
|
209
|
+
...obj,
|
|
210
|
+
});
|
|
211
|
+
})(DeleteSchedulingPolicyResponse = exports.DeleteSchedulingPolicyResponse || (exports.DeleteSchedulingPolicyResponse = {}));
|
|
176
212
|
var DeregisterJobDefinitionRequest;
|
|
177
213
|
(function (DeregisterJobDefinitionRequest) {
|
|
178
214
|
DeregisterJobDefinitionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -471,6 +507,24 @@ var DescribeJobsResponse;
|
|
|
471
507
|
...obj,
|
|
472
508
|
});
|
|
473
509
|
})(DescribeJobsResponse = exports.DescribeJobsResponse || (exports.DescribeJobsResponse = {}));
|
|
510
|
+
var DescribeSchedulingPoliciesRequest;
|
|
511
|
+
(function (DescribeSchedulingPoliciesRequest) {
|
|
512
|
+
DescribeSchedulingPoliciesRequest.filterSensitiveLog = (obj) => ({
|
|
513
|
+
...obj,
|
|
514
|
+
});
|
|
515
|
+
})(DescribeSchedulingPoliciesRequest = exports.DescribeSchedulingPoliciesRequest || (exports.DescribeSchedulingPoliciesRequest = {}));
|
|
516
|
+
var SchedulingPolicyDetail;
|
|
517
|
+
(function (SchedulingPolicyDetail) {
|
|
518
|
+
SchedulingPolicyDetail.filterSensitiveLog = (obj) => ({
|
|
519
|
+
...obj,
|
|
520
|
+
});
|
|
521
|
+
})(SchedulingPolicyDetail = exports.SchedulingPolicyDetail || (exports.SchedulingPolicyDetail = {}));
|
|
522
|
+
var DescribeSchedulingPoliciesResponse;
|
|
523
|
+
(function (DescribeSchedulingPoliciesResponse) {
|
|
524
|
+
DescribeSchedulingPoliciesResponse.filterSensitiveLog = (obj) => ({
|
|
525
|
+
...obj,
|
|
526
|
+
});
|
|
527
|
+
})(DescribeSchedulingPoliciesResponse = exports.DescribeSchedulingPoliciesResponse || (exports.DescribeSchedulingPoliciesResponse = {}));
|
|
474
528
|
var KeyValuesPair;
|
|
475
529
|
(function (KeyValuesPair) {
|
|
476
530
|
KeyValuesPair.filterSensitiveLog = (obj) => ({
|
|
@@ -507,6 +561,24 @@ var ListJobsResponse;
|
|
|
507
561
|
...obj,
|
|
508
562
|
});
|
|
509
563
|
})(ListJobsResponse = exports.ListJobsResponse || (exports.ListJobsResponse = {}));
|
|
564
|
+
var ListSchedulingPoliciesRequest;
|
|
565
|
+
(function (ListSchedulingPoliciesRequest) {
|
|
566
|
+
ListSchedulingPoliciesRequest.filterSensitiveLog = (obj) => ({
|
|
567
|
+
...obj,
|
|
568
|
+
});
|
|
569
|
+
})(ListSchedulingPoliciesRequest = exports.ListSchedulingPoliciesRequest || (exports.ListSchedulingPoliciesRequest = {}));
|
|
570
|
+
var SchedulingPolicyListingDetail;
|
|
571
|
+
(function (SchedulingPolicyListingDetail) {
|
|
572
|
+
SchedulingPolicyListingDetail.filterSensitiveLog = (obj) => ({
|
|
573
|
+
...obj,
|
|
574
|
+
});
|
|
575
|
+
})(SchedulingPolicyListingDetail = exports.SchedulingPolicyListingDetail || (exports.SchedulingPolicyListingDetail = {}));
|
|
576
|
+
var ListSchedulingPoliciesResponse;
|
|
577
|
+
(function (ListSchedulingPoliciesResponse) {
|
|
578
|
+
ListSchedulingPoliciesResponse.filterSensitiveLog = (obj) => ({
|
|
579
|
+
...obj,
|
|
580
|
+
});
|
|
581
|
+
})(ListSchedulingPoliciesResponse = exports.ListSchedulingPoliciesResponse || (exports.ListSchedulingPoliciesResponse = {}));
|
|
510
582
|
var ListTagsForResourceRequest;
|
|
511
583
|
(function (ListTagsForResourceRequest) {
|
|
512
584
|
ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -632,3 +704,15 @@ var UpdateJobQueueResponse;
|
|
|
632
704
|
...obj,
|
|
633
705
|
});
|
|
634
706
|
})(UpdateJobQueueResponse = exports.UpdateJobQueueResponse || (exports.UpdateJobQueueResponse = {}));
|
|
707
|
+
var UpdateSchedulingPolicyRequest;
|
|
708
|
+
(function (UpdateSchedulingPolicyRequest) {
|
|
709
|
+
UpdateSchedulingPolicyRequest.filterSensitiveLog = (obj) => ({
|
|
710
|
+
...obj,
|
|
711
|
+
});
|
|
712
|
+
})(UpdateSchedulingPolicyRequest = exports.UpdateSchedulingPolicyRequest || (exports.UpdateSchedulingPolicyRequest = {}));
|
|
713
|
+
var UpdateSchedulingPolicyResponse;
|
|
714
|
+
(function (UpdateSchedulingPolicyResponse) {
|
|
715
|
+
UpdateSchedulingPolicyResponse.filterSensitiveLog = (obj) => ({
|
|
716
|
+
...obj,
|
|
717
|
+
});
|
|
718
|
+
})(UpdateSchedulingPolicyResponse = exports.UpdateSchedulingPolicyResponse || (exports.UpdateSchedulingPolicyResponse = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSchedulingPolicies = void 0;
|
|
4
|
+
const Batch_1 = require("../Batch");
|
|
5
|
+
const BatchClient_1 = require("../BatchClient");
|
|
6
|
+
const ListSchedulingPoliciesCommand_1 = require("../commands/ListSchedulingPoliciesCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listSchedulingPolicies(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListSchedulingPolicies(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Batch_1.Batch) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof BatchClient_1.BatchClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Batch | BatchClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.nextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListSchedulingPolicies = paginateListSchedulingPolicies;
|
|
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./DescribeJobDefinitionsPaginator"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeJobQueuesPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./ListJobsPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListSchedulingPoliciesPaginator"), exports);
|