@aws-sdk/client-batch 3.181.0 → 3.183.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Batch.js +98 -105
  3. package/dist-es/BatchClient.js +22 -28
  4. package/dist-es/commands/CancelJobCommand.js +21 -28
  5. package/dist-es/commands/CreateComputeEnvironmentCommand.js +21 -28
  6. package/dist-es/commands/CreateJobQueueCommand.js +21 -28
  7. package/dist-es/commands/CreateSchedulingPolicyCommand.js +21 -28
  8. package/dist-es/commands/DeleteComputeEnvironmentCommand.js +21 -28
  9. package/dist-es/commands/DeleteJobQueueCommand.js +21 -28
  10. package/dist-es/commands/DeleteSchedulingPolicyCommand.js +21 -28
  11. package/dist-es/commands/DeregisterJobDefinitionCommand.js +21 -28
  12. package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +21 -28
  13. package/dist-es/commands/DescribeJobDefinitionsCommand.js +21 -28
  14. package/dist-es/commands/DescribeJobQueuesCommand.js +21 -28
  15. package/dist-es/commands/DescribeJobsCommand.js +21 -28
  16. package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +21 -28
  17. package/dist-es/commands/ListJobsCommand.js +21 -28
  18. package/dist-es/commands/ListSchedulingPoliciesCommand.js +21 -28
  19. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  20. package/dist-es/commands/RegisterJobDefinitionCommand.js +21 -28
  21. package/dist-es/commands/SubmitJobCommand.js +21 -28
  22. package/dist-es/commands/TagResourceCommand.js +21 -28
  23. package/dist-es/commands/TerminateJobCommand.js +21 -28
  24. package/dist-es/commands/UntagResourceCommand.js +21 -28
  25. package/dist-es/commands/UpdateComputeEnvironmentCommand.js +21 -28
  26. package/dist-es/commands/UpdateJobQueueCommand.js +21 -28
  27. package/dist-es/commands/UpdateSchedulingPolicyCommand.js +21 -28
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/BatchServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +319 -122
  31. package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +25 -68
  32. package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +25 -68
  33. package/dist-es/pagination/DescribeJobQueuesPaginator.js +25 -68
  34. package/dist-es/pagination/ListJobsPaginator.js +25 -68
  35. package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +2036 -2471
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-batch
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
package/dist-es/Batch.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { BatchClient } from "./BatchClient";
3
2
  import { CancelJobCommand } from "./commands/CancelJobCommand";
4
3
  import { CreateComputeEnvironmentCommand, } from "./commands/CreateComputeEnvironmentCommand";
@@ -24,347 +23,341 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
24
23
  import { UpdateComputeEnvironmentCommand, } from "./commands/UpdateComputeEnvironmentCommand";
25
24
  import { UpdateJobQueueCommand, } from "./commands/UpdateJobQueueCommand";
26
25
  import { UpdateSchedulingPolicyCommand, } from "./commands/UpdateSchedulingPolicyCommand";
27
- var Batch = (function (_super) {
28
- __extends(Batch, _super);
29
- function Batch() {
30
- return _super !== null && _super.apply(this, arguments) || this;
31
- }
32
- Batch.prototype.cancelJob = function (args, optionsOrCb, cb) {
33
- var command = new CancelJobCommand(args);
26
+ export class Batch extends BatchClient {
27
+ cancelJob(args, optionsOrCb, cb) {
28
+ const command = new CancelJobCommand(args);
34
29
  if (typeof optionsOrCb === "function") {
35
30
  this.send(command, optionsOrCb);
36
31
  }
37
32
  else if (typeof cb === "function") {
38
33
  if (typeof optionsOrCb !== "object")
39
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
35
  this.send(command, optionsOrCb || {}, cb);
41
36
  }
42
37
  else {
43
38
  return this.send(command, optionsOrCb);
44
39
  }
45
- };
46
- Batch.prototype.createComputeEnvironment = function (args, optionsOrCb, cb) {
47
- var command = new CreateComputeEnvironmentCommand(args);
40
+ }
41
+ createComputeEnvironment(args, optionsOrCb, cb) {
42
+ const command = new CreateComputeEnvironmentCommand(args);
48
43
  if (typeof optionsOrCb === "function") {
49
44
  this.send(command, optionsOrCb);
50
45
  }
51
46
  else if (typeof cb === "function") {
52
47
  if (typeof optionsOrCb !== "object")
53
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
49
  this.send(command, optionsOrCb || {}, cb);
55
50
  }
56
51
  else {
57
52
  return this.send(command, optionsOrCb);
58
53
  }
59
- };
60
- Batch.prototype.createJobQueue = function (args, optionsOrCb, cb) {
61
- var command = new CreateJobQueueCommand(args);
54
+ }
55
+ createJobQueue(args, optionsOrCb, cb) {
56
+ const command = new CreateJobQueueCommand(args);
62
57
  if (typeof optionsOrCb === "function") {
63
58
  this.send(command, optionsOrCb);
64
59
  }
65
60
  else if (typeof cb === "function") {
66
61
  if (typeof optionsOrCb !== "object")
67
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
63
  this.send(command, optionsOrCb || {}, cb);
69
64
  }
70
65
  else {
71
66
  return this.send(command, optionsOrCb);
72
67
  }
73
- };
74
- Batch.prototype.createSchedulingPolicy = function (args, optionsOrCb, cb) {
75
- var command = new CreateSchedulingPolicyCommand(args);
68
+ }
69
+ createSchedulingPolicy(args, optionsOrCb, cb) {
70
+ const command = new CreateSchedulingPolicyCommand(args);
76
71
  if (typeof optionsOrCb === "function") {
77
72
  this.send(command, optionsOrCb);
78
73
  }
79
74
  else if (typeof cb === "function") {
80
75
  if (typeof optionsOrCb !== "object")
81
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
77
  this.send(command, optionsOrCb || {}, cb);
83
78
  }
84
79
  else {
85
80
  return this.send(command, optionsOrCb);
86
81
  }
87
- };
88
- Batch.prototype.deleteComputeEnvironment = function (args, optionsOrCb, cb) {
89
- var command = new DeleteComputeEnvironmentCommand(args);
82
+ }
83
+ deleteComputeEnvironment(args, optionsOrCb, cb) {
84
+ const command = new DeleteComputeEnvironmentCommand(args);
90
85
  if (typeof optionsOrCb === "function") {
91
86
  this.send(command, optionsOrCb);
92
87
  }
93
88
  else if (typeof cb === "function") {
94
89
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
91
  this.send(command, optionsOrCb || {}, cb);
97
92
  }
98
93
  else {
99
94
  return this.send(command, optionsOrCb);
100
95
  }
101
- };
102
- Batch.prototype.deleteJobQueue = function (args, optionsOrCb, cb) {
103
- var command = new DeleteJobQueueCommand(args);
96
+ }
97
+ deleteJobQueue(args, optionsOrCb, cb) {
98
+ const command = new DeleteJobQueueCommand(args);
104
99
  if (typeof optionsOrCb === "function") {
105
100
  this.send(command, optionsOrCb);
106
101
  }
107
102
  else if (typeof cb === "function") {
108
103
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
105
  this.send(command, optionsOrCb || {}, cb);
111
106
  }
112
107
  else {
113
108
  return this.send(command, optionsOrCb);
114
109
  }
115
- };
116
- Batch.prototype.deleteSchedulingPolicy = function (args, optionsOrCb, cb) {
117
- var command = new DeleteSchedulingPolicyCommand(args);
110
+ }
111
+ deleteSchedulingPolicy(args, optionsOrCb, cb) {
112
+ const command = new DeleteSchedulingPolicyCommand(args);
118
113
  if (typeof optionsOrCb === "function") {
119
114
  this.send(command, optionsOrCb);
120
115
  }
121
116
  else if (typeof cb === "function") {
122
117
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
119
  this.send(command, optionsOrCb || {}, cb);
125
120
  }
126
121
  else {
127
122
  return this.send(command, optionsOrCb);
128
123
  }
129
- };
130
- Batch.prototype.deregisterJobDefinition = function (args, optionsOrCb, cb) {
131
- var command = new DeregisterJobDefinitionCommand(args);
124
+ }
125
+ deregisterJobDefinition(args, optionsOrCb, cb) {
126
+ const command = new DeregisterJobDefinitionCommand(args);
132
127
  if (typeof optionsOrCb === "function") {
133
128
  this.send(command, optionsOrCb);
134
129
  }
135
130
  else if (typeof cb === "function") {
136
131
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
133
  this.send(command, optionsOrCb || {}, cb);
139
134
  }
140
135
  else {
141
136
  return this.send(command, optionsOrCb);
142
137
  }
143
- };
144
- Batch.prototype.describeComputeEnvironments = function (args, optionsOrCb, cb) {
145
- var command = new DescribeComputeEnvironmentsCommand(args);
138
+ }
139
+ describeComputeEnvironments(args, optionsOrCb, cb) {
140
+ const command = new DescribeComputeEnvironmentsCommand(args);
146
141
  if (typeof optionsOrCb === "function") {
147
142
  this.send(command, optionsOrCb);
148
143
  }
149
144
  else if (typeof cb === "function") {
150
145
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
147
  this.send(command, optionsOrCb || {}, cb);
153
148
  }
154
149
  else {
155
150
  return this.send(command, optionsOrCb);
156
151
  }
157
- };
158
- Batch.prototype.describeJobDefinitions = function (args, optionsOrCb, cb) {
159
- var command = new DescribeJobDefinitionsCommand(args);
152
+ }
153
+ describeJobDefinitions(args, optionsOrCb, cb) {
154
+ const command = new DescribeJobDefinitionsCommand(args);
160
155
  if (typeof optionsOrCb === "function") {
161
156
  this.send(command, optionsOrCb);
162
157
  }
163
158
  else if (typeof cb === "function") {
164
159
  if (typeof optionsOrCb !== "object")
165
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
161
  this.send(command, optionsOrCb || {}, cb);
167
162
  }
168
163
  else {
169
164
  return this.send(command, optionsOrCb);
170
165
  }
171
- };
172
- Batch.prototype.describeJobQueues = function (args, optionsOrCb, cb) {
173
- var command = new DescribeJobQueuesCommand(args);
166
+ }
167
+ describeJobQueues(args, optionsOrCb, cb) {
168
+ const command = new DescribeJobQueuesCommand(args);
174
169
  if (typeof optionsOrCb === "function") {
175
170
  this.send(command, optionsOrCb);
176
171
  }
177
172
  else if (typeof cb === "function") {
178
173
  if (typeof optionsOrCb !== "object")
179
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
175
  this.send(command, optionsOrCb || {}, cb);
181
176
  }
182
177
  else {
183
178
  return this.send(command, optionsOrCb);
184
179
  }
185
- };
186
- Batch.prototype.describeJobs = function (args, optionsOrCb, cb) {
187
- var command = new DescribeJobsCommand(args);
180
+ }
181
+ describeJobs(args, optionsOrCb, cb) {
182
+ const command = new DescribeJobsCommand(args);
188
183
  if (typeof optionsOrCb === "function") {
189
184
  this.send(command, optionsOrCb);
190
185
  }
191
186
  else if (typeof cb === "function") {
192
187
  if (typeof optionsOrCb !== "object")
193
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
189
  this.send(command, optionsOrCb || {}, cb);
195
190
  }
196
191
  else {
197
192
  return this.send(command, optionsOrCb);
198
193
  }
199
- };
200
- Batch.prototype.describeSchedulingPolicies = function (args, optionsOrCb, cb) {
201
- var command = new DescribeSchedulingPoliciesCommand(args);
194
+ }
195
+ describeSchedulingPolicies(args, optionsOrCb, cb) {
196
+ const command = new DescribeSchedulingPoliciesCommand(args);
202
197
  if (typeof optionsOrCb === "function") {
203
198
  this.send(command, optionsOrCb);
204
199
  }
205
200
  else if (typeof cb === "function") {
206
201
  if (typeof optionsOrCb !== "object")
207
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
203
  this.send(command, optionsOrCb || {}, cb);
209
204
  }
210
205
  else {
211
206
  return this.send(command, optionsOrCb);
212
207
  }
213
- };
214
- Batch.prototype.listJobs = function (args, optionsOrCb, cb) {
215
- var command = new ListJobsCommand(args);
208
+ }
209
+ listJobs(args, optionsOrCb, cb) {
210
+ const command = new ListJobsCommand(args);
216
211
  if (typeof optionsOrCb === "function") {
217
212
  this.send(command, optionsOrCb);
218
213
  }
219
214
  else if (typeof cb === "function") {
220
215
  if (typeof optionsOrCb !== "object")
221
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
217
  this.send(command, optionsOrCb || {}, cb);
223
218
  }
224
219
  else {
225
220
  return this.send(command, optionsOrCb);
226
221
  }
227
- };
228
- Batch.prototype.listSchedulingPolicies = function (args, optionsOrCb, cb) {
229
- var command = new ListSchedulingPoliciesCommand(args);
222
+ }
223
+ listSchedulingPolicies(args, optionsOrCb, cb) {
224
+ const command = new ListSchedulingPoliciesCommand(args);
230
225
  if (typeof optionsOrCb === "function") {
231
226
  this.send(command, optionsOrCb);
232
227
  }
233
228
  else if (typeof cb === "function") {
234
229
  if (typeof optionsOrCb !== "object")
235
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
231
  this.send(command, optionsOrCb || {}, cb);
237
232
  }
238
233
  else {
239
234
  return this.send(command, optionsOrCb);
240
235
  }
241
- };
242
- Batch.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
243
- var command = new ListTagsForResourceCommand(args);
236
+ }
237
+ listTagsForResource(args, optionsOrCb, cb) {
238
+ const command = new ListTagsForResourceCommand(args);
244
239
  if (typeof optionsOrCb === "function") {
245
240
  this.send(command, optionsOrCb);
246
241
  }
247
242
  else if (typeof cb === "function") {
248
243
  if (typeof optionsOrCb !== "object")
249
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
245
  this.send(command, optionsOrCb || {}, cb);
251
246
  }
252
247
  else {
253
248
  return this.send(command, optionsOrCb);
254
249
  }
255
- };
256
- Batch.prototype.registerJobDefinition = function (args, optionsOrCb, cb) {
257
- var command = new RegisterJobDefinitionCommand(args);
250
+ }
251
+ registerJobDefinition(args, optionsOrCb, cb) {
252
+ const command = new RegisterJobDefinitionCommand(args);
258
253
  if (typeof optionsOrCb === "function") {
259
254
  this.send(command, optionsOrCb);
260
255
  }
261
256
  else if (typeof cb === "function") {
262
257
  if (typeof optionsOrCb !== "object")
263
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
259
  this.send(command, optionsOrCb || {}, cb);
265
260
  }
266
261
  else {
267
262
  return this.send(command, optionsOrCb);
268
263
  }
269
- };
270
- Batch.prototype.submitJob = function (args, optionsOrCb, cb) {
271
- var command = new SubmitJobCommand(args);
264
+ }
265
+ submitJob(args, optionsOrCb, cb) {
266
+ const command = new SubmitJobCommand(args);
272
267
  if (typeof optionsOrCb === "function") {
273
268
  this.send(command, optionsOrCb);
274
269
  }
275
270
  else if (typeof cb === "function") {
276
271
  if (typeof optionsOrCb !== "object")
277
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
273
  this.send(command, optionsOrCb || {}, cb);
279
274
  }
280
275
  else {
281
276
  return this.send(command, optionsOrCb);
282
277
  }
283
- };
284
- Batch.prototype.tagResource = function (args, optionsOrCb, cb) {
285
- var command = new TagResourceCommand(args);
278
+ }
279
+ tagResource(args, optionsOrCb, cb) {
280
+ const command = new TagResourceCommand(args);
286
281
  if (typeof optionsOrCb === "function") {
287
282
  this.send(command, optionsOrCb);
288
283
  }
289
284
  else if (typeof cb === "function") {
290
285
  if (typeof optionsOrCb !== "object")
291
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
287
  this.send(command, optionsOrCb || {}, cb);
293
288
  }
294
289
  else {
295
290
  return this.send(command, optionsOrCb);
296
291
  }
297
- };
298
- Batch.prototype.terminateJob = function (args, optionsOrCb, cb) {
299
- var command = new TerminateJobCommand(args);
292
+ }
293
+ terminateJob(args, optionsOrCb, cb) {
294
+ const command = new TerminateJobCommand(args);
300
295
  if (typeof optionsOrCb === "function") {
301
296
  this.send(command, optionsOrCb);
302
297
  }
303
298
  else if (typeof cb === "function") {
304
299
  if (typeof optionsOrCb !== "object")
305
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
301
  this.send(command, optionsOrCb || {}, cb);
307
302
  }
308
303
  else {
309
304
  return this.send(command, optionsOrCb);
310
305
  }
311
- };
312
- Batch.prototype.untagResource = function (args, optionsOrCb, cb) {
313
- var command = new UntagResourceCommand(args);
306
+ }
307
+ untagResource(args, optionsOrCb, cb) {
308
+ const command = new UntagResourceCommand(args);
314
309
  if (typeof optionsOrCb === "function") {
315
310
  this.send(command, optionsOrCb);
316
311
  }
317
312
  else if (typeof cb === "function") {
318
313
  if (typeof optionsOrCb !== "object")
319
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
315
  this.send(command, optionsOrCb || {}, cb);
321
316
  }
322
317
  else {
323
318
  return this.send(command, optionsOrCb);
324
319
  }
325
- };
326
- Batch.prototype.updateComputeEnvironment = function (args, optionsOrCb, cb) {
327
- var command = new UpdateComputeEnvironmentCommand(args);
320
+ }
321
+ updateComputeEnvironment(args, optionsOrCb, cb) {
322
+ const command = new UpdateComputeEnvironmentCommand(args);
328
323
  if (typeof optionsOrCb === "function") {
329
324
  this.send(command, optionsOrCb);
330
325
  }
331
326
  else if (typeof cb === "function") {
332
327
  if (typeof optionsOrCb !== "object")
333
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
329
  this.send(command, optionsOrCb || {}, cb);
335
330
  }
336
331
  else {
337
332
  return this.send(command, optionsOrCb);
338
333
  }
339
- };
340
- Batch.prototype.updateJobQueue = function (args, optionsOrCb, cb) {
341
- var command = new UpdateJobQueueCommand(args);
334
+ }
335
+ updateJobQueue(args, optionsOrCb, cb) {
336
+ const command = new UpdateJobQueueCommand(args);
342
337
  if (typeof optionsOrCb === "function") {
343
338
  this.send(command, optionsOrCb);
344
339
  }
345
340
  else if (typeof cb === "function") {
346
341
  if (typeof optionsOrCb !== "object")
347
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
343
  this.send(command, optionsOrCb || {}, cb);
349
344
  }
350
345
  else {
351
346
  return this.send(command, optionsOrCb);
352
347
  }
353
- };
354
- Batch.prototype.updateSchedulingPolicy = function (args, optionsOrCb, cb) {
355
- var command = new UpdateSchedulingPolicyCommand(args);
348
+ }
349
+ updateSchedulingPolicy(args, optionsOrCb, cb) {
350
+ const command = new UpdateSchedulingPolicyCommand(args);
356
351
  if (typeof optionsOrCb === "function") {
357
352
  this.send(command, optionsOrCb);
358
353
  }
359
354
  else if (typeof cb === "function") {
360
355
  if (typeof optionsOrCb !== "object")
361
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
356
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
357
  this.send(command, optionsOrCb || {}, cb);
363
358
  }
364
359
  else {
365
360
  return this.send(command, optionsOrCb);
366
361
  }
367
- };
368
- return Batch;
369
- }(BatchClient));
370
- export { Batch };
362
+ }
363
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var BatchClient = (function (_super) {
13
- __extends(BatchClient, _super);
14
- function BatchClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class BatchClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- BatchClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return BatchClient;
38
- }(__Client));
39
- export { BatchClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CancelJobRequestFilterSensitiveLog, CancelJobResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CancelJobCommand, serializeAws_restJson1CancelJobCommand, } from "../protocols/Aws_restJson1";
6
- var CancelJobCommand = (function (_super) {
7
- __extends(CancelJobCommand, _super);
8
- function CancelJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CancelJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BatchClient";
18
- var commandName = "CancelJobCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "CancelJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelJobResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CancelJobCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CancelJobCommand(input, context);
33
- };
34
- CancelJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CancelJobCommand(output, context);
36
- };
37
- return CancelJobCommand;
38
- }($Command));
39
- export { CancelJobCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateComputeEnvironmentRequestFilterSensitiveLog, CreateComputeEnvironmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateComputeEnvironmentCommand, serializeAws_restJson1CreateComputeEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateComputeEnvironmentCommand = (function (_super) {
7
- __extends(CreateComputeEnvironmentCommand, _super);
8
- function CreateComputeEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateComputeEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateComputeEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "BatchClient";
18
- var commandName = "CreateComputeEnvironmentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "BatchClient";
15
+ const commandName = "CreateComputeEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateComputeEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateComputeEnvironmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateComputeEnvironmentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateComputeEnvironmentCommand(input, context);
33
- };
34
- CreateComputeEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateComputeEnvironmentCommand(output, context);
36
- };
37
- return CreateComputeEnvironmentCommand;
38
- }($Command));
39
- export { CreateComputeEnvironmentCommand };
31
+ }
32
+ }