@aws-sdk/client-batch 3.315.0 → 3.319.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/Batch.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Batch = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BatchClient_1 = require("./BatchClient");
5
6
  const CancelJobCommand_1 = require("./commands/CancelJobCommand");
6
7
  const CreateComputeEnvironmentCommand_1 = require("./commands/CreateComputeEnvironmentCommand");
@@ -26,342 +27,33 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
26
27
  const UpdateComputeEnvironmentCommand_1 = require("./commands/UpdateComputeEnvironmentCommand");
27
28
  const UpdateJobQueueCommand_1 = require("./commands/UpdateJobQueueCommand");
28
29
  const UpdateSchedulingPolicyCommand_1 = require("./commands/UpdateSchedulingPolicyCommand");
30
+ const commands = {
31
+ CancelJobCommand: CancelJobCommand_1.CancelJobCommand,
32
+ CreateComputeEnvironmentCommand: CreateComputeEnvironmentCommand_1.CreateComputeEnvironmentCommand,
33
+ CreateJobQueueCommand: CreateJobQueueCommand_1.CreateJobQueueCommand,
34
+ CreateSchedulingPolicyCommand: CreateSchedulingPolicyCommand_1.CreateSchedulingPolicyCommand,
35
+ DeleteComputeEnvironmentCommand: DeleteComputeEnvironmentCommand_1.DeleteComputeEnvironmentCommand,
36
+ DeleteJobQueueCommand: DeleteJobQueueCommand_1.DeleteJobQueueCommand,
37
+ DeleteSchedulingPolicyCommand: DeleteSchedulingPolicyCommand_1.DeleteSchedulingPolicyCommand,
38
+ DeregisterJobDefinitionCommand: DeregisterJobDefinitionCommand_1.DeregisterJobDefinitionCommand,
39
+ DescribeComputeEnvironmentsCommand: DescribeComputeEnvironmentsCommand_1.DescribeComputeEnvironmentsCommand,
40
+ DescribeJobDefinitionsCommand: DescribeJobDefinitionsCommand_1.DescribeJobDefinitionsCommand,
41
+ DescribeJobQueuesCommand: DescribeJobQueuesCommand_1.DescribeJobQueuesCommand,
42
+ DescribeJobsCommand: DescribeJobsCommand_1.DescribeJobsCommand,
43
+ DescribeSchedulingPoliciesCommand: DescribeSchedulingPoliciesCommand_1.DescribeSchedulingPoliciesCommand,
44
+ ListJobsCommand: ListJobsCommand_1.ListJobsCommand,
45
+ ListSchedulingPoliciesCommand: ListSchedulingPoliciesCommand_1.ListSchedulingPoliciesCommand,
46
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
47
+ RegisterJobDefinitionCommand: RegisterJobDefinitionCommand_1.RegisterJobDefinitionCommand,
48
+ SubmitJobCommand: SubmitJobCommand_1.SubmitJobCommand,
49
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
50
+ TerminateJobCommand: TerminateJobCommand_1.TerminateJobCommand,
51
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
52
+ UpdateComputeEnvironmentCommand: UpdateComputeEnvironmentCommand_1.UpdateComputeEnvironmentCommand,
53
+ UpdateJobQueueCommand: UpdateJobQueueCommand_1.UpdateJobQueueCommand,
54
+ UpdateSchedulingPolicyCommand: UpdateSchedulingPolicyCommand_1.UpdateSchedulingPolicyCommand,
55
+ };
29
56
  class Batch extends BatchClient_1.BatchClient {
30
- cancelJob(args, optionsOrCb, cb) {
31
- const command = new CancelJobCommand_1.CancelJobCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- createComputeEnvironment(args, optionsOrCb, cb) {
45
- const command = new CreateComputeEnvironmentCommand_1.CreateComputeEnvironmentCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- createJobQueue(args, optionsOrCb, cb) {
59
- const command = new CreateJobQueueCommand_1.CreateJobQueueCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
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
- }
86
- deleteComputeEnvironment(args, optionsOrCb, cb) {
87
- const command = new DeleteComputeEnvironmentCommand_1.DeleteComputeEnvironmentCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- deleteJobQueue(args, optionsOrCb, cb) {
101
- const command = new DeleteJobQueueCommand_1.DeleteJobQueueCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
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
- }
128
- deregisterJobDefinition(args, optionsOrCb, cb) {
129
- const command = new DeregisterJobDefinitionCommand_1.DeregisterJobDefinitionCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- describeComputeEnvironments(args, optionsOrCb, cb) {
143
- const command = new DescribeComputeEnvironmentsCommand_1.DescribeComputeEnvironmentsCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- describeJobDefinitions(args, optionsOrCb, cb) {
157
- const command = new DescribeJobDefinitionsCommand_1.DescribeJobDefinitionsCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- describeJobQueues(args, optionsOrCb, cb) {
171
- const command = new DescribeJobQueuesCommand_1.DescribeJobQueuesCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- describeJobs(args, optionsOrCb, cb) {
185
- const command = new DescribeJobsCommand_1.DescribeJobsCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
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
- }
212
- listJobs(args, optionsOrCb, cb) {
213
- const command = new ListJobsCommand_1.ListJobsCommand(args);
214
- if (typeof optionsOrCb === "function") {
215
- this.send(command, optionsOrCb);
216
- }
217
- else if (typeof cb === "function") {
218
- if (typeof optionsOrCb !== "object")
219
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
- this.send(command, optionsOrCb || {}, cb);
221
- }
222
- else {
223
- return this.send(command, optionsOrCb);
224
- }
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
- }
240
- listTagsForResource(args, optionsOrCb, cb) {
241
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
242
- if (typeof optionsOrCb === "function") {
243
- this.send(command, optionsOrCb);
244
- }
245
- else if (typeof cb === "function") {
246
- if (typeof optionsOrCb !== "object")
247
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
- this.send(command, optionsOrCb || {}, cb);
249
- }
250
- else {
251
- return this.send(command, optionsOrCb);
252
- }
253
- }
254
- registerJobDefinition(args, optionsOrCb, cb) {
255
- const command = new RegisterJobDefinitionCommand_1.RegisterJobDefinitionCommand(args);
256
- if (typeof optionsOrCb === "function") {
257
- this.send(command, optionsOrCb);
258
- }
259
- else if (typeof cb === "function") {
260
- if (typeof optionsOrCb !== "object")
261
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
- this.send(command, optionsOrCb || {}, cb);
263
- }
264
- else {
265
- return this.send(command, optionsOrCb);
266
- }
267
- }
268
- submitJob(args, optionsOrCb, cb) {
269
- const command = new SubmitJobCommand_1.SubmitJobCommand(args);
270
- if (typeof optionsOrCb === "function") {
271
- this.send(command, optionsOrCb);
272
- }
273
- else if (typeof cb === "function") {
274
- if (typeof optionsOrCb !== "object")
275
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
- this.send(command, optionsOrCb || {}, cb);
277
- }
278
- else {
279
- return this.send(command, optionsOrCb);
280
- }
281
- }
282
- tagResource(args, optionsOrCb, cb) {
283
- const command = new TagResourceCommand_1.TagResourceCommand(args);
284
- if (typeof optionsOrCb === "function") {
285
- this.send(command, optionsOrCb);
286
- }
287
- else if (typeof cb === "function") {
288
- if (typeof optionsOrCb !== "object")
289
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
- this.send(command, optionsOrCb || {}, cb);
291
- }
292
- else {
293
- return this.send(command, optionsOrCb);
294
- }
295
- }
296
- terminateJob(args, optionsOrCb, cb) {
297
- const command = new TerminateJobCommand_1.TerminateJobCommand(args);
298
- if (typeof optionsOrCb === "function") {
299
- this.send(command, optionsOrCb);
300
- }
301
- else if (typeof cb === "function") {
302
- if (typeof optionsOrCb !== "object")
303
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
- this.send(command, optionsOrCb || {}, cb);
305
- }
306
- else {
307
- return this.send(command, optionsOrCb);
308
- }
309
- }
310
- untagResource(args, optionsOrCb, cb) {
311
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
312
- if (typeof optionsOrCb === "function") {
313
- this.send(command, optionsOrCb);
314
- }
315
- else if (typeof cb === "function") {
316
- if (typeof optionsOrCb !== "object")
317
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
- this.send(command, optionsOrCb || {}, cb);
319
- }
320
- else {
321
- return this.send(command, optionsOrCb);
322
- }
323
- }
324
- updateComputeEnvironment(args, optionsOrCb, cb) {
325
- const command = new UpdateComputeEnvironmentCommand_1.UpdateComputeEnvironmentCommand(args);
326
- if (typeof optionsOrCb === "function") {
327
- this.send(command, optionsOrCb);
328
- }
329
- else if (typeof cb === "function") {
330
- if (typeof optionsOrCb !== "object")
331
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
- this.send(command, optionsOrCb || {}, cb);
333
- }
334
- else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
- updateJobQueue(args, optionsOrCb, cb) {
339
- const command = new UpdateJobQueueCommand_1.UpdateJobQueueCommand(args);
340
- if (typeof optionsOrCb === "function") {
341
- this.send(command, optionsOrCb);
342
- }
343
- else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object")
345
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
- this.send(command, optionsOrCb || {}, cb);
347
- }
348
- else {
349
- return this.send(command, optionsOrCb);
350
- }
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
- }
366
57
  }
367
58
  exports.Batch = Batch;
59
+ (0, smithy_client_1.createAggregatedClient)(commands, Batch);
package/dist-es/Batch.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { BatchClient } from "./BatchClient";
2
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
3
4
  import { CreateComputeEnvironmentCommand, } from "./commands/CreateComputeEnvironmentCommand";
@@ -23,341 +24,32 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
24
  import { UpdateComputeEnvironmentCommand, } from "./commands/UpdateComputeEnvironmentCommand";
24
25
  import { UpdateJobQueueCommand, } from "./commands/UpdateJobQueueCommand";
25
26
  import { UpdateSchedulingPolicyCommand, } from "./commands/UpdateSchedulingPolicyCommand";
27
+ const commands = {
28
+ CancelJobCommand,
29
+ CreateComputeEnvironmentCommand,
30
+ CreateJobQueueCommand,
31
+ CreateSchedulingPolicyCommand,
32
+ DeleteComputeEnvironmentCommand,
33
+ DeleteJobQueueCommand,
34
+ DeleteSchedulingPolicyCommand,
35
+ DeregisterJobDefinitionCommand,
36
+ DescribeComputeEnvironmentsCommand,
37
+ DescribeJobDefinitionsCommand,
38
+ DescribeJobQueuesCommand,
39
+ DescribeJobsCommand,
40
+ DescribeSchedulingPoliciesCommand,
41
+ ListJobsCommand,
42
+ ListSchedulingPoliciesCommand,
43
+ ListTagsForResourceCommand,
44
+ RegisterJobDefinitionCommand,
45
+ SubmitJobCommand,
46
+ TagResourceCommand,
47
+ TerminateJobCommand,
48
+ UntagResourceCommand,
49
+ UpdateComputeEnvironmentCommand,
50
+ UpdateJobQueueCommand,
51
+ UpdateSchedulingPolicyCommand,
52
+ };
26
53
  export class Batch extends BatchClient {
27
- cancelJob(args, optionsOrCb, cb) {
28
- const command = new CancelJobCommand(args);
29
- if (typeof optionsOrCb === "function") {
30
- this.send(command, optionsOrCb);
31
- }
32
- else if (typeof cb === "function") {
33
- if (typeof optionsOrCb !== "object")
34
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
- this.send(command, optionsOrCb || {}, cb);
36
- }
37
- else {
38
- return this.send(command, optionsOrCb);
39
- }
40
- }
41
- createComputeEnvironment(args, optionsOrCb, cb) {
42
- const command = new CreateComputeEnvironmentCommand(args);
43
- if (typeof optionsOrCb === "function") {
44
- this.send(command, optionsOrCb);
45
- }
46
- else if (typeof cb === "function") {
47
- if (typeof optionsOrCb !== "object")
48
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
- this.send(command, optionsOrCb || {}, cb);
50
- }
51
- else {
52
- return this.send(command, optionsOrCb);
53
- }
54
- }
55
- createJobQueue(args, optionsOrCb, cb) {
56
- const command = new CreateJobQueueCommand(args);
57
- if (typeof optionsOrCb === "function") {
58
- this.send(command, optionsOrCb);
59
- }
60
- else if (typeof cb === "function") {
61
- if (typeof optionsOrCb !== "object")
62
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
- this.send(command, optionsOrCb || {}, cb);
64
- }
65
- else {
66
- return this.send(command, optionsOrCb);
67
- }
68
- }
69
- createSchedulingPolicy(args, optionsOrCb, cb) {
70
- const command = new CreateSchedulingPolicyCommand(args);
71
- if (typeof optionsOrCb === "function") {
72
- this.send(command, optionsOrCb);
73
- }
74
- else if (typeof cb === "function") {
75
- if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
- this.send(command, optionsOrCb || {}, cb);
78
- }
79
- else {
80
- return this.send(command, optionsOrCb);
81
- }
82
- }
83
- deleteComputeEnvironment(args, optionsOrCb, cb) {
84
- const command = new DeleteComputeEnvironmentCommand(args);
85
- if (typeof optionsOrCb === "function") {
86
- this.send(command, optionsOrCb);
87
- }
88
- else if (typeof cb === "function") {
89
- if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
- this.send(command, optionsOrCb || {}, cb);
92
- }
93
- else {
94
- return this.send(command, optionsOrCb);
95
- }
96
- }
97
- deleteJobQueue(args, optionsOrCb, cb) {
98
- const command = new DeleteJobQueueCommand(args);
99
- if (typeof optionsOrCb === "function") {
100
- this.send(command, optionsOrCb);
101
- }
102
- else if (typeof cb === "function") {
103
- if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
105
- this.send(command, optionsOrCb || {}, cb);
106
- }
107
- else {
108
- return this.send(command, optionsOrCb);
109
- }
110
- }
111
- deleteSchedulingPolicy(args, optionsOrCb, cb) {
112
- const command = new DeleteSchedulingPolicyCommand(args);
113
- if (typeof optionsOrCb === "function") {
114
- this.send(command, optionsOrCb);
115
- }
116
- else if (typeof cb === "function") {
117
- if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
- this.send(command, optionsOrCb || {}, cb);
120
- }
121
- else {
122
- return this.send(command, optionsOrCb);
123
- }
124
- }
125
- deregisterJobDefinition(args, optionsOrCb, cb) {
126
- const command = new DeregisterJobDefinitionCommand(args);
127
- if (typeof optionsOrCb === "function") {
128
- this.send(command, optionsOrCb);
129
- }
130
- else if (typeof cb === "function") {
131
- if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
133
- this.send(command, optionsOrCb || {}, cb);
134
- }
135
- else {
136
- return this.send(command, optionsOrCb);
137
- }
138
- }
139
- describeComputeEnvironments(args, optionsOrCb, cb) {
140
- const command = new DescribeComputeEnvironmentsCommand(args);
141
- if (typeof optionsOrCb === "function") {
142
- this.send(command, optionsOrCb);
143
- }
144
- else if (typeof cb === "function") {
145
- if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
147
- this.send(command, optionsOrCb || {}, cb);
148
- }
149
- else {
150
- return this.send(command, optionsOrCb);
151
- }
152
- }
153
- describeJobDefinitions(args, optionsOrCb, cb) {
154
- const command = new DescribeJobDefinitionsCommand(args);
155
- if (typeof optionsOrCb === "function") {
156
- this.send(command, optionsOrCb);
157
- }
158
- else if (typeof cb === "function") {
159
- if (typeof optionsOrCb !== "object")
160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
- this.send(command, optionsOrCb || {}, cb);
162
- }
163
- else {
164
- return this.send(command, optionsOrCb);
165
- }
166
- }
167
- describeJobQueues(args, optionsOrCb, cb) {
168
- const command = new DescribeJobQueuesCommand(args);
169
- if (typeof optionsOrCb === "function") {
170
- this.send(command, optionsOrCb);
171
- }
172
- else if (typeof cb === "function") {
173
- if (typeof optionsOrCb !== "object")
174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
175
- this.send(command, optionsOrCb || {}, cb);
176
- }
177
- else {
178
- return this.send(command, optionsOrCb);
179
- }
180
- }
181
- describeJobs(args, optionsOrCb, cb) {
182
- const command = new DescribeJobsCommand(args);
183
- if (typeof optionsOrCb === "function") {
184
- this.send(command, optionsOrCb);
185
- }
186
- else if (typeof cb === "function") {
187
- if (typeof optionsOrCb !== "object")
188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
189
- this.send(command, optionsOrCb || {}, cb);
190
- }
191
- else {
192
- return this.send(command, optionsOrCb);
193
- }
194
- }
195
- describeSchedulingPolicies(args, optionsOrCb, cb) {
196
- const command = new DescribeSchedulingPoliciesCommand(args);
197
- if (typeof optionsOrCb === "function") {
198
- this.send(command, optionsOrCb);
199
- }
200
- else if (typeof cb === "function") {
201
- if (typeof optionsOrCb !== "object")
202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
203
- this.send(command, optionsOrCb || {}, cb);
204
- }
205
- else {
206
- return this.send(command, optionsOrCb);
207
- }
208
- }
209
- listJobs(args, optionsOrCb, cb) {
210
- const command = new ListJobsCommand(args);
211
- if (typeof optionsOrCb === "function") {
212
- this.send(command, optionsOrCb);
213
- }
214
- else if (typeof cb === "function") {
215
- if (typeof optionsOrCb !== "object")
216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
217
- this.send(command, optionsOrCb || {}, cb);
218
- }
219
- else {
220
- return this.send(command, optionsOrCb);
221
- }
222
- }
223
- listSchedulingPolicies(args, optionsOrCb, cb) {
224
- const command = new ListSchedulingPoliciesCommand(args);
225
- if (typeof optionsOrCb === "function") {
226
- this.send(command, optionsOrCb);
227
- }
228
- else if (typeof cb === "function") {
229
- if (typeof optionsOrCb !== "object")
230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
- this.send(command, optionsOrCb || {}, cb);
232
- }
233
- else {
234
- return this.send(command, optionsOrCb);
235
- }
236
- }
237
- listTagsForResource(args, optionsOrCb, cb) {
238
- const command = new ListTagsForResourceCommand(args);
239
- if (typeof optionsOrCb === "function") {
240
- this.send(command, optionsOrCb);
241
- }
242
- else if (typeof cb === "function") {
243
- if (typeof optionsOrCb !== "object")
244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
245
- this.send(command, optionsOrCb || {}, cb);
246
- }
247
- else {
248
- return this.send(command, optionsOrCb);
249
- }
250
- }
251
- registerJobDefinition(args, optionsOrCb, cb) {
252
- const command = new RegisterJobDefinitionCommand(args);
253
- if (typeof optionsOrCb === "function") {
254
- this.send(command, optionsOrCb);
255
- }
256
- else if (typeof cb === "function") {
257
- if (typeof optionsOrCb !== "object")
258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
259
- this.send(command, optionsOrCb || {}, cb);
260
- }
261
- else {
262
- return this.send(command, optionsOrCb);
263
- }
264
- }
265
- submitJob(args, optionsOrCb, cb) {
266
- const command = new SubmitJobCommand(args);
267
- if (typeof optionsOrCb === "function") {
268
- this.send(command, optionsOrCb);
269
- }
270
- else if (typeof cb === "function") {
271
- if (typeof optionsOrCb !== "object")
272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
- this.send(command, optionsOrCb || {}, cb);
274
- }
275
- else {
276
- return this.send(command, optionsOrCb);
277
- }
278
- }
279
- tagResource(args, optionsOrCb, cb) {
280
- const command = new TagResourceCommand(args);
281
- if (typeof optionsOrCb === "function") {
282
- this.send(command, optionsOrCb);
283
- }
284
- else if (typeof cb === "function") {
285
- if (typeof optionsOrCb !== "object")
286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
- this.send(command, optionsOrCb || {}, cb);
288
- }
289
- else {
290
- return this.send(command, optionsOrCb);
291
- }
292
- }
293
- terminateJob(args, optionsOrCb, cb) {
294
- const command = new TerminateJobCommand(args);
295
- if (typeof optionsOrCb === "function") {
296
- this.send(command, optionsOrCb);
297
- }
298
- else if (typeof cb === "function") {
299
- if (typeof optionsOrCb !== "object")
300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
- this.send(command, optionsOrCb || {}, cb);
302
- }
303
- else {
304
- return this.send(command, optionsOrCb);
305
- }
306
- }
307
- untagResource(args, optionsOrCb, cb) {
308
- const command = new UntagResourceCommand(args);
309
- if (typeof optionsOrCb === "function") {
310
- this.send(command, optionsOrCb);
311
- }
312
- else if (typeof cb === "function") {
313
- if (typeof optionsOrCb !== "object")
314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
315
- this.send(command, optionsOrCb || {}, cb);
316
- }
317
- else {
318
- return this.send(command, optionsOrCb);
319
- }
320
- }
321
- updateComputeEnvironment(args, optionsOrCb, cb) {
322
- const command = new UpdateComputeEnvironmentCommand(args);
323
- if (typeof optionsOrCb === "function") {
324
- this.send(command, optionsOrCb);
325
- }
326
- else if (typeof cb === "function") {
327
- if (typeof optionsOrCb !== "object")
328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
- this.send(command, optionsOrCb || {}, cb);
330
- }
331
- else {
332
- return this.send(command, optionsOrCb);
333
- }
334
- }
335
- updateJobQueue(args, optionsOrCb, cb) {
336
- const command = new UpdateJobQueueCommand(args);
337
- if (typeof optionsOrCb === "function") {
338
- this.send(command, optionsOrCb);
339
- }
340
- else if (typeof cb === "function") {
341
- if (typeof optionsOrCb !== "object")
342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
343
- this.send(command, optionsOrCb || {}, cb);
344
- }
345
- else {
346
- return this.send(command, optionsOrCb);
347
- }
348
- }
349
- updateSchedulingPolicy(args, optionsOrCb, cb) {
350
- const command = new UpdateSchedulingPolicyCommand(args);
351
- if (typeof optionsOrCb === "function") {
352
- this.send(command, optionsOrCb);
353
- }
354
- else if (typeof cb === "function") {
355
- if (typeof optionsOrCb !== "object")
356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
357
- this.send(command, optionsOrCb || {}, cb);
358
- }
359
- else {
360
- return this.send(command, optionsOrCb);
361
- }
362
- }
363
54
  }
55
+ createAggregatedClient(commands, Batch);
@@ -24,325 +24,165 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
24
24
  import { UpdateComputeEnvironmentCommandInput, UpdateComputeEnvironmentCommandOutput } from "./commands/UpdateComputeEnvironmentCommand";
25
25
  import { UpdateJobQueueCommandInput, UpdateJobQueueCommandOutput } from "./commands/UpdateJobQueueCommand";
26
26
  import { UpdateSchedulingPolicyCommandInput, UpdateSchedulingPolicyCommandOutput } from "./commands/UpdateSchedulingPolicyCommand";
27
- /**
28
- * @public
29
- * <fullname>Batch</fullname>
30
- * <p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
31
- * developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
32
- * the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure.
33
- * At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently
34
- * provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and
35
- * delivering results more quickly.</p>
36
- * <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
37
- * provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
38
- * workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
39
- * on analyzing results and solving your specific problems instead.</p>
40
- */
41
- export declare class Batch extends BatchClient {
27
+ export interface Batch {
42
28
  /**
43
- * @public
44
- * <p>Cancels a job in an Batch job queue. Jobs that are in the
45
- * <code>SUBMITTED</code>
46
- * or
47
- * <code>PENDING</code>
48
- * are
49
- * canceled. A job
50
- * in<code>RUNNABLE</code> remains in <code>RUNNABLE</code> until it reaches the head of the
51
- * job queue. Then the job status is updated to
52
- * <code>FAILED</code>.</p>
53
- * <p>Jobs that progressed to the <code>STARTING</code> or
54
- * <code>RUNNING</code> state aren't canceled. However, the API operation still succeeds, even
55
- * if no job is canceled. These jobs must be terminated with the <a>TerminateJob</a>
56
- * operation.</p>
29
+ * @see {@link CancelJobCommand}
57
30
  */
58
31
  cancelJob(args: CancelJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobCommandOutput>;
59
32
  cancelJob(args: CancelJobCommandInput, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
60
33
  cancelJob(args: CancelJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
61
34
  /**
62
- * @public
63
- * <p>Creates an Batch compute environment. You can create <code>MANAGED</code> or <code>UNMANAGED</code> compute
64
- * environments. <code>MANAGED</code> compute environments can use Amazon EC2 or Fargate resources.
65
- * <code>UNMANAGED</code> compute environments can only use EC2 resources.</p>
66
- * <p>In a managed compute environment, Batch manages the capacity and instance types of the compute resources
67
- * within the environment. This is based on the compute resource specification that you define or the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html">launch template</a> that you
68
- * specify when you create the compute environment. Either, you can choose to use EC2 On-Demand Instances and EC2 Spot
69
- * Instances. Or, you can use Fargate and Fargate Spot capacity in your managed compute environment. You can
70
- * optionally set a maximum price so that Spot Instances only launch when the Spot Instance price is less than a
71
- * specified percentage of the On-Demand price.</p>
72
- * <note>
73
- * <p>Multi-node parallel jobs aren't supported on Spot Instances.</p>
74
- * </note>
75
- * <p>In an unmanaged compute environment, you can manage your own EC2 compute resources and have flexibility with how
76
- * you configure your compute resources. For example, you can use custom AMIs. However, you must verify that each of
77
- * your AMIs meet the Amazon ECS container instance AMI specification. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container_instance_AMIs.html">container instance AMIs</a> in the
78
- * <i>Amazon Elastic Container Service Developer Guide</i>. After you created your unmanaged compute environment, you can use the <a>DescribeComputeEnvironments</a> operation to find the Amazon ECS cluster that's associated with it. Then, launch
79
- * your container instances into that Amazon ECS cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching an Amazon ECS container instance</a> in the
80
- * <i>Amazon Elastic Container Service Developer Guide</i>.</p>
81
- * <note>
82
- * <p>To create a compute environment that uses EKS resources, the caller must have permissions to call
83
- * <code>eks:DescribeCluster</code>.</p>
84
- * </note>
85
- * <note>
86
- * <p>Batch doesn't automatically upgrade the AMIs in a compute environment after it's created. For example, it
87
- * also doesn't update the AMIs in your compute environment when a newer version of the Amazon ECS optimized AMI is
88
- * available. You're responsible for the management of the guest operating system. This includes any updates and
89
- * security patches. You're also responsible for any additional application software or utilities that you install on
90
- * the compute resources. There are two ways to use a new AMI for your Batch jobs. The original method is to complete
91
- * these steps:</p>
92
- * <ol>
93
- * <li>
94
- * <p>Create a new compute environment with the new AMI.</p>
95
- * </li>
96
- * <li>
97
- * <p>Add the compute environment to an existing job queue.</p>
98
- * </li>
99
- * <li>
100
- * <p>Remove the earlier compute environment from your job queue.</p>
101
- * </li>
102
- * <li>
103
- * <p>Delete the earlier compute environment.</p>
104
- * </li>
105
- * </ol>
106
- * <p>In April 2022, Batch added enhanced support for updating compute environments. For more information, see
107
- * <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating compute
108
- * environments</a>. To use the enhanced updating of compute environments to update AMIs, follow these
109
- * rules:</p>
110
- * <ul>
111
- * <li>
112
- * <p>Either don't set the service role (<code>serviceRole</code>) parameter or set it to the <b>AWSBatchServiceRole</b> service-linked role.</p>
113
- * </li>
114
- * <li>
115
- * <p>Set the allocation strategy (<code>allocationStrategy</code>) parameter to <code>BEST_FIT_PROGRESSIVE</code>
116
- * or <code>SPOT_CAPACITY_OPTIMIZED</code>.</p>
117
- * </li>
118
- * <li>
119
- * <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>) parameter to
120
- * <code>true</code>.</p>
121
- * </li>
122
- * <li>
123
- * <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_Ec2Configuration.html">
124
- * <code>ec2Configuration</code>
125
- * </a>), or in the launch
126
- * template (<code>launchTemplate</code>). In that case, Batch selects the latest Amazon ECS optimized AMI that's
127
- * supported by Batch at the time the infrastructure update is initiated. Alternatively, you can specify the AMI ID
128
- * in the <code>imageId</code> or <code>imageIdOverride</code> parameters, or the launch template identified by the
129
- * <code>LaunchTemplate</code> properties. Changing any of these properties starts an infrastructure update. If the
130
- * AMI ID is specified in the launch template, it can't be replaced by specifying an AMI ID in either the
131
- * <code>imageId</code> or <code>imageIdOverride</code> parameters. It can only be replaced by specifying a different
132
- * launch template, or if the launch template version is set to <code>$Default</code> or <code>$Latest</code>, by
133
- * setting either a new default version for the launch template (if <code>$Default</code>) or by adding a new version
134
- * to the launch template (if <code>$Latest</code>).</p>
135
- * </li>
136
- * </ul>
137
- * <p>If these rules are followed, any update that starts an infrastructure update causes the AMI ID to be
138
- * re-selected. If the <code>version</code> setting in the launch template (<code>launchTemplate</code>) is set to
139
- * <code>$Latest</code> or <code>$Default</code>, the latest or default version of the launch template is evaluated up
140
- * at the time of the infrastructure update, even if the <code>launchTemplate</code> wasn't updated.</p>
141
- * </note>
35
+ * @see {@link CreateComputeEnvironmentCommand}
142
36
  */
143
37
  createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComputeEnvironmentCommandOutput>;
144
38
  createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, cb: (err: any, data?: CreateComputeEnvironmentCommandOutput) => void): void;
145
39
  createComputeEnvironment(args: CreateComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComputeEnvironmentCommandOutput) => void): void;
146
40
  /**
147
- * @public
148
- * <p>Creates an Batch job queue. When you create a job queue, you associate one or more compute environments to the
149
- * queue and assign an order of preference for the compute environments.</p>
150
- * <p>You also set a priority to the job queue that determines the order that the Batch scheduler places jobs onto
151
- * its associated compute environments. For example, if a compute environment is associated with more than one job
152
- * queue, the job queue with a higher priority is given preference for scheduling jobs to that compute
153
- * environment.</p>
41
+ * @see {@link CreateJobQueueCommand}
154
42
  */
155
43
  createJobQueue(args: CreateJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<CreateJobQueueCommandOutput>;
156
44
  createJobQueue(args: CreateJobQueueCommandInput, cb: (err: any, data?: CreateJobQueueCommandOutput) => void): void;
157
45
  createJobQueue(args: CreateJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateJobQueueCommandOutput) => void): void;
158
46
  /**
159
- * @public
160
- * <p>Creates an Batch scheduling policy.</p>
47
+ * @see {@link CreateSchedulingPolicyCommand}
161
48
  */
162
49
  createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreateSchedulingPolicyCommandOutput>;
163
50
  createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, cb: (err: any, data?: CreateSchedulingPolicyCommandOutput) => void): void;
164
51
  createSchedulingPolicy(args: CreateSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSchedulingPolicyCommandOutput) => void): void;
165
52
  /**
166
- * @public
167
- * <p>Deletes an Batch compute environment.</p>
168
- * <p>Before you can delete a compute environment, you must set its state to <code>DISABLED</code> with the <a>UpdateComputeEnvironment</a> API operation and disassociate it from any job queues with the <a>UpdateJobQueue</a> API operation. Compute environments that use Fargate resources must terminate all
169
- * active jobs on that compute environment before deleting the compute environment. If this isn't done, the compute
170
- * environment enters an invalid state.</p>
53
+ * @see {@link DeleteComputeEnvironmentCommand}
171
54
  */
172
55
  deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComputeEnvironmentCommandOutput>;
173
56
  deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, cb: (err: any, data?: DeleteComputeEnvironmentCommandOutput) => void): void;
174
57
  deleteComputeEnvironment(args: DeleteComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComputeEnvironmentCommandOutput) => void): void;
175
58
  /**
176
- * @public
177
- * <p>Deletes the specified job queue. You must first disable submissions for a queue with the <a>UpdateJobQueue</a> operation. All jobs in the queue are eventually terminated when you delete a job queue.
178
- * The jobs are terminated at a rate of about 16 jobs each second.</p>
179
- * <p>It's not necessary to disassociate compute environments from a queue before submitting a
180
- * <code>DeleteJobQueue</code> request.</p>
59
+ * @see {@link DeleteJobQueueCommand}
181
60
  */
182
61
  deleteJobQueue(args: DeleteJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<DeleteJobQueueCommandOutput>;
183
62
  deleteJobQueue(args: DeleteJobQueueCommandInput, cb: (err: any, data?: DeleteJobQueueCommandOutput) => void): void;
184
63
  deleteJobQueue(args: DeleteJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteJobQueueCommandOutput) => void): void;
185
64
  /**
186
- * @public
187
- * <p>Deletes the specified scheduling policy.</p>
188
- * <p>You can't delete a scheduling policy that's used in any job queues.</p>
65
+ * @see {@link DeleteSchedulingPolicyCommand}
189
66
  */
190
67
  deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSchedulingPolicyCommandOutput>;
191
68
  deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, cb: (err: any, data?: DeleteSchedulingPolicyCommandOutput) => void): void;
192
69
  deleteSchedulingPolicy(args: DeleteSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSchedulingPolicyCommandOutput) => void): void;
193
70
  /**
194
- * @public
195
- * <p>Deregisters an Batch job definition. Job definitions are permanently deleted after 180 days.</p>
71
+ * @see {@link DeregisterJobDefinitionCommand}
196
72
  */
197
73
  deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeregisterJobDefinitionCommandOutput>;
198
74
  deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, cb: (err: any, data?: DeregisterJobDefinitionCommandOutput) => void): void;
199
75
  deregisterJobDefinition(args: DeregisterJobDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterJobDefinitionCommandOutput) => void): void;
200
76
  /**
201
- * @public
202
- * <p>Describes one or more of your compute environments.</p>
203
- * <p>If you're using an unmanaged compute environment, you can use the <code>DescribeComputeEnvironment</code>
204
- * operation to determine the <code>ecsClusterArn</code> that you launch your Amazon ECS container instances
205
- * into.</p>
77
+ * @see {@link DescribeComputeEnvironmentsCommand}
206
78
  */
207
79
  describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeComputeEnvironmentsCommandOutput>;
208
80
  describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, cb: (err: any, data?: DescribeComputeEnvironmentsCommandOutput) => void): void;
209
81
  describeComputeEnvironments(args: DescribeComputeEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeComputeEnvironmentsCommandOutput) => void): void;
