@aws-sdk/client-batch 3.476.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/pagination/DescribeComputeEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeJobDefinitionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeJobQueuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchedulingPoliciesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +103 -271
- package/dist-es/pagination/DescribeComputeEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/DescribeJobDefinitionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeJobQueuesPaginator.js +2 -23
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListSchedulingPoliciesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +104 -272
- package/dist-types/pagination/DescribeComputeEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeJobDefinitionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeJobQueuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchedulingPoliciesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeComputeEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeJobDefinitionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeJobQueuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchedulingPoliciesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { BatchServiceException as __BaseException } from "../models/BatchServiceException";
|
|
4
4
|
import { ClientException, ServerException, } from "../models/models_0";
|
|
5
5
|
export const se_CancelJobCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/v1/canceljob");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
jobId: [],
|
|
14
14
|
reason: [],
|
|
15
15
|
}));
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hostname,
|
|
19
|
-
port,
|
|
20
|
-
method: "POST",
|
|
21
|
-
headers,
|
|
22
|
-
path: resolvedPath,
|
|
23
|
-
body,
|
|
24
|
-
});
|
|
16
|
+
b.m("POST").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
25
18
|
};
|
|
26
19
|
export const se_CreateComputeEnvironmentCommand = async (input, context) => {
|
|
27
|
-
const
|
|
20
|
+
const b = rb(input, context);
|
|
28
21
|
const headers = {
|
|
29
22
|
"content-type": "application/json",
|
|
30
23
|
};
|
|
31
|
-
|
|
24
|
+
b.bp("/v1/createcomputeenvironment");
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify(take(input, {
|
|
34
27
|
computeEnvironmentName: [],
|
|
@@ -40,22 +33,15 @@ export const se_CreateComputeEnvironmentCommand = async (input, context) => {
|
|
|
40
33
|
type: [],
|
|
41
34
|
unmanagedvCpus: [],
|
|
42
35
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
export const se_CreateJobQueueCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = rb(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
44
|
+
b.bp("/v1/createjobqueue");
|
|
59
45
|
let body;
|
|
60
46
|
body = JSON.stringify(take(input, {
|
|
61
47
|
computeEnvironmentOrder: (_) => _json(_),
|
|
@@ -65,146 +51,97 @@ export const se_CreateJobQueueCommand = async (input, context) => {
|
|
|
65
51
|
state: [],
|
|
66
52
|
tags: (_) => _json(_),
|
|
67
53
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
77
56
|
};
|
|
78
57
|
export const se_CreateSchedulingPolicyCommand = async (input, context) => {
|
|
79
|
-
const
|
|
58
|
+
const b = rb(input, context);
|
|
80
59
|
const headers = {
|
|
81
60
|
"content-type": "application/json",
|
|
82
61
|
};
|
|
83
|
-
|
|
62
|
+
b.bp("/v1/createschedulingpolicy");
|
|
84
63
|
let body;
|
|
85
64
|
body = JSON.stringify(take(input, {
|
|
86
65
|
fairsharePolicy: (_) => se_FairsharePolicy(_, context),
|
|
87
66
|
name: [],
|
|
88
67
|
tags: (_) => _json(_),
|
|
89
68
|
}));
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
hostname,
|
|
93
|
-
port,
|
|
94
|
-
method: "POST",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
69
|
+
b.m("POST").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
99
71
|
};
|
|
100
72
|
export const se_DeleteComputeEnvironmentCommand = async (input, context) => {
|
|
101
|
-
const
|
|
73
|
+
const b = rb(input, context);
|
|
102
74
|
const headers = {
|
|
103
75
|
"content-type": "application/json",
|
|
104
76
|
};
|
|
105
|
-
|
|
77
|
+
b.bp("/v1/deletecomputeenvironment");
|
|
106
78
|
let body;
|
|
107
79
|
body = JSON.stringify(take(input, {
|
|
108
80
|
computeEnvironment: [],
|
|
109
81
|
}));
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
hostname,
|
|
113
|
-
port,
|
|
114
|
-
method: "POST",
|
|
115
|
-
headers,
|
|
116
|
-
path: resolvedPath,
|
|
117
|
-
body,
|
|
118
|
-
});
|
|
82
|
+
b.m("POST").h(headers).b(body);
|
|
83
|
+
return b.build();
|
|
119
84
|
};
|
|
120
85
|
export const se_DeleteJobQueueCommand = async (input, context) => {
|
|
121
|
-
const
|
|
86
|
+
const b = rb(input, context);
|
|
122
87
|
const headers = {
|
|
123
88
|
"content-type": "application/json",
|
|
124
89
|
};
|
|
125
|
-
|
|
90
|
+
b.bp("/v1/deletejobqueue");
|
|
126
91
|
let body;
|
|
127
92
|
body = JSON.stringify(take(input, {
|
|
128
93
|
jobQueue: [],
|
|
129
94
|
}));
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
hostname,
|
|
133
|
-
port,
|
|
134
|
-
method: "POST",
|
|
135
|
-
headers,
|
|
136
|
-
path: resolvedPath,
|
|
137
|
-
body,
|
|
138
|
-
});
|
|
95
|
+
b.m("POST").h(headers).b(body);
|
|
96
|
+
return b.build();
|
|
139
97
|
};
|
|
140
98
|
export const se_DeleteSchedulingPolicyCommand = async (input, context) => {
|
|
141
|
-
const
|
|
99
|
+
const b = rb(input, context);
|
|
142
100
|
const headers = {
|
|
143
101
|
"content-type": "application/json",
|
|
144
102
|
};
|
|
145
|
-
|
|
103
|
+
b.bp("/v1/deleteschedulingpolicy");
|
|
146
104
|
let body;
|
|
147
105
|
body = JSON.stringify(take(input, {
|
|
148
106
|
arn: [],
|
|
149
107
|
}));
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
hostname,
|
|
153
|
-
port,
|
|
154
|
-
method: "POST",
|
|
155
|
-
headers,
|
|
156
|
-
path: resolvedPath,
|
|
157
|
-
body,
|
|
158
|
-
});
|
|
108
|
+
b.m("POST").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
159
110
|
};
|
|
160
111
|
export const se_DeregisterJobDefinitionCommand = async (input, context) => {
|
|
161
|
-
const
|
|
112
|
+
const b = rb(input, context);
|
|
162
113
|
const headers = {
|
|
163
114
|
"content-type": "application/json",
|
|
164
115
|
};
|
|
165
|
-
|
|
116
|
+
b.bp("/v1/deregisterjobdefinition");
|
|
166
117
|
let body;
|
|
167
118
|
body = JSON.stringify(take(input, {
|
|
168
119
|
jobDefinition: [],
|
|
169
120
|
}));
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
hostname,
|
|
173
|
-
port,
|
|
174
|
-
method: "POST",
|
|
175
|
-
headers,
|
|
176
|
-
path: resolvedPath,
|
|
177
|
-
body,
|
|
178
|
-
});
|
|
121
|
+
b.m("POST").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
179
123
|
};
|
|
180
124
|
export const se_DescribeComputeEnvironmentsCommand = async (input, context) => {
|
|
181
|
-
const
|
|
125
|
+
const b = rb(input, context);
|
|
182
126
|
const headers = {
|
|
183
127
|
"content-type": "application/json",
|
|
184
128
|
};
|
|
185
|
-
|
|
129
|
+
b.bp("/v1/describecomputeenvironments");
|
|
186
130
|
let body;
|
|
187
131
|
body = JSON.stringify(take(input, {
|
|
188
132
|
computeEnvironments: (_) => _json(_),
|
|
189
133
|
maxResults: [],
|
|
190
134
|
nextToken: [],
|
|
191
135
|
}));
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
hostname,
|
|
195
|
-
port,
|
|
196
|
-
method: "POST",
|
|
197
|
-
headers,
|
|
198
|
-
path: resolvedPath,
|
|
199
|
-
body,
|
|
200
|
-
});
|
|
136
|
+
b.m("POST").h(headers).b(body);
|
|
137
|
+
return b.build();
|
|
201
138
|
};
|
|
202
139
|
export const se_DescribeJobDefinitionsCommand = async (input, context) => {
|
|
203
|
-
const
|
|
140
|
+
const b = rb(input, context);
|
|
204
141
|
const headers = {
|
|
205
142
|
"content-type": "application/json",
|
|
206
143
|
};
|
|
207
|
-
|
|
144
|
+
b.bp("/v1/describejobdefinitions");
|
|
208
145
|
let body;
|
|
209
146
|
body = JSON.stringify(take(input, {
|
|
210
147
|
jobDefinitionName: [],
|
|
@@ -213,84 +150,56 @@ export const se_DescribeJobDefinitionsCommand = async (input, context) => {
|
|
|
213
150
|
nextToken: [],
|
|
214
151
|
status: [],
|
|
215
152
|
}));
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
hostname,
|
|
219
|
-
port,
|
|
220
|
-
method: "POST",
|
|
221
|
-
headers,
|
|
222
|
-
path: resolvedPath,
|
|
223
|
-
body,
|
|
224
|
-
});
|
|
153
|
+
b.m("POST").h(headers).b(body);
|
|
154
|
+
return b.build();
|
|
225
155
|
};
|
|
226
156
|
export const se_DescribeJobQueuesCommand = async (input, context) => {
|
|
227
|
-
const
|
|
157
|
+
const b = rb(input, context);
|
|
228
158
|
const headers = {
|
|
229
159
|
"content-type": "application/json",
|
|
230
160
|
};
|
|
231
|
-
|
|
161
|
+
b.bp("/v1/describejobqueues");
|
|
232
162
|
let body;
|
|
233
163
|
body = JSON.stringify(take(input, {
|
|
234
164
|
jobQueues: (_) => _json(_),
|
|
235
165
|
maxResults: [],
|
|
236
166
|
nextToken: [],
|
|
237
167
|
}));
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
hostname,
|
|
241
|
-
port,
|
|
242
|
-
method: "POST",
|
|
243
|
-
headers,
|
|
244
|
-
path: resolvedPath,
|
|
245
|
-
body,
|
|
246
|
-
});
|
|
168
|
+
b.m("POST").h(headers).b(body);
|
|
169
|
+
return b.build();
|
|
247
170
|
};
|
|
248
171
|
export const se_DescribeJobsCommand = async (input, context) => {
|
|
249
|
-
const
|
|
172
|
+
const b = rb(input, context);
|
|
250
173
|
const headers = {
|
|
251
174
|
"content-type": "application/json",
|
|
252
175
|
};
|
|
253
|
-
|
|
176
|
+
b.bp("/v1/describejobs");
|
|
254
177
|
let body;
|
|
255
178
|
body = JSON.stringify(take(input, {
|
|
256
179
|
jobs: (_) => _json(_),
|
|
257
180
|
}));
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
hostname,
|
|
261
|
-
port,
|
|
262
|
-
method: "POST",
|
|
263
|
-
headers,
|
|
264
|
-
path: resolvedPath,
|
|
265
|
-
body,
|
|
266
|
-
});
|
|
181
|
+
b.m("POST").h(headers).b(body);
|
|
182
|
+
return b.build();
|
|
267
183
|
};
|
|
268
184
|
export const se_DescribeSchedulingPoliciesCommand = async (input, context) => {
|
|
269
|
-
const
|
|
185
|
+
const b = rb(input, context);
|
|
270
186
|
const headers = {
|
|
271
187
|
"content-type": "application/json",
|
|
272
188
|
};
|
|
273
|
-
|
|
189
|
+
b.bp("/v1/describeschedulingpolicies");
|
|
274
190
|
let body;
|
|
275
191
|
body = JSON.stringify(take(input, {
|
|
276
192
|
arns: (_) => _json(_),
|
|
277
193
|
}));
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
hostname,
|
|
281
|
-
port,
|
|
282
|
-
method: "POST",
|
|
283
|
-
headers,
|
|
284
|
-
path: resolvedPath,
|
|
285
|
-
body,
|
|
286
|
-
});
|
|
194
|
+
b.m("POST").h(headers).b(body);
|
|
195
|
+
return b.build();
|
|
287
196
|
};
|
|
288
197
|
export const se_ListJobsCommand = async (input, context) => {
|
|
289
|
-
const
|
|
198
|
+
const b = rb(input, context);
|
|
290
199
|
const headers = {
|
|
291
200
|
"content-type": "application/json",
|
|
292
201
|
};
|
|
293
|
-
|
|
202
|
+
b.bp("/v1/listjobs");
|
|
294
203
|
let body;
|
|
295
204
|
body = JSON.stringify(take(input, {
|
|
296
205
|
arrayJobId: [],
|
|
@@ -301,59 +210,38 @@ export const se_ListJobsCommand = async (input, context) => {
|
|
|
301
210
|
multiNodeJobId: [],
|
|
302
211
|
nextToken: [],
|
|
303
212
|
}));
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
hostname,
|
|
307
|
-
port,
|
|
308
|
-
method: "POST",
|
|
309
|
-
headers,
|
|
310
|
-
path: resolvedPath,
|
|
311
|
-
body,
|
|
312
|
-
});
|
|
213
|
+
b.m("POST").h(headers).b(body);
|
|
214
|
+
return b.build();
|
|
313
215
|
};
|
|
314
216
|
export const se_ListSchedulingPoliciesCommand = async (input, context) => {
|
|
315
|
-
const
|
|
217
|
+
const b = rb(input, context);
|
|
316
218
|
const headers = {
|
|
317
219
|
"content-type": "application/json",
|
|
318
220
|
};
|
|
319
|
-
|
|
221
|
+
b.bp("/v1/listschedulingpolicies");
|
|
320
222
|
let body;
|
|
321
223
|
body = JSON.stringify(take(input, {
|
|
322
224
|
maxResults: [],
|
|
323
225
|
nextToken: [],
|
|
324
226
|
}));
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
hostname,
|
|
328
|
-
port,
|
|
329
|
-
method: "POST",
|
|
330
|
-
headers,
|
|
331
|
-
path: resolvedPath,
|
|
332
|
-
body,
|
|
333
|
-
});
|
|
227
|
+
b.m("POST").h(headers).b(body);
|
|
228
|
+
return b.build();
|
|
334
229
|
};
|
|
335
230
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
336
|
-
const
|
|
231
|
+
const b = rb(input, context);
|
|
337
232
|
const headers = {};
|
|
338
|
-
|
|
339
|
-
|
|
233
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
234
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
340
235
|
let body;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
hostname,
|
|
344
|
-
port,
|
|
345
|
-
method: "GET",
|
|
346
|
-
headers,
|
|
347
|
-
path: resolvedPath,
|
|
348
|
-
body,
|
|
349
|
-
});
|
|
236
|
+
b.m("GET").h(headers).b(body);
|
|
237
|
+
return b.build();
|
|
350
238
|
};
|
|
351
239
|
export const se_RegisterJobDefinitionCommand = async (input, context) => {
|
|
352
|
-
const
|
|
240
|
+
const b = rb(input, context);
|
|
353
241
|
const headers = {
|
|
354
242
|
"content-type": "application/json",
|
|
355
243
|
};
|
|
356
|
-
|
|
244
|
+
b.bp("/v1/registerjobdefinition");
|
|
357
245
|
let body;
|
|
358
246
|
body = JSON.stringify(take(input, {
|
|
359
247
|
containerProperties: (_) => _json(_),
|
|
@@ -369,22 +257,15 @@ export const se_RegisterJobDefinitionCommand = async (input, context) => {
|
|
|
369
257
|
timeout: (_) => _json(_),
|
|
370
258
|
type: [],
|
|
371
259
|
}));
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
hostname,
|
|
375
|
-
port,
|
|
376
|
-
method: "POST",
|
|
377
|
-
headers,
|
|
378
|
-
path: resolvedPath,
|
|
379
|
-
body,
|
|
380
|
-
});
|
|
260
|
+
b.m("POST").h(headers).b(body);
|
|
261
|
+
return b.build();
|
|
381
262
|
};
|
|
382
263
|
export const se_SubmitJobCommand = async (input, context) => {
|
|
383
|
-
const
|
|
264
|
+
const b = rb(input, context);
|
|
384
265
|
const headers = {
|
|
385
266
|
"content-type": "application/json",
|
|
386
267
|
};
|
|
387
|
-
|
|
268
|
+
b.bp("/v1/submitjob");
|
|
388
269
|
let body;
|
|
389
270
|
body = JSON.stringify(take(input, {
|
|
390
271
|
arrayProperties: (_) => _json(_),
|
|
@@ -403,87 +284,58 @@ export const se_SubmitJobCommand = async (input, context) => {
|
|
|
403
284
|
tags: (_) => _json(_),
|
|
404
285
|
timeout: (_) => _json(_),
|
|
405
286
|
}));
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "POST",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
body,
|
|
414
|
-
});
|
|
287
|
+
b.m("POST").h(headers).b(body);
|
|
288
|
+
return b.build();
|
|
415
289
|
};
|
|
416
290
|
export const se_TagResourceCommand = async (input, context) => {
|
|
417
|
-
const
|
|
291
|
+
const b = rb(input, context);
|
|
418
292
|
const headers = {
|
|
419
293
|
"content-type": "application/json",
|
|
420
294
|
};
|
|
421
|
-
|
|
422
|
-
|
|
295
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
296
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
423
297
|
let body;
|
|
424
298
|
body = JSON.stringify(take(input, {
|
|
425
299
|
tags: (_) => _json(_),
|
|
426
300
|
}));
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
hostname,
|
|
430
|
-
port,
|
|
431
|
-
method: "POST",
|
|
432
|
-
headers,
|
|
433
|
-
path: resolvedPath,
|
|
434
|
-
body,
|
|
435
|
-
});
|
|
301
|
+
b.m("POST").h(headers).b(body);
|
|
302
|
+
return b.build();
|
|
436
303
|
};
|
|
437
304
|
export const se_TerminateJobCommand = async (input, context) => {
|
|
438
|
-
const
|
|
305
|
+
const b = rb(input, context);
|
|
439
306
|
const headers = {
|
|
440
307
|
"content-type": "application/json",
|
|
441
308
|
};
|
|
442
|
-
|
|
309
|
+
b.bp("/v1/terminatejob");
|
|
443
310
|
let body;
|
|
444
311
|
body = JSON.stringify(take(input, {
|
|
445
312
|
jobId: [],
|
|
446
313
|
reason: [],
|
|
447
314
|
}));
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
hostname,
|
|
451
|
-
port,
|
|
452
|
-
method: "POST",
|
|
453
|
-
headers,
|
|
454
|
-
path: resolvedPath,
|
|
455
|
-
body,
|
|
456
|
-
});
|
|
315
|
+
b.m("POST").h(headers).b(body);
|
|
316
|
+
return b.build();
|
|
457
317
|
};
|
|
458
318
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
459
|
-
const
|
|
319
|
+
const b = rb(input, context);
|
|
460
320
|
const headers = {};
|
|
461
|
-
|
|
462
|
-
|
|
321
|
+
b.bp("/v1/tags/{resourceArn}");
|
|
322
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
463
323
|
const query = map({
|
|
464
|
-
|
|
324
|
+
[_tK]: [
|
|
465
325
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
466
|
-
() => (input
|
|
326
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
467
327
|
],
|
|
468
328
|
});
|
|
469
329
|
let body;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
hostname,
|
|
473
|
-
port,
|
|
474
|
-
method: "DELETE",
|
|
475
|
-
headers,
|
|
476
|
-
path: resolvedPath,
|
|
477
|
-
query,
|
|
478
|
-
body,
|
|
479
|
-
});
|
|
330
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
331
|
+
return b.build();
|
|
480
332
|
};
|
|
481
333
|
export const se_UpdateComputeEnvironmentCommand = async (input, context) => {
|
|
482
|
-
const
|
|
334
|
+
const b = rb(input, context);
|
|
483
335
|
const headers = {
|
|
484
336
|
"content-type": "application/json",
|
|
485
337
|
};
|
|
486
|
-
|
|
338
|
+
b.bp("/v1/updatecomputeenvironment");
|
|
487
339
|
let body;
|
|
488
340
|
body = JSON.stringify(take(input, {
|
|
489
341
|
computeEnvironment: [],
|
|
@@ -493,22 +345,15 @@ export const se_UpdateComputeEnvironmentCommand = async (input, context) => {
|
|
|
493
345
|
unmanagedvCpus: [],
|
|
494
346
|
updatePolicy: (_) => _json(_),
|
|
495
347
|
}));
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
hostname,
|
|
499
|
-
port,
|
|
500
|
-
method: "POST",
|
|
501
|
-
headers,
|
|
502
|
-
path: resolvedPath,
|
|
503
|
-
body,
|
|
504
|
-
});
|
|
348
|
+
b.m("POST").h(headers).b(body);
|
|
349
|
+
return b.build();
|
|
505
350
|
};
|
|
506
351
|
export const se_UpdateJobQueueCommand = async (input, context) => {
|
|
507
|
-
const
|
|
352
|
+
const b = rb(input, context);
|
|
508
353
|
const headers = {
|
|
509
354
|
"content-type": "application/json",
|
|
510
355
|
};
|
|
511
|
-
|
|
356
|
+
b.bp("/v1/updatejobqueue");
|
|
512
357
|
let body;
|
|
513
358
|
body = JSON.stringify(take(input, {
|
|
514
359
|
computeEnvironmentOrder: (_) => _json(_),
|
|
@@ -517,36 +362,22 @@ export const se_UpdateJobQueueCommand = async (input, context) => {
|
|
|
517
362
|
schedulingPolicyArn: [],
|
|
518
363
|
state: [],
|
|
519
364
|
}));
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
hostname,
|
|
523
|
-
port,
|
|
524
|
-
method: "POST",
|
|
525
|
-
headers,
|
|
526
|
-
path: resolvedPath,
|
|
527
|
-
body,
|
|
528
|
-
});
|
|
365
|
+
b.m("POST").h(headers).b(body);
|
|
366
|
+
return b.build();
|
|
529
367
|
};
|
|
530
368
|
export const se_UpdateSchedulingPolicyCommand = async (input, context) => {
|
|
531
|
-
const
|
|
369
|
+
const b = rb(input, context);
|
|
532
370
|
const headers = {
|
|
533
371
|
"content-type": "application/json",
|
|
534
372
|
};
|
|
535
|
-
|
|
373
|
+
b.bp("/v1/updateschedulingpolicy");
|
|
536
374
|
let body;
|
|
537
375
|
body = JSON.stringify(take(input, {
|
|
538
376
|
arn: [],
|
|
539
377
|
fairsharePolicy: (_) => se_FairsharePolicy(_, context),
|
|
540
378
|
}));
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
hostname,
|
|
544
|
-
port,
|
|
545
|
-
method: "POST",
|
|
546
|
-
headers,
|
|
547
|
-
path: resolvedPath,
|
|
548
|
-
body,
|
|
549
|
-
});
|
|
379
|
+
b.m("POST").h(headers).b(body);
|
|
380
|
+
return b.build();
|
|
550
381
|
};
|
|
551
382
|
export const de_CancelJobCommand = async (output, context) => {
|
|
552
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1486,6 +1317,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1486
1317
|
value !== "" &&
|
|
1487
1318
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1488
1319
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1320
|
+
const _tK = "tagKeys";
|
|
1489
1321
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1490
1322
|
if (encoded.length) {
|
|
1491
1323
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { BatchPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeComputeEnvironments: (config: BatchPaginationConfiguration, input: DescribeComputeEnvironmentsCommandInput, ...rest: any[]) => Paginator<DescribeComputeEnvironmentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BatchPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobDefinitions: (config: BatchPaginationConfiguration, input: DescribeJobDefinitionsCommandInput, ...rest: any[]) => Paginator<DescribeJobDefinitionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BatchPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeJobQueues: (config: BatchPaginationConfiguration, input: DescribeJobQueuesCommandInput, ...rest: any[]) => Paginator<DescribeJobQueuesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BatchPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListJobs: (config: BatchPaginationConfiguration, input: ListJobsCommandInput, ...rest: any[]) => Paginator<ListJobsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { BatchPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSchedulingPolicies: (config: BatchPaginationConfiguration, input: ListSchedulingPoliciesCommandInput, ...rest: any[]) => Paginator<ListSchedulingPoliciesCommandOutput>;
|