@aws-sdk/client-batch 3.928.0 → 3.929.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/index.js +2306 -1659
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BatchClient.js +2 -0
- package/dist-es/commands/CancelJobCommand.js +3 -9
- package/dist-es/commands/CreateComputeEnvironmentCommand.js +3 -9
- package/dist-es/commands/CreateConsumableResourceCommand.js +3 -9
- package/dist-es/commands/CreateJobQueueCommand.js +3 -9
- package/dist-es/commands/CreateSchedulingPolicyCommand.js +3 -9
- package/dist-es/commands/CreateServiceEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeleteComputeEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeleteConsumableResourceCommand.js +3 -9
- package/dist-es/commands/DeleteJobQueueCommand.js +3 -9
- package/dist-es/commands/DeleteSchedulingPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteServiceEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeregisterJobDefinitionCommand.js +3 -9
- package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +3 -9
- package/dist-es/commands/DescribeConsumableResourceCommand.js +3 -9
- package/dist-es/commands/DescribeJobDefinitionsCommand.js +3 -9
- package/dist-es/commands/DescribeJobQueuesCommand.js +3 -9
- package/dist-es/commands/DescribeJobsCommand.js +3 -9
- package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +3 -9
- package/dist-es/commands/DescribeServiceEnvironmentsCommand.js +3 -9
- package/dist-es/commands/DescribeServiceJobCommand.js +3 -9
- package/dist-es/commands/GetJobQueueSnapshotCommand.js +3 -9
- package/dist-es/commands/ListConsumableResourcesCommand.js +3 -9
- package/dist-es/commands/ListJobsByConsumableResourceCommand.js +3 -9
- package/dist-es/commands/ListJobsCommand.js +3 -9
- package/dist-es/commands/ListSchedulingPoliciesCommand.js +3 -9
- package/dist-es/commands/ListServiceJobsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RegisterJobDefinitionCommand.js +3 -9
- package/dist-es/commands/SubmitJobCommand.js +3 -9
- package/dist-es/commands/SubmitServiceJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TerminateJobCommand.js +3 -9
- package/dist-es/commands/TerminateServiceJobCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateComputeEnvironmentCommand.js +3 -9
- package/dist-es/commands/UpdateConsumableResourceCommand.js +3 -9
- package/dist-es/commands/UpdateJobQueueCommand.js +3 -9
- package/dist-es/commands/UpdateSchedulingPolicyCommand.js +3 -9
- package/dist-es/commands/UpdateServiceEnvironmentCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +2236 -0
- package/dist-types/BatchClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +45 -57
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +301 -0
- package/dist-types/ts3.4/BatchClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +306 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -1382
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -353
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -473
|
@@ -1,1382 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { BatchServiceException as __BaseException } from "../models/BatchServiceException";
|
|
6
|
-
import { ClientException, ServerException, } from "../models/models_0";
|
|
7
|
-
export const se_CancelJobCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/v1/canceljob");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
jobId: [],
|
|
16
|
-
reason: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateComputeEnvironmentCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/v1/createcomputeenvironment");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
computeEnvironmentName: [],
|
|
30
|
-
computeResources: (_) => _json(_),
|
|
31
|
-
context: [],
|
|
32
|
-
eksConfiguration: (_) => _json(_),
|
|
33
|
-
serviceRole: [],
|
|
34
|
-
state: [],
|
|
35
|
-
tags: (_) => _json(_),
|
|
36
|
-
type: [],
|
|
37
|
-
unmanagedvCpus: [],
|
|
38
|
-
}));
|
|
39
|
-
b.m("POST").h(headers).b(body);
|
|
40
|
-
return b.build();
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateConsumableResourceCommand = async (input, context) => {
|
|
43
|
-
const b = rb(input, context);
|
|
44
|
-
const headers = {
|
|
45
|
-
"content-type": "application/json",
|
|
46
|
-
};
|
|
47
|
-
b.bp("/v1/createconsumableresource");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify(take(input, {
|
|
50
|
-
consumableResourceName: [],
|
|
51
|
-
resourceType: [],
|
|
52
|
-
tags: (_) => _json(_),
|
|
53
|
-
totalQuantity: [],
|
|
54
|
-
}));
|
|
55
|
-
b.m("POST").h(headers).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_CreateJobQueueCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {
|
|
61
|
-
"content-type": "application/json",
|
|
62
|
-
};
|
|
63
|
-
b.bp("/v1/createjobqueue");
|
|
64
|
-
let body;
|
|
65
|
-
body = JSON.stringify(take(input, {
|
|
66
|
-
computeEnvironmentOrder: (_) => _json(_),
|
|
67
|
-
jobQueueName: [],
|
|
68
|
-
jobQueueType: [],
|
|
69
|
-
jobStateTimeLimitActions: (_) => _json(_),
|
|
70
|
-
priority: [],
|
|
71
|
-
schedulingPolicyArn: [],
|
|
72
|
-
serviceEnvironmentOrder: (_) => _json(_),
|
|
73
|
-
state: [],
|
|
74
|
-
tags: (_) => _json(_),
|
|
75
|
-
}));
|
|
76
|
-
b.m("POST").h(headers).b(body);
|
|
77
|
-
return b.build();
|
|
78
|
-
};
|
|
79
|
-
export const se_CreateSchedulingPolicyCommand = async (input, context) => {
|
|
80
|
-
const b = rb(input, context);
|
|
81
|
-
const headers = {
|
|
82
|
-
"content-type": "application/json",
|
|
83
|
-
};
|
|
84
|
-
b.bp("/v1/createschedulingpolicy");
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify(take(input, {
|
|
87
|
-
fairsharePolicy: (_) => se_FairsharePolicy(_, context),
|
|
88
|
-
name: [],
|
|
89
|
-
tags: (_) => _json(_),
|
|
90
|
-
}));
|
|
91
|
-
b.m("POST").h(headers).b(body);
|
|
92
|
-
return b.build();
|
|
93
|
-
};
|
|
94
|
-
export const se_CreateServiceEnvironmentCommand = async (input, context) => {
|
|
95
|
-
const b = rb(input, context);
|
|
96
|
-
const headers = {
|
|
97
|
-
"content-type": "application/json",
|
|
98
|
-
};
|
|
99
|
-
b.bp("/v1/createserviceenvironment");
|
|
100
|
-
let body;
|
|
101
|
-
body = JSON.stringify(take(input, {
|
|
102
|
-
capacityLimits: (_) => _json(_),
|
|
103
|
-
serviceEnvironmentName: [],
|
|
104
|
-
serviceEnvironmentType: [],
|
|
105
|
-
state: [],
|
|
106
|
-
tags: (_) => _json(_),
|
|
107
|
-
}));
|
|
108
|
-
b.m("POST").h(headers).b(body);
|
|
109
|
-
return b.build();
|
|
110
|
-
};
|
|
111
|
-
export const se_DeleteComputeEnvironmentCommand = async (input, context) => {
|
|
112
|
-
const b = rb(input, context);
|
|
113
|
-
const headers = {
|
|
114
|
-
"content-type": "application/json",
|
|
115
|
-
};
|
|
116
|
-
b.bp("/v1/deletecomputeenvironment");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(take(input, {
|
|
119
|
-
computeEnvironment: [],
|
|
120
|
-
}));
|
|
121
|
-
b.m("POST").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_DeleteConsumableResourceCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {
|
|
127
|
-
"content-type": "application/json",
|
|
128
|
-
};
|
|
129
|
-
b.bp("/v1/deleteconsumableresource");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify(take(input, {
|
|
132
|
-
consumableResource: [],
|
|
133
|
-
}));
|
|
134
|
-
b.m("POST").h(headers).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
export const se_DeleteJobQueueCommand = async (input, context) => {
|
|
138
|
-
const b = rb(input, context);
|
|
139
|
-
const headers = {
|
|
140
|
-
"content-type": "application/json",
|
|
141
|
-
};
|
|
142
|
-
b.bp("/v1/deletejobqueue");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify(take(input, {
|
|
145
|
-
jobQueue: [],
|
|
146
|
-
}));
|
|
147
|
-
b.m("POST").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
export const se_DeleteSchedulingPolicyCommand = async (input, context) => {
|
|
151
|
-
const b = rb(input, context);
|
|
152
|
-
const headers = {
|
|
153
|
-
"content-type": "application/json",
|
|
154
|
-
};
|
|
155
|
-
b.bp("/v1/deleteschedulingpolicy");
|
|
156
|
-
let body;
|
|
157
|
-
body = JSON.stringify(take(input, {
|
|
158
|
-
arn: [],
|
|
159
|
-
}));
|
|
160
|
-
b.m("POST").h(headers).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_DeleteServiceEnvironmentCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {
|
|
166
|
-
"content-type": "application/json",
|
|
167
|
-
};
|
|
168
|
-
b.bp("/v1/deleteserviceenvironment");
|
|
169
|
-
let body;
|
|
170
|
-
body = JSON.stringify(take(input, {
|
|
171
|
-
serviceEnvironment: [],
|
|
172
|
-
}));
|
|
173
|
-
b.m("POST").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
export const se_DeregisterJobDefinitionCommand = async (input, context) => {
|
|
177
|
-
const b = rb(input, context);
|
|
178
|
-
const headers = {
|
|
179
|
-
"content-type": "application/json",
|
|
180
|
-
};
|
|
181
|
-
b.bp("/v1/deregisterjobdefinition");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(take(input, {
|
|
184
|
-
jobDefinition: [],
|
|
185
|
-
}));
|
|
186
|
-
b.m("POST").h(headers).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
export const se_DescribeComputeEnvironmentsCommand = async (input, context) => {
|
|
190
|
-
const b = rb(input, context);
|
|
191
|
-
const headers = {
|
|
192
|
-
"content-type": "application/json",
|
|
193
|
-
};
|
|
194
|
-
b.bp("/v1/describecomputeenvironments");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify(take(input, {
|
|
197
|
-
computeEnvironments: (_) => _json(_),
|
|
198
|
-
maxResults: [],
|
|
199
|
-
nextToken: [],
|
|
200
|
-
}));
|
|
201
|
-
b.m("POST").h(headers).b(body);
|
|
202
|
-
return b.build();
|
|
203
|
-
};
|
|
204
|
-
export const se_DescribeConsumableResourceCommand = async (input, context) => {
|
|
205
|
-
const b = rb(input, context);
|
|
206
|
-
const headers = {
|
|
207
|
-
"content-type": "application/json",
|
|
208
|
-
};
|
|
209
|
-
b.bp("/v1/describeconsumableresource");
|
|
210
|
-
let body;
|
|
211
|
-
body = JSON.stringify(take(input, {
|
|
212
|
-
consumableResource: [],
|
|
213
|
-
}));
|
|
214
|
-
b.m("POST").h(headers).b(body);
|
|
215
|
-
return b.build();
|
|
216
|
-
};
|
|
217
|
-
export const se_DescribeJobDefinitionsCommand = async (input, context) => {
|
|
218
|
-
const b = rb(input, context);
|
|
219
|
-
const headers = {
|
|
220
|
-
"content-type": "application/json",
|
|
221
|
-
};
|
|
222
|
-
b.bp("/v1/describejobdefinitions");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify(take(input, {
|
|
225
|
-
jobDefinitionName: [],
|
|
226
|
-
jobDefinitions: (_) => _json(_),
|
|
227
|
-
maxResults: [],
|
|
228
|
-
nextToken: [],
|
|
229
|
-
status: [],
|
|
230
|
-
}));
|
|
231
|
-
b.m("POST").h(headers).b(body);
|
|
232
|
-
return b.build();
|
|
233
|
-
};
|
|
234
|
-
export const se_DescribeJobQueuesCommand = async (input, context) => {
|
|
235
|
-
const b = rb(input, context);
|
|
236
|
-
const headers = {
|
|
237
|
-
"content-type": "application/json",
|
|
238
|
-
};
|
|
239
|
-
b.bp("/v1/describejobqueues");
|
|
240
|
-
let body;
|
|
241
|
-
body = JSON.stringify(take(input, {
|
|
242
|
-
jobQueues: (_) => _json(_),
|
|
243
|
-
maxResults: [],
|
|
244
|
-
nextToken: [],
|
|
245
|
-
}));
|
|
246
|
-
b.m("POST").h(headers).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
export const se_DescribeJobsCommand = async (input, context) => {
|
|
250
|
-
const b = rb(input, context);
|
|
251
|
-
const headers = {
|
|
252
|
-
"content-type": "application/json",
|
|
253
|
-
};
|
|
254
|
-
b.bp("/v1/describejobs");
|
|
255
|
-
let body;
|
|
256
|
-
body = JSON.stringify(take(input, {
|
|
257
|
-
jobs: (_) => _json(_),
|
|
258
|
-
}));
|
|
259
|
-
b.m("POST").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
export const se_DescribeSchedulingPoliciesCommand = async (input, context) => {
|
|
263
|
-
const b = rb(input, context);
|
|
264
|
-
const headers = {
|
|
265
|
-
"content-type": "application/json",
|
|
266
|
-
};
|
|
267
|
-
b.bp("/v1/describeschedulingpolicies");
|
|
268
|
-
let body;
|
|
269
|
-
body = JSON.stringify(take(input, {
|
|
270
|
-
arns: (_) => _json(_),
|
|
271
|
-
}));
|
|
272
|
-
b.m("POST").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
export const se_DescribeServiceEnvironmentsCommand = async (input, context) => {
|
|
276
|
-
const b = rb(input, context);
|
|
277
|
-
const headers = {
|
|
278
|
-
"content-type": "application/json",
|
|
279
|
-
};
|
|
280
|
-
b.bp("/v1/describeserviceenvironments");
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify(take(input, {
|
|
283
|
-
maxResults: [],
|
|
284
|
-
nextToken: [],
|
|
285
|
-
serviceEnvironments: (_) => _json(_),
|
|
286
|
-
}));
|
|
287
|
-
b.m("POST").h(headers).b(body);
|
|
288
|
-
return b.build();
|
|
289
|
-
};
|
|
290
|
-
export const se_DescribeServiceJobCommand = async (input, context) => {
|
|
291
|
-
const b = rb(input, context);
|
|
292
|
-
const headers = {
|
|
293
|
-
"content-type": "application/json",
|
|
294
|
-
};
|
|
295
|
-
b.bp("/v1/describeservicejob");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(take(input, {
|
|
298
|
-
jobId: [],
|
|
299
|
-
}));
|
|
300
|
-
b.m("POST").h(headers).b(body);
|
|
301
|
-
return b.build();
|
|
302
|
-
};
|
|
303
|
-
export const se_GetJobQueueSnapshotCommand = async (input, context) => {
|
|
304
|
-
const b = rb(input, context);
|
|
305
|
-
const headers = {
|
|
306
|
-
"content-type": "application/json",
|
|
307
|
-
};
|
|
308
|
-
b.bp("/v1/getjobqueuesnapshot");
|
|
309
|
-
let body;
|
|
310
|
-
body = JSON.stringify(take(input, {
|
|
311
|
-
jobQueue: [],
|
|
312
|
-
}));
|
|
313
|
-
b.m("POST").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
export const se_ListConsumableResourcesCommand = async (input, context) => {
|
|
317
|
-
const b = rb(input, context);
|
|
318
|
-
const headers = {
|
|
319
|
-
"content-type": "application/json",
|
|
320
|
-
};
|
|
321
|
-
b.bp("/v1/listconsumableresources");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify(take(input, {
|
|
324
|
-
filters: (_) => _json(_),
|
|
325
|
-
maxResults: [],
|
|
326
|
-
nextToken: [],
|
|
327
|
-
}));
|
|
328
|
-
b.m("POST").h(headers).b(body);
|
|
329
|
-
return b.build();
|
|
330
|
-
};
|
|
331
|
-
export const se_ListJobsCommand = async (input, context) => {
|
|
332
|
-
const b = rb(input, context);
|
|
333
|
-
const headers = {
|
|
334
|
-
"content-type": "application/json",
|
|
335
|
-
};
|
|
336
|
-
b.bp("/v1/listjobs");
|
|
337
|
-
let body;
|
|
338
|
-
body = JSON.stringify(take(input, {
|
|
339
|
-
arrayJobId: [],
|
|
340
|
-
filters: (_) => _json(_),
|
|
341
|
-
jobQueue: [],
|
|
342
|
-
jobStatus: [],
|
|
343
|
-
maxResults: [],
|
|
344
|
-
multiNodeJobId: [],
|
|
345
|
-
nextToken: [],
|
|
346
|
-
}));
|
|
347
|
-
b.m("POST").h(headers).b(body);
|
|
348
|
-
return b.build();
|
|
349
|
-
};
|
|
350
|
-
export const se_ListJobsByConsumableResourceCommand = async (input, context) => {
|
|
351
|
-
const b = rb(input, context);
|
|
352
|
-
const headers = {
|
|
353
|
-
"content-type": "application/json",
|
|
354
|
-
};
|
|
355
|
-
b.bp("/v1/listjobsbyconsumableresource");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify(take(input, {
|
|
358
|
-
consumableResource: [],
|
|
359
|
-
filters: (_) => _json(_),
|
|
360
|
-
maxResults: [],
|
|
361
|
-
nextToken: [],
|
|
362
|
-
}));
|
|
363
|
-
b.m("POST").h(headers).b(body);
|
|
364
|
-
return b.build();
|
|
365
|
-
};
|
|
366
|
-
export const se_ListSchedulingPoliciesCommand = async (input, context) => {
|
|
367
|
-
const b = rb(input, context);
|
|
368
|
-
const headers = {
|
|
369
|
-
"content-type": "application/json",
|
|
370
|
-
};
|
|
371
|
-
b.bp("/v1/listschedulingpolicies");
|
|
372
|
-
let body;
|
|
373
|
-
body = JSON.stringify(take(input, {
|
|
374
|
-
maxResults: [],
|
|
375
|
-
nextToken: [],
|
|
376
|
-
}));
|
|
377
|
-
b.m("POST").h(headers).b(body);
|
|
378
|
-
return b.build();
|
|
379
|
-
};
|
|
380
|
-
export const se_ListServiceJobsCommand = async (input, context) => {
|
|
381
|
-
const b = rb(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json",
|
|
384
|
-
};
|
|
385
|
-
b.bp("/v1/listservicejobs");
|
|
386
|
-
let body;
|
|
387
|
-
body = JSON.stringify(take(input, {
|
|
388
|
-
filters: (_) => _json(_),
|
|
389
|
-
jobQueue: [],
|
|
390
|
-
jobStatus: [],
|
|
391
|
-
maxResults: [],
|
|
392
|
-
nextToken: [],
|
|
393
|
-
}));
|
|
394
|
-
b.m("POST").h(headers).b(body);
|
|
395
|
-
return b.build();
|
|
396
|
-
};
|
|
397
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
398
|
-
const b = rb(input, context);
|
|
399
|
-
const headers = {};
|
|
400
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
401
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
402
|
-
let body;
|
|
403
|
-
b.m("GET").h(headers).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
export const se_RegisterJobDefinitionCommand = async (input, context) => {
|
|
407
|
-
const b = rb(input, context);
|
|
408
|
-
const headers = {
|
|
409
|
-
"content-type": "application/json",
|
|
410
|
-
};
|
|
411
|
-
b.bp("/v1/registerjobdefinition");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify(take(input, {
|
|
414
|
-
consumableResourceProperties: (_) => _json(_),
|
|
415
|
-
containerProperties: (_) => _json(_),
|
|
416
|
-
ecsProperties: (_) => _json(_),
|
|
417
|
-
eksProperties: (_) => _json(_),
|
|
418
|
-
jobDefinitionName: [],
|
|
419
|
-
nodeProperties: (_) => se_NodeProperties(_, context),
|
|
420
|
-
parameters: (_) => _json(_),
|
|
421
|
-
platformCapabilities: (_) => _json(_),
|
|
422
|
-
propagateTags: [],
|
|
423
|
-
retryStrategy: (_) => _json(_),
|
|
424
|
-
schedulingPriority: [],
|
|
425
|
-
tags: (_) => _json(_),
|
|
426
|
-
timeout: (_) => _json(_),
|
|
427
|
-
type: [],
|
|
428
|
-
}));
|
|
429
|
-
b.m("POST").h(headers).b(body);
|
|
430
|
-
return b.build();
|
|
431
|
-
};
|
|
432
|
-
export const se_SubmitJobCommand = async (input, context) => {
|
|
433
|
-
const b = rb(input, context);
|
|
434
|
-
const headers = {
|
|
435
|
-
"content-type": "application/json",
|
|
436
|
-
};
|
|
437
|
-
b.bp("/v1/submitjob");
|
|
438
|
-
let body;
|
|
439
|
-
body = JSON.stringify(take(input, {
|
|
440
|
-
arrayProperties: (_) => _json(_),
|
|
441
|
-
consumableResourcePropertiesOverride: (_) => _json(_),
|
|
442
|
-
containerOverrides: (_) => _json(_),
|
|
443
|
-
dependsOn: (_) => _json(_),
|
|
444
|
-
ecsPropertiesOverride: (_) => _json(_),
|
|
445
|
-
eksPropertiesOverride: (_) => _json(_),
|
|
446
|
-
jobDefinition: [],
|
|
447
|
-
jobName: [],
|
|
448
|
-
jobQueue: [],
|
|
449
|
-
nodeOverrides: (_) => _json(_),
|
|
450
|
-
parameters: (_) => _json(_),
|
|
451
|
-
propagateTags: [],
|
|
452
|
-
retryStrategy: (_) => _json(_),
|
|
453
|
-
schedulingPriorityOverride: [],
|
|
454
|
-
shareIdentifier: [],
|
|
455
|
-
tags: (_) => _json(_),
|
|
456
|
-
timeout: (_) => _json(_),
|
|
457
|
-
}));
|
|
458
|
-
b.m("POST").h(headers).b(body);
|
|
459
|
-
return b.build();
|
|
460
|
-
};
|
|
461
|
-
export const se_SubmitServiceJobCommand = async (input, context) => {
|
|
462
|
-
const b = rb(input, context);
|
|
463
|
-
const headers = {
|
|
464
|
-
"content-type": "application/json",
|
|
465
|
-
};
|
|
466
|
-
b.bp("/v1/submitservicejob");
|
|
467
|
-
let body;
|
|
468
|
-
body = JSON.stringify(take(input, {
|
|
469
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
470
|
-
jobName: [],
|
|
471
|
-
jobQueue: [],
|
|
472
|
-
retryStrategy: (_) => _json(_),
|
|
473
|
-
schedulingPriority: [],
|
|
474
|
-
serviceJobType: [],
|
|
475
|
-
serviceRequestPayload: [],
|
|
476
|
-
shareIdentifier: [],
|
|
477
|
-
tags: (_) => _json(_),
|
|
478
|
-
timeoutConfig: (_) => _json(_),
|
|
479
|
-
}));
|
|
480
|
-
b.m("POST").h(headers).b(body);
|
|
481
|
-
return b.build();
|
|
482
|
-
};
|
|
483
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
484
|
-
const b = rb(input, context);
|
|
485
|
-
const headers = {
|
|
486
|
-
"content-type": "application/json",
|
|
487
|
-
};
|
|
488
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
489
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify(take(input, {
|
|
492
|
-
tags: (_) => _json(_),
|
|
493
|
-
}));
|
|
494
|
-
b.m("POST").h(headers).b(body);
|
|
495
|
-
return b.build();
|
|
496
|
-
};
|
|
497
|
-
export const se_TerminateJobCommand = async (input, context) => {
|
|
498
|
-
const b = rb(input, context);
|
|
499
|
-
const headers = {
|
|
500
|
-
"content-type": "application/json",
|
|
501
|
-
};
|
|
502
|
-
b.bp("/v1/terminatejob");
|
|
503
|
-
let body;
|
|
504
|
-
body = JSON.stringify(take(input, {
|
|
505
|
-
jobId: [],
|
|
506
|
-
reason: [],
|
|
507
|
-
}));
|
|
508
|
-
b.m("POST").h(headers).b(body);
|
|
509
|
-
return b.build();
|
|
510
|
-
};
|
|
511
|
-
export const se_TerminateServiceJobCommand = async (input, context) => {
|
|
512
|
-
const b = rb(input, context);
|
|
513
|
-
const headers = {
|
|
514
|
-
"content-type": "application/json",
|
|
515
|
-
};
|
|
516
|
-
b.bp("/v1/terminateservicejob");
|
|
517
|
-
let body;
|
|
518
|
-
body = JSON.stringify(take(input, {
|
|
519
|
-
jobId: [],
|
|
520
|
-
reason: [],
|
|
521
|
-
}));
|
|
522
|
-
b.m("POST").h(headers).b(body);
|
|
523
|
-
return b.build();
|
|
524
|
-
};
|
|
525
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
526
|
-
const b = rb(input, context);
|
|
527
|
-
const headers = {};
|
|
528
|
-
b.bp("/v1/tags/{resourceArn}");
|
|
529
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
530
|
-
const query = map({
|
|
531
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
532
|
-
});
|
|
533
|
-
let body;
|
|
534
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
535
|
-
return b.build();
|
|
536
|
-
};
|
|
537
|
-
export const se_UpdateComputeEnvironmentCommand = async (input, context) => {
|
|
538
|
-
const b = rb(input, context);
|
|
539
|
-
const headers = {
|
|
540
|
-
"content-type": "application/json",
|
|
541
|
-
};
|
|
542
|
-
b.bp("/v1/updatecomputeenvironment");
|
|
543
|
-
let body;
|
|
544
|
-
body = JSON.stringify(take(input, {
|
|
545
|
-
computeEnvironment: [],
|
|
546
|
-
computeResources: (_) => _json(_),
|
|
547
|
-
context: [],
|
|
548
|
-
serviceRole: [],
|
|
549
|
-
state: [],
|
|
550
|
-
unmanagedvCpus: [],
|
|
551
|
-
updatePolicy: (_) => _json(_),
|
|
552
|
-
}));
|
|
553
|
-
b.m("POST").h(headers).b(body);
|
|
554
|
-
return b.build();
|
|
555
|
-
};
|
|
556
|
-
export const se_UpdateConsumableResourceCommand = async (input, context) => {
|
|
557
|
-
const b = rb(input, context);
|
|
558
|
-
const headers = {
|
|
559
|
-
"content-type": "application/json",
|
|
560
|
-
};
|
|
561
|
-
b.bp("/v1/updateconsumableresource");
|
|
562
|
-
let body;
|
|
563
|
-
body = JSON.stringify(take(input, {
|
|
564
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
565
|
-
consumableResource: [],
|
|
566
|
-
operation: [],
|
|
567
|
-
quantity: [],
|
|
568
|
-
}));
|
|
569
|
-
b.m("POST").h(headers).b(body);
|
|
570
|
-
return b.build();
|
|
571
|
-
};
|
|
572
|
-
export const se_UpdateJobQueueCommand = async (input, context) => {
|
|
573
|
-
const b = rb(input, context);
|
|
574
|
-
const headers = {
|
|
575
|
-
"content-type": "application/json",
|
|
576
|
-
};
|
|
577
|
-
b.bp("/v1/updatejobqueue");
|
|
578
|
-
let body;
|
|
579
|
-
body = JSON.stringify(take(input, {
|
|
580
|
-
computeEnvironmentOrder: (_) => _json(_),
|
|
581
|
-
jobQueue: [],
|
|
582
|
-
jobStateTimeLimitActions: (_) => _json(_),
|
|
583
|
-
priority: [],
|
|
584
|
-
schedulingPolicyArn: [],
|
|
585
|
-
serviceEnvironmentOrder: (_) => _json(_),
|
|
586
|
-
state: [],
|
|
587
|
-
}));
|
|
588
|
-
b.m("POST").h(headers).b(body);
|
|
589
|
-
return b.build();
|
|
590
|
-
};
|
|
591
|
-
export const se_UpdateSchedulingPolicyCommand = async (input, context) => {
|
|
592
|
-
const b = rb(input, context);
|
|
593
|
-
const headers = {
|
|
594
|
-
"content-type": "application/json",
|
|
595
|
-
};
|
|
596
|
-
b.bp("/v1/updateschedulingpolicy");
|
|
597
|
-
let body;
|
|
598
|
-
body = JSON.stringify(take(input, {
|
|
599
|
-
arn: [],
|
|
600
|
-
fairsharePolicy: (_) => se_FairsharePolicy(_, context),
|
|
601
|
-
}));
|
|
602
|
-
b.m("POST").h(headers).b(body);
|
|
603
|
-
return b.build();
|
|
604
|
-
};
|
|
605
|
-
export const se_UpdateServiceEnvironmentCommand = async (input, context) => {
|
|
606
|
-
const b = rb(input, context);
|
|
607
|
-
const headers = {
|
|
608
|
-
"content-type": "application/json",
|
|
609
|
-
};
|
|
610
|
-
b.bp("/v1/updateserviceenvironment");
|
|
611
|
-
let body;
|
|
612
|
-
body = JSON.stringify(take(input, {
|
|
613
|
-
capacityLimits: (_) => _json(_),
|
|
614
|
-
serviceEnvironment: [],
|
|
615
|
-
state: [],
|
|
616
|
-
}));
|
|
617
|
-
b.m("POST").h(headers).b(body);
|
|
618
|
-
return b.build();
|
|
619
|
-
};
|
|
620
|
-
export const de_CancelJobCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const contents = map({
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
});
|
|
627
|
-
await collectBody(output.body, context);
|
|
628
|
-
return contents;
|
|
629
|
-
};
|
|
630
|
-
export const de_CreateComputeEnvironmentCommand = async (output, context) => {
|
|
631
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return de_CommandError(output, context);
|
|
633
|
-
}
|
|
634
|
-
const contents = map({
|
|
635
|
-
$metadata: deserializeMetadata(output),
|
|
636
|
-
});
|
|
637
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
638
|
-
const doc = take(data, {
|
|
639
|
-
computeEnvironmentArn: __expectString,
|
|
640
|
-
computeEnvironmentName: __expectString,
|
|
641
|
-
});
|
|
642
|
-
Object.assign(contents, doc);
|
|
643
|
-
return contents;
|
|
644
|
-
};
|
|
645
|
-
export const de_CreateConsumableResourceCommand = async (output, context) => {
|
|
646
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
647
|
-
return de_CommandError(output, context);
|
|
648
|
-
}
|
|
649
|
-
const contents = map({
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
});
|
|
652
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
653
|
-
const doc = take(data, {
|
|
654
|
-
consumableResourceArn: __expectString,
|
|
655
|
-
consumableResourceName: __expectString,
|
|
656
|
-
});
|
|
657
|
-
Object.assign(contents, doc);
|
|
658
|
-
return contents;
|
|
659
|
-
};
|
|
660
|
-
export const de_CreateJobQueueCommand = async (output, context) => {
|
|
661
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return de_CommandError(output, context);
|
|
663
|
-
}
|
|
664
|
-
const contents = map({
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
});
|
|
667
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
668
|
-
const doc = take(data, {
|
|
669
|
-
jobQueueArn: __expectString,
|
|
670
|
-
jobQueueName: __expectString,
|
|
671
|
-
});
|
|
672
|
-
Object.assign(contents, doc);
|
|
673
|
-
return contents;
|
|
674
|
-
};
|
|
675
|
-
export const de_CreateSchedulingPolicyCommand = async (output, context) => {
|
|
676
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
677
|
-
return de_CommandError(output, context);
|
|
678
|
-
}
|
|
679
|
-
const contents = map({
|
|
680
|
-
$metadata: deserializeMetadata(output),
|
|
681
|
-
});
|
|
682
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
683
|
-
const doc = take(data, {
|
|
684
|
-
arn: __expectString,
|
|
685
|
-
name: __expectString,
|
|
686
|
-
});
|
|
687
|
-
Object.assign(contents, doc);
|
|
688
|
-
return contents;
|
|
689
|
-
};
|
|
690
|
-
export const de_CreateServiceEnvironmentCommand = async (output, context) => {
|
|
691
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const contents = map({
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
});
|
|
697
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
698
|
-
const doc = take(data, {
|
|
699
|
-
serviceEnvironmentArn: __expectString,
|
|
700
|
-
serviceEnvironmentName: __expectString,
|
|
701
|
-
});
|
|
702
|
-
Object.assign(contents, doc);
|
|
703
|
-
return contents;
|
|
704
|
-
};
|
|
705
|
-
export const de_DeleteComputeEnvironmentCommand = async (output, context) => {
|
|
706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
-
return de_CommandError(output, context);
|
|
708
|
-
}
|
|
709
|
-
const contents = map({
|
|
710
|
-
$metadata: deserializeMetadata(output),
|
|
711
|
-
});
|
|
712
|
-
await collectBody(output.body, context);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
export const de_DeleteConsumableResourceCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return de_CommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
});
|
|
722
|
-
await collectBody(output.body, context);
|
|
723
|
-
return contents;
|
|
724
|
-
};
|
|
725
|
-
export const de_DeleteJobQueueCommand = async (output, context) => {
|
|
726
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return de_CommandError(output, context);
|
|
728
|
-
}
|
|
729
|
-
const contents = map({
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
});
|
|
732
|
-
await collectBody(output.body, context);
|
|
733
|
-
return contents;
|
|
734
|
-
};
|
|
735
|
-
export const de_DeleteSchedulingPolicyCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const contents = map({
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
});
|
|
742
|
-
await collectBody(output.body, context);
|
|
743
|
-
return contents;
|
|
744
|
-
};
|
|
745
|
-
export const de_DeleteServiceEnvironmentCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
747
|
-
return de_CommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const contents = map({
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
});
|
|
752
|
-
await collectBody(output.body, context);
|
|
753
|
-
return contents;
|
|
754
|
-
};
|
|
755
|
-
export const de_DeregisterJobDefinitionCommand = async (output, context) => {
|
|
756
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const contents = map({
|
|
760
|
-
$metadata: deserializeMetadata(output),
|
|
761
|
-
});
|
|
762
|
-
await collectBody(output.body, context);
|
|
763
|
-
return contents;
|
|
764
|
-
};
|
|
765
|
-
export const de_DescribeComputeEnvironmentsCommand = async (output, context) => {
|
|
766
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
767
|
-
return de_CommandError(output, context);
|
|
768
|
-
}
|
|
769
|
-
const contents = map({
|
|
770
|
-
$metadata: deserializeMetadata(output),
|
|
771
|
-
});
|
|
772
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
773
|
-
const doc = take(data, {
|
|
774
|
-
computeEnvironments: _json,
|
|
775
|
-
nextToken: __expectString,
|
|
776
|
-
});
|
|
777
|
-
Object.assign(contents, doc);
|
|
778
|
-
return contents;
|
|
779
|
-
};
|
|
780
|
-
export const de_DescribeConsumableResourceCommand = async (output, context) => {
|
|
781
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
782
|
-
return de_CommandError(output, context);
|
|
783
|
-
}
|
|
784
|
-
const contents = map({
|
|
785
|
-
$metadata: deserializeMetadata(output),
|
|
786
|
-
});
|
|
787
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
788
|
-
const doc = take(data, {
|
|
789
|
-
availableQuantity: __expectLong,
|
|
790
|
-
consumableResourceArn: __expectString,
|
|
791
|
-
consumableResourceName: __expectString,
|
|
792
|
-
createdAt: __expectLong,
|
|
793
|
-
inUseQuantity: __expectLong,
|
|
794
|
-
resourceType: __expectString,
|
|
795
|
-
tags: _json,
|
|
796
|
-
totalQuantity: __expectLong,
|
|
797
|
-
});
|
|
798
|
-
Object.assign(contents, doc);
|
|
799
|
-
return contents;
|
|
800
|
-
};
|
|
801
|
-
export const de_DescribeJobDefinitionsCommand = async (output, context) => {
|
|
802
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return de_CommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const contents = map({
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
});
|
|
808
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
809
|
-
const doc = take(data, {
|
|
810
|
-
jobDefinitions: (_) => de_JobDefinitionList(_, context),
|
|
811
|
-
nextToken: __expectString,
|
|
812
|
-
});
|
|
813
|
-
Object.assign(contents, doc);
|
|
814
|
-
return contents;
|
|
815
|
-
};
|
|
816
|
-
export const de_DescribeJobQueuesCommand = async (output, context) => {
|
|
817
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
-
return de_CommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const contents = map({
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
});
|
|
823
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
824
|
-
const doc = take(data, {
|
|
825
|
-
jobQueues: _json,
|
|
826
|
-
nextToken: __expectString,
|
|
827
|
-
});
|
|
828
|
-
Object.assign(contents, doc);
|
|
829
|
-
return contents;
|
|
830
|
-
};
|
|
831
|
-
export const de_DescribeJobsCommand = async (output, context) => {
|
|
832
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
833
|
-
return de_CommandError(output, context);
|
|
834
|
-
}
|
|
835
|
-
const contents = map({
|
|
836
|
-
$metadata: deserializeMetadata(output),
|
|
837
|
-
});
|
|
838
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
839
|
-
const doc = take(data, {
|
|
840
|
-
jobs: (_) => de_JobDetailList(_, context),
|
|
841
|
-
});
|
|
842
|
-
Object.assign(contents, doc);
|
|
843
|
-
return contents;
|
|
844
|
-
};
|
|
845
|
-
export const de_DescribeSchedulingPoliciesCommand = async (output, context) => {
|
|
846
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
847
|
-
return de_CommandError(output, context);
|
|
848
|
-
}
|
|
849
|
-
const contents = map({
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
});
|
|
852
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
853
|
-
const doc = take(data, {
|
|
854
|
-
schedulingPolicies: (_) => de_SchedulingPolicyDetailList(_, context),
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
export const de_DescribeServiceEnvironmentsCommand = async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = map({
|
|
864
|
-
$metadata: deserializeMetadata(output),
|
|
865
|
-
});
|
|
866
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
867
|
-
const doc = take(data, {
|
|
868
|
-
nextToken: __expectString,
|
|
869
|
-
serviceEnvironments: _json,
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
return contents;
|
|
873
|
-
};
|
|
874
|
-
export const de_DescribeServiceJobCommand = async (output, context) => {
|
|
875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const contents = map({
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
});
|
|
881
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
882
|
-
const doc = take(data, {
|
|
883
|
-
attempts: _json,
|
|
884
|
-
createdAt: __expectLong,
|
|
885
|
-
isTerminated: __expectBoolean,
|
|
886
|
-
jobArn: __expectString,
|
|
887
|
-
jobId: __expectString,
|
|
888
|
-
jobName: __expectString,
|
|
889
|
-
jobQueue: __expectString,
|
|
890
|
-
latestAttempt: _json,
|
|
891
|
-
retryStrategy: _json,
|
|
892
|
-
schedulingPriority: __expectInt32,
|
|
893
|
-
serviceJobType: __expectString,
|
|
894
|
-
serviceRequestPayload: __expectString,
|
|
895
|
-
shareIdentifier: __expectString,
|
|
896
|
-
startedAt: __expectLong,
|
|
897
|
-
status: __expectString,
|
|
898
|
-
statusReason: __expectString,
|
|
899
|
-
stoppedAt: __expectLong,
|
|
900
|
-
tags: _json,
|
|
901
|
-
timeoutConfig: _json,
|
|
902
|
-
});
|
|
903
|
-
Object.assign(contents, doc);
|
|
904
|
-
return contents;
|
|
905
|
-
};
|
|
906
|
-
export const de_GetJobQueueSnapshotCommand = async (output, context) => {
|
|
907
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
|
-
return de_CommandError(output, context);
|
|
909
|
-
}
|
|
910
|
-
const contents = map({
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
});
|
|
913
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
914
|
-
const doc = take(data, {
|
|
915
|
-
frontOfQueue: _json,
|
|
916
|
-
});
|
|
917
|
-
Object.assign(contents, doc);
|
|
918
|
-
return contents;
|
|
919
|
-
};
|
|
920
|
-
export const de_ListConsumableResourcesCommand = async (output, context) => {
|
|
921
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
-
return de_CommandError(output, context);
|
|
923
|
-
}
|
|
924
|
-
const contents = map({
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
});
|
|
927
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
928
|
-
const doc = take(data, {
|
|
929
|
-
consumableResources: _json,
|
|
930
|
-
nextToken: __expectString,
|
|
931
|
-
});
|
|
932
|
-
Object.assign(contents, doc);
|
|
933
|
-
return contents;
|
|
934
|
-
};
|
|
935
|
-
export const de_ListJobsCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
937
|
-
return de_CommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const contents = map({
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
});
|
|
942
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
943
|
-
const doc = take(data, {
|
|
944
|
-
jobSummaryList: _json,
|
|
945
|
-
nextToken: __expectString,
|
|
946
|
-
});
|
|
947
|
-
Object.assign(contents, doc);
|
|
948
|
-
return contents;
|
|
949
|
-
};
|
|
950
|
-
export const de_ListJobsByConsumableResourceCommand = async (output, context) => {
|
|
951
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
952
|
-
return de_CommandError(output, context);
|
|
953
|
-
}
|
|
954
|
-
const contents = map({
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
});
|
|
957
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
958
|
-
const doc = take(data, {
|
|
959
|
-
jobs: _json,
|
|
960
|
-
nextToken: __expectString,
|
|
961
|
-
});
|
|
962
|
-
Object.assign(contents, doc);
|
|
963
|
-
return contents;
|
|
964
|
-
};
|
|
965
|
-
export const de_ListSchedulingPoliciesCommand = async (output, context) => {
|
|
966
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
967
|
-
return de_CommandError(output, context);
|
|
968
|
-
}
|
|
969
|
-
const contents = map({
|
|
970
|
-
$metadata: deserializeMetadata(output),
|
|
971
|
-
});
|
|
972
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
973
|
-
const doc = take(data, {
|
|
974
|
-
nextToken: __expectString,
|
|
975
|
-
schedulingPolicies: _json,
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
return contents;
|
|
979
|
-
};
|
|
980
|
-
export const de_ListServiceJobsCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return de_CommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = map({
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
});
|
|
987
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
988
|
-
const doc = take(data, {
|
|
989
|
-
jobSummaryList: _json,
|
|
990
|
-
nextToken: __expectString,
|
|
991
|
-
});
|
|
992
|
-
Object.assign(contents, doc);
|
|
993
|
-
return contents;
|
|
994
|
-
};
|
|
995
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
996
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
997
|
-
return de_CommandError(output, context);
|
|
998
|
-
}
|
|
999
|
-
const contents = map({
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
});
|
|
1002
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1003
|
-
const doc = take(data, {
|
|
1004
|
-
tags: _json,
|
|
1005
|
-
});
|
|
1006
|
-
Object.assign(contents, doc);
|
|
1007
|
-
return contents;
|
|
1008
|
-
};
|
|
1009
|
-
export const de_RegisterJobDefinitionCommand = async (output, context) => {
|
|
1010
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1011
|
-
return de_CommandError(output, context);
|
|
1012
|
-
}
|
|
1013
|
-
const contents = map({
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
});
|
|
1016
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1017
|
-
const doc = take(data, {
|
|
1018
|
-
jobDefinitionArn: __expectString,
|
|
1019
|
-
jobDefinitionName: __expectString,
|
|
1020
|
-
revision: __expectInt32,
|
|
1021
|
-
});
|
|
1022
|
-
Object.assign(contents, doc);
|
|
1023
|
-
return contents;
|
|
1024
|
-
};
|
|
1025
|
-
export const de_SubmitJobCommand = async (output, context) => {
|
|
1026
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
|
-
return de_CommandError(output, context);
|
|
1028
|
-
}
|
|
1029
|
-
const contents = map({
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
});
|
|
1032
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1033
|
-
const doc = take(data, {
|
|
1034
|
-
jobArn: __expectString,
|
|
1035
|
-
jobId: __expectString,
|
|
1036
|
-
jobName: __expectString,
|
|
1037
|
-
});
|
|
1038
|
-
Object.assign(contents, doc);
|
|
1039
|
-
return contents;
|
|
1040
|
-
};
|
|
1041
|
-
export const de_SubmitServiceJobCommand = async (output, context) => {
|
|
1042
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1043
|
-
return de_CommandError(output, context);
|
|
1044
|
-
}
|
|
1045
|
-
const contents = map({
|
|
1046
|
-
$metadata: deserializeMetadata(output),
|
|
1047
|
-
});
|
|
1048
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1049
|
-
const doc = take(data, {
|
|
1050
|
-
jobArn: __expectString,
|
|
1051
|
-
jobId: __expectString,
|
|
1052
|
-
jobName: __expectString,
|
|
1053
|
-
});
|
|
1054
|
-
Object.assign(contents, doc);
|
|
1055
|
-
return contents;
|
|
1056
|
-
};
|
|
1057
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1058
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1059
|
-
return de_CommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const contents = map({
|
|
1062
|
-
$metadata: deserializeMetadata(output),
|
|
1063
|
-
});
|
|
1064
|
-
await collectBody(output.body, context);
|
|
1065
|
-
return contents;
|
|
1066
|
-
};
|
|
1067
|
-
export const de_TerminateJobCommand = async (output, context) => {
|
|
1068
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
|
-
return de_CommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const contents = map({
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
});
|
|
1074
|
-
await collectBody(output.body, context);
|
|
1075
|
-
return contents;
|
|
1076
|
-
};
|
|
1077
|
-
export const de_TerminateServiceJobCommand = async (output, context) => {
|
|
1078
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return de_CommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const contents = map({
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
});
|
|
1084
|
-
await collectBody(output.body, context);
|
|
1085
|
-
return contents;
|
|
1086
|
-
};
|
|
1087
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return de_CommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const contents = map({
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
});
|
|
1094
|
-
await collectBody(output.body, context);
|
|
1095
|
-
return contents;
|
|
1096
|
-
};
|
|
1097
|
-
export const de_UpdateComputeEnvironmentCommand = async (output, context) => {
|
|
1098
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1099
|
-
return de_CommandError(output, context);
|
|
1100
|
-
}
|
|
1101
|
-
const contents = map({
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
});
|
|
1104
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1105
|
-
const doc = take(data, {
|
|
1106
|
-
computeEnvironmentArn: __expectString,
|
|
1107
|
-
computeEnvironmentName: __expectString,
|
|
1108
|
-
});
|
|
1109
|
-
Object.assign(contents, doc);
|
|
1110
|
-
return contents;
|
|
1111
|
-
};
|
|
1112
|
-
export const de_UpdateConsumableResourceCommand = async (output, context) => {
|
|
1113
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
|
-
return de_CommandError(output, context);
|
|
1115
|
-
}
|
|
1116
|
-
const contents = map({
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
});
|
|
1119
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1120
|
-
const doc = take(data, {
|
|
1121
|
-
consumableResourceArn: __expectString,
|
|
1122
|
-
consumableResourceName: __expectString,
|
|
1123
|
-
totalQuantity: __expectLong,
|
|
1124
|
-
});
|
|
1125
|
-
Object.assign(contents, doc);
|
|
1126
|
-
return contents;
|
|
1127
|
-
};
|
|
1128
|
-
export const de_UpdateJobQueueCommand = async (output, context) => {
|
|
1129
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return de_CommandError(output, context);
|
|
1131
|
-
}
|
|
1132
|
-
const contents = map({
|
|
1133
|
-
$metadata: deserializeMetadata(output),
|
|
1134
|
-
});
|
|
1135
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1136
|
-
const doc = take(data, {
|
|
1137
|
-
jobQueueArn: __expectString,
|
|
1138
|
-
jobQueueName: __expectString,
|
|
1139
|
-
});
|
|
1140
|
-
Object.assign(contents, doc);
|
|
1141
|
-
return contents;
|
|
1142
|
-
};
|
|
1143
|
-
export const de_UpdateSchedulingPolicyCommand = async (output, context) => {
|
|
1144
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1145
|
-
return de_CommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const contents = map({
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
});
|
|
1150
|
-
await collectBody(output.body, context);
|
|
1151
|
-
return contents;
|
|
1152
|
-
};
|
|
1153
|
-
export const de_UpdateServiceEnvironmentCommand = async (output, context) => {
|
|
1154
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1155
|
-
return de_CommandError(output, context);
|
|
1156
|
-
}
|
|
1157
|
-
const contents = map({
|
|
1158
|
-
$metadata: deserializeMetadata(output),
|
|
1159
|
-
});
|
|
1160
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1161
|
-
const doc = take(data, {
|
|
1162
|
-
serviceEnvironmentArn: __expectString,
|
|
1163
|
-
serviceEnvironmentName: __expectString,
|
|
1164
|
-
});
|
|
1165
|
-
Object.assign(contents, doc);
|
|
1166
|
-
return contents;
|
|
1167
|
-
};
|
|
1168
|
-
const de_CommandError = async (output, context) => {
|
|
1169
|
-
const parsedOutput = {
|
|
1170
|
-
...output,
|
|
1171
|
-
body: await parseErrorBody(output.body, context),
|
|
1172
|
-
};
|
|
1173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
|
-
switch (errorCode) {
|
|
1175
|
-
case "ClientException":
|
|
1176
|
-
case "com.amazonaws.batch#ClientException":
|
|
1177
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ServerException":
|
|
1179
|
-
case "com.amazonaws.batch#ServerException":
|
|
1180
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1181
|
-
default:
|
|
1182
|
-
const parsedBody = parsedOutput.body;
|
|
1183
|
-
return throwDefaultError({
|
|
1184
|
-
output,
|
|
1185
|
-
parsedBody,
|
|
1186
|
-
errorCode,
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1191
|
-
const de_ClientExceptionRes = async (parsedOutput, context) => {
|
|
1192
|
-
const contents = map({});
|
|
1193
|
-
const data = parsedOutput.body;
|
|
1194
|
-
const doc = take(data, {
|
|
1195
|
-
message: __expectString,
|
|
1196
|
-
});
|
|
1197
|
-
Object.assign(contents, doc);
|
|
1198
|
-
const exception = new ClientException({
|
|
1199
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1200
|
-
...contents,
|
|
1201
|
-
});
|
|
1202
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1203
|
-
};
|
|
1204
|
-
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1205
|
-
const contents = map({});
|
|
1206
|
-
const data = parsedOutput.body;
|
|
1207
|
-
const doc = take(data, {
|
|
1208
|
-
message: __expectString,
|
|
1209
|
-
});
|
|
1210
|
-
Object.assign(contents, doc);
|
|
1211
|
-
const exception = new ServerException({
|
|
1212
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1213
|
-
...contents,
|
|
1214
|
-
});
|
|
1215
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1216
|
-
};
|
|
1217
|
-
const se_FairsharePolicy = (input, context) => {
|
|
1218
|
-
return take(input, {
|
|
1219
|
-
computeReservation: [],
|
|
1220
|
-
shareDecaySeconds: [],
|
|
1221
|
-
shareDistribution: (_) => se_ShareAttributesList(_, context),
|
|
1222
|
-
});
|
|
1223
|
-
};
|
|
1224
|
-
const se_NodeProperties = (input, context) => {
|
|
1225
|
-
return take(input, {
|
|
1226
|
-
mainNode: [],
|
|
1227
|
-
nodeRangeProperties: (_) => se_NodeRangeProperties(_, context),
|
|
1228
|
-
numNodes: [],
|
|
1229
|
-
});
|
|
1230
|
-
};
|
|
1231
|
-
const se_NodeRangeProperties = (input, context) => {
|
|
1232
|
-
return input
|
|
1233
|
-
.filter((e) => e != null)
|
|
1234
|
-
.map((entry) => {
|
|
1235
|
-
return _json(entry);
|
|
1236
|
-
});
|
|
1237
|
-
};
|
|
1238
|
-
const se_ShareAttributes = (input, context) => {
|
|
1239
|
-
return take(input, {
|
|
1240
|
-
shareIdentifier: [],
|
|
1241
|
-
weightFactor: __serializeFloat,
|
|
1242
|
-
});
|
|
1243
|
-
};
|
|
1244
|
-
const se_ShareAttributesList = (input, context) => {
|
|
1245
|
-
return input
|
|
1246
|
-
.filter((e) => e != null)
|
|
1247
|
-
.map((entry) => {
|
|
1248
|
-
return se_ShareAttributes(entry, context);
|
|
1249
|
-
});
|
|
1250
|
-
};
|
|
1251
|
-
const de_FairsharePolicy = (output, context) => {
|
|
1252
|
-
return take(output, {
|
|
1253
|
-
computeReservation: __expectInt32,
|
|
1254
|
-
shareDecaySeconds: __expectInt32,
|
|
1255
|
-
shareDistribution: (_) => de_ShareAttributesList(_, context),
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
const de_JobDefinition = (output, context) => {
|
|
1259
|
-
return take(output, {
|
|
1260
|
-
consumableResourceProperties: _json,
|
|
1261
|
-
containerOrchestrationType: __expectString,
|
|
1262
|
-
containerProperties: _json,
|
|
1263
|
-
ecsProperties: _json,
|
|
1264
|
-
eksProperties: _json,
|
|
1265
|
-
jobDefinitionArn: __expectString,
|
|
1266
|
-
jobDefinitionName: __expectString,
|
|
1267
|
-
nodeProperties: (_) => de_NodeProperties(_, context),
|
|
1268
|
-
parameters: _json,
|
|
1269
|
-
platformCapabilities: _json,
|
|
1270
|
-
propagateTags: __expectBoolean,
|
|
1271
|
-
retryStrategy: _json,
|
|
1272
|
-
revision: __expectInt32,
|
|
1273
|
-
schedulingPriority: __expectInt32,
|
|
1274
|
-
status: __expectString,
|
|
1275
|
-
tags: _json,
|
|
1276
|
-
timeout: _json,
|
|
1277
|
-
type: __expectString,
|
|
1278
|
-
});
|
|
1279
|
-
};
|
|
1280
|
-
const de_JobDefinitionList = (output, context) => {
|
|
1281
|
-
const retVal = (output || [])
|
|
1282
|
-
.filter((e) => e != null)
|
|
1283
|
-
.map((entry) => {
|
|
1284
|
-
return de_JobDefinition(entry, context);
|
|
1285
|
-
});
|
|
1286
|
-
return retVal;
|
|
1287
|
-
};
|
|
1288
|
-
const de_JobDetail = (output, context) => {
|
|
1289
|
-
return take(output, {
|
|
1290
|
-
arrayProperties: _json,
|
|
1291
|
-
attempts: _json,
|
|
1292
|
-
consumableResourceProperties: _json,
|
|
1293
|
-
container: _json,
|
|
1294
|
-
createdAt: __expectLong,
|
|
1295
|
-
dependsOn: _json,
|
|
1296
|
-
ecsProperties: _json,
|
|
1297
|
-
eksAttempts: _json,
|
|
1298
|
-
eksProperties: _json,
|
|
1299
|
-
isCancelled: __expectBoolean,
|
|
1300
|
-
isTerminated: __expectBoolean,
|
|
1301
|
-
jobArn: __expectString,
|
|
1302
|
-
jobDefinition: __expectString,
|
|
1303
|
-
jobId: __expectString,
|
|
1304
|
-
jobName: __expectString,
|
|
1305
|
-
jobQueue: __expectString,
|
|
1306
|
-
nodeDetails: _json,
|
|
1307
|
-
nodeProperties: (_) => de_NodeProperties(_, context),
|
|
1308
|
-
parameters: _json,
|
|
1309
|
-
platformCapabilities: _json,
|
|
1310
|
-
propagateTags: __expectBoolean,
|
|
1311
|
-
retryStrategy: _json,
|
|
1312
|
-
schedulingPriority: __expectInt32,
|
|
1313
|
-
shareIdentifier: __expectString,
|
|
1314
|
-
startedAt: __expectLong,
|
|
1315
|
-
status: __expectString,
|
|
1316
|
-
statusReason: __expectString,
|
|
1317
|
-
stoppedAt: __expectLong,
|
|
1318
|
-
tags: _json,
|
|
1319
|
-
timeout: _json,
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
const de_JobDetailList = (output, context) => {
|
|
1323
|
-
const retVal = (output || [])
|
|
1324
|
-
.filter((e) => e != null)
|
|
1325
|
-
.map((entry) => {
|
|
1326
|
-
return de_JobDetail(entry, context);
|
|
1327
|
-
});
|
|
1328
|
-
return retVal;
|
|
1329
|
-
};
|
|
1330
|
-
const de_NodeProperties = (output, context) => {
|
|
1331
|
-
return take(output, {
|
|
1332
|
-
mainNode: __expectInt32,
|
|
1333
|
-
nodeRangeProperties: (_) => de_NodeRangeProperties(_, context),
|
|
1334
|
-
numNodes: __expectInt32,
|
|
1335
|
-
});
|
|
1336
|
-
};
|
|
1337
|
-
const de_NodeRangeProperties = (output, context) => {
|
|
1338
|
-
const retVal = (output || [])
|
|
1339
|
-
.filter((e) => e != null)
|
|
1340
|
-
.map((entry) => {
|
|
1341
|
-
return _json(entry);
|
|
1342
|
-
});
|
|
1343
|
-
return retVal;
|
|
1344
|
-
};
|
|
1345
|
-
const de_SchedulingPolicyDetail = (output, context) => {
|
|
1346
|
-
return take(output, {
|
|
1347
|
-
arn: __expectString,
|
|
1348
|
-
fairsharePolicy: (_) => de_FairsharePolicy(_, context),
|
|
1349
|
-
name: __expectString,
|
|
1350
|
-
tags: _json,
|
|
1351
|
-
});
|
|
1352
|
-
};
|
|
1353
|
-
const de_SchedulingPolicyDetailList = (output, context) => {
|
|
1354
|
-
const retVal = (output || [])
|
|
1355
|
-
.filter((e) => e != null)
|
|
1356
|
-
.map((entry) => {
|
|
1357
|
-
return de_SchedulingPolicyDetail(entry, context);
|
|
1358
|
-
});
|
|
1359
|
-
return retVal;
|
|
1360
|
-
};
|
|
1361
|
-
const de_ShareAttributes = (output, context) => {
|
|
1362
|
-
return take(output, {
|
|
1363
|
-
shareIdentifier: __expectString,
|
|
1364
|
-
weightFactor: __limitedParseFloat32,
|
|
1365
|
-
});
|
|
1366
|
-
};
|
|
1367
|
-
const de_ShareAttributesList = (output, context) => {
|
|
1368
|
-
const retVal = (output || [])
|
|
1369
|
-
.filter((e) => e != null)
|
|
1370
|
-
.map((entry) => {
|
|
1371
|
-
return de_ShareAttributes(entry, context);
|
|
1372
|
-
});
|
|
1373
|
-
return retVal;
|
|
1374
|
-
};
|
|
1375
|
-
const deserializeMetadata = (output) => ({
|
|
1376
|
-
httpStatusCode: output.statusCode,
|
|
1377
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1378
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1379
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1380
|
-
});
|
|
1381
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1382
|
-
const _tK = "tagKeys";
|