210
82
  /**
211
- * @public
212
- * <p>Describes a list of job definitions. You can specify a <code>status</code> (such as <code>ACTIVE</code>) to only
213
- * return job definitions that match that status.</p>
83
+ * @see {@link DescribeJobDefinitionsCommand}
214
84
  */
215
85
  describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobDefinitionsCommandOutput>;
216
86
  describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, cb: (err: any, data?: DescribeJobDefinitionsCommandOutput) => void): void;
217
87
  describeJobDefinitions(args: DescribeJobDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobDefinitionsCommandOutput) => void): void;
218
88
  /**
219
- * @public
220
- * <p>Describes one or more of your job queues.</p>
89
+ * @see {@link DescribeJobQueuesCommand}
221
90
  */
222
91
  describeJobQueues(args: DescribeJobQueuesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobQueuesCommandOutput>;
223
92
  describeJobQueues(args: DescribeJobQueuesCommandInput, cb: (err: any, data?: DescribeJobQueuesCommandOutput) => void): void;
224
93
  describeJobQueues(args: DescribeJobQueuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobQueuesCommandOutput) => void): void;
225
94
  /**
226
- * @public
227
- * <p>Describes a list of Batch jobs.</p>
95
+ * @see {@link DescribeJobsCommand}
228
96
  */
229
97
  describeJobs(args: DescribeJobsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobsCommandOutput>;
230
98
  describeJobs(args: DescribeJobsCommandInput, cb: (err: any, data?: DescribeJobsCommandOutput) => void): void;
231
99
  describeJobs(args: DescribeJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobsCommandOutput) => void): void;
232
100
  /**
233
- * @public
234
- * <p>Describes one or more of your scheduling policies.</p>
101
+ * @see {@link DescribeSchedulingPoliciesCommand}
235
102
  */
236
103
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSchedulingPoliciesCommandOutput>;
237
104
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
238
105
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
239
106
  /**
240
- * @public
241
- * <p>Returns a list of Batch jobs.</p>
242
- * <p>You must specify only one of the following items:</p>
243
- * <ul>
244
- * <li>
245
- * <p>A job queue ID to return a list of jobs in that job queue</p>
246
- * </li>
247
- * <li>
248
- * <p>A multi-node parallel job ID to return a list of nodes for that job</p>
249
- * </li>
250
- * <li>
251
- * <p>An array job ID to return a list of the children for that job</p>
252
- * </li>
253
- * </ul>
254
- * <p>You can filter the results by job status with the <code>jobStatus</code> parameter. If you don't specify a
255
- * status, only <code>RUNNING</code> jobs are returned.</p>
107
+ * @see {@link ListJobsCommand}
256
108
  */
257
109
  listJobs(args: ListJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListJobsCommandOutput>;
258
110
  listJobs(args: ListJobsCommandInput, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
259
111
  listJobs(args: ListJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobsCommandOutput) => void): void;
260
112
  /**
261
- * @public
262
- * <p>Returns a list of Batch scheduling policies.</p>
113
+ * @see {@link ListSchedulingPoliciesCommand}
263
114
  */
264
115
  listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListSchedulingPoliciesCommandOutput>;
265
116
  listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, cb: (err: any, data?: ListSchedulingPoliciesCommandOutput) => void): void;
266
117
  listSchedulingPolicies(args: ListSchedulingPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchedulingPoliciesCommandOutput) => void): void;
267
118
  /**
268
- * @public
269
- * <p>Lists the tags for an Batch resource. Batch resources that support tags are compute environments, jobs, job definitions, job queues,
270
- * and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.</p>
119
+ * @see {@link ListTagsForResourceCommand}
271
120
  */
272
121
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
273
122
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
274
123
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
275
124
  /**
276
- * @public
277
- * <p>Registers an Batch job definition.</p>
125
+ * @see {@link RegisterJobDefinitionCommand}
278
126
  */
279
127
  registerJobDefinition(args: RegisterJobDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<RegisterJobDefinitionCommandOutput>;
280
128
  registerJobDefinition(args: RegisterJobDefinitionCommandInput, cb: (err: any, data?: RegisterJobDefinitionCommandOutput) => void): void;
281
129
  registerJobDefinition(args: RegisterJobDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterJobDefinitionCommandOutput) => void): void;
282
130
  /**
283
- * @public
284
- * <p>Submits an Batch job from a job definition. Parameters that are specified during <a>SubmitJob</a>
285
- * override parameters defined in the job definition. vCPU and memory requirements that are specified in the
286
- * <code>resourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
287
- * using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
288
- * parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code>
289
- * parameter.</p>
290
- * <note>
291
- * <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time. </p>
292
- * </note>
293
- * <important>
294
- * <p>Jobs that run on Fargate resources can't be guaranteed to run for more than 14 days. This is because, after 14
295
- * days, Fargate resources might become unavailable and job might be terminated.</p>
296
- * </important>
131
+ * @see {@link SubmitJobCommand}
297
132
  */
298
133
  submitJob(args: SubmitJobCommandInput, options?: __HttpHandlerOptions): Promise<SubmitJobCommandOutput>;
299
134
  submitJob(args: SubmitJobCommandInput, cb: (err: any, data?: SubmitJobCommandOutput) => void): void;
300
135
  submitJob(args: SubmitJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SubmitJobCommandOutput) => void): void;
301
136
  /**
302
- * @public
303
- * <p>Associates the specified tags to a resource with the specified <code>resourceArn</code>. If existing tags on a
304
- * resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that
305
- * are associated with that resource are deleted as well. Batch resources that support tags are compute environments, jobs, job definitions, job queues,
306
- * and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.</p>
137
+ * @see {@link TagResourceCommand}
307
138
  */
308
139
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
309
140
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
310
141
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
311
142
  /**
312
- * @public
313
- * <p>Terminates a job in a job queue. Jobs that are in the <code>STARTING</code> or <code>RUNNING</code> state are
314
- * terminated, which causes them to transition to <code>FAILED</code>. Jobs that have not progressed to the
315
- * <code>STARTING</code> state are cancelled.</p>
143
+ * @see {@link TerminateJobCommand}
316
144
  */
317
145
  terminateJob(args: TerminateJobCommandInput, options?: __HttpHandlerOptions): Promise<TerminateJobCommandOutput>;
318
146
  terminateJob(args: TerminateJobCommandInput, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
319
147
  terminateJob(args: TerminateJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
320
148
  /**
321
- * @public
322
- * <p>Deletes specified tags from an Batch resource.</p>
149
+ * @see {@link UntagResourceCommand}
323
150
  */
324
151
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
325
152
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
326
153
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
327
154
  /**
328
- * @public
329
- * <p>Updates an Batch compute environment.</p>
155
+ * @see {@link UpdateComputeEnvironmentCommand}
330
156
  */
331
157
  updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComputeEnvironmentCommandOutput>;
332
158
  updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, cb: (err: any, data?: UpdateComputeEnvironmentCommandOutput) => void): void;
333
159
  updateComputeEnvironment(args: UpdateComputeEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComputeEnvironmentCommandOutput) => void): void;
334
160
  /**
335
- * @public
336
- * <p>Updates a job queue.</p>
161
+ * @see {@link UpdateJobQueueCommand}
337
162
  */
338
163
  updateJobQueue(args: UpdateJobQueueCommandInput, options?: __HttpHandlerOptions): Promise<UpdateJobQueueCommandOutput>;
339
164
  updateJobQueue(args: UpdateJobQueueCommandInput, cb: (err: any, data?: UpdateJobQueueCommandOutput) => void): void;
340
165
  updateJobQueue(args: UpdateJobQueueCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateJobQueueCommandOutput) => void): void;
341
166
  /**
342
- * @public
343
- * <p>Updates a scheduling policy.</p>
167
+ * @see {@link UpdateSchedulingPolicyCommand}
344
168
  */
345
169
  updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSchedulingPolicyCommandOutput>;
346
170
  updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void): void;
347
171
  updateSchedulingPolicy(args: UpdateSchedulingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void): void;
348
172
  }
173
+ /**
174
+ * @public
175
+ * <fullname>Batch</fullname>
176
+ * <p>Using Batch, you can run batch computing workloads on the Amazon Web Services Cloud. Batch computing is a common means for
177
+ * developers, scientists, and engineers to access large amounts of compute resources. Batch uses the advantages of
178
+ * the batch computing to remove the undifferentiated heavy lifting of configuring and managing required infrastructure.
179
+ * At the same time, it also adopts a familiar batch computing software approach. You can use Batch to efficiently
180
+ * provision resources d, and work toward eliminating capacity constraints, reducing your overall compute costs, and
181
+ * delivering results more quickly.</p>
182
+ * <p>As a fully managed service, Batch can run batch computing workloads of any scale. Batch automatically
183
+ * provisions compute resources and optimizes workload distribution based on the quantity and scale of your specific
184
+ * workloads. With Batch, there's no need to install or manage batch computing software. This means that you can focus
185
+ * on analyzing results and solving your specific problems instead.</p>
186
+ */
187
+ export declare class Batch extends BatchClient implements Batch {
188
+ }
@@ -96,7 +96,7 @@ import {
96
96
  UpdateSchedulingPolicyCommandInput,
97
97
  UpdateSchedulingPolicyCommandOutput,
98
98
  } from "./commands/UpdateSchedulingPolicyCommand";
99
- export declare class Batch extends BatchClient {
99
+ export interface Batch {
100
100
  cancelJob(
101
101
  args: CancelJobCommandInput,
102
102
  options?: __HttpHandlerOptions
@@ -410,3 +410,4 @@ export declare class Batch extends BatchClient {
410
410
  cb: (err: any, data?: UpdateSchedulingPolicyCommandOutput) => void
411
411
  ): void;
412
412
  }
413
+ export declare class Batch extends BatchClient implements Batch {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",