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