@aws-sdk/client-batch 3.303.0 → 3.309.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/commands/CancelJobCommand.js +2 -2
- package/dist-cjs/commands/CreateComputeEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateJobQueueCommand.js +2 -2
- package/dist-cjs/commands/CreateSchedulingPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeleteComputeEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteJobQueueCommand.js +2 -2
- package/dist-cjs/commands/DeleteSchedulingPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeregisterJobDefinitionCommand.js +2 -2
- package/dist-cjs/commands/DescribeComputeEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobDefinitionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobQueuesCommand.js +2 -2
- package/dist-cjs/commands/DescribeJobsCommand.js +2 -2
- package/dist-cjs/commands/DescribeSchedulingPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListJobsCommand.js +2 -2
- package/dist-cjs/commands/ListSchedulingPoliciesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/RegisterJobDefinitionCommand.js +2 -2
- package/dist-cjs/commands/SubmitJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/TerminateJobCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateComputeEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/UpdateJobQueueCommand.js +2 -2
- package/dist-cjs/commands/UpdateSchedulingPolicyCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +649 -797
- package/dist-es/commands/CancelJobCommand.js +3 -3
- package/dist-es/commands/CreateComputeEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateJobQueueCommand.js +3 -3
- package/dist-es/commands/CreateSchedulingPolicyCommand.js +3 -3
- package/dist-es/commands/DeleteComputeEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteJobQueueCommand.js +3 -3
- package/dist-es/commands/DeleteSchedulingPolicyCommand.js +3 -3
- package/dist-es/commands/DeregisterJobDefinitionCommand.js +3 -3
- package/dist-es/commands/DescribeComputeEnvironmentsCommand.js +3 -3
- package/dist-es/commands/DescribeJobDefinitionsCommand.js +3 -3
- package/dist-es/commands/DescribeJobQueuesCommand.js +3 -3
- package/dist-es/commands/DescribeJobsCommand.js +3 -3
- package/dist-es/commands/DescribeSchedulingPoliciesCommand.js +3 -3
- package/dist-es/commands/ListJobsCommand.js +3 -3
- package/dist-es/commands/ListSchedulingPoliciesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/RegisterJobDefinitionCommand.js +3 -3
- package/dist-es/commands/SubmitJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/TerminateJobCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateComputeEnvironmentCommand.js +3 -3
- package/dist-es/commands/UpdateJobQueueCommand.js +3 -3
- package/dist-es/commands/UpdateSchedulingPolicyCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +600 -748
- package/dist-types/protocols/Aws_restJson1.d.ts +192 -48
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -48
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateSchedulingPolicyCommand = exports.de_UpdateJobQueueCommand = exports.de_UpdateComputeEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TerminateJobCommand = exports.de_TagResourceCommand = exports.de_SubmitJobCommand = exports.de_RegisterJobDefinitionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchedulingPoliciesCommand = exports.de_ListJobsCommand = exports.de_DescribeSchedulingPoliciesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobQueuesCommand = exports.de_DescribeJobDefinitionsCommand = exports.de_DescribeComputeEnvironmentsCommand = exports.de_DeregisterJobDefinitionCommand = exports.de_DeleteSchedulingPolicyCommand = exports.de_DeleteJobQueueCommand = exports.de_DeleteComputeEnvironmentCommand = exports.de_CreateSchedulingPolicyCommand = exports.de_CreateJobQueueCommand = exports.de_CreateComputeEnvironmentCommand = exports.de_CancelJobCommand = exports.se_UpdateSchedulingPolicyCommand = exports.se_UpdateJobQueueCommand = exports.se_UpdateComputeEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TerminateJobCommand = exports.se_TagResourceCommand = exports.se_SubmitJobCommand = exports.se_RegisterJobDefinitionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchedulingPoliciesCommand = exports.se_ListJobsCommand = exports.se_DescribeSchedulingPoliciesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobQueuesCommand = exports.se_DescribeJobDefinitionsCommand = exports.se_DescribeComputeEnvironmentsCommand = exports.se_DeregisterJobDefinitionCommand = exports.se_DeleteSchedulingPolicyCommand = exports.se_DeleteJobQueueCommand = exports.se_DeleteComputeEnvironmentCommand = exports.se_CreateSchedulingPolicyCommand = exports.se_CreateJobQueueCommand = exports.se_CreateComputeEnvironmentCommand = exports.se_CancelJobCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const BatchServiceException_1 = require("../models/BatchServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_CancelJobCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -26,8 +26,8 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
|
26
26
|
body,
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
const
|
|
29
|
+
exports.se_CancelJobCommand = se_CancelJobCommand;
|
|
30
|
+
const se_CreateComputeEnvironmentCommand = async (input, context) => {
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
32
|
const headers = {
|
|
33
33
|
"content-type": "application/json",
|
|
@@ -36,15 +36,11 @@ const serializeAws_restJson1CreateComputeEnvironmentCommand = async (input, cont
|
|
|
36
36
|
let body;
|
|
37
37
|
body = JSON.stringify({
|
|
38
38
|
...(input.computeEnvironmentName != null && { computeEnvironmentName: input.computeEnvironmentName }),
|
|
39
|
-
...(input.computeResources != null && {
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
...(input.eksConfiguration != null && {
|
|
43
|
-
eksConfiguration: serializeAws_restJson1EksConfiguration(input.eksConfiguration, context),
|
|
44
|
-
}),
|
|
39
|
+
...(input.computeResources != null && { computeResources: se_ComputeResource(input.computeResources, context) }),
|
|
40
|
+
...(input.eksConfiguration != null && { eksConfiguration: se_EksConfiguration(input.eksConfiguration, context) }),
|
|
45
41
|
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
46
42
|
...(input.state != null && { state: input.state }),
|
|
47
|
-
...(input.tags != null && { tags:
|
|
43
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
48
44
|
...(input.type != null && { type: input.type }),
|
|
49
45
|
...(input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus }),
|
|
50
46
|
});
|
|
@@ -58,8 +54,8 @@ const serializeAws_restJson1CreateComputeEnvironmentCommand = async (input, cont
|
|
|
58
54
|
body,
|
|
59
55
|
});
|
|
60
56
|
};
|
|
61
|
-
exports.
|
|
62
|
-
const
|
|
57
|
+
exports.se_CreateComputeEnvironmentCommand = se_CreateComputeEnvironmentCommand;
|
|
58
|
+
const se_CreateJobQueueCommand = async (input, context) => {
|
|
63
59
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
60
|
const headers = {
|
|
65
61
|
"content-type": "application/json",
|
|
@@ -68,13 +64,13 @@ const serializeAws_restJson1CreateJobQueueCommand = async (input, context) => {
|
|
|
68
64
|
let body;
|
|
69
65
|
body = JSON.stringify({
|
|
70
66
|
...(input.computeEnvironmentOrder != null && {
|
|
71
|
-
computeEnvironmentOrder:
|
|
67
|
+
computeEnvironmentOrder: se_ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
72
68
|
}),
|
|
73
69
|
...(input.jobQueueName != null && { jobQueueName: input.jobQueueName }),
|
|
74
70
|
...(input.priority != null && { priority: input.priority }),
|
|
75
71
|
...(input.schedulingPolicyArn != null && { schedulingPolicyArn: input.schedulingPolicyArn }),
|
|
76
72
|
...(input.state != null && { state: input.state }),
|
|
77
|
-
...(input.tags != null && { tags:
|
|
73
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
78
74
|
});
|
|
79
75
|
return new protocol_http_1.HttpRequest({
|
|
80
76
|
protocol,
|
|
@@ -86,8 +82,8 @@ const serializeAws_restJson1CreateJobQueueCommand = async (input, context) => {
|
|
|
86
82
|
body,
|
|
87
83
|
});
|
|
88
84
|
};
|
|
89
|
-
exports.
|
|
90
|
-
const
|
|
85
|
+
exports.se_CreateJobQueueCommand = se_CreateJobQueueCommand;
|
|
86
|
+
const se_CreateSchedulingPolicyCommand = async (input, context) => {
|
|
91
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
92
88
|
const headers = {
|
|
93
89
|
"content-type": "application/json",
|
|
@@ -95,11 +91,9 @@ const serializeAws_restJson1CreateSchedulingPolicyCommand = async (input, contex
|
|
|
95
91
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createschedulingpolicy";
|
|
96
92
|
let body;
|
|
97
93
|
body = JSON.stringify({
|
|
98
|
-
...(input.fairsharePolicy != null && {
|
|
99
|
-
fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
|
|
100
|
-
}),
|
|
94
|
+
...(input.fairsharePolicy != null && { fairsharePolicy: se_FairsharePolicy(input.fairsharePolicy, context) }),
|
|
101
95
|
...(input.name != null && { name: input.name }),
|
|
102
|
-
...(input.tags != null && { tags:
|
|
96
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
103
97
|
});
|
|
104
98
|
return new protocol_http_1.HttpRequest({
|
|
105
99
|
protocol,
|
|
@@ -111,8 +105,8 @@ const serializeAws_restJson1CreateSchedulingPolicyCommand = async (input, contex
|
|
|
111
105
|
body,
|
|
112
106
|
});
|
|
113
107
|
};
|
|
114
|
-
exports.
|
|
115
|
-
const
|
|
108
|
+
exports.se_CreateSchedulingPolicyCommand = se_CreateSchedulingPolicyCommand;
|
|
109
|
+
const se_DeleteComputeEnvironmentCommand = async (input, context) => {
|
|
116
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
117
111
|
const headers = {
|
|
118
112
|
"content-type": "application/json",
|
|
@@ -132,8 +126,8 @@ const serializeAws_restJson1DeleteComputeEnvironmentCommand = async (input, cont
|
|
|
132
126
|
body,
|
|
133
127
|
});
|
|
134
128
|
};
|
|
135
|
-
exports.
|
|
136
|
-
const
|
|
129
|
+
exports.se_DeleteComputeEnvironmentCommand = se_DeleteComputeEnvironmentCommand;
|
|
130
|
+
const se_DeleteJobQueueCommand = async (input, context) => {
|
|
137
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
138
132
|
const headers = {
|
|
139
133
|
"content-type": "application/json",
|
|
@@ -153,8 +147,8 @@ const serializeAws_restJson1DeleteJobQueueCommand = async (input, context) => {
|
|
|
153
147
|
body,
|
|
154
148
|
});
|
|
155
149
|
};
|
|
156
|
-
exports.
|
|
157
|
-
const
|
|
150
|
+
exports.se_DeleteJobQueueCommand = se_DeleteJobQueueCommand;
|
|
151
|
+
const se_DeleteSchedulingPolicyCommand = async (input, context) => {
|
|
158
152
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
159
153
|
const headers = {
|
|
160
154
|
"content-type": "application/json",
|
|
@@ -174,8 +168,8 @@ const serializeAws_restJson1DeleteSchedulingPolicyCommand = async (input, contex
|
|
|
174
168
|
body,
|
|
175
169
|
});
|
|
176
170
|
};
|
|
177
|
-
exports.
|
|
178
|
-
const
|
|
171
|
+
exports.se_DeleteSchedulingPolicyCommand = se_DeleteSchedulingPolicyCommand;
|
|
172
|
+
const se_DeregisterJobDefinitionCommand = async (input, context) => {
|
|
179
173
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
180
174
|
const headers = {
|
|
181
175
|
"content-type": "application/json",
|
|
@@ -195,8 +189,8 @@ const serializeAws_restJson1DeregisterJobDefinitionCommand = async (input, conte
|
|
|
195
189
|
body,
|
|
196
190
|
});
|
|
197
191
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
192
|
+
exports.se_DeregisterJobDefinitionCommand = se_DeregisterJobDefinitionCommand;
|
|
193
|
+
const se_DescribeComputeEnvironmentsCommand = async (input, context) => {
|
|
200
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
195
|
const headers = {
|
|
202
196
|
"content-type": "application/json",
|
|
@@ -205,7 +199,7 @@ const serializeAws_restJson1DescribeComputeEnvironmentsCommand = async (input, c
|
|
|
205
199
|
let body;
|
|
206
200
|
body = JSON.stringify({
|
|
207
201
|
...(input.computeEnvironments != null && {
|
|
208
|
-
computeEnvironments:
|
|
202
|
+
computeEnvironments: se_StringList(input.computeEnvironments, context),
|
|
209
203
|
}),
|
|
210
204
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
211
205
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
@@ -220,8 +214,8 @@ const serializeAws_restJson1DescribeComputeEnvironmentsCommand = async (input, c
|
|
|
220
214
|
body,
|
|
221
215
|
});
|
|
222
216
|
};
|
|
223
|
-
exports.
|
|
224
|
-
const
|
|
217
|
+
exports.se_DescribeComputeEnvironmentsCommand = se_DescribeComputeEnvironmentsCommand;
|
|
218
|
+
const se_DescribeJobDefinitionsCommand = async (input, context) => {
|
|
225
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
220
|
const headers = {
|
|
227
221
|
"content-type": "application/json",
|
|
@@ -230,9 +224,7 @@ const serializeAws_restJson1DescribeJobDefinitionsCommand = async (input, contex
|
|
|
230
224
|
let body;
|
|
231
225
|
body = JSON.stringify({
|
|
232
226
|
...(input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName }),
|
|
233
|
-
...(input.jobDefinitions != null && {
|
|
234
|
-
jobDefinitions: serializeAws_restJson1StringList(input.jobDefinitions, context),
|
|
235
|
-
}),
|
|
227
|
+
...(input.jobDefinitions != null && { jobDefinitions: se_StringList(input.jobDefinitions, context) }),
|
|
236
228
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
237
229
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
238
230
|
...(input.status != null && { status: input.status }),
|
|
@@ -247,8 +239,8 @@ const serializeAws_restJson1DescribeJobDefinitionsCommand = async (input, contex
|
|
|
247
239
|
body,
|
|
248
240
|
});
|
|
249
241
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
242
|
+
exports.se_DescribeJobDefinitionsCommand = se_DescribeJobDefinitionsCommand;
|
|
243
|
+
const se_DescribeJobQueuesCommand = async (input, context) => {
|
|
252
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
253
245
|
const headers = {
|
|
254
246
|
"content-type": "application/json",
|
|
@@ -256,7 +248,7 @@ const serializeAws_restJson1DescribeJobQueuesCommand = async (input, context) =>
|
|
|
256
248
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobqueues";
|
|
257
249
|
let body;
|
|
258
250
|
body = JSON.stringify({
|
|
259
|
-
...(input.jobQueues != null && { jobQueues:
|
|
251
|
+
...(input.jobQueues != null && { jobQueues: se_StringList(input.jobQueues, context) }),
|
|
260
252
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
261
253
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
262
254
|
});
|
|
@@ -270,8 +262,8 @@ const serializeAws_restJson1DescribeJobQueuesCommand = async (input, context) =>
|
|
|
270
262
|
body,
|
|
271
263
|
});
|
|
272
264
|
};
|
|
273
|
-
exports.
|
|
274
|
-
const
|
|
265
|
+
exports.se_DescribeJobQueuesCommand = se_DescribeJobQueuesCommand;
|
|
266
|
+
const se_DescribeJobsCommand = async (input, context) => {
|
|
275
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
276
268
|
const headers = {
|
|
277
269
|
"content-type": "application/json",
|
|
@@ -279,7 +271,7 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
|
|
|
279
271
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobs";
|
|
280
272
|
let body;
|
|
281
273
|
body = JSON.stringify({
|
|
282
|
-
...(input.jobs != null && { jobs:
|
|
274
|
+
...(input.jobs != null && { jobs: se_StringList(input.jobs, context) }),
|
|
283
275
|
});
|
|
284
276
|
return new protocol_http_1.HttpRequest({
|
|
285
277
|
protocol,
|
|
@@ -291,8 +283,8 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
|
|
|
291
283
|
body,
|
|
292
284
|
});
|
|
293
285
|
};
|
|
294
|
-
exports.
|
|
295
|
-
const
|
|
286
|
+
exports.se_DescribeJobsCommand = se_DescribeJobsCommand;
|
|
287
|
+
const se_DescribeSchedulingPoliciesCommand = async (input, context) => {
|
|
296
288
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
297
289
|
const headers = {
|
|
298
290
|
"content-type": "application/json",
|
|
@@ -300,7 +292,7 @@ const serializeAws_restJson1DescribeSchedulingPoliciesCommand = async (input, co
|
|
|
300
292
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describeschedulingpolicies";
|
|
301
293
|
let body;
|
|
302
294
|
body = JSON.stringify({
|
|
303
|
-
...(input.arns != null && { arns:
|
|
295
|
+
...(input.arns != null && { arns: se_StringList(input.arns, context) }),
|
|
304
296
|
});
|
|
305
297
|
return new protocol_http_1.HttpRequest({
|
|
306
298
|
protocol,
|
|
@@ -312,8 +304,8 @@ const serializeAws_restJson1DescribeSchedulingPoliciesCommand = async (input, co
|
|
|
312
304
|
body,
|
|
313
305
|
});
|
|
314
306
|
};
|
|
315
|
-
exports.
|
|
316
|
-
const
|
|
307
|
+
exports.se_DescribeSchedulingPoliciesCommand = se_DescribeSchedulingPoliciesCommand;
|
|
308
|
+
const se_ListJobsCommand = async (input, context) => {
|
|
317
309
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
318
310
|
const headers = {
|
|
319
311
|
"content-type": "application/json",
|
|
@@ -322,7 +314,7 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
322
314
|
let body;
|
|
323
315
|
body = JSON.stringify({
|
|
324
316
|
...(input.arrayJobId != null && { arrayJobId: input.arrayJobId }),
|
|
325
|
-
...(input.filters != null && { filters:
|
|
317
|
+
...(input.filters != null && { filters: se_ListJobsFilterList(input.filters, context) }),
|
|
326
318
|
...(input.jobQueue != null && { jobQueue: input.jobQueue }),
|
|
327
319
|
...(input.jobStatus != null && { jobStatus: input.jobStatus }),
|
|
328
320
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
@@ -339,8 +331,8 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
|
|
|
339
331
|
body,
|
|
340
332
|
});
|
|
341
333
|
};
|
|
342
|
-
exports.
|
|
343
|
-
const
|
|
334
|
+
exports.se_ListJobsCommand = se_ListJobsCommand;
|
|
335
|
+
const se_ListSchedulingPoliciesCommand = async (input, context) => {
|
|
344
336
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
345
337
|
const headers = {
|
|
346
338
|
"content-type": "application/json",
|
|
@@ -361,8 +353,8 @@ const serializeAws_restJson1ListSchedulingPoliciesCommand = async (input, contex
|
|
|
361
353
|
body,
|
|
362
354
|
});
|
|
363
355
|
};
|
|
364
|
-
exports.
|
|
365
|
-
const
|
|
356
|
+
exports.se_ListSchedulingPoliciesCommand = se_ListSchedulingPoliciesCommand;
|
|
357
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
366
358
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
367
359
|
const headers = {};
|
|
368
360
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
@@ -378,8 +370,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
378
370
|
body,
|
|
379
371
|
});
|
|
380
372
|
};
|
|
381
|
-
exports.
|
|
382
|
-
const
|
|
373
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
374
|
+
const se_RegisterJobDefinitionCommand = async (input, context) => {
|
|
383
375
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
384
376
|
const headers = {
|
|
385
377
|
"content-type": "application/json",
|
|
@@ -388,26 +380,20 @@ const serializeAws_restJson1RegisterJobDefinitionCommand = async (input, context
|
|
|
388
380
|
let body;
|
|
389
381
|
body = JSON.stringify({
|
|
390
382
|
...(input.containerProperties != null && {
|
|
391
|
-
containerProperties:
|
|
392
|
-
}),
|
|
393
|
-
...(input.eksProperties != null && {
|
|
394
|
-
eksProperties: serializeAws_restJson1EksProperties(input.eksProperties, context),
|
|
383
|
+
containerProperties: se_ContainerProperties(input.containerProperties, context),
|
|
395
384
|
}),
|
|
385
|
+
...(input.eksProperties != null && { eksProperties: se_EksProperties(input.eksProperties, context) }),
|
|
396
386
|
...(input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName }),
|
|
397
|
-
...(input.nodeProperties != null && {
|
|
398
|
-
|
|
399
|
-
}),
|
|
400
|
-
...(input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
|
|
387
|
+
...(input.nodeProperties != null && { nodeProperties: se_NodeProperties(input.nodeProperties, context) }),
|
|
388
|
+
...(input.parameters != null && { parameters: se_ParametersMap(input.parameters, context) }),
|
|
401
389
|
...(input.platformCapabilities != null && {
|
|
402
|
-
platformCapabilities:
|
|
390
|
+
platformCapabilities: se_PlatformCapabilityList(input.platformCapabilities, context),
|
|
403
391
|
}),
|
|
404
392
|
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
405
|
-
...(input.retryStrategy != null && {
|
|
406
|
-
retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
|
|
407
|
-
}),
|
|
393
|
+
...(input.retryStrategy != null && { retryStrategy: se_RetryStrategy(input.retryStrategy, context) }),
|
|
408
394
|
...(input.schedulingPriority != null && { schedulingPriority: input.schedulingPriority }),
|
|
409
|
-
...(input.tags != null && { tags:
|
|
410
|
-
...(input.timeout != null && { timeout:
|
|
395
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
396
|
+
...(input.timeout != null && { timeout: se_JobTimeout(input.timeout, context) }),
|
|
411
397
|
...(input.type != null && { type: input.type }),
|
|
412
398
|
});
|
|
413
399
|
return new protocol_http_1.HttpRequest({
|
|
@@ -420,8 +406,8 @@ const serializeAws_restJson1RegisterJobDefinitionCommand = async (input, context
|
|
|
420
406
|
body,
|
|
421
407
|
});
|
|
422
408
|
};
|
|
423
|
-
exports.
|
|
424
|
-
const
|
|
409
|
+
exports.se_RegisterJobDefinitionCommand = se_RegisterJobDefinitionCommand;
|
|
410
|
+
const se_SubmitJobCommand = async (input, context) => {
|
|
425
411
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
426
412
|
const headers = {
|
|
427
413
|
"content-type": "application/json",
|
|
@@ -429,31 +415,25 @@ const serializeAws_restJson1SubmitJobCommand = async (input, context) => {
|
|
|
429
415
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/submitjob";
|
|
430
416
|
let body;
|
|
431
417
|
body = JSON.stringify({
|
|
432
|
-
...(input.arrayProperties != null && {
|
|
433
|
-
arrayProperties: serializeAws_restJson1ArrayProperties(input.arrayProperties, context),
|
|
434
|
-
}),
|
|
418
|
+
...(input.arrayProperties != null && { arrayProperties: se_ArrayProperties(input.arrayProperties, context) }),
|
|
435
419
|
...(input.containerOverrides != null && {
|
|
436
|
-
containerOverrides:
|
|
420
|
+
containerOverrides: se_ContainerOverrides(input.containerOverrides, context),
|
|
437
421
|
}),
|
|
438
|
-
...(input.dependsOn != null && { dependsOn:
|
|
422
|
+
...(input.dependsOn != null && { dependsOn: se_JobDependencyList(input.dependsOn, context) }),
|
|
439
423
|
...(input.eksPropertiesOverride != null && {
|
|
440
|
-
eksPropertiesOverride:
|
|
424
|
+
eksPropertiesOverride: se_EksPropertiesOverride(input.eksPropertiesOverride, context),
|
|
441
425
|
}),
|
|
442
426
|
...(input.jobDefinition != null && { jobDefinition: input.jobDefinition }),
|
|
443
427
|
...(input.jobName != null && { jobName: input.jobName }),
|
|
444
428
|
...(input.jobQueue != null && { jobQueue: input.jobQueue }),
|
|
445
|
-
...(input.nodeOverrides != null && {
|
|
446
|
-
|
|
447
|
-
}),
|
|
448
|
-
...(input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
|
|
429
|
+
...(input.nodeOverrides != null && { nodeOverrides: se_NodeOverrides(input.nodeOverrides, context) }),
|
|
430
|
+
...(input.parameters != null && { parameters: se_ParametersMap(input.parameters, context) }),
|
|
449
431
|
...(input.propagateTags != null && { propagateTags: input.propagateTags }),
|
|
450
|
-
...(input.retryStrategy != null && {
|
|
451
|
-
retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
|
|
452
|
-
}),
|
|
432
|
+
...(input.retryStrategy != null && { retryStrategy: se_RetryStrategy(input.retryStrategy, context) }),
|
|
453
433
|
...(input.schedulingPriorityOverride != null && { schedulingPriorityOverride: input.schedulingPriorityOverride }),
|
|
454
434
|
...(input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier }),
|
|
455
|
-
...(input.tags != null && { tags:
|
|
456
|
-
...(input.timeout != null && { timeout:
|
|
435
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
436
|
+
...(input.timeout != null && { timeout: se_JobTimeout(input.timeout, context) }),
|
|
457
437
|
});
|
|
458
438
|
return new protocol_http_1.HttpRequest({
|
|
459
439
|
protocol,
|
|
@@ -465,8 +445,8 @@ const serializeAws_restJson1SubmitJobCommand = async (input, context) => {
|
|
|
465
445
|
body,
|
|
466
446
|
});
|
|
467
447
|
};
|
|
468
|
-
exports.
|
|
469
|
-
const
|
|
448
|
+
exports.se_SubmitJobCommand = se_SubmitJobCommand;
|
|
449
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
470
450
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
451
|
const headers = {
|
|
472
452
|
"content-type": "application/json",
|
|
@@ -475,7 +455,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
475
455
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
476
456
|
let body;
|
|
477
457
|
body = JSON.stringify({
|
|
478
|
-
...(input.tags != null && { tags:
|
|
458
|
+
...(input.tags != null && { tags: se_TagrisTagsMap(input.tags, context) }),
|
|
479
459
|
});
|
|
480
460
|
return new protocol_http_1.HttpRequest({
|
|
481
461
|
protocol,
|
|
@@ -487,8 +467,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
487
467
|
body,
|
|
488
468
|
});
|
|
489
469
|
};
|
|
490
|
-
exports.
|
|
491
|
-
const
|
|
470
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
471
|
+
const se_TerminateJobCommand = async (input, context) => {
|
|
492
472
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
493
473
|
const headers = {
|
|
494
474
|
"content-type": "application/json",
|
|
@@ -509,8 +489,8 @@ const serializeAws_restJson1TerminateJobCommand = async (input, context) => {
|
|
|
509
489
|
body,
|
|
510
490
|
});
|
|
511
491
|
};
|
|
512
|
-
exports.
|
|
513
|
-
const
|
|
492
|
+
exports.se_TerminateJobCommand = se_TerminateJobCommand;
|
|
493
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
514
494
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
515
495
|
const headers = {};
|
|
516
496
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
@@ -533,8 +513,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
533
513
|
body,
|
|
534
514
|
});
|
|
535
515
|
};
|
|
536
|
-
exports.
|
|
537
|
-
const
|
|
516
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
517
|
+
const se_UpdateComputeEnvironmentCommand = async (input, context) => {
|
|
538
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
539
519
|
const headers = {
|
|
540
520
|
"content-type": "application/json",
|
|
@@ -544,14 +524,12 @@ const serializeAws_restJson1UpdateComputeEnvironmentCommand = async (input, cont
|
|
|
544
524
|
body = JSON.stringify({
|
|
545
525
|
...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
|
|
546
526
|
...(input.computeResources != null && {
|
|
547
|
-
computeResources:
|
|
527
|
+
computeResources: se_ComputeResourceUpdate(input.computeResources, context),
|
|
548
528
|
}),
|
|
549
529
|
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
550
530
|
...(input.state != null && { state: input.state }),
|
|
551
531
|
...(input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus }),
|
|
552
|
-
...(input.updatePolicy != null && {
|
|
553
|
-
updatePolicy: serializeAws_restJson1UpdatePolicy(input.updatePolicy, context),
|
|
554
|
-
}),
|
|
532
|
+
...(input.updatePolicy != null && { updatePolicy: se_UpdatePolicy(input.updatePolicy, context) }),
|
|
555
533
|
});
|
|
556
534
|
return new protocol_http_1.HttpRequest({
|
|
557
535
|
protocol,
|
|
@@ -563,8 +541,8 @@ const serializeAws_restJson1UpdateComputeEnvironmentCommand = async (input, cont
|
|
|
563
541
|
body,
|
|
564
542
|
});
|
|
565
543
|
};
|
|
566
|
-
exports.
|
|
567
|
-
const
|
|
544
|
+
exports.se_UpdateComputeEnvironmentCommand = se_UpdateComputeEnvironmentCommand;
|
|
545
|
+
const se_UpdateJobQueueCommand = async (input, context) => {
|
|
568
546
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
569
547
|
const headers = {
|
|
570
548
|
"content-type": "application/json",
|
|
@@ -573,7 +551,7 @@ const serializeAws_restJson1UpdateJobQueueCommand = async (input, context) => {
|
|
|
573
551
|
let body;
|
|
574
552
|
body = JSON.stringify({
|
|
575
553
|
...(input.computeEnvironmentOrder != null && {
|
|
576
|
-
computeEnvironmentOrder:
|
|
554
|
+
computeEnvironmentOrder: se_ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
577
555
|
}),
|
|
578
556
|
...(input.jobQueue != null && { jobQueue: input.jobQueue }),
|
|
579
557
|
...(input.priority != null && { priority: input.priority }),
|
|
@@ -590,8 +568,8 @@ const serializeAws_restJson1UpdateJobQueueCommand = async (input, context) => {
|
|
|
590
568
|
body,
|
|
591
569
|
});
|
|
592
570
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
571
|
+
exports.se_UpdateJobQueueCommand = se_UpdateJobQueueCommand;
|
|
572
|
+
const se_UpdateSchedulingPolicyCommand = async (input, context) => {
|
|
595
573
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
596
574
|
const headers = {
|
|
597
575
|
"content-type": "application/json",
|
|
@@ -600,9 +578,7 @@ const serializeAws_restJson1UpdateSchedulingPolicyCommand = async (input, contex
|
|
|
600
578
|
let body;
|
|
601
579
|
body = JSON.stringify({
|
|
602
580
|
...(input.arn != null && { arn: input.arn }),
|
|
603
|
-
...(input.fairsharePolicy != null && {
|
|
604
|
-
fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
|
|
605
|
-
}),
|
|
581
|
+
...(input.fairsharePolicy != null && { fairsharePolicy: se_FairsharePolicy(input.fairsharePolicy, context) }),
|
|
606
582
|
});
|
|
607
583
|
return new protocol_http_1.HttpRequest({
|
|
608
584
|
protocol,
|
|
@@ -614,10 +590,10 @@ const serializeAws_restJson1UpdateSchedulingPolicyCommand = async (input, contex
|
|
|
614
590
|
body,
|
|
615
591
|
});
|
|
616
592
|
};
|
|
617
|
-
exports.
|
|
618
|
-
const
|
|
593
|
+
exports.se_UpdateSchedulingPolicyCommand = se_UpdateSchedulingPolicyCommand;
|
|
594
|
+
const de_CancelJobCommand = async (output, context) => {
|
|
619
595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return
|
|
596
|
+
return de_CancelJobCommandError(output, context);
|
|
621
597
|
}
|
|
622
598
|
const contents = map({
|
|
623
599
|
$metadata: deserializeMetadata(output),
|
|
@@ -625,8 +601,8 @@ const deserializeAws_restJson1CancelJobCommand = async (output, context) => {
|
|
|
625
601
|
await collectBody(output.body, context);
|
|
626
602
|
return contents;
|
|
627
603
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
604
|
+
exports.de_CancelJobCommand = de_CancelJobCommand;
|
|
605
|
+
const de_CancelJobCommandError = async (output, context) => {
|
|
630
606
|
const parsedOutput = {
|
|
631
607
|
...output,
|
|
632
608
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,10 +611,10 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
635
611
|
switch (errorCode) {
|
|
636
612
|
case "ClientException":
|
|
637
613
|
case "com.amazonaws.batch#ClientException":
|
|
638
|
-
throw await
|
|
614
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
639
615
|
case "ServerException":
|
|
640
616
|
case "com.amazonaws.batch#ServerException":
|
|
641
|
-
throw await
|
|
617
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
642
618
|
default:
|
|
643
619
|
const parsedBody = parsedOutput.body;
|
|
644
620
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -649,9 +625,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
649
625
|
});
|
|
650
626
|
}
|
|
651
627
|
};
|
|
652
|
-
const
|
|
628
|
+
const de_CreateComputeEnvironmentCommand = async (output, context) => {
|
|
653
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
654
|
-
return
|
|
630
|
+
return de_CreateComputeEnvironmentCommandError(output, context);
|
|
655
631
|
}
|
|
656
632
|
const contents = map({
|
|
657
633
|
$metadata: deserializeMetadata(output),
|
|
@@ -665,8 +641,8 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommand = async (output, c
|
|
|
665
641
|
}
|
|
666
642
|
return contents;
|
|
667
643
|
};
|
|
668
|
-
exports.
|
|
669
|
-
const
|
|
644
|
+
exports.de_CreateComputeEnvironmentCommand = de_CreateComputeEnvironmentCommand;
|
|
645
|
+
const de_CreateComputeEnvironmentCommandError = async (output, context) => {
|
|
670
646
|
const parsedOutput = {
|
|
671
647
|
...output,
|
|
672
648
|
body: await parseErrorBody(output.body, context),
|
|
@@ -675,10 +651,10 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (outp
|
|
|
675
651
|
switch (errorCode) {
|
|
676
652
|
case "ClientException":
|
|
677
653
|
case "com.amazonaws.batch#ClientException":
|
|
678
|
-
throw await
|
|
654
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
679
655
|
case "ServerException":
|
|
680
656
|
case "com.amazonaws.batch#ServerException":
|
|
681
|
-
throw await
|
|
657
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
682
658
|
default:
|
|
683
659
|
const parsedBody = parsedOutput.body;
|
|
684
660
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -689,9 +665,9 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (outp
|
|
|
689
665
|
});
|
|
690
666
|
}
|
|
691
667
|
};
|
|
692
|
-
const
|
|
668
|
+
const de_CreateJobQueueCommand = async (output, context) => {
|
|
693
669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
-
return
|
|
670
|
+
return de_CreateJobQueueCommandError(output, context);
|
|
695
671
|
}
|
|
696
672
|
const contents = map({
|
|
697
673
|
$metadata: deserializeMetadata(output),
|
|
@@ -705,8 +681,8 @@ const deserializeAws_restJson1CreateJobQueueCommand = async (output, context) =>
|
|
|
705
681
|
}
|
|
706
682
|
return contents;
|
|
707
683
|
};
|
|
708
|
-
exports.
|
|
709
|
-
const
|
|
684
|
+
exports.de_CreateJobQueueCommand = de_CreateJobQueueCommand;
|
|
685
|
+
const de_CreateJobQueueCommandError = async (output, context) => {
|
|
710
686
|
const parsedOutput = {
|
|
711
687
|
...output,
|
|
712
688
|
body: await parseErrorBody(output.body, context),
|
|
@@ -715,10 +691,10 @@ const deserializeAws_restJson1CreateJobQueueCommandError = async (output, contex
|
|
|
715
691
|
switch (errorCode) {
|
|
716
692
|
case "ClientException":
|
|
717
693
|
case "com.amazonaws.batch#ClientException":
|
|
718
|
-
throw await
|
|
694
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
719
695
|
case "ServerException":
|
|
720
696
|
case "com.amazonaws.batch#ServerException":
|
|
721
|
-
throw await
|
|
697
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
722
698
|
default:
|
|
723
699
|
const parsedBody = parsedOutput.body;
|
|
724
700
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -729,9 +705,9 @@ const deserializeAws_restJson1CreateJobQueueCommandError = async (output, contex
|
|
|
729
705
|
});
|
|
730
706
|
}
|
|
731
707
|
};
|
|
732
|
-
const
|
|
708
|
+
const de_CreateSchedulingPolicyCommand = async (output, context) => {
|
|
733
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
710
|
+
return de_CreateSchedulingPolicyCommandError(output, context);
|
|
735
711
|
}
|
|
736
712
|
const contents = map({
|
|
737
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -745,8 +721,8 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommand = async (output, con
|
|
|
745
721
|
}
|
|
746
722
|
return contents;
|
|
747
723
|
};
|
|
748
|
-
exports.
|
|
749
|
-
const
|
|
724
|
+
exports.de_CreateSchedulingPolicyCommand = de_CreateSchedulingPolicyCommand;
|
|
725
|
+
const de_CreateSchedulingPolicyCommandError = async (output, context) => {
|
|
750
726
|
const parsedOutput = {
|
|
751
727
|
...output,
|
|
752
728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -755,10 +731,10 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output
|
|
|
755
731
|
switch (errorCode) {
|
|
756
732
|
case "ClientException":
|
|
757
733
|
case "com.amazonaws.batch#ClientException":
|
|
758
|
-
throw await
|
|
734
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
759
735
|
case "ServerException":
|
|
760
736
|
case "com.amazonaws.batch#ServerException":
|
|
761
|
-
throw await
|
|
737
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
762
738
|
default:
|
|
763
739
|
const parsedBody = parsedOutput.body;
|
|
764
740
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -769,9 +745,9 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output
|
|
|
769
745
|
});
|
|
770
746
|
}
|
|
771
747
|
};
|
|
772
|
-
const
|
|
748
|
+
const de_DeleteComputeEnvironmentCommand = async (output, context) => {
|
|
773
749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
774
|
-
return
|
|
750
|
+
return de_DeleteComputeEnvironmentCommandError(output, context);
|
|
775
751
|
}
|
|
776
752
|
const contents = map({
|
|
777
753
|
$metadata: deserializeMetadata(output),
|
|
@@ -779,8 +755,8 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommand = async (output, c
|
|
|
779
755
|
await collectBody(output.body, context);
|
|
780
756
|
return contents;
|
|
781
757
|
};
|
|
782
|
-
exports.
|
|
783
|
-
const
|
|
758
|
+
exports.de_DeleteComputeEnvironmentCommand = de_DeleteComputeEnvironmentCommand;
|
|
759
|
+
const de_DeleteComputeEnvironmentCommandError = async (output, context) => {
|
|
784
760
|
const parsedOutput = {
|
|
785
761
|
...output,
|
|
786
762
|
body: await parseErrorBody(output.body, context),
|
|
@@ -789,10 +765,10 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (outp
|
|
|
789
765
|
switch (errorCode) {
|
|
790
766
|
case "ClientException":
|
|
791
767
|
case "com.amazonaws.batch#ClientException":
|
|
792
|
-
throw await
|
|
768
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
793
769
|
case "ServerException":
|
|
794
770
|
case "com.amazonaws.batch#ServerException":
|
|
795
|
-
throw await
|
|
771
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
796
772
|
default:
|
|
797
773
|
const parsedBody = parsedOutput.body;
|
|
798
774
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -803,9 +779,9 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (outp
|
|
|
803
779
|
});
|
|
804
780
|
}
|
|
805
781
|
};
|
|
806
|
-
const
|
|
782
|
+
const de_DeleteJobQueueCommand = async (output, context) => {
|
|
807
783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
808
|
-
return
|
|
784
|
+
return de_DeleteJobQueueCommandError(output, context);
|
|
809
785
|
}
|
|
810
786
|
const contents = map({
|
|
811
787
|
$metadata: deserializeMetadata(output),
|
|
@@ -813,8 +789,8 @@ const deserializeAws_restJson1DeleteJobQueueCommand = async (output, context) =>
|
|
|
813
789
|
await collectBody(output.body, context);
|
|
814
790
|
return contents;
|
|
815
791
|
};
|
|
816
|
-
exports.
|
|
817
|
-
const
|
|
792
|
+
exports.de_DeleteJobQueueCommand = de_DeleteJobQueueCommand;
|
|
793
|
+
const de_DeleteJobQueueCommandError = async (output, context) => {
|
|
818
794
|
const parsedOutput = {
|
|
819
795
|
...output,
|
|
820
796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -823,10 +799,10 @@ const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, contex
|
|
|
823
799
|
switch (errorCode) {
|
|
824
800
|
case "ClientException":
|
|
825
801
|
case "com.amazonaws.batch#ClientException":
|
|
826
|
-
throw await
|
|
802
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
827
803
|
case "ServerException":
|
|
828
804
|
case "com.amazonaws.batch#ServerException":
|
|
829
|
-
throw await
|
|
805
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
830
806
|
default:
|
|
831
807
|
const parsedBody = parsedOutput.body;
|
|
832
808
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -837,9 +813,9 @@ const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, contex
|
|
|
837
813
|
});
|
|
838
814
|
}
|
|
839
815
|
};
|
|
840
|
-
const
|
|
816
|
+
const de_DeleteSchedulingPolicyCommand = async (output, context) => {
|
|
841
817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
818
|
+
return de_DeleteSchedulingPolicyCommandError(output, context);
|
|
843
819
|
}
|
|
844
820
|
const contents = map({
|
|
845
821
|
$metadata: deserializeMetadata(output),
|
|
@@ -847,8 +823,8 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommand = async (output, con
|
|
|
847
823
|
await collectBody(output.body, context);
|
|
848
824
|
return contents;
|
|
849
825
|
};
|
|
850
|
-
exports.
|
|
851
|
-
const
|
|
826
|
+
exports.de_DeleteSchedulingPolicyCommand = de_DeleteSchedulingPolicyCommand;
|
|
827
|
+
const de_DeleteSchedulingPolicyCommandError = async (output, context) => {
|
|
852
828
|
const parsedOutput = {
|
|
853
829
|
...output,
|
|
854
830
|
body: await parseErrorBody(output.body, context),
|
|
@@ -857,10 +833,10 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output
|
|
|
857
833
|
switch (errorCode) {
|
|
858
834
|
case "ClientException":
|
|
859
835
|
case "com.amazonaws.batch#ClientException":
|
|
860
|
-
throw await
|
|
836
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
861
837
|
case "ServerException":
|
|
862
838
|
case "com.amazonaws.batch#ServerException":
|
|
863
|
-
throw await
|
|
839
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
864
840
|
default:
|
|
865
841
|
const parsedBody = parsedOutput.body;
|
|
866
842
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -871,9 +847,9 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output
|
|
|
871
847
|
});
|
|
872
848
|
}
|
|
873
849
|
};
|
|
874
|
-
const
|
|
850
|
+
const de_DeregisterJobDefinitionCommand = async (output, context) => {
|
|
875
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return
|
|
852
|
+
return de_DeregisterJobDefinitionCommandError(output, context);
|
|
877
853
|
}
|
|
878
854
|
const contents = map({
|
|
879
855
|
$metadata: deserializeMetadata(output),
|
|
@@ -881,8 +857,8 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommand = async (output, co
|
|
|
881
857
|
await collectBody(output.body, context);
|
|
882
858
|
return contents;
|
|
883
859
|
};
|
|
884
|
-
exports.
|
|
885
|
-
const
|
|
860
|
+
exports.de_DeregisterJobDefinitionCommand = de_DeregisterJobDefinitionCommand;
|
|
861
|
+
const de_DeregisterJobDefinitionCommandError = async (output, context) => {
|
|
886
862
|
const parsedOutput = {
|
|
887
863
|
...output,
|
|
888
864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -891,10 +867,10 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (outpu
|
|
|
891
867
|
switch (errorCode) {
|
|
892
868
|
case "ClientException":
|
|
893
869
|
case "com.amazonaws.batch#ClientException":
|
|
894
|
-
throw await
|
|
870
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
895
871
|
case "ServerException":
|
|
896
872
|
case "com.amazonaws.batch#ServerException":
|
|
897
|
-
throw await
|
|
873
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
898
874
|
default:
|
|
899
875
|
const parsedBody = parsedOutput.body;
|
|
900
876
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -905,24 +881,24 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (outpu
|
|
|
905
881
|
});
|
|
906
882
|
}
|
|
907
883
|
};
|
|
908
|
-
const
|
|
884
|
+
const de_DescribeComputeEnvironmentsCommand = async (output, context) => {
|
|
909
885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return
|
|
886
|
+
return de_DescribeComputeEnvironmentsCommandError(output, context);
|
|
911
887
|
}
|
|
912
888
|
const contents = map({
|
|
913
889
|
$metadata: deserializeMetadata(output),
|
|
914
890
|
});
|
|
915
891
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
916
892
|
if (data.computeEnvironments != null) {
|
|
917
|
-
contents.computeEnvironments =
|
|
893
|
+
contents.computeEnvironments = de_ComputeEnvironmentDetailList(data.computeEnvironments, context);
|
|
918
894
|
}
|
|
919
895
|
if (data.nextToken != null) {
|
|
920
896
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
921
897
|
}
|
|
922
898
|
return contents;
|
|
923
899
|
};
|
|
924
|
-
exports.
|
|
925
|
-
const
|
|
900
|
+
exports.de_DescribeComputeEnvironmentsCommand = de_DescribeComputeEnvironmentsCommand;
|
|
901
|
+
const de_DescribeComputeEnvironmentsCommandError = async (output, context) => {
|
|
926
902
|
const parsedOutput = {
|
|
927
903
|
...output,
|
|
928
904
|
body: await parseErrorBody(output.body, context),
|
|
@@ -931,10 +907,10 @@ const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (o
|
|
|
931
907
|
switch (errorCode) {
|
|
932
908
|
case "ClientException":
|
|
933
909
|
case "com.amazonaws.batch#ClientException":
|
|
934
|
-
throw await
|
|
910
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
935
911
|
case "ServerException":
|
|
936
912
|
case "com.amazonaws.batch#ServerException":
|
|
937
|
-
throw await
|
|
913
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
938
914
|
default:
|
|
939
915
|
const parsedBody = parsedOutput.body;
|
|
940
916
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -945,24 +921,24 @@ const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (o
|
|
|
945
921
|
});
|
|
946
922
|
}
|
|
947
923
|
};
|
|
948
|
-
const
|
|
924
|
+
const de_DescribeJobDefinitionsCommand = async (output, context) => {
|
|
949
925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
-
return
|
|
926
|
+
return de_DescribeJobDefinitionsCommandError(output, context);
|
|
951
927
|
}
|
|
952
928
|
const contents = map({
|
|
953
929
|
$metadata: deserializeMetadata(output),
|
|
954
930
|
});
|
|
955
931
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
956
932
|
if (data.jobDefinitions != null) {
|
|
957
|
-
contents.jobDefinitions =
|
|
933
|
+
contents.jobDefinitions = de_JobDefinitionList(data.jobDefinitions, context);
|
|
958
934
|
}
|
|
959
935
|
if (data.nextToken != null) {
|
|
960
936
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
961
937
|
}
|
|
962
938
|
return contents;
|
|
963
939
|
};
|
|
964
|
-
exports.
|
|
965
|
-
const
|
|
940
|
+
exports.de_DescribeJobDefinitionsCommand = de_DescribeJobDefinitionsCommand;
|
|
941
|
+
const de_DescribeJobDefinitionsCommandError = async (output, context) => {
|
|
966
942
|
const parsedOutput = {
|
|
967
943
|
...output,
|
|
968
944
|
body: await parseErrorBody(output.body, context),
|
|
@@ -971,10 +947,10 @@ const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output
|
|
|
971
947
|
switch (errorCode) {
|
|
972
948
|
case "ClientException":
|
|
973
949
|
case "com.amazonaws.batch#ClientException":
|
|
974
|
-
throw await
|
|
950
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
975
951
|
case "ServerException":
|
|
976
952
|
case "com.amazonaws.batch#ServerException":
|
|
977
|
-
throw await
|
|
953
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
978
954
|
default:
|
|
979
955
|
const parsedBody = parsedOutput.body;
|
|
980
956
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -985,24 +961,24 @@ const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output
|
|
|
985
961
|
});
|
|
986
962
|
}
|
|
987
963
|
};
|
|
988
|
-
const
|
|
964
|
+
const de_DescribeJobQueuesCommand = async (output, context) => {
|
|
989
965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
-
return
|
|
966
|
+
return de_DescribeJobQueuesCommandError(output, context);
|
|
991
967
|
}
|
|
992
968
|
const contents = map({
|
|
993
969
|
$metadata: deserializeMetadata(output),
|
|
994
970
|
});
|
|
995
971
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
996
972
|
if (data.jobQueues != null) {
|
|
997
|
-
contents.jobQueues =
|
|
973
|
+
contents.jobQueues = de_JobQueueDetailList(data.jobQueues, context);
|
|
998
974
|
}
|
|
999
975
|
if (data.nextToken != null) {
|
|
1000
976
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1001
977
|
}
|
|
1002
978
|
return contents;
|
|
1003
979
|
};
|
|
1004
|
-
exports.
|
|
1005
|
-
const
|
|
980
|
+
exports.de_DescribeJobQueuesCommand = de_DescribeJobQueuesCommand;
|
|
981
|
+
const de_DescribeJobQueuesCommandError = async (output, context) => {
|
|
1006
982
|
const parsedOutput = {
|
|
1007
983
|
...output,
|
|
1008
984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1011,10 +987,10 @@ const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, con
|
|
|
1011
987
|
switch (errorCode) {
|
|
1012
988
|
case "ClientException":
|
|
1013
989
|
case "com.amazonaws.batch#ClientException":
|
|
1014
|
-
throw await
|
|
990
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1015
991
|
case "ServerException":
|
|
1016
992
|
case "com.amazonaws.batch#ServerException":
|
|
1017
|
-
throw await
|
|
993
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1018
994
|
default:
|
|
1019
995
|
const parsedBody = parsedOutput.body;
|
|
1020
996
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1025,21 +1001,21 @@ const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, con
|
|
|
1025
1001
|
});
|
|
1026
1002
|
}
|
|
1027
1003
|
};
|
|
1028
|
-
const
|
|
1004
|
+
const de_DescribeJobsCommand = async (output, context) => {
|
|
1029
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1030
|
-
return
|
|
1006
|
+
return de_DescribeJobsCommandError(output, context);
|
|
1031
1007
|
}
|
|
1032
1008
|
const contents = map({
|
|
1033
1009
|
$metadata: deserializeMetadata(output),
|
|
1034
1010
|
});
|
|
1035
1011
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1036
1012
|
if (data.jobs != null) {
|
|
1037
|
-
contents.jobs =
|
|
1013
|
+
contents.jobs = de_JobDetailList(data.jobs, context);
|
|
1038
1014
|
}
|
|
1039
1015
|
return contents;
|
|
1040
1016
|
};
|
|
1041
|
-
exports.
|
|
1042
|
-
const
|
|
1017
|
+
exports.de_DescribeJobsCommand = de_DescribeJobsCommand;
|
|
1018
|
+
const de_DescribeJobsCommandError = async (output, context) => {
|
|
1043
1019
|
const parsedOutput = {
|
|
1044
1020
|
...output,
|
|
1045
1021
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1048,10 +1024,10 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1048
1024
|
switch (errorCode) {
|
|
1049
1025
|
case "ClientException":
|
|
1050
1026
|
case "com.amazonaws.batch#ClientException":
|
|
1051
|
-
throw await
|
|
1027
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1052
1028
|
case "ServerException":
|
|
1053
1029
|
case "com.amazonaws.batch#ServerException":
|
|
1054
|
-
throw await
|
|
1030
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1055
1031
|
default:
|
|
1056
1032
|
const parsedBody = parsedOutput.body;
|
|
1057
1033
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1062,21 +1038,21 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1062
1038
|
});
|
|
1063
1039
|
}
|
|
1064
1040
|
};
|
|
1065
|
-
const
|
|
1041
|
+
const de_DescribeSchedulingPoliciesCommand = async (output, context) => {
|
|
1066
1042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
1043
|
+
return de_DescribeSchedulingPoliciesCommandError(output, context);
|
|
1068
1044
|
}
|
|
1069
1045
|
const contents = map({
|
|
1070
1046
|
$metadata: deserializeMetadata(output),
|
|
1071
1047
|
});
|
|
1072
1048
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1073
1049
|
if (data.schedulingPolicies != null) {
|
|
1074
|
-
contents.schedulingPolicies =
|
|
1050
|
+
contents.schedulingPolicies = de_SchedulingPolicyDetailList(data.schedulingPolicies, context);
|
|
1075
1051
|
}
|
|
1076
1052
|
return contents;
|
|
1077
1053
|
};
|
|
1078
|
-
exports.
|
|
1079
|
-
const
|
|
1054
|
+
exports.de_DescribeSchedulingPoliciesCommand = de_DescribeSchedulingPoliciesCommand;
|
|
1055
|
+
const de_DescribeSchedulingPoliciesCommandError = async (output, context) => {
|
|
1080
1056
|
const parsedOutput = {
|
|
1081
1057
|
...output,
|
|
1082
1058
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1085,10 +1061,10 @@ const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (ou
|
|
|
1085
1061
|
switch (errorCode) {
|
|
1086
1062
|
case "ClientException":
|
|
1087
1063
|
case "com.amazonaws.batch#ClientException":
|
|
1088
|
-
throw await
|
|
1064
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1089
1065
|
case "ServerException":
|
|
1090
1066
|
case "com.amazonaws.batch#ServerException":
|
|
1091
|
-
throw await
|
|
1067
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1092
1068
|
default:
|
|
1093
1069
|
const parsedBody = parsedOutput.body;
|
|
1094
1070
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1099,24 +1075,24 @@ const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (ou
|
|
|
1099
1075
|
});
|
|
1100
1076
|
}
|
|
1101
1077
|
};
|
|
1102
|
-
const
|
|
1078
|
+
const de_ListJobsCommand = async (output, context) => {
|
|
1103
1079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
1080
|
+
return de_ListJobsCommandError(output, context);
|
|
1105
1081
|
}
|
|
1106
1082
|
const contents = map({
|
|
1107
1083
|
$metadata: deserializeMetadata(output),
|
|
1108
1084
|
});
|
|
1109
1085
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1110
1086
|
if (data.jobSummaryList != null) {
|
|
1111
|
-
contents.jobSummaryList =
|
|
1087
|
+
contents.jobSummaryList = de_JobSummaryList(data.jobSummaryList, context);
|
|
1112
1088
|
}
|
|
1113
1089
|
if (data.nextToken != null) {
|
|
1114
1090
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1115
1091
|
}
|
|
1116
1092
|
return contents;
|
|
1117
1093
|
};
|
|
1118
|
-
exports.
|
|
1119
|
-
const
|
|
1094
|
+
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
1095
|
+
const de_ListJobsCommandError = async (output, context) => {
|
|
1120
1096
|
const parsedOutput = {
|
|
1121
1097
|
...output,
|
|
1122
1098
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1125,10 +1101,10 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1125
1101
|
switch (errorCode) {
|
|
1126
1102
|
case "ClientException":
|
|
1127
1103
|
case "com.amazonaws.batch#ClientException":
|
|
1128
|
-
throw await
|
|
1104
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1129
1105
|
case "ServerException":
|
|
1130
1106
|
case "com.amazonaws.batch#ServerException":
|
|
1131
|
-
throw await
|
|
1107
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1132
1108
|
default:
|
|
1133
1109
|
const parsedBody = parsedOutput.body;
|
|
1134
1110
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1139,9 +1115,9 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
1139
1115
|
});
|
|
1140
1116
|
}
|
|
1141
1117
|
};
|
|
1142
|
-
const
|
|
1118
|
+
const de_ListSchedulingPoliciesCommand = async (output, context) => {
|
|
1143
1119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1144
|
-
return
|
|
1120
|
+
return de_ListSchedulingPoliciesCommandError(output, context);
|
|
1145
1121
|
}
|
|
1146
1122
|
const contents = map({
|
|
1147
1123
|
$metadata: deserializeMetadata(output),
|
|
@@ -1151,12 +1127,12 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommand = async (output, con
|
|
|
1151
1127
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1152
1128
|
}
|
|
1153
1129
|
if (data.schedulingPolicies != null) {
|
|
1154
|
-
contents.schedulingPolicies =
|
|
1130
|
+
contents.schedulingPolicies = de_SchedulingPolicyListingDetailList(data.schedulingPolicies, context);
|
|
1155
1131
|
}
|
|
1156
1132
|
return contents;
|
|
1157
1133
|
};
|
|
1158
|
-
exports.
|
|
1159
|
-
const
|
|
1134
|
+
exports.de_ListSchedulingPoliciesCommand = de_ListSchedulingPoliciesCommand;
|
|
1135
|
+
const de_ListSchedulingPoliciesCommandError = async (output, context) => {
|
|
1160
1136
|
const parsedOutput = {
|
|
1161
1137
|
...output,
|
|
1162
1138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1165,10 +1141,10 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output
|
|
|
1165
1141
|
switch (errorCode) {
|
|
1166
1142
|
case "ClientException":
|
|
1167
1143
|
case "com.amazonaws.batch#ClientException":
|
|
1168
|
-
throw await
|
|
1144
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1169
1145
|
case "ServerException":
|
|
1170
1146
|
case "com.amazonaws.batch#ServerException":
|
|
1171
|
-
throw await
|
|
1147
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1172
1148
|
default:
|
|
1173
1149
|
const parsedBody = parsedOutput.body;
|
|
1174
1150
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1179,21 +1155,21 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output
|
|
|
1179
1155
|
});
|
|
1180
1156
|
}
|
|
1181
1157
|
};
|
|
1182
|
-
const
|
|
1158
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1183
1159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
1160
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1185
1161
|
}
|
|
1186
1162
|
const contents = map({
|
|
1187
1163
|
$metadata: deserializeMetadata(output),
|
|
1188
1164
|
});
|
|
1189
1165
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1190
1166
|
if (data.tags != null) {
|
|
1191
|
-
contents.tags =
|
|
1167
|
+
contents.tags = de_TagrisTagsMap(data.tags, context);
|
|
1192
1168
|
}
|
|
1193
1169
|
return contents;
|
|
1194
1170
|
};
|
|
1195
|
-
exports.
|
|
1196
|
-
const
|
|
1171
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1172
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1197
1173
|
const parsedOutput = {
|
|
1198
1174
|
...output,
|
|
1199
1175
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1202,10 +1178,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1202
1178
|
switch (errorCode) {
|
|
1203
1179
|
case "ClientException":
|
|
1204
1180
|
case "com.amazonaws.batch#ClientException":
|
|
1205
|
-
throw await
|
|
1181
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1206
1182
|
case "ServerException":
|
|
1207
1183
|
case "com.amazonaws.batch#ServerException":
|
|
1208
|
-
throw await
|
|
1184
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1209
1185
|
default:
|
|
1210
1186
|
const parsedBody = parsedOutput.body;
|
|
1211
1187
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1216,9 +1192,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1216
1192
|
});
|
|
1217
1193
|
}
|
|
1218
1194
|
};
|
|
1219
|
-
const
|
|
1195
|
+
const de_RegisterJobDefinitionCommand = async (output, context) => {
|
|
1220
1196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1221
|
-
return
|
|
1197
|
+
return de_RegisterJobDefinitionCommandError(output, context);
|
|
1222
1198
|
}
|
|
1223
1199
|
const contents = map({
|
|
1224
1200
|
$metadata: deserializeMetadata(output),
|
|
@@ -1235,8 +1211,8 @@ const deserializeAws_restJson1RegisterJobDefinitionCommand = async (output, cont
|
|
|
1235
1211
|
}
|
|
1236
1212
|
return contents;
|
|
1237
1213
|
};
|
|
1238
|
-
exports.
|
|
1239
|
-
const
|
|
1214
|
+
exports.de_RegisterJobDefinitionCommand = de_RegisterJobDefinitionCommand;
|
|
1215
|
+
const de_RegisterJobDefinitionCommandError = async (output, context) => {
|
|
1240
1216
|
const parsedOutput = {
|
|
1241
1217
|
...output,
|
|
1242
1218
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1245,10 +1221,10 @@ const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output,
|
|
|
1245
1221
|
switch (errorCode) {
|
|
1246
1222
|
case "ClientException":
|
|
1247
1223
|
case "com.amazonaws.batch#ClientException":
|
|
1248
|
-
throw await
|
|
1224
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1249
1225
|
case "ServerException":
|
|
1250
1226
|
case "com.amazonaws.batch#ServerException":
|
|
1251
|
-
throw await
|
|
1227
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1252
1228
|
default:
|
|
1253
1229
|
const parsedBody = parsedOutput.body;
|
|
1254
1230
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1259,9 +1235,9 @@ const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output,
|
|
|
1259
1235
|
});
|
|
1260
1236
|
}
|
|
1261
1237
|
};
|
|
1262
|
-
const
|
|
1238
|
+
const de_SubmitJobCommand = async (output, context) => {
|
|
1263
1239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1264
|
-
return
|
|
1240
|
+
return de_SubmitJobCommandError(output, context);
|
|
1265
1241
|
}
|
|
1266
1242
|
const contents = map({
|
|
1267
1243
|
$metadata: deserializeMetadata(output),
|
|
@@ -1278,8 +1254,8 @@ const deserializeAws_restJson1SubmitJobCommand = async (output, context) => {
|
|
|
1278
1254
|
}
|
|
1279
1255
|
return contents;
|
|
1280
1256
|
};
|
|
1281
|
-
exports.
|
|
1282
|
-
const
|
|
1257
|
+
exports.de_SubmitJobCommand = de_SubmitJobCommand;
|
|
1258
|
+
const de_SubmitJobCommandError = async (output, context) => {
|
|
1283
1259
|
const parsedOutput = {
|
|
1284
1260
|
...output,
|
|
1285
1261
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1288,10 +1264,10 @@ const deserializeAws_restJson1SubmitJobCommandError = async (output, context) =>
|
|
|
1288
1264
|
switch (errorCode) {
|
|
1289
1265
|
case "ClientException":
|
|
1290
1266
|
case "com.amazonaws.batch#ClientException":
|
|
1291
|
-
throw await
|
|
1267
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1292
1268
|
case "ServerException":
|
|
1293
1269
|
case "com.amazonaws.batch#ServerException":
|
|
1294
|
-
throw await
|
|
1270
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1295
1271
|
default:
|
|
1296
1272
|
const parsedBody = parsedOutput.body;
|
|
1297
1273
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1302,9 +1278,9 @@ const deserializeAws_restJson1SubmitJobCommandError = async (output, context) =>
|
|
|
1302
1278
|
});
|
|
1303
1279
|
}
|
|
1304
1280
|
};
|
|
1305
|
-
const
|
|
1281
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1306
1282
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1307
|
-
return
|
|
1283
|
+
return de_TagResourceCommandError(output, context);
|
|
1308
1284
|
}
|
|
1309
1285
|
const contents = map({
|
|
1310
1286
|
$metadata: deserializeMetadata(output),
|
|
@@ -1312,8 +1288,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1312
1288
|
await collectBody(output.body, context);
|
|
1313
1289
|
return contents;
|
|
1314
1290
|
};
|
|
1315
|
-
exports.
|
|
1316
|
-
const
|
|
1291
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1292
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1317
1293
|
const parsedOutput = {
|
|
1318
1294
|
...output,
|
|
1319
1295
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1322,10 +1298,10 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1322
1298
|
switch (errorCode) {
|
|
1323
1299
|
case "ClientException":
|
|
1324
1300
|
case "com.amazonaws.batch#ClientException":
|
|
1325
|
-
throw await
|
|
1301
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1326
1302
|
case "ServerException":
|
|
1327
1303
|
case "com.amazonaws.batch#ServerException":
|
|
1328
|
-
throw await
|
|
1304
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1329
1305
|
default:
|
|
1330
1306
|
const parsedBody = parsedOutput.body;
|
|
1331
1307
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1336,9 +1312,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1336
1312
|
});
|
|
1337
1313
|
}
|
|
1338
1314
|
};
|
|
1339
|
-
const
|
|
1315
|
+
const de_TerminateJobCommand = async (output, context) => {
|
|
1340
1316
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1317
|
+
return de_TerminateJobCommandError(output, context);
|
|
1342
1318
|
}
|
|
1343
1319
|
const contents = map({
|
|
1344
1320
|
$metadata: deserializeMetadata(output),
|
|
@@ -1346,8 +1322,8 @@ const deserializeAws_restJson1TerminateJobCommand = async (output, context) => {
|
|
|
1346
1322
|
await collectBody(output.body, context);
|
|
1347
1323
|
return contents;
|
|
1348
1324
|
};
|
|
1349
|
-
exports.
|
|
1350
|
-
const
|
|
1325
|
+
exports.de_TerminateJobCommand = de_TerminateJobCommand;
|
|
1326
|
+
const de_TerminateJobCommandError = async (output, context) => {
|
|
1351
1327
|
const parsedOutput = {
|
|
1352
1328
|
...output,
|
|
1353
1329
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1356,10 +1332,10 @@ const deserializeAws_restJson1TerminateJobCommandError = async (output, context)
|
|
|
1356
1332
|
switch (errorCode) {
|
|
1357
1333
|
case "ClientException":
|
|
1358
1334
|
case "com.amazonaws.batch#ClientException":
|
|
1359
|
-
throw await
|
|
1335
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1360
1336
|
case "ServerException":
|
|
1361
1337
|
case "com.amazonaws.batch#ServerException":
|
|
1362
|
-
throw await
|
|
1338
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1363
1339
|
default:
|
|
1364
1340
|
const parsedBody = parsedOutput.body;
|
|
1365
1341
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1370,9 +1346,9 @@ const deserializeAws_restJson1TerminateJobCommandError = async (output, context)
|
|
|
1370
1346
|
});
|
|
1371
1347
|
}
|
|
1372
1348
|
};
|
|
1373
|
-
const
|
|
1349
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1374
1350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1375
|
-
return
|
|
1351
|
+
return de_UntagResourceCommandError(output, context);
|
|
1376
1352
|
}
|
|
1377
1353
|
const contents = map({
|
|
1378
1354
|
$metadata: deserializeMetadata(output),
|
|
@@ -1380,8 +1356,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1380
1356
|
await collectBody(output.body, context);
|
|
1381
1357
|
return contents;
|
|
1382
1358
|
};
|
|
1383
|
-
exports.
|
|
1384
|
-
const
|
|
1359
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1360
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1385
1361
|
const parsedOutput = {
|
|
1386
1362
|
...output,
|
|
1387
1363
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1390,10 +1366,10 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1390
1366
|
switch (errorCode) {
|
|
1391
1367
|
case "ClientException":
|
|
1392
1368
|
case "com.amazonaws.batch#ClientException":
|
|
1393
|
-
throw await
|
|
1369
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1394
1370
|
case "ServerException":
|
|
1395
1371
|
case "com.amazonaws.batch#ServerException":
|
|
1396
|
-
throw await
|
|
1372
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1397
1373
|
default:
|
|
1398
1374
|
const parsedBody = parsedOutput.body;
|
|
1399
1375
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1404,9 +1380,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1404
1380
|
});
|
|
1405
1381
|
}
|
|
1406
1382
|
};
|
|
1407
|
-
const
|
|
1383
|
+
const de_UpdateComputeEnvironmentCommand = async (output, context) => {
|
|
1408
1384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
-
return
|
|
1385
|
+
return de_UpdateComputeEnvironmentCommandError(output, context);
|
|
1410
1386
|
}
|
|
1411
1387
|
const contents = map({
|
|
1412
1388
|
$metadata: deserializeMetadata(output),
|
|
@@ -1420,8 +1396,8 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommand = async (output, c
|
|
|
1420
1396
|
}
|
|
1421
1397
|
return contents;
|
|
1422
1398
|
};
|
|
1423
|
-
exports.
|
|
1424
|
-
const
|
|
1399
|
+
exports.de_UpdateComputeEnvironmentCommand = de_UpdateComputeEnvironmentCommand;
|
|
1400
|
+
const de_UpdateComputeEnvironmentCommandError = async (output, context) => {
|
|
1425
1401
|
const parsedOutput = {
|
|
1426
1402
|
...output,
|
|
1427
1403
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1430,10 +1406,10 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (outp
|
|
|
1430
1406
|
switch (errorCode) {
|
|
1431
1407
|
case "ClientException":
|
|
1432
1408
|
case "com.amazonaws.batch#ClientException":
|
|
1433
|
-
throw await
|
|
1409
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1434
1410
|
case "ServerException":
|
|
1435
1411
|
case "com.amazonaws.batch#ServerException":
|
|
1436
|
-
throw await
|
|
1412
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1437
1413
|
default:
|
|
1438
1414
|
const parsedBody = parsedOutput.body;
|
|
1439
1415
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1444,9 +1420,9 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (outp
|
|
|
1444
1420
|
});
|
|
1445
1421
|
}
|
|
1446
1422
|
};
|
|
1447
|
-
const
|
|
1423
|
+
const de_UpdateJobQueueCommand = async (output, context) => {
|
|
1448
1424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
1425
|
+
return de_UpdateJobQueueCommandError(output, context);
|
|
1450
1426
|
}
|
|
1451
1427
|
const contents = map({
|
|
1452
1428
|
$metadata: deserializeMetadata(output),
|
|
@@ -1460,8 +1436,8 @@ const deserializeAws_restJson1UpdateJobQueueCommand = async (output, context) =>
|
|
|
1460
1436
|
}
|
|
1461
1437
|
return contents;
|
|
1462
1438
|
};
|
|
1463
|
-
exports.
|
|
1464
|
-
const
|
|
1439
|
+
exports.de_UpdateJobQueueCommand = de_UpdateJobQueueCommand;
|
|
1440
|
+
const de_UpdateJobQueueCommandError = async (output, context) => {
|
|
1465
1441
|
const parsedOutput = {
|
|
1466
1442
|
...output,
|
|
1467
1443
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1470,10 +1446,10 @@ const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, contex
|
|
|
1470
1446
|
switch (errorCode) {
|
|
1471
1447
|
case "ClientException":
|
|
1472
1448
|
case "com.amazonaws.batch#ClientException":
|
|
1473
|
-
throw await
|
|
1449
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1474
1450
|
case "ServerException":
|
|
1475
1451
|
case "com.amazonaws.batch#ServerException":
|
|
1476
|
-
throw await
|
|
1452
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1477
1453
|
default:
|
|
1478
1454
|
const parsedBody = parsedOutput.body;
|
|
1479
1455
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1484,9 +1460,9 @@ const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, contex
|
|
|
1484
1460
|
});
|
|
1485
1461
|
}
|
|
1486
1462
|
};
|
|
1487
|
-
const
|
|
1463
|
+
const de_UpdateSchedulingPolicyCommand = async (output, context) => {
|
|
1488
1464
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1489
|
-
return
|
|
1465
|
+
return de_UpdateSchedulingPolicyCommandError(output, context);
|
|
1490
1466
|
}
|
|
1491
1467
|
const contents = map({
|
|
1492
1468
|
$metadata: deserializeMetadata(output),
|
|
@@ -1494,8 +1470,8 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommand = async (output, con
|
|
|
1494
1470
|
await collectBody(output.body, context);
|
|
1495
1471
|
return contents;
|
|
1496
1472
|
};
|
|
1497
|
-
exports.
|
|
1498
|
-
const
|
|
1473
|
+
exports.de_UpdateSchedulingPolicyCommand = de_UpdateSchedulingPolicyCommand;
|
|
1474
|
+
const de_UpdateSchedulingPolicyCommandError = async (output, context) => {
|
|
1499
1475
|
const parsedOutput = {
|
|
1500
1476
|
...output,
|
|
1501
1477
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1504,10 +1480,10 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output
|
|
|
1504
1480
|
switch (errorCode) {
|
|
1505
1481
|
case "ClientException":
|
|
1506
1482
|
case "com.amazonaws.batch#ClientException":
|
|
1507
|
-
throw await
|
|
1483
|
+
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1508
1484
|
case "ServerException":
|
|
1509
1485
|
case "com.amazonaws.batch#ServerException":
|
|
1510
|
-
throw await
|
|
1486
|
+
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1511
1487
|
default:
|
|
1512
1488
|
const parsedBody = parsedOutput.body;
|
|
1513
1489
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1519,7 +1495,7 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output
|
|
|
1519
1495
|
}
|
|
1520
1496
|
};
|
|
1521
1497
|
const map = smithy_client_1.map;
|
|
1522
|
-
const
|
|
1498
|
+
const de_ClientExceptionRes = async (parsedOutput, context) => {
|
|
1523
1499
|
const contents = map({});
|
|
1524
1500
|
const data = parsedOutput.body;
|
|
1525
1501
|
if (data.message != null) {
|
|
@@ -1531,7 +1507,7 @@ const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, con
|
|
|
1531
1507
|
});
|
|
1532
1508
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1533
1509
|
};
|
|
1534
|
-
const
|
|
1510
|
+
const de_ServerExceptionRes = async (parsedOutput, context) => {
|
|
1535
1511
|
const contents = map({});
|
|
1536
1512
|
const data = parsedOutput.body;
|
|
1537
1513
|
if (data.message != null) {
|
|
@@ -1543,182 +1519,162 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
|
|
|
1543
1519
|
});
|
|
1544
1520
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1545
1521
|
};
|
|
1546
|
-
const
|
|
1522
|
+
const se_ArrayProperties = (input, context) => {
|
|
1547
1523
|
return {
|
|
1548
1524
|
...(input.size != null && { size: input.size }),
|
|
1549
1525
|
};
|
|
1550
1526
|
};
|
|
1551
|
-
const
|
|
1527
|
+
const se_ComputeEnvironmentOrder = (input, context) => {
|
|
1552
1528
|
return {
|
|
1553
1529
|
...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
|
|
1554
1530
|
...(input.order != null && { order: input.order }),
|
|
1555
1531
|
};
|
|
1556
1532
|
};
|
|
1557
|
-
const
|
|
1533
|
+
const se_ComputeEnvironmentOrders = (input, context) => {
|
|
1558
1534
|
return input
|
|
1559
1535
|
.filter((e) => e != null)
|
|
1560
1536
|
.map((entry) => {
|
|
1561
|
-
return
|
|
1537
|
+
return se_ComputeEnvironmentOrder(entry, context);
|
|
1562
1538
|
});
|
|
1563
1539
|
};
|
|
1564
|
-
const
|
|
1540
|
+
const se_ComputeResource = (input, context) => {
|
|
1565
1541
|
return {
|
|
1566
1542
|
...(input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy }),
|
|
1567
1543
|
...(input.bidPercentage != null && { bidPercentage: input.bidPercentage }),
|
|
1568
1544
|
...(input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus }),
|
|
1569
1545
|
...(input.ec2Configuration != null && {
|
|
1570
|
-
ec2Configuration:
|
|
1546
|
+
ec2Configuration: se_Ec2ConfigurationList(input.ec2Configuration, context),
|
|
1571
1547
|
}),
|
|
1572
1548
|
...(input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair }),
|
|
1573
1549
|
...(input.imageId != null && { imageId: input.imageId }),
|
|
1574
1550
|
...(input.instanceRole != null && { instanceRole: input.instanceRole }),
|
|
1575
|
-
...(input.instanceTypes != null && {
|
|
1576
|
-
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
1577
|
-
}),
|
|
1551
|
+
...(input.instanceTypes != null && { instanceTypes: se_StringList(input.instanceTypes, context) }),
|
|
1578
1552
|
...(input.launchTemplate != null && {
|
|
1579
|
-
launchTemplate:
|
|
1553
|
+
launchTemplate: se_LaunchTemplateSpecification(input.launchTemplate, context),
|
|
1580
1554
|
}),
|
|
1581
1555
|
...(input.maxvCpus != null && { maxvCpus: input.maxvCpus }),
|
|
1582
1556
|
...(input.minvCpus != null && { minvCpus: input.minvCpus }),
|
|
1583
1557
|
...(input.placementGroup != null && { placementGroup: input.placementGroup }),
|
|
1584
|
-
...(input.securityGroupIds != null && {
|
|
1585
|
-
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
1586
|
-
}),
|
|
1558
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_StringList(input.securityGroupIds, context) }),
|
|
1587
1559
|
...(input.spotIamFleetRole != null && { spotIamFleetRole: input.spotIamFleetRole }),
|
|
1588
|
-
...(input.subnets != null && { subnets:
|
|
1589
|
-
...(input.tags != null && { tags:
|
|
1560
|
+
...(input.subnets != null && { subnets: se_StringList(input.subnets, context) }),
|
|
1561
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
1590
1562
|
...(input.type != null && { type: input.type }),
|
|
1591
1563
|
};
|
|
1592
1564
|
};
|
|
1593
|
-
const
|
|
1565
|
+
const se_ComputeResourceUpdate = (input, context) => {
|
|
1594
1566
|
return {
|
|
1595
1567
|
...(input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy }),
|
|
1596
1568
|
...(input.bidPercentage != null && { bidPercentage: input.bidPercentage }),
|
|
1597
1569
|
...(input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus }),
|
|
1598
1570
|
...(input.ec2Configuration != null && {
|
|
1599
|
-
ec2Configuration:
|
|
1571
|
+
ec2Configuration: se_Ec2ConfigurationList(input.ec2Configuration, context),
|
|
1600
1572
|
}),
|
|
1601
1573
|
...(input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair }),
|
|
1602
1574
|
...(input.imageId != null && { imageId: input.imageId }),
|
|
1603
1575
|
...(input.instanceRole != null && { instanceRole: input.instanceRole }),
|
|
1604
|
-
...(input.instanceTypes != null && {
|
|
1605
|
-
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
1606
|
-
}),
|
|
1576
|
+
...(input.instanceTypes != null && { instanceTypes: se_StringList(input.instanceTypes, context) }),
|
|
1607
1577
|
...(input.launchTemplate != null && {
|
|
1608
|
-
launchTemplate:
|
|
1578
|
+
launchTemplate: se_LaunchTemplateSpecification(input.launchTemplate, context),
|
|
1609
1579
|
}),
|
|
1610
1580
|
...(input.maxvCpus != null && { maxvCpus: input.maxvCpus }),
|
|
1611
1581
|
...(input.minvCpus != null && { minvCpus: input.minvCpus }),
|
|
1612
1582
|
...(input.placementGroup != null && { placementGroup: input.placementGroup }),
|
|
1613
|
-
...(input.securityGroupIds != null && {
|
|
1614
|
-
|
|
1615
|
-
}),
|
|
1616
|
-
...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
|
|
1617
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
1583
|
+
...(input.securityGroupIds != null && { securityGroupIds: se_StringList(input.securityGroupIds, context) }),
|
|
1584
|
+
...(input.subnets != null && { subnets: se_StringList(input.subnets, context) }),
|
|
1585
|
+
...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
|
|
1618
1586
|
...(input.type != null && { type: input.type }),
|
|
1619
1587
|
...(input.updateToLatestImageVersion != null && { updateToLatestImageVersion: input.updateToLatestImageVersion }),
|
|
1620
1588
|
};
|
|
1621
1589
|
};
|
|
1622
|
-
const
|
|
1590
|
+
const se_ContainerOverrides = (input, context) => {
|
|
1623
1591
|
return {
|
|
1624
|
-
...(input.command != null && { command:
|
|
1625
|
-
...(input.environment != null && {
|
|
1626
|
-
environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
|
|
1627
|
-
}),
|
|
1592
|
+
...(input.command != null && { command: se_StringList(input.command, context) }),
|
|
1593
|
+
...(input.environment != null && { environment: se_EnvironmentVariables(input.environment, context) }),
|
|
1628
1594
|
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
1629
1595
|
...(input.memory != null && { memory: input.memory }),
|
|
1630
1596
|
...(input.resourceRequirements != null && {
|
|
1631
|
-
resourceRequirements:
|
|
1597
|
+
resourceRequirements: se_ResourceRequirements(input.resourceRequirements, context),
|
|
1632
1598
|
}),
|
|
1633
1599
|
...(input.vcpus != null && { vcpus: input.vcpus }),
|
|
1634
1600
|
};
|
|
1635
1601
|
};
|
|
1636
|
-
const
|
|
1602
|
+
const se_ContainerProperties = (input, context) => {
|
|
1637
1603
|
return {
|
|
1638
|
-
...(input.command != null && { command:
|
|
1639
|
-
...(input.environment != null && {
|
|
1640
|
-
|
|
1641
|
-
}),
|
|
1642
|
-
...(input.ephemeralStorage != null && {
|
|
1643
|
-
ephemeralStorage: serializeAws_restJson1EphemeralStorage(input.ephemeralStorage, context),
|
|
1644
|
-
}),
|
|
1604
|
+
...(input.command != null && { command: se_StringList(input.command, context) }),
|
|
1605
|
+
...(input.environment != null && { environment: se_EnvironmentVariables(input.environment, context) }),
|
|
1606
|
+
...(input.ephemeralStorage != null && { ephemeralStorage: se_EphemeralStorage(input.ephemeralStorage, context) }),
|
|
1645
1607
|
...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
|
|
1646
1608
|
...(input.fargatePlatformConfiguration != null && {
|
|
1647
|
-
fargatePlatformConfiguration:
|
|
1609
|
+
fargatePlatformConfiguration: se_FargatePlatformConfiguration(input.fargatePlatformConfiguration, context),
|
|
1648
1610
|
}),
|
|
1649
1611
|
...(input.image != null && { image: input.image }),
|
|
1650
1612
|
...(input.instanceType != null && { instanceType: input.instanceType }),
|
|
1651
1613
|
...(input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn }),
|
|
1652
|
-
...(input.linuxParameters != null && {
|
|
1653
|
-
|
|
1654
|
-
}),
|
|
1655
|
-
...(input.logConfiguration != null && {
|
|
1656
|
-
logConfiguration: serializeAws_restJson1LogConfiguration(input.logConfiguration, context),
|
|
1657
|
-
}),
|
|
1614
|
+
...(input.linuxParameters != null && { linuxParameters: se_LinuxParameters(input.linuxParameters, context) }),
|
|
1615
|
+
...(input.logConfiguration != null && { logConfiguration: se_LogConfiguration(input.logConfiguration, context) }),
|
|
1658
1616
|
...(input.memory != null && { memory: input.memory }),
|
|
1659
|
-
...(input.mountPoints != null && { mountPoints:
|
|
1617
|
+
...(input.mountPoints != null && { mountPoints: se_MountPoints(input.mountPoints, context) }),
|
|
1660
1618
|
...(input.networkConfiguration != null && {
|
|
1661
|
-
networkConfiguration:
|
|
1619
|
+
networkConfiguration: se_NetworkConfiguration(input.networkConfiguration, context),
|
|
1662
1620
|
}),
|
|
1663
1621
|
...(input.privileged != null && { privileged: input.privileged }),
|
|
1664
1622
|
...(input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
|
|
1665
1623
|
...(input.resourceRequirements != null && {
|
|
1666
|
-
resourceRequirements:
|
|
1624
|
+
resourceRequirements: se_ResourceRequirements(input.resourceRequirements, context),
|
|
1667
1625
|
}),
|
|
1668
|
-
...(input.secrets != null && { secrets:
|
|
1669
|
-
...(input.ulimits != null && { ulimits:
|
|
1626
|
+
...(input.secrets != null && { secrets: se_SecretList(input.secrets, context) }),
|
|
1627
|
+
...(input.ulimits != null && { ulimits: se_Ulimits(input.ulimits, context) }),
|
|
1670
1628
|
...(input.user != null && { user: input.user }),
|
|
1671
1629
|
...(input.vcpus != null && { vcpus: input.vcpus }),
|
|
1672
|
-
...(input.volumes != null && { volumes:
|
|
1630
|
+
...(input.volumes != null && { volumes: se_Volumes(input.volumes, context) }),
|
|
1673
1631
|
};
|
|
1674
1632
|
};
|
|
1675
|
-
const
|
|
1633
|
+
const se_Device = (input, context) => {
|
|
1676
1634
|
return {
|
|
1677
1635
|
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
1678
1636
|
...(input.hostPath != null && { hostPath: input.hostPath }),
|
|
1679
|
-
...(input.permissions != null && {
|
|
1680
|
-
permissions: serializeAws_restJson1DeviceCgroupPermissions(input.permissions, context),
|
|
1681
|
-
}),
|
|
1637
|
+
...(input.permissions != null && { permissions: se_DeviceCgroupPermissions(input.permissions, context) }),
|
|
1682
1638
|
};
|
|
1683
1639
|
};
|
|
1684
|
-
const
|
|
1640
|
+
const se_DeviceCgroupPermissions = (input, context) => {
|
|
1685
1641
|
return input
|
|
1686
1642
|
.filter((e) => e != null)
|
|
1687
1643
|
.map((entry) => {
|
|
1688
1644
|
return entry;
|
|
1689
1645
|
});
|
|
1690
1646
|
};
|
|
1691
|
-
const
|
|
1647
|
+
const se_DevicesList = (input, context) => {
|
|
1692
1648
|
return input
|
|
1693
1649
|
.filter((e) => e != null)
|
|
1694
1650
|
.map((entry) => {
|
|
1695
|
-
return
|
|
1651
|
+
return se_Device(entry, context);
|
|
1696
1652
|
});
|
|
1697
1653
|
};
|
|
1698
|
-
const
|
|
1654
|
+
const se_Ec2Configuration = (input, context) => {
|
|
1699
1655
|
return {
|
|
1700
1656
|
...(input.imageIdOverride != null && { imageIdOverride: input.imageIdOverride }),
|
|
1701
1657
|
...(input.imageKubernetesVersion != null && { imageKubernetesVersion: input.imageKubernetesVersion }),
|
|
1702
1658
|
...(input.imageType != null && { imageType: input.imageType }),
|
|
1703
1659
|
};
|
|
1704
1660
|
};
|
|
1705
|
-
const
|
|
1661
|
+
const se_Ec2ConfigurationList = (input, context) => {
|
|
1706
1662
|
return input
|
|
1707
1663
|
.filter((e) => e != null)
|
|
1708
1664
|
.map((entry) => {
|
|
1709
|
-
return
|
|
1665
|
+
return se_Ec2Configuration(entry, context);
|
|
1710
1666
|
});
|
|
1711
1667
|
};
|
|
1712
|
-
const
|
|
1668
|
+
const se_EFSAuthorizationConfig = (input, context) => {
|
|
1713
1669
|
return {
|
|
1714
1670
|
...(input.accessPointId != null && { accessPointId: input.accessPointId }),
|
|
1715
1671
|
...(input.iam != null && { iam: input.iam }),
|
|
1716
1672
|
};
|
|
1717
1673
|
};
|
|
1718
|
-
const
|
|
1674
|
+
const se_EFSVolumeConfiguration = (input, context) => {
|
|
1719
1675
|
return {
|
|
1720
1676
|
...(input.authorizationConfig != null && {
|
|
1721
|
-
authorizationConfig:
|
|
1677
|
+
authorizationConfig: se_EFSAuthorizationConfig(input.authorizationConfig, context),
|
|
1722
1678
|
}),
|
|
1723
1679
|
...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
|
|
1724
1680
|
...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
|
|
@@ -1726,76 +1682,70 @@ const serializeAws_restJson1EFSVolumeConfiguration = (input, context) => {
|
|
|
1726
1682
|
...(input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }),
|
|
1727
1683
|
};
|
|
1728
1684
|
};
|
|
1729
|
-
const
|
|
1685
|
+
const se_EksConfiguration = (input, context) => {
|
|
1730
1686
|
return {
|
|
1731
1687
|
...(input.eksClusterArn != null && { eksClusterArn: input.eksClusterArn }),
|
|
1732
1688
|
...(input.kubernetesNamespace != null && { kubernetesNamespace: input.kubernetesNamespace }),
|
|
1733
1689
|
};
|
|
1734
1690
|
};
|
|
1735
|
-
const
|
|
1691
|
+
const se_EksContainer = (input, context) => {
|
|
1736
1692
|
return {
|
|
1737
|
-
...(input.args != null && { args:
|
|
1738
|
-
...(input.command != null && { command:
|
|
1739
|
-
...(input.env != null && { env:
|
|
1693
|
+
...(input.args != null && { args: se_StringList(input.args, context) }),
|
|
1694
|
+
...(input.command != null && { command: se_StringList(input.command, context) }),
|
|
1695
|
+
...(input.env != null && { env: se_EksContainerEnvironmentVariables(input.env, context) }),
|
|
1740
1696
|
...(input.image != null && { image: input.image }),
|
|
1741
1697
|
...(input.imagePullPolicy != null && { imagePullPolicy: input.imagePullPolicy }),
|
|
1742
1698
|
...(input.name != null && { name: input.name }),
|
|
1743
|
-
...(input.resources != null && {
|
|
1744
|
-
resources: serializeAws_restJson1EksContainerResourceRequirements(input.resources, context),
|
|
1745
|
-
}),
|
|
1699
|
+
...(input.resources != null && { resources: se_EksContainerResourceRequirements(input.resources, context) }),
|
|
1746
1700
|
...(input.securityContext != null && {
|
|
1747
|
-
securityContext:
|
|
1748
|
-
}),
|
|
1749
|
-
...(input.volumeMounts != null && {
|
|
1750
|
-
volumeMounts: serializeAws_restJson1EksContainerVolumeMounts(input.volumeMounts, context),
|
|
1701
|
+
securityContext: se_EksContainerSecurityContext(input.securityContext, context),
|
|
1751
1702
|
}),
|
|
1703
|
+
...(input.volumeMounts != null && { volumeMounts: se_EksContainerVolumeMounts(input.volumeMounts, context) }),
|
|
1752
1704
|
};
|
|
1753
1705
|
};
|
|
1754
|
-
const
|
|
1706
|
+
const se_EksContainerEnvironmentVariable = (input, context) => {
|
|
1755
1707
|
return {
|
|
1756
1708
|
...(input.name != null && { name: input.name }),
|
|
1757
1709
|
...(input.value != null && { value: input.value }),
|
|
1758
1710
|
};
|
|
1759
1711
|
};
|
|
1760
|
-
const
|
|
1712
|
+
const se_EksContainerEnvironmentVariables = (input, context) => {
|
|
1761
1713
|
return input
|
|
1762
1714
|
.filter((e) => e != null)
|
|
1763
1715
|
.map((entry) => {
|
|
1764
|
-
return
|
|
1716
|
+
return se_EksContainerEnvironmentVariable(entry, context);
|
|
1765
1717
|
});
|
|
1766
1718
|
};
|
|
1767
|
-
const
|
|
1719
|
+
const se_EksContainerOverride = (input, context) => {
|
|
1768
1720
|
return {
|
|
1769
|
-
...(input.args != null && { args:
|
|
1770
|
-
...(input.command != null && { command:
|
|
1771
|
-
...(input.env != null && { env:
|
|
1721
|
+
...(input.args != null && { args: se_StringList(input.args, context) }),
|
|
1722
|
+
...(input.command != null && { command: se_StringList(input.command, context) }),
|
|
1723
|
+
...(input.env != null && { env: se_EksContainerEnvironmentVariables(input.env, context) }),
|
|
1772
1724
|
...(input.image != null && { image: input.image }),
|
|
1773
|
-
...(input.resources != null && {
|
|
1774
|
-
resources: serializeAws_restJson1EksContainerResourceRequirements(input.resources, context),
|
|
1775
|
-
}),
|
|
1725
|
+
...(input.resources != null && { resources: se_EksContainerResourceRequirements(input.resources, context) }),
|
|
1776
1726
|
};
|
|
1777
1727
|
};
|
|
1778
|
-
const
|
|
1728
|
+
const se_EksContainerOverrideList = (input, context) => {
|
|
1779
1729
|
return input
|
|
1780
1730
|
.filter((e) => e != null)
|
|
1781
1731
|
.map((entry) => {
|
|
1782
|
-
return
|
|
1732
|
+
return se_EksContainerOverride(entry, context);
|
|
1783
1733
|
});
|
|
1784
1734
|
};
|
|
1785
|
-
const
|
|
1735
|
+
const se_EksContainerResourceRequirements = (input, context) => {
|
|
1786
1736
|
return {
|
|
1787
|
-
...(input.limits != null && { limits:
|
|
1788
|
-
...(input.requests != null && { requests:
|
|
1737
|
+
...(input.limits != null && { limits: se_EksLimits(input.limits, context) }),
|
|
1738
|
+
...(input.requests != null && { requests: se_EksRequests(input.requests, context) }),
|
|
1789
1739
|
};
|
|
1790
1740
|
};
|
|
1791
|
-
const
|
|
1741
|
+
const se_EksContainers = (input, context) => {
|
|
1792
1742
|
return input
|
|
1793
1743
|
.filter((e) => e != null)
|
|
1794
1744
|
.map((entry) => {
|
|
1795
|
-
return
|
|
1745
|
+
return se_EksContainer(entry, context);
|
|
1796
1746
|
});
|
|
1797
1747
|
};
|
|
1798
|
-
const
|
|
1748
|
+
const se_EksContainerSecurityContext = (input, context) => {
|
|
1799
1749
|
return {
|
|
1800
1750
|
...(input.privileged != null && { privileged: input.privileged }),
|
|
1801
1751
|
...(input.readOnlyRootFilesystem != null && { readOnlyRootFilesystem: input.readOnlyRootFilesystem }),
|
|
@@ -1804,32 +1754,32 @@ const serializeAws_restJson1EksContainerSecurityContext = (input, context) => {
|
|
|
1804
1754
|
...(input.runAsUser != null && { runAsUser: input.runAsUser }),
|
|
1805
1755
|
};
|
|
1806
1756
|
};
|
|
1807
|
-
const
|
|
1757
|
+
const se_EksContainerVolumeMount = (input, context) => {
|
|
1808
1758
|
return {
|
|
1809
1759
|
...(input.mountPath != null && { mountPath: input.mountPath }),
|
|
1810
1760
|
...(input.name != null && { name: input.name }),
|
|
1811
1761
|
...(input.readOnly != null && { readOnly: input.readOnly }),
|
|
1812
1762
|
};
|
|
1813
1763
|
};
|
|
1814
|
-
const
|
|
1764
|
+
const se_EksContainerVolumeMounts = (input, context) => {
|
|
1815
1765
|
return input
|
|
1816
1766
|
.filter((e) => e != null)
|
|
1817
1767
|
.map((entry) => {
|
|
1818
|
-
return
|
|
1768
|
+
return se_EksContainerVolumeMount(entry, context);
|
|
1819
1769
|
});
|
|
1820
1770
|
};
|
|
1821
|
-
const
|
|
1771
|
+
const se_EksEmptyDir = (input, context) => {
|
|
1822
1772
|
return {
|
|
1823
1773
|
...(input.medium != null && { medium: input.medium }),
|
|
1824
1774
|
...(input.sizeLimit != null && { sizeLimit: input.sizeLimit }),
|
|
1825
1775
|
};
|
|
1826
1776
|
};
|
|
1827
|
-
const
|
|
1777
|
+
const se_EksHostPath = (input, context) => {
|
|
1828
1778
|
return {
|
|
1829
1779
|
...(input.path != null && { path: input.path }),
|
|
1830
1780
|
};
|
|
1831
1781
|
};
|
|
1832
|
-
const
|
|
1782
|
+
const se_EksLabelsMap = (input, context) => {
|
|
1833
1783
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1834
1784
|
if (value === null) {
|
|
1835
1785
|
return acc;
|
|
@@ -1838,7 +1788,7 @@ const serializeAws_restJson1EksLabelsMap = (input, context) => {
|
|
|
1838
1788
|
return acc;
|
|
1839
1789
|
}, {});
|
|
1840
1790
|
};
|
|
1841
|
-
const
|
|
1791
|
+
const se_EksLimits = (input, context) => {
|
|
1842
1792
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1843
1793
|
if (value === null) {
|
|
1844
1794
|
return acc;
|
|
@@ -1847,44 +1797,38 @@ const serializeAws_restJson1EksLimits = (input, context) => {
|
|
|
1847
1797
|
return acc;
|
|
1848
1798
|
}, {});
|
|
1849
1799
|
};
|
|
1850
|
-
const
|
|
1800
|
+
const se_EksMetadata = (input, context) => {
|
|
1851
1801
|
return {
|
|
1852
|
-
...(input.labels != null && { labels:
|
|
1802
|
+
...(input.labels != null && { labels: se_EksLabelsMap(input.labels, context) }),
|
|
1853
1803
|
};
|
|
1854
1804
|
};
|
|
1855
|
-
const
|
|
1805
|
+
const se_EksPodProperties = (input, context) => {
|
|
1856
1806
|
return {
|
|
1857
|
-
...(input.containers != null && { containers:
|
|
1807
|
+
...(input.containers != null && { containers: se_EksContainers(input.containers, context) }),
|
|
1858
1808
|
...(input.dnsPolicy != null && { dnsPolicy: input.dnsPolicy }),
|
|
1859
1809
|
...(input.hostNetwork != null && { hostNetwork: input.hostNetwork }),
|
|
1860
|
-
...(input.metadata != null && { metadata:
|
|
1810
|
+
...(input.metadata != null && { metadata: se_EksMetadata(input.metadata, context) }),
|
|
1861
1811
|
...(input.serviceAccountName != null && { serviceAccountName: input.serviceAccountName }),
|
|
1862
|
-
...(input.volumes != null && { volumes:
|
|
1812
|
+
...(input.volumes != null && { volumes: se_EksVolumes(input.volumes, context) }),
|
|
1863
1813
|
};
|
|
1864
1814
|
};
|
|
1865
|
-
const
|
|
1815
|
+
const se_EksPodPropertiesOverride = (input, context) => {
|
|
1866
1816
|
return {
|
|
1867
|
-
...(input.containers != null && {
|
|
1868
|
-
|
|
1869
|
-
}),
|
|
1870
|
-
...(input.metadata != null && { metadata: serializeAws_restJson1EksMetadata(input.metadata, context) }),
|
|
1817
|
+
...(input.containers != null && { containers: se_EksContainerOverrideList(input.containers, context) }),
|
|
1818
|
+
...(input.metadata != null && { metadata: se_EksMetadata(input.metadata, context) }),
|
|
1871
1819
|
};
|
|
1872
1820
|
};
|
|
1873
|
-
const
|
|
1821
|
+
const se_EksProperties = (input, context) => {
|
|
1874
1822
|
return {
|
|
1875
|
-
...(input.podProperties != null && {
|
|
1876
|
-
podProperties: serializeAws_restJson1EksPodProperties(input.podProperties, context),
|
|
1877
|
-
}),
|
|
1823
|
+
...(input.podProperties != null && { podProperties: se_EksPodProperties(input.podProperties, context) }),
|
|
1878
1824
|
};
|
|
1879
1825
|
};
|
|
1880
|
-
const
|
|
1826
|
+
const se_EksPropertiesOverride = (input, context) => {
|
|
1881
1827
|
return {
|
|
1882
|
-
...(input.podProperties != null && {
|
|
1883
|
-
podProperties: serializeAws_restJson1EksPodPropertiesOverride(input.podProperties, context),
|
|
1884
|
-
}),
|
|
1828
|
+
...(input.podProperties != null && { podProperties: se_EksPodPropertiesOverride(input.podProperties, context) }),
|
|
1885
1829
|
};
|
|
1886
1830
|
};
|
|
1887
|
-
const
|
|
1831
|
+
const se_EksRequests = (input, context) => {
|
|
1888
1832
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1889
1833
|
if (value === null) {
|
|
1890
1834
|
return acc;
|
|
@@ -1893,40 +1837,40 @@ const serializeAws_restJson1EksRequests = (input, context) => {
|
|
|
1893
1837
|
return acc;
|
|
1894
1838
|
}, {});
|
|
1895
1839
|
};
|
|
1896
|
-
const
|
|
1840
|
+
const se_EksSecret = (input, context) => {
|
|
1897
1841
|
return {
|
|
1898
1842
|
...(input.optional != null && { optional: input.optional }),
|
|
1899
1843
|
...(input.secretName != null && { secretName: input.secretName }),
|
|
1900
1844
|
};
|
|
1901
1845
|
};
|
|
1902
|
-
const
|
|
1846
|
+
const se_EksVolume = (input, context) => {
|
|
1903
1847
|
return {
|
|
1904
|
-
...(input.emptyDir != null && { emptyDir:
|
|
1905
|
-
...(input.hostPath != null && { hostPath:
|
|
1848
|
+
...(input.emptyDir != null && { emptyDir: se_EksEmptyDir(input.emptyDir, context) }),
|
|
1849
|
+
...(input.hostPath != null && { hostPath: se_EksHostPath(input.hostPath, context) }),
|
|
1906
1850
|
...(input.name != null && { name: input.name }),
|
|
1907
|
-
...(input.secret != null && { secret:
|
|
1851
|
+
...(input.secret != null && { secret: se_EksSecret(input.secret, context) }),
|
|
1908
1852
|
};
|
|
1909
1853
|
};
|
|
1910
|
-
const
|
|
1854
|
+
const se_EksVolumes = (input, context) => {
|
|
1911
1855
|
return input
|
|
1912
1856
|
.filter((e) => e != null)
|
|
1913
1857
|
.map((entry) => {
|
|
1914
|
-
return
|
|
1858
|
+
return se_EksVolume(entry, context);
|
|
1915
1859
|
});
|
|
1916
1860
|
};
|
|
1917
|
-
const
|
|
1861
|
+
const se_EnvironmentVariables = (input, context) => {
|
|
1918
1862
|
return input
|
|
1919
1863
|
.filter((e) => e != null)
|
|
1920
1864
|
.map((entry) => {
|
|
1921
|
-
return
|
|
1865
|
+
return se_KeyValuePair(entry, context);
|
|
1922
1866
|
});
|
|
1923
1867
|
};
|
|
1924
|
-
const
|
|
1868
|
+
const se_EphemeralStorage = (input, context) => {
|
|
1925
1869
|
return {
|
|
1926
1870
|
...(input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }),
|
|
1927
1871
|
};
|
|
1928
1872
|
};
|
|
1929
|
-
const
|
|
1873
|
+
const se_EvaluateOnExit = (input, context) => {
|
|
1930
1874
|
return {
|
|
1931
1875
|
...(input.action != null && { action: input.action }),
|
|
1932
1876
|
...(input.onExitCode != null && { onExitCode: input.onExitCode }),
|
|
@@ -1934,96 +1878,94 @@ const serializeAws_restJson1EvaluateOnExit = (input, context) => {
|
|
|
1934
1878
|
...(input.onStatusReason != null && { onStatusReason: input.onStatusReason }),
|
|
1935
1879
|
};
|
|
1936
1880
|
};
|
|
1937
|
-
const
|
|
1881
|
+
const se_EvaluateOnExitList = (input, context) => {
|
|
1938
1882
|
return input
|
|
1939
1883
|
.filter((e) => e != null)
|
|
1940
1884
|
.map((entry) => {
|
|
1941
|
-
return
|
|
1885
|
+
return se_EvaluateOnExit(entry, context);
|
|
1942
1886
|
});
|
|
1943
1887
|
};
|
|
1944
|
-
const
|
|
1888
|
+
const se_FairsharePolicy = (input, context) => {
|
|
1945
1889
|
return {
|
|
1946
1890
|
...(input.computeReservation != null && { computeReservation: input.computeReservation }),
|
|
1947
1891
|
...(input.shareDecaySeconds != null && { shareDecaySeconds: input.shareDecaySeconds }),
|
|
1948
1892
|
...(input.shareDistribution != null && {
|
|
1949
|
-
shareDistribution:
|
|
1893
|
+
shareDistribution: se_ShareAttributesList(input.shareDistribution, context),
|
|
1950
1894
|
}),
|
|
1951
1895
|
};
|
|
1952
1896
|
};
|
|
1953
|
-
const
|
|
1897
|
+
const se_FargatePlatformConfiguration = (input, context) => {
|
|
1954
1898
|
return {
|
|
1955
1899
|
...(input.platformVersion != null && { platformVersion: input.platformVersion }),
|
|
1956
1900
|
};
|
|
1957
1901
|
};
|
|
1958
|
-
const
|
|
1902
|
+
const se_Host = (input, context) => {
|
|
1959
1903
|
return {
|
|
1960
1904
|
...(input.sourcePath != null && { sourcePath: input.sourcePath }),
|
|
1961
1905
|
};
|
|
1962
1906
|
};
|
|
1963
|
-
const
|
|
1907
|
+
const se_JobDependency = (input, context) => {
|
|
1964
1908
|
return {
|
|
1965
1909
|
...(input.jobId != null && { jobId: input.jobId }),
|
|
1966
1910
|
...(input.type != null && { type: input.type }),
|
|
1967
1911
|
};
|
|
1968
1912
|
};
|
|
1969
|
-
const
|
|
1913
|
+
const se_JobDependencyList = (input, context) => {
|
|
1970
1914
|
return input
|
|
1971
1915
|
.filter((e) => e != null)
|
|
1972
1916
|
.map((entry) => {
|
|
1973
|
-
return
|
|
1917
|
+
return se_JobDependency(entry, context);
|
|
1974
1918
|
});
|
|
1975
1919
|
};
|
|
1976
|
-
const
|
|
1920
|
+
const se_JobTimeout = (input, context) => {
|
|
1977
1921
|
return {
|
|
1978
1922
|
...(input.attemptDurationSeconds != null && { attemptDurationSeconds: input.attemptDurationSeconds }),
|
|
1979
1923
|
};
|
|
1980
1924
|
};
|
|
1981
|
-
const
|
|
1925
|
+
const se_KeyValuePair = (input, context) => {
|
|
1982
1926
|
return {
|
|
1983
1927
|
...(input.name != null && { name: input.name }),
|
|
1984
1928
|
...(input.value != null && { value: input.value }),
|
|
1985
1929
|
};
|
|
1986
1930
|
};
|
|
1987
|
-
const
|
|
1931
|
+
const se_KeyValuesPair = (input, context) => {
|
|
1988
1932
|
return {
|
|
1989
1933
|
...(input.name != null && { name: input.name }),
|
|
1990
|
-
...(input.values != null && { values:
|
|
1934
|
+
...(input.values != null && { values: se_StringList(input.values, context) }),
|
|
1991
1935
|
};
|
|
1992
1936
|
};
|
|
1993
|
-
const
|
|
1937
|
+
const se_LaunchTemplateSpecification = (input, context) => {
|
|
1994
1938
|
return {
|
|
1995
1939
|
...(input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId }),
|
|
1996
1940
|
...(input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName }),
|
|
1997
1941
|
...(input.version != null && { version: input.version }),
|
|
1998
1942
|
};
|
|
1999
1943
|
};
|
|
2000
|
-
const
|
|
1944
|
+
const se_LinuxParameters = (input, context) => {
|
|
2001
1945
|
return {
|
|
2002
|
-
...(input.devices != null && { devices:
|
|
1946
|
+
...(input.devices != null && { devices: se_DevicesList(input.devices, context) }),
|
|
2003
1947
|
...(input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled }),
|
|
2004
1948
|
...(input.maxSwap != null && { maxSwap: input.maxSwap }),
|
|
2005
1949
|
...(input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize }),
|
|
2006
1950
|
...(input.swappiness != null && { swappiness: input.swappiness }),
|
|
2007
|
-
...(input.tmpfs != null && { tmpfs:
|
|
1951
|
+
...(input.tmpfs != null && { tmpfs: se_TmpfsList(input.tmpfs, context) }),
|
|
2008
1952
|
};
|
|
2009
1953
|
};
|
|
2010
|
-
const
|
|
1954
|
+
const se_ListJobsFilterList = (input, context) => {
|
|
2011
1955
|
return input
|
|
2012
1956
|
.filter((e) => e != null)
|
|
2013
1957
|
.map((entry) => {
|
|
2014
|
-
return
|
|
1958
|
+
return se_KeyValuesPair(entry, context);
|
|
2015
1959
|
});
|
|
2016
1960
|
};
|
|
2017
|
-
const
|
|
1961
|
+
const se_LogConfiguration = (input, context) => {
|
|
2018
1962
|
return {
|
|
2019
1963
|
...(input.logDriver != null && { logDriver: input.logDriver }),
|
|
2020
|
-
...(input.options != null && { options:
|
|
2021
|
-
...(input.secretOptions != null && {
|
|
2022
|
-
secretOptions: serializeAws_restJson1SecretList(input.secretOptions, context),
|
|
2023
|
-
}),
|
|
1964
|
+
...(input.options != null && { options: se_LogConfigurationOptionsMap(input.options, context) }),
|
|
1965
|
+
...(input.secretOptions != null && { secretOptions: se_SecretList(input.secretOptions, context) }),
|
|
2024
1966
|
};
|
|
2025
1967
|
};
|
|
2026
|
-
const
|
|
1968
|
+
const se_LogConfigurationOptionsMap = (input, context) => {
|
|
2027
1969
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2028
1970
|
if (value === null) {
|
|
2029
1971
|
return acc;
|
|
@@ -2032,71 +1974,71 @@ const serializeAws_restJson1LogConfigurationOptionsMap = (input, context) => {
|
|
|
2032
1974
|
return acc;
|
|
2033
1975
|
}, {});
|
|
2034
1976
|
};
|
|
2035
|
-
const
|
|
1977
|
+
const se_MountPoint = (input, context) => {
|
|
2036
1978
|
return {
|
|
2037
1979
|
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
2038
1980
|
...(input.readOnly != null && { readOnly: input.readOnly }),
|
|
2039
1981
|
...(input.sourceVolume != null && { sourceVolume: input.sourceVolume }),
|
|
2040
1982
|
};
|
|
2041
1983
|
};
|
|
2042
|
-
const
|
|
1984
|
+
const se_MountPoints = (input, context) => {
|
|
2043
1985
|
return input
|
|
2044
1986
|
.filter((e) => e != null)
|
|
2045
1987
|
.map((entry) => {
|
|
2046
|
-
return
|
|
1988
|
+
return se_MountPoint(entry, context);
|
|
2047
1989
|
});
|
|
2048
1990
|
};
|
|
2049
|
-
const
|
|
1991
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
2050
1992
|
return {
|
|
2051
1993
|
...(input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }),
|
|
2052
1994
|
};
|
|
2053
1995
|
};
|
|
2054
|
-
const
|
|
1996
|
+
const se_NodeOverrides = (input, context) => {
|
|
2055
1997
|
return {
|
|
2056
1998
|
...(input.nodePropertyOverrides != null && {
|
|
2057
|
-
nodePropertyOverrides:
|
|
1999
|
+
nodePropertyOverrides: se_NodePropertyOverrides(input.nodePropertyOverrides, context),
|
|
2058
2000
|
}),
|
|
2059
2001
|
...(input.numNodes != null && { numNodes: input.numNodes }),
|
|
2060
2002
|
};
|
|
2061
2003
|
};
|
|
2062
|
-
const
|
|
2004
|
+
const se_NodeProperties = (input, context) => {
|
|
2063
2005
|
return {
|
|
2064
2006
|
...(input.mainNode != null && { mainNode: input.mainNode }),
|
|
2065
2007
|
...(input.nodeRangeProperties != null && {
|
|
2066
|
-
nodeRangeProperties:
|
|
2008
|
+
nodeRangeProperties: se_NodeRangeProperties(input.nodeRangeProperties, context),
|
|
2067
2009
|
}),
|
|
2068
2010
|
...(input.numNodes != null && { numNodes: input.numNodes }),
|
|
2069
2011
|
};
|
|
2070
2012
|
};
|
|
2071
|
-
const
|
|
2013
|
+
const se_NodePropertyOverride = (input, context) => {
|
|
2072
2014
|
return {
|
|
2073
2015
|
...(input.containerOverrides != null && {
|
|
2074
|
-
containerOverrides:
|
|
2016
|
+
containerOverrides: se_ContainerOverrides(input.containerOverrides, context),
|
|
2075
2017
|
}),
|
|
2076
2018
|
...(input.targetNodes != null && { targetNodes: input.targetNodes }),
|
|
2077
2019
|
};
|
|
2078
2020
|
};
|
|
2079
|
-
const
|
|
2021
|
+
const se_NodePropertyOverrides = (input, context) => {
|
|
2080
2022
|
return input
|
|
2081
2023
|
.filter((e) => e != null)
|
|
2082
2024
|
.map((entry) => {
|
|
2083
|
-
return
|
|
2025
|
+
return se_NodePropertyOverride(entry, context);
|
|
2084
2026
|
});
|
|
2085
2027
|
};
|
|
2086
|
-
const
|
|
2028
|
+
const se_NodeRangeProperties = (input, context) => {
|
|
2087
2029
|
return input
|
|
2088
2030
|
.filter((e) => e != null)
|
|
2089
2031
|
.map((entry) => {
|
|
2090
|
-
return
|
|
2032
|
+
return se_NodeRangeProperty(entry, context);
|
|
2091
2033
|
});
|
|
2092
2034
|
};
|
|
2093
|
-
const
|
|
2035
|
+
const se_NodeRangeProperty = (input, context) => {
|
|
2094
2036
|
return {
|
|
2095
|
-
...(input.container != null && { container:
|
|
2037
|
+
...(input.container != null && { container: se_ContainerProperties(input.container, context) }),
|
|
2096
2038
|
...(input.targetNodes != null && { targetNodes: input.targetNodes }),
|
|
2097
2039
|
};
|
|
2098
2040
|
};
|
|
2099
|
-
const
|
|
2041
|
+
const se_ParametersMap = (input, context) => {
|
|
2100
2042
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2101
2043
|
if (value === null) {
|
|
2102
2044
|
return acc;
|
|
@@ -2105,68 +2047,66 @@ const serializeAws_restJson1ParametersMap = (input, context) => {
|
|
|
2105
2047
|
return acc;
|
|
2106
2048
|
}, {});
|
|
2107
2049
|
};
|
|
2108
|
-
const
|
|
2050
|
+
const se_PlatformCapabilityList = (input, context) => {
|
|
2109
2051
|
return input
|
|
2110
2052
|
.filter((e) => e != null)
|
|
2111
2053
|
.map((entry) => {
|
|
2112
2054
|
return entry;
|
|
2113
2055
|
});
|
|
2114
2056
|
};
|
|
2115
|
-
const
|
|
2057
|
+
const se_ResourceRequirement = (input, context) => {
|
|
2116
2058
|
return {
|
|
2117
2059
|
...(input.type != null && { type: input.type }),
|
|
2118
2060
|
...(input.value != null && { value: input.value }),
|
|
2119
2061
|
};
|
|
2120
2062
|
};
|
|
2121
|
-
const
|
|
2063
|
+
const se_ResourceRequirements = (input, context) => {
|
|
2122
2064
|
return input
|
|
2123
2065
|
.filter((e) => e != null)
|
|
2124
2066
|
.map((entry) => {
|
|
2125
|
-
return
|
|
2067
|
+
return se_ResourceRequirement(entry, context);
|
|
2126
2068
|
});
|
|
2127
2069
|
};
|
|
2128
|
-
const
|
|
2070
|
+
const se_RetryStrategy = (input, context) => {
|
|
2129
2071
|
return {
|
|
2130
2072
|
...(input.attempts != null && { attempts: input.attempts }),
|
|
2131
|
-
...(input.evaluateOnExit != null && {
|
|
2132
|
-
evaluateOnExit: serializeAws_restJson1EvaluateOnExitList(input.evaluateOnExit, context),
|
|
2133
|
-
}),
|
|
2073
|
+
...(input.evaluateOnExit != null && { evaluateOnExit: se_EvaluateOnExitList(input.evaluateOnExit, context) }),
|
|
2134
2074
|
};
|
|
2135
2075
|
};
|
|
2136
|
-
const
|
|
2076
|
+
const se_Secret = (input, context) => {
|
|
2137
2077
|
return {
|
|
2138
2078
|
...(input.name != null && { name: input.name }),
|
|
2139
2079
|
...(input.valueFrom != null && { valueFrom: input.valueFrom }),
|
|
2140
2080
|
};
|
|
2141
2081
|
};
|
|
2142
|
-
const
|
|
2082
|
+
const se_SecretList = (input, context) => {
|
|
2143
2083
|
return input
|
|
2144
2084
|
.filter((e) => e != null)
|
|
2145
2085
|
.map((entry) => {
|
|
2146
|
-
return
|
|
2086
|
+
return se_Secret(entry, context);
|
|
2147
2087
|
});
|
|
2148
2088
|
};
|
|
2149
|
-
const
|
|
2089
|
+
const se_ShareAttributes = (input, context) => {
|
|
2150
2090
|
return {
|
|
2151
2091
|
...(input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier }),
|
|
2152
2092
|
...(input.weightFactor != null && { weightFactor: (0, smithy_client_1.serializeFloat)(input.weightFactor) }),
|
|
2153
2093
|
};
|
|
2154
2094
|
};
|
|
2155
|
-
const
|
|
2095
|
+
const se_ShareAttributesList = (input, context) => {
|
|
2156
2096
|
return input
|
|
2157
2097
|
.filter((e) => e != null)
|
|
2158
2098
|
.map((entry) => {
|
|
2159
|
-
return
|
|
2099
|
+
return se_ShareAttributes(entry, context);
|
|
2160
2100
|
});
|
|
2161
2101
|
};
|
|
2162
|
-
const
|
|
2102
|
+
const se_StringList = (input, context) => {
|
|
2163
2103
|
return input
|
|
2164
2104
|
.filter((e) => e != null)
|
|
2165
2105
|
.map((entry) => {
|
|
2166
2106
|
return entry;
|
|
2167
2107
|
});
|
|
2168
2108
|
};
|
|
2169
|
-
const
|
|
2109
|
+
const se_TagrisTagsMap = (input, context) => {
|
|
2170
2110
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2171
2111
|
if (value === null) {
|
|
2172
2112
|
return acc;
|
|
@@ -2175,7 +2115,7 @@ const serializeAws_restJson1TagrisTagsMap = (input, context) => {
|
|
|
2175
2115
|
return acc;
|
|
2176
2116
|
}, {});
|
|
2177
2117
|
};
|
|
2178
|
-
const
|
|
2118
|
+
const se_TagsMap = (input, context) => {
|
|
2179
2119
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2180
2120
|
if (value === null) {
|
|
2181
2121
|
return acc;
|
|
@@ -2184,57 +2124,57 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
2184
2124
|
return acc;
|
|
2185
2125
|
}, {});
|
|
2186
2126
|
};
|
|
2187
|
-
const
|
|
2127
|
+
const se_Tmpfs = (input, context) => {
|
|
2188
2128
|
return {
|
|
2189
2129
|
...(input.containerPath != null && { containerPath: input.containerPath }),
|
|
2190
|
-
...(input.mountOptions != null && { mountOptions:
|
|
2130
|
+
...(input.mountOptions != null && { mountOptions: se_StringList(input.mountOptions, context) }),
|
|
2191
2131
|
...(input.size != null && { size: input.size }),
|
|
2192
2132
|
};
|
|
2193
2133
|
};
|
|
2194
|
-
const
|
|
2134
|
+
const se_TmpfsList = (input, context) => {
|
|
2195
2135
|
return input
|
|
2196
2136
|
.filter((e) => e != null)
|
|
2197
2137
|
.map((entry) => {
|
|
2198
|
-
return
|
|
2138
|
+
return se_Tmpfs(entry, context);
|
|
2199
2139
|
});
|
|
2200
2140
|
};
|
|
2201
|
-
const
|
|
2141
|
+
const se_Ulimit = (input, context) => {
|
|
2202
2142
|
return {
|
|
2203
2143
|
...(input.hardLimit != null && { hardLimit: input.hardLimit }),
|
|
2204
2144
|
...(input.name != null && { name: input.name }),
|
|
2205
2145
|
...(input.softLimit != null && { softLimit: input.softLimit }),
|
|
2206
2146
|
};
|
|
2207
2147
|
};
|
|
2208
|
-
const
|
|
2148
|
+
const se_Ulimits = (input, context) => {
|
|
2209
2149
|
return input
|
|
2210
2150
|
.filter((e) => e != null)
|
|
2211
2151
|
.map((entry) => {
|
|
2212
|
-
return
|
|
2152
|
+
return se_Ulimit(entry, context);
|
|
2213
2153
|
});
|
|
2214
2154
|
};
|
|
2215
|
-
const
|
|
2155
|
+
const se_UpdatePolicy = (input, context) => {
|
|
2216
2156
|
return {
|
|
2217
2157
|
...(input.jobExecutionTimeoutMinutes != null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes }),
|
|
2218
2158
|
...(input.terminateJobsOnUpdate != null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }),
|
|
2219
2159
|
};
|
|
2220
2160
|
};
|
|
2221
|
-
const
|
|
2161
|
+
const se_Volume = (input, context) => {
|
|
2222
2162
|
return {
|
|
2223
2163
|
...(input.efsVolumeConfiguration != null && {
|
|
2224
|
-
efsVolumeConfiguration:
|
|
2164
|
+
efsVolumeConfiguration: se_EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
|
|
2225
2165
|
}),
|
|
2226
|
-
...(input.host != null && { host:
|
|
2166
|
+
...(input.host != null && { host: se_Host(input.host, context) }),
|
|
2227
2167
|
...(input.name != null && { name: input.name }),
|
|
2228
2168
|
};
|
|
2229
2169
|
};
|
|
2230
|
-
const
|
|
2170
|
+
const se_Volumes = (input, context) => {
|
|
2231
2171
|
return input
|
|
2232
2172
|
.filter((e) => e != null)
|
|
2233
2173
|
.map((entry) => {
|
|
2234
|
-
return
|
|
2174
|
+
return se_Volume(entry, context);
|
|
2235
2175
|
});
|
|
2236
2176
|
};
|
|
2237
|
-
const
|
|
2177
|
+
const de_ArrayJobStatusSummary = (output, context) => {
|
|
2238
2178
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2239
2179
|
if (value === null) {
|
|
2240
2180
|
return acc;
|
|
@@ -2243,232 +2183,190 @@ const deserializeAws_restJson1ArrayJobStatusSummary = (output, context) => {
|
|
|
2243
2183
|
return acc;
|
|
2244
2184
|
}, {});
|
|
2245
2185
|
};
|
|
2246
|
-
const
|
|
2186
|
+
const de_ArrayPropertiesDetail = (output, context) => {
|
|
2247
2187
|
return {
|
|
2248
2188
|
index: (0, smithy_client_1.expectInt32)(output.index),
|
|
2249
2189
|
size: (0, smithy_client_1.expectInt32)(output.size),
|
|
2250
|
-
statusSummary: output.statusSummary != null
|
|
2251
|
-
? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
|
|
2252
|
-
: undefined,
|
|
2190
|
+
statusSummary: output.statusSummary != null ? de_ArrayJobStatusSummary(output.statusSummary, context) : undefined,
|
|
2253
2191
|
};
|
|
2254
2192
|
};
|
|
2255
|
-
const
|
|
2193
|
+
const de_ArrayPropertiesSummary = (output, context) => {
|
|
2256
2194
|
return {
|
|
2257
2195
|
index: (0, smithy_client_1.expectInt32)(output.index),
|
|
2258
2196
|
size: (0, smithy_client_1.expectInt32)(output.size),
|
|
2259
2197
|
};
|
|
2260
2198
|
};
|
|
2261
|
-
const
|
|
2199
|
+
const de_AttemptContainerDetail = (output, context) => {
|
|
2262
2200
|
return {
|
|
2263
2201
|
containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
|
|
2264
2202
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2265
2203
|
logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
|
|
2266
|
-
networkInterfaces: output.networkInterfaces != null
|
|
2267
|
-
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2268
|
-
: undefined,
|
|
2204
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaceList(output.networkInterfaces, context) : undefined,
|
|
2269
2205
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2270
2206
|
taskArn: (0, smithy_client_1.expectString)(output.taskArn),
|
|
2271
2207
|
};
|
|
2272
2208
|
};
|
|
2273
|
-
const
|
|
2209
|
+
const de_AttemptDetail = (output, context) => {
|
|
2274
2210
|
return {
|
|
2275
|
-
container: output.container != null ?
|
|
2211
|
+
container: output.container != null ? de_AttemptContainerDetail(output.container, context) : undefined,
|
|
2276
2212
|
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
2277
2213
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2278
2214
|
stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
|
|
2279
2215
|
};
|
|
2280
2216
|
};
|
|
2281
|
-
const
|
|
2217
|
+
const de_AttemptDetails = (output, context) => {
|
|
2282
2218
|
const retVal = (output || [])
|
|
2283
2219
|
.filter((e) => e != null)
|
|
2284
2220
|
.map((entry) => {
|
|
2285
2221
|
if (entry === null) {
|
|
2286
2222
|
return null;
|
|
2287
2223
|
}
|
|
2288
|
-
return
|
|
2224
|
+
return de_AttemptDetail(entry, context);
|
|
2289
2225
|
});
|
|
2290
2226
|
return retVal;
|
|
2291
2227
|
};
|
|
2292
|
-
const
|
|
2228
|
+
const de_ComputeEnvironmentDetail = (output, context) => {
|
|
2293
2229
|
return {
|
|
2294
2230
|
computeEnvironmentArn: (0, smithy_client_1.expectString)(output.computeEnvironmentArn),
|
|
2295
2231
|
computeEnvironmentName: (0, smithy_client_1.expectString)(output.computeEnvironmentName),
|
|
2296
|
-
computeResources: output.computeResources != null
|
|
2297
|
-
? deserializeAws_restJson1ComputeResource(output.computeResources, context)
|
|
2298
|
-
: undefined,
|
|
2232
|
+
computeResources: output.computeResources != null ? de_ComputeResource(output.computeResources, context) : undefined,
|
|
2299
2233
|
containerOrchestrationType: (0, smithy_client_1.expectString)(output.containerOrchestrationType),
|
|
2300
2234
|
ecsClusterArn: (0, smithy_client_1.expectString)(output.ecsClusterArn),
|
|
2301
|
-
eksConfiguration: output.eksConfiguration != null
|
|
2302
|
-
? deserializeAws_restJson1EksConfiguration(output.eksConfiguration, context)
|
|
2303
|
-
: undefined,
|
|
2235
|
+
eksConfiguration: output.eksConfiguration != null ? de_EksConfiguration(output.eksConfiguration, context) : undefined,
|
|
2304
2236
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
2305
2237
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2306
2238
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2307
2239
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2308
|
-
tags: output.tags != null ?
|
|
2240
|
+
tags: output.tags != null ? de_TagrisTagsMap(output.tags, context) : undefined,
|
|
2309
2241
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2310
2242
|
unmanagedvCpus: (0, smithy_client_1.expectInt32)(output.unmanagedvCpus),
|
|
2311
|
-
updatePolicy: output.updatePolicy != null ?
|
|
2243
|
+
updatePolicy: output.updatePolicy != null ? de_UpdatePolicy(output.updatePolicy, context) : undefined,
|
|
2312
2244
|
uuid: (0, smithy_client_1.expectString)(output.uuid),
|
|
2313
2245
|
};
|
|
2314
2246
|
};
|
|
2315
|
-
const
|
|
2247
|
+
const de_ComputeEnvironmentDetailList = (output, context) => {
|
|
2316
2248
|
const retVal = (output || [])
|
|
2317
2249
|
.filter((e) => e != null)
|
|
2318
2250
|
.map((entry) => {
|
|
2319
2251
|
if (entry === null) {
|
|
2320
2252
|
return null;
|
|
2321
2253
|
}
|
|
2322
|
-
return
|
|
2254
|
+
return de_ComputeEnvironmentDetail(entry, context);
|
|
2323
2255
|
});
|
|
2324
2256
|
return retVal;
|
|
2325
2257
|
};
|
|
2326
|
-
const
|
|
2258
|
+
const de_ComputeEnvironmentOrder = (output, context) => {
|
|
2327
2259
|
return {
|
|
2328
2260
|
computeEnvironment: (0, smithy_client_1.expectString)(output.computeEnvironment),
|
|
2329
2261
|
order: (0, smithy_client_1.expectInt32)(output.order),
|
|
2330
2262
|
};
|
|
2331
2263
|
};
|
|
2332
|
-
const
|
|
2264
|
+
const de_ComputeEnvironmentOrders = (output, context) => {
|
|
2333
2265
|
const retVal = (output || [])
|
|
2334
2266
|
.filter((e) => e != null)
|
|
2335
2267
|
.map((entry) => {
|
|
2336
2268
|
if (entry === null) {
|
|
2337
2269
|
return null;
|
|
2338
2270
|
}
|
|
2339
|
-
return
|
|
2271
|
+
return de_ComputeEnvironmentOrder(entry, context);
|
|
2340
2272
|
});
|
|
2341
2273
|
return retVal;
|
|
2342
2274
|
};
|
|
2343
|
-
const
|
|
2275
|
+
const de_ComputeResource = (output, context) => {
|
|
2344
2276
|
return {
|
|
2345
2277
|
allocationStrategy: (0, smithy_client_1.expectString)(output.allocationStrategy),
|
|
2346
2278
|
bidPercentage: (0, smithy_client_1.expectInt32)(output.bidPercentage),
|
|
2347
2279
|
desiredvCpus: (0, smithy_client_1.expectInt32)(output.desiredvCpus),
|
|
2348
|
-
ec2Configuration: output.ec2Configuration != null
|
|
2349
|
-
? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
|
|
2350
|
-
: undefined,
|
|
2280
|
+
ec2Configuration: output.ec2Configuration != null ? de_Ec2ConfigurationList(output.ec2Configuration, context) : undefined,
|
|
2351
2281
|
ec2KeyPair: (0, smithy_client_1.expectString)(output.ec2KeyPair),
|
|
2352
2282
|
imageId: (0, smithy_client_1.expectString)(output.imageId),
|
|
2353
2283
|
instanceRole: (0, smithy_client_1.expectString)(output.instanceRole),
|
|
2354
|
-
instanceTypes: output.instanceTypes != null ?
|
|
2355
|
-
launchTemplate: output.launchTemplate != null
|
|
2356
|
-
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
2357
|
-
: undefined,
|
|
2284
|
+
instanceTypes: output.instanceTypes != null ? de_StringList(output.instanceTypes, context) : undefined,
|
|
2285
|
+
launchTemplate: output.launchTemplate != null ? de_LaunchTemplateSpecification(output.launchTemplate, context) : undefined,
|
|
2358
2286
|
maxvCpus: (0, smithy_client_1.expectInt32)(output.maxvCpus),
|
|
2359
2287
|
minvCpus: (0, smithy_client_1.expectInt32)(output.minvCpus),
|
|
2360
2288
|
placementGroup: (0, smithy_client_1.expectString)(output.placementGroup),
|
|
2361
|
-
securityGroupIds: output.securityGroupIds != null
|
|
2362
|
-
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
2363
|
-
: undefined,
|
|
2289
|
+
securityGroupIds: output.securityGroupIds != null ? de_StringList(output.securityGroupIds, context) : undefined,
|
|
2364
2290
|
spotIamFleetRole: (0, smithy_client_1.expectString)(output.spotIamFleetRole),
|
|
2365
|
-
subnets: output.subnets != null ?
|
|
2366
|
-
tags: output.tags != null ?
|
|
2291
|
+
subnets: output.subnets != null ? de_StringList(output.subnets, context) : undefined,
|
|
2292
|
+
tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
|
|
2367
2293
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2368
2294
|
};
|
|
2369
2295
|
};
|
|
2370
|
-
const
|
|
2296
|
+
const de_ContainerDetail = (output, context) => {
|
|
2371
2297
|
return {
|
|
2372
|
-
command: output.command != null ?
|
|
2298
|
+
command: output.command != null ? de_StringList(output.command, context) : undefined,
|
|
2373
2299
|
containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
|
|
2374
|
-
environment: output.environment != null
|
|
2375
|
-
|
|
2376
|
-
: undefined,
|
|
2377
|
-
ephemeralStorage: output.ephemeralStorage != null
|
|
2378
|
-
? deserializeAws_restJson1EphemeralStorage(output.ephemeralStorage, context)
|
|
2379
|
-
: undefined,
|
|
2300
|
+
environment: output.environment != null ? de_EnvironmentVariables(output.environment, context) : undefined,
|
|
2301
|
+
ephemeralStorage: output.ephemeralStorage != null ? de_EphemeralStorage(output.ephemeralStorage, context) : undefined,
|
|
2380
2302
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
2381
2303
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2382
2304
|
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2383
|
-
?
|
|
2305
|
+
? de_FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2384
2306
|
: undefined,
|
|
2385
2307
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
2386
2308
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
2387
2309
|
jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
|
|
2388
|
-
linuxParameters: output.linuxParameters != null
|
|
2389
|
-
|
|
2390
|
-
: undefined,
|
|
2391
|
-
logConfiguration: output.logConfiguration != null
|
|
2392
|
-
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2393
|
-
: undefined,
|
|
2310
|
+
linuxParameters: output.linuxParameters != null ? de_LinuxParameters(output.linuxParameters, context) : undefined,
|
|
2311
|
+
logConfiguration: output.logConfiguration != null ? de_LogConfiguration(output.logConfiguration, context) : undefined,
|
|
2394
2312
|
logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
|
|
2395
2313
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
2396
|
-
mountPoints: output.mountPoints != null ?
|
|
2397
|
-
networkConfiguration: output.networkConfiguration != null
|
|
2398
|
-
|
|
2399
|
-
: undefined,
|
|
2400
|
-
networkInterfaces: output.networkInterfaces != null
|
|
2401
|
-
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2402
|
-
: undefined,
|
|
2314
|
+
mountPoints: output.mountPoints != null ? de_MountPoints(output.mountPoints, context) : undefined,
|
|
2315
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
2316
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaceList(output.networkInterfaces, context) : undefined,
|
|
2403
2317
|
privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
2404
2318
|
readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
|
|
2405
2319
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2406
|
-
resourceRequirements: output.resourceRequirements != null
|
|
2407
|
-
|
|
2408
|
-
: undefined,
|
|
2409
|
-
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2320
|
+
resourceRequirements: output.resourceRequirements != null ? de_ResourceRequirements(output.resourceRequirements, context) : undefined,
|
|
2321
|
+
secrets: output.secrets != null ? de_SecretList(output.secrets, context) : undefined,
|
|
2410
2322
|
taskArn: (0, smithy_client_1.expectString)(output.taskArn),
|
|
2411
|
-
ulimits: output.ulimits != null ?
|
|
2323
|
+
ulimits: output.ulimits != null ? de_Ulimits(output.ulimits, context) : undefined,
|
|
2412
2324
|
user: (0, smithy_client_1.expectString)(output.user),
|
|
2413
2325
|
vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
|
|
2414
|
-
volumes: output.volumes != null ?
|
|
2326
|
+
volumes: output.volumes != null ? de_Volumes(output.volumes, context) : undefined,
|
|
2415
2327
|
};
|
|
2416
2328
|
};
|
|
2417
|
-
const
|
|
2329
|
+
const de_ContainerProperties = (output, context) => {
|
|
2418
2330
|
return {
|
|
2419
|
-
command: output.command != null ?
|
|
2420
|
-
environment: output.environment != null
|
|
2421
|
-
|
|
2422
|
-
: undefined,
|
|
2423
|
-
ephemeralStorage: output.ephemeralStorage != null
|
|
2424
|
-
? deserializeAws_restJson1EphemeralStorage(output.ephemeralStorage, context)
|
|
2425
|
-
: undefined,
|
|
2331
|
+
command: output.command != null ? de_StringList(output.command, context) : undefined,
|
|
2332
|
+
environment: output.environment != null ? de_EnvironmentVariables(output.environment, context) : undefined,
|
|
2333
|
+
ephemeralStorage: output.ephemeralStorage != null ? de_EphemeralStorage(output.ephemeralStorage, context) : undefined,
|
|
2426
2334
|
executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
|
|
2427
2335
|
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2428
|
-
?
|
|
2336
|
+
? de_FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2429
2337
|
: undefined,
|
|
2430
2338
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
2431
2339
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
2432
2340
|
jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
|
|
2433
|
-
linuxParameters: output.linuxParameters != null
|
|
2434
|
-
|
|
2435
|
-
: undefined,
|
|
2436
|
-
logConfiguration: output.logConfiguration != null
|
|
2437
|
-
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2438
|
-
: undefined,
|
|
2341
|
+
linuxParameters: output.linuxParameters != null ? de_LinuxParameters(output.linuxParameters, context) : undefined,
|
|
2342
|
+
logConfiguration: output.logConfiguration != null ? de_LogConfiguration(output.logConfiguration, context) : undefined,
|
|
2439
2343
|
memory: (0, smithy_client_1.expectInt32)(output.memory),
|
|
2440
|
-
mountPoints: output.mountPoints != null ?
|
|
2441
|
-
networkConfiguration: output.networkConfiguration != null
|
|
2442
|
-
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
2443
|
-
: undefined,
|
|
2344
|
+
mountPoints: output.mountPoints != null ? de_MountPoints(output.mountPoints, context) : undefined,
|
|
2345
|
+
networkConfiguration: output.networkConfiguration != null ? de_NetworkConfiguration(output.networkConfiguration, context) : undefined,
|
|
2444
2346
|
privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
2445
2347
|
readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
|
|
2446
|
-
resourceRequirements: output.resourceRequirements != null
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2450
|
-
ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
|
|
2348
|
+
resourceRequirements: output.resourceRequirements != null ? de_ResourceRequirements(output.resourceRequirements, context) : undefined,
|
|
2349
|
+
secrets: output.secrets != null ? de_SecretList(output.secrets, context) : undefined,
|
|
2350
|
+
ulimits: output.ulimits != null ? de_Ulimits(output.ulimits, context) : undefined,
|
|
2451
2351
|
user: (0, smithy_client_1.expectString)(output.user),
|
|
2452
2352
|
vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
|
|
2453
|
-
volumes: output.volumes != null ?
|
|
2353
|
+
volumes: output.volumes != null ? de_Volumes(output.volumes, context) : undefined,
|
|
2454
2354
|
};
|
|
2455
2355
|
};
|
|
2456
|
-
const
|
|
2356
|
+
const de_ContainerSummary = (output, context) => {
|
|
2457
2357
|
return {
|
|
2458
2358
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2459
2359
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2460
2360
|
};
|
|
2461
2361
|
};
|
|
2462
|
-
const
|
|
2362
|
+
const de_Device = (output, context) => {
|
|
2463
2363
|
return {
|
|
2464
2364
|
containerPath: (0, smithy_client_1.expectString)(output.containerPath),
|
|
2465
2365
|
hostPath: (0, smithy_client_1.expectString)(output.hostPath),
|
|
2466
|
-
permissions: output.permissions != null
|
|
2467
|
-
? deserializeAws_restJson1DeviceCgroupPermissions(output.permissions, context)
|
|
2468
|
-
: undefined,
|
|
2366
|
+
permissions: output.permissions != null ? de_DeviceCgroupPermissions(output.permissions, context) : undefined,
|
|
2469
2367
|
};
|
|
2470
2368
|
};
|
|
2471
|
-
const
|
|
2369
|
+
const de_DeviceCgroupPermissions = (output, context) => {
|
|
2472
2370
|
const retVal = (output || [])
|
|
2473
2371
|
.filter((e) => e != null)
|
|
2474
2372
|
.map((entry) => {
|
|
@@ -2479,74 +2377,70 @@ const deserializeAws_restJson1DeviceCgroupPermissions = (output, context) => {
|
|
|
2479
2377
|
});
|
|
2480
2378
|
return retVal;
|
|
2481
2379
|
};
|
|
2482
|
-
const
|
|
2380
|
+
const de_DevicesList = (output, context) => {
|
|
2483
2381
|
const retVal = (output || [])
|
|
2484
2382
|
.filter((e) => e != null)
|
|
2485
2383
|
.map((entry) => {
|
|
2486
2384
|
if (entry === null) {
|
|
2487
2385
|
return null;
|
|
2488
2386
|
}
|
|
2489
|
-
return
|
|
2387
|
+
return de_Device(entry, context);
|
|
2490
2388
|
});
|
|
2491
2389
|
return retVal;
|
|
2492
2390
|
};
|
|
2493
|
-
const
|
|
2391
|
+
const de_Ec2Configuration = (output, context) => {
|
|
2494
2392
|
return {
|
|
2495
2393
|
imageIdOverride: (0, smithy_client_1.expectString)(output.imageIdOverride),
|
|
2496
2394
|
imageKubernetesVersion: (0, smithy_client_1.expectString)(output.imageKubernetesVersion),
|
|
2497
2395
|
imageType: (0, smithy_client_1.expectString)(output.imageType),
|
|
2498
2396
|
};
|
|
2499
2397
|
};
|
|
2500
|
-
const
|
|
2398
|
+
const de_Ec2ConfigurationList = (output, context) => {
|
|
2501
2399
|
const retVal = (output || [])
|
|
2502
2400
|
.filter((e) => e != null)
|
|
2503
2401
|
.map((entry) => {
|
|
2504
2402
|
if (entry === null) {
|
|
2505
2403
|
return null;
|
|
2506
2404
|
}
|
|
2507
|
-
return
|
|
2405
|
+
return de_Ec2Configuration(entry, context);
|
|
2508
2406
|
});
|
|
2509
2407
|
return retVal;
|
|
2510
2408
|
};
|
|
2511
|
-
const
|
|
2409
|
+
const de_EFSAuthorizationConfig = (output, context) => {
|
|
2512
2410
|
return {
|
|
2513
2411
|
accessPointId: (0, smithy_client_1.expectString)(output.accessPointId),
|
|
2514
2412
|
iam: (0, smithy_client_1.expectString)(output.iam),
|
|
2515
2413
|
};
|
|
2516
2414
|
};
|
|
2517
|
-
const
|
|
2415
|
+
const de_EFSVolumeConfiguration = (output, context) => {
|
|
2518
2416
|
return {
|
|
2519
|
-
authorizationConfig: output.authorizationConfig != null
|
|
2520
|
-
? deserializeAws_restJson1EFSAuthorizationConfig(output.authorizationConfig, context)
|
|
2521
|
-
: undefined,
|
|
2417
|
+
authorizationConfig: output.authorizationConfig != null ? de_EFSAuthorizationConfig(output.authorizationConfig, context) : undefined,
|
|
2522
2418
|
fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
|
|
2523
2419
|
rootDirectory: (0, smithy_client_1.expectString)(output.rootDirectory),
|
|
2524
2420
|
transitEncryption: (0, smithy_client_1.expectString)(output.transitEncryption),
|
|
2525
2421
|
transitEncryptionPort: (0, smithy_client_1.expectInt32)(output.transitEncryptionPort),
|
|
2526
2422
|
};
|
|
2527
2423
|
};
|
|
2528
|
-
const
|
|
2424
|
+
const de_EksAttemptContainerDetail = (output, context) => {
|
|
2529
2425
|
return {
|
|
2530
2426
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2531
2427
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2532
2428
|
};
|
|
2533
2429
|
};
|
|
2534
|
-
const
|
|
2430
|
+
const de_EksAttemptContainerDetails = (output, context) => {
|
|
2535
2431
|
const retVal = (output || [])
|
|
2536
2432
|
.filter((e) => e != null)
|
|
2537
2433
|
.map((entry) => {
|
|
2538
2434
|
if (entry === null) {
|
|
2539
2435
|
return null;
|
|
2540
2436
|
}
|
|
2541
|
-
return
|
|
2437
|
+
return de_EksAttemptContainerDetail(entry, context);
|
|
2542
2438
|
});
|
|
2543
2439
|
return retVal;
|
|
2544
2440
|
};
|
|
2545
|
-
const
|
|
2441
|
+
const de_EksAttemptDetail = (output, context) => {
|
|
2546
2442
|
return {
|
|
2547
|
-
containers: output.containers != null
|
|
2548
|
-
? deserializeAws_restJson1EksAttemptContainerDetails(output.containers, context)
|
|
2549
|
-
: undefined,
|
|
2443
|
+
containers: output.containers != null ? de_EksAttemptContainerDetails(output.containers, context) : undefined,
|
|
2550
2444
|
nodeName: (0, smithy_client_1.expectString)(output.nodeName),
|
|
2551
2445
|
podName: (0, smithy_client_1.expectString)(output.podName),
|
|
2552
2446
|
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
@@ -2554,109 +2448,97 @@ const deserializeAws_restJson1EksAttemptDetail = (output, context) => {
|
|
|
2554
2448
|
stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
|
|
2555
2449
|
};
|
|
2556
2450
|
};
|
|
2557
|
-
const
|
|
2451
|
+
const de_EksAttemptDetails = (output, context) => {
|
|
2558
2452
|
const retVal = (output || [])
|
|
2559
2453
|
.filter((e) => e != null)
|
|
2560
2454
|
.map((entry) => {
|
|
2561
2455
|
if (entry === null) {
|
|
2562
2456
|
return null;
|
|
2563
2457
|
}
|
|
2564
|
-
return
|
|
2458
|
+
return de_EksAttemptDetail(entry, context);
|
|
2565
2459
|
});
|
|
2566
2460
|
return retVal;
|
|
2567
2461
|
};
|
|
2568
|
-
const
|
|
2462
|
+
const de_EksConfiguration = (output, context) => {
|
|
2569
2463
|
return {
|
|
2570
2464
|
eksClusterArn: (0, smithy_client_1.expectString)(output.eksClusterArn),
|
|
2571
2465
|
kubernetesNamespace: (0, smithy_client_1.expectString)(output.kubernetesNamespace),
|
|
2572
2466
|
};
|
|
2573
2467
|
};
|
|
2574
|
-
const
|
|
2468
|
+
const de_EksContainer = (output, context) => {
|
|
2575
2469
|
return {
|
|
2576
|
-
args: output.args != null ?
|
|
2577
|
-
command: output.command != null ?
|
|
2578
|
-
env: output.env != null ?
|
|
2470
|
+
args: output.args != null ? de_StringList(output.args, context) : undefined,
|
|
2471
|
+
command: output.command != null ? de_StringList(output.command, context) : undefined,
|
|
2472
|
+
env: output.env != null ? de_EksContainerEnvironmentVariables(output.env, context) : undefined,
|
|
2579
2473
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
2580
2474
|
imagePullPolicy: (0, smithy_client_1.expectString)(output.imagePullPolicy),
|
|
2581
2475
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2582
|
-
resources: output.resources != null
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
securityContext: output.securityContext != null
|
|
2586
|
-
? deserializeAws_restJson1EksContainerSecurityContext(output.securityContext, context)
|
|
2587
|
-
: undefined,
|
|
2588
|
-
volumeMounts: output.volumeMounts != null
|
|
2589
|
-
? deserializeAws_restJson1EksContainerVolumeMounts(output.volumeMounts, context)
|
|
2590
|
-
: undefined,
|
|
2476
|
+
resources: output.resources != null ? de_EksContainerResourceRequirements(output.resources, context) : undefined,
|
|
2477
|
+
securityContext: output.securityContext != null ? de_EksContainerSecurityContext(output.securityContext, context) : undefined,
|
|
2478
|
+
volumeMounts: output.volumeMounts != null ? de_EksContainerVolumeMounts(output.volumeMounts, context) : undefined,
|
|
2591
2479
|
};
|
|
2592
2480
|
};
|
|
2593
|
-
const
|
|
2481
|
+
const de_EksContainerDetail = (output, context) => {
|
|
2594
2482
|
return {
|
|
2595
|
-
args: output.args != null ?
|
|
2596
|
-
command: output.command != null ?
|
|
2597
|
-
env: output.env != null ?
|
|
2483
|
+
args: output.args != null ? de_StringList(output.args, context) : undefined,
|
|
2484
|
+
command: output.command != null ? de_StringList(output.command, context) : undefined,
|
|
2485
|
+
env: output.env != null ? de_EksContainerEnvironmentVariables(output.env, context) : undefined,
|
|
2598
2486
|
exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
|
|
2599
2487
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
2600
2488
|
imagePullPolicy: (0, smithy_client_1.expectString)(output.imagePullPolicy),
|
|
2601
2489
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2602
2490
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
2603
|
-
resources: output.resources != null
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
securityContext: output.securityContext != null
|
|
2607
|
-
? deserializeAws_restJson1EksContainerSecurityContext(output.securityContext, context)
|
|
2608
|
-
: undefined,
|
|
2609
|
-
volumeMounts: output.volumeMounts != null
|
|
2610
|
-
? deserializeAws_restJson1EksContainerVolumeMounts(output.volumeMounts, context)
|
|
2611
|
-
: undefined,
|
|
2491
|
+
resources: output.resources != null ? de_EksContainerResourceRequirements(output.resources, context) : undefined,
|
|
2492
|
+
securityContext: output.securityContext != null ? de_EksContainerSecurityContext(output.securityContext, context) : undefined,
|
|
2493
|
+
volumeMounts: output.volumeMounts != null ? de_EksContainerVolumeMounts(output.volumeMounts, context) : undefined,
|
|
2612
2494
|
};
|
|
2613
2495
|
};
|
|
2614
|
-
const
|
|
2496
|
+
const de_EksContainerDetails = (output, context) => {
|
|
2615
2497
|
const retVal = (output || [])
|
|
2616
2498
|
.filter((e) => e != null)
|
|
2617
2499
|
.map((entry) => {
|
|
2618
2500
|
if (entry === null) {
|
|
2619
2501
|
return null;
|
|
2620
2502
|
}
|
|
2621
|
-
return
|
|
2503
|
+
return de_EksContainerDetail(entry, context);
|
|
2622
2504
|
});
|
|
2623
2505
|
return retVal;
|
|
2624
2506
|
};
|
|
2625
|
-
const
|
|
2507
|
+
const de_EksContainerEnvironmentVariable = (output, context) => {
|
|
2626
2508
|
return {
|
|
2627
2509
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2628
2510
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2629
2511
|
};
|
|
2630
2512
|
};
|
|
2631
|
-
const
|
|
2513
|
+
const de_EksContainerEnvironmentVariables = (output, context) => {
|
|
2632
2514
|
const retVal = (output || [])
|
|
2633
2515
|
.filter((e) => e != null)
|
|
2634
2516
|
.map((entry) => {
|
|
2635
2517
|
if (entry === null) {
|
|
2636
2518
|
return null;
|
|
2637
2519
|
}
|
|
2638
|
-
return
|
|
2520
|
+
return de_EksContainerEnvironmentVariable(entry, context);
|
|
2639
2521
|
});
|
|
2640
2522
|
return retVal;
|
|
2641
2523
|
};
|
|
2642
|
-
const
|
|
2524
|
+
const de_EksContainerResourceRequirements = (output, context) => {
|
|
2643
2525
|
return {
|
|
2644
|
-
limits: output.limits != null ?
|
|
2645
|
-
requests: output.requests != null ?
|
|
2526
|
+
limits: output.limits != null ? de_EksLimits(output.limits, context) : undefined,
|
|
2527
|
+
requests: output.requests != null ? de_EksRequests(output.requests, context) : undefined,
|
|
2646
2528
|
};
|
|
2647
2529
|
};
|
|
2648
|
-
const
|
|
2530
|
+
const de_EksContainers = (output, context) => {
|
|
2649
2531
|
const retVal = (output || [])
|
|
2650
2532
|
.filter((e) => e != null)
|
|
2651
2533
|
.map((entry) => {
|
|
2652
2534
|
if (entry === null) {
|
|
2653
2535
|
return null;
|
|
2654
2536
|
}
|
|
2655
|
-
return
|
|
2537
|
+
return de_EksContainer(entry, context);
|
|
2656
2538
|
});
|
|
2657
2539
|
return retVal;
|
|
2658
2540
|
};
|
|
2659
|
-
const
|
|
2541
|
+
const de_EksContainerSecurityContext = (output, context) => {
|
|
2660
2542
|
return {
|
|
2661
2543
|
privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
|
|
2662
2544
|
readOnlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readOnlyRootFilesystem),
|
|
@@ -2665,36 +2547,36 @@ const deserializeAws_restJson1EksContainerSecurityContext = (output, context) =>
|
|
|
2665
2547
|
runAsUser: (0, smithy_client_1.expectLong)(output.runAsUser),
|
|
2666
2548
|
};
|
|
2667
2549
|
};
|
|
2668
|
-
const
|
|
2550
|
+
const de_EksContainerVolumeMount = (output, context) => {
|
|
2669
2551
|
return {
|
|
2670
2552
|
mountPath: (0, smithy_client_1.expectString)(output.mountPath),
|
|
2671
2553
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2672
2554
|
readOnly: (0, smithy_client_1.expectBoolean)(output.readOnly),
|
|
2673
2555
|
};
|
|
2674
2556
|
};
|
|
2675
|
-
const
|
|
2557
|
+
const de_EksContainerVolumeMounts = (output, context) => {
|
|
2676
2558
|
const retVal = (output || [])
|
|
2677
2559
|
.filter((e) => e != null)
|
|
2678
2560
|
.map((entry) => {
|
|
2679
2561
|
if (entry === null) {
|
|
2680
2562
|
return null;
|
|
2681
2563
|
}
|
|
2682
|
-
return
|
|
2564
|
+
return de_EksContainerVolumeMount(entry, context);
|
|
2683
2565
|
});
|
|
2684
2566
|
return retVal;
|
|
2685
2567
|
};
|
|
2686
|
-
const
|
|
2568
|
+
const de_EksEmptyDir = (output, context) => {
|
|
2687
2569
|
return {
|
|
2688
2570
|
medium: (0, smithy_client_1.expectString)(output.medium),
|
|
2689
2571
|
sizeLimit: (0, smithy_client_1.expectString)(output.sizeLimit),
|
|
2690
2572
|
};
|
|
2691
2573
|
};
|
|
2692
|
-
const
|
|
2574
|
+
const de_EksHostPath = (output, context) => {
|
|
2693
2575
|
return {
|
|
2694
2576
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
2695
2577
|
};
|
|
2696
2578
|
};
|
|
2697
|
-
const
|
|
2579
|
+
const de_EksLabelsMap = (output, context) => {
|
|
2698
2580
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2699
2581
|
if (value === null) {
|
|
2700
2582
|
return acc;
|
|
@@ -2703,7 +2585,7 @@ const deserializeAws_restJson1EksLabelsMap = (output, context) => {
|
|
|
2703
2585
|
return acc;
|
|
2704
2586
|
}, {});
|
|
2705
2587
|
};
|
|
2706
|
-
const
|
|
2588
|
+
const de_EksLimits = (output, context) => {
|
|
2707
2589
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2708
2590
|
if (value === null) {
|
|
2709
2591
|
return acc;
|
|
@@ -2712,48 +2594,44 @@ const deserializeAws_restJson1EksLimits = (output, context) => {
|
|
|
2712
2594
|
return acc;
|
|
2713
2595
|
}, {});
|
|
2714
2596
|
};
|
|
2715
|
-
const
|
|
2597
|
+
const de_EksMetadata = (output, context) => {
|
|
2716
2598
|
return {
|
|
2717
|
-
labels: output.labels != null ?
|
|
2599
|
+
labels: output.labels != null ? de_EksLabelsMap(output.labels, context) : undefined,
|
|
2718
2600
|
};
|
|
2719
2601
|
};
|
|
2720
|
-
const
|
|
2602
|
+
const de_EksPodProperties = (output, context) => {
|
|
2721
2603
|
return {
|
|
2722
|
-
containers: output.containers != null ?
|
|
2604
|
+
containers: output.containers != null ? de_EksContainers(output.containers, context) : undefined,
|
|
2723
2605
|
dnsPolicy: (0, smithy_client_1.expectString)(output.dnsPolicy),
|
|
2724
2606
|
hostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
2725
|
-
metadata: output.metadata != null ?
|
|
2607
|
+
metadata: output.metadata != null ? de_EksMetadata(output.metadata, context) : undefined,
|
|
2726
2608
|
serviceAccountName: (0, smithy_client_1.expectString)(output.serviceAccountName),
|
|
2727
|
-
volumes: output.volumes != null ?
|
|
2609
|
+
volumes: output.volumes != null ? de_EksVolumes(output.volumes, context) : undefined,
|
|
2728
2610
|
};
|
|
2729
2611
|
};
|
|
2730
|
-
const
|
|
2612
|
+
const de_EksPodPropertiesDetail = (output, context) => {
|
|
2731
2613
|
return {
|
|
2732
|
-
containers: output.containers != null ?
|
|
2614
|
+
containers: output.containers != null ? de_EksContainerDetails(output.containers, context) : undefined,
|
|
2733
2615
|
dnsPolicy: (0, smithy_client_1.expectString)(output.dnsPolicy),
|
|
2734
2616
|
hostNetwork: (0, smithy_client_1.expectBoolean)(output.hostNetwork),
|
|
2735
|
-
metadata: output.metadata != null ?
|
|
2617
|
+
metadata: output.metadata != null ? de_EksMetadata(output.metadata, context) : undefined,
|
|
2736
2618
|
nodeName: (0, smithy_client_1.expectString)(output.nodeName),
|
|
2737
2619
|
podName: (0, smithy_client_1.expectString)(output.podName),
|
|
2738
2620
|
serviceAccountName: (0, smithy_client_1.expectString)(output.serviceAccountName),
|
|
2739
|
-
volumes: output.volumes != null ?
|
|
2621
|
+
volumes: output.volumes != null ? de_EksVolumes(output.volumes, context) : undefined,
|
|
2740
2622
|
};
|
|
2741
2623
|
};
|
|
2742
|
-
const
|
|
2624
|
+
const de_EksProperties = (output, context) => {
|
|
2743
2625
|
return {
|
|
2744
|
-
podProperties: output.podProperties != null
|
|
2745
|
-
? deserializeAws_restJson1EksPodProperties(output.podProperties, context)
|
|
2746
|
-
: undefined,
|
|
2626
|
+
podProperties: output.podProperties != null ? de_EksPodProperties(output.podProperties, context) : undefined,
|
|
2747
2627
|
};
|
|
2748
2628
|
};
|
|
2749
|
-
const
|
|
2629
|
+
const de_EksPropertiesDetail = (output, context) => {
|
|
2750
2630
|
return {
|
|
2751
|
-
podProperties: output.podProperties != null
|
|
2752
|
-
? deserializeAws_restJson1EksPodPropertiesDetail(output.podProperties, context)
|
|
2753
|
-
: undefined,
|
|
2631
|
+
podProperties: output.podProperties != null ? de_EksPodPropertiesDetail(output.podProperties, context) : undefined,
|
|
2754
2632
|
};
|
|
2755
2633
|
};
|
|
2756
|
-
const
|
|
2634
|
+
const de_EksRequests = (output, context) => {
|
|
2757
2635
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2758
2636
|
if (value === null) {
|
|
2759
2637
|
return acc;
|
|
@@ -2762,48 +2640,48 @@ const deserializeAws_restJson1EksRequests = (output, context) => {
|
|
|
2762
2640
|
return acc;
|
|
2763
2641
|
}, {});
|
|
2764
2642
|
};
|
|
2765
|
-
const
|
|
2643
|
+
const de_EksSecret = (output, context) => {
|
|
2766
2644
|
return {
|
|
2767
2645
|
optional: (0, smithy_client_1.expectBoolean)(output.optional),
|
|
2768
2646
|
secretName: (0, smithy_client_1.expectString)(output.secretName),
|
|
2769
2647
|
};
|
|
2770
2648
|
};
|
|
2771
|
-
const
|
|
2649
|
+
const de_EksVolume = (output, context) => {
|
|
2772
2650
|
return {
|
|
2773
|
-
emptyDir: output.emptyDir != null ?
|
|
2774
|
-
hostPath: output.hostPath != null ?
|
|
2651
|
+
emptyDir: output.emptyDir != null ? de_EksEmptyDir(output.emptyDir, context) : undefined,
|
|
2652
|
+
hostPath: output.hostPath != null ? de_EksHostPath(output.hostPath, context) : undefined,
|
|
2775
2653
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2776
|
-
secret: output.secret != null ?
|
|
2654
|
+
secret: output.secret != null ? de_EksSecret(output.secret, context) : undefined,
|
|
2777
2655
|
};
|
|
2778
2656
|
};
|
|
2779
|
-
const
|
|
2657
|
+
const de_EksVolumes = (output, context) => {
|
|
2780
2658
|
const retVal = (output || [])
|
|
2781
2659
|
.filter((e) => e != null)
|
|
2782
2660
|
.map((entry) => {
|
|
2783
2661
|
if (entry === null) {
|
|
2784
2662
|
return null;
|
|
2785
2663
|
}
|
|
2786
|
-
return
|
|
2664
|
+
return de_EksVolume(entry, context);
|
|
2787
2665
|
});
|
|
2788
2666
|
return retVal;
|
|
2789
2667
|
};
|
|
2790
|
-
const
|
|
2668
|
+
const de_EnvironmentVariables = (output, context) => {
|
|
2791
2669
|
const retVal = (output || [])
|
|
2792
2670
|
.filter((e) => e != null)
|
|
2793
2671
|
.map((entry) => {
|
|
2794
2672
|
if (entry === null) {
|
|
2795
2673
|
return null;
|
|
2796
2674
|
}
|
|
2797
|
-
return
|
|
2675
|
+
return de_KeyValuePair(entry, context);
|
|
2798
2676
|
});
|
|
2799
2677
|
return retVal;
|
|
2800
2678
|
};
|
|
2801
|
-
const
|
|
2679
|
+
const de_EphemeralStorage = (output, context) => {
|
|
2802
2680
|
return {
|
|
2803
2681
|
sizeInGiB: (0, smithy_client_1.expectInt32)(output.sizeInGiB),
|
|
2804
2682
|
};
|
|
2805
2683
|
};
|
|
2806
|
-
const
|
|
2684
|
+
const de_EvaluateOnExit = (output, context) => {
|
|
2807
2685
|
return {
|
|
2808
2686
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
2809
2687
|
onExitCode: (0, smithy_client_1.expectString)(output.onExitCode),
|
|
@@ -2811,103 +2689,91 @@ const deserializeAws_restJson1EvaluateOnExit = (output, context) => {
|
|
|
2811
2689
|
onStatusReason: (0, smithy_client_1.expectString)(output.onStatusReason),
|
|
2812
2690
|
};
|
|
2813
2691
|
};
|
|
2814
|
-
const
|
|
2692
|
+
const de_EvaluateOnExitList = (output, context) => {
|
|
2815
2693
|
const retVal = (output || [])
|
|
2816
2694
|
.filter((e) => e != null)
|
|
2817
2695
|
.map((entry) => {
|
|
2818
2696
|
if (entry === null) {
|
|
2819
2697
|
return null;
|
|
2820
2698
|
}
|
|
2821
|
-
return
|
|
2699
|
+
return de_EvaluateOnExit(entry, context);
|
|
2822
2700
|
});
|
|
2823
2701
|
return retVal;
|
|
2824
2702
|
};
|
|
2825
|
-
const
|
|
2703
|
+
const de_FairsharePolicy = (output, context) => {
|
|
2826
2704
|
return {
|
|
2827
2705
|
computeReservation: (0, smithy_client_1.expectInt32)(output.computeReservation),
|
|
2828
2706
|
shareDecaySeconds: (0, smithy_client_1.expectInt32)(output.shareDecaySeconds),
|
|
2829
|
-
shareDistribution: output.shareDistribution != null
|
|
2830
|
-
? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
|
|
2831
|
-
: undefined,
|
|
2707
|
+
shareDistribution: output.shareDistribution != null ? de_ShareAttributesList(output.shareDistribution, context) : undefined,
|
|
2832
2708
|
};
|
|
2833
2709
|
};
|
|
2834
|
-
const
|
|
2710
|
+
const de_FargatePlatformConfiguration = (output, context) => {
|
|
2835
2711
|
return {
|
|
2836
2712
|
platformVersion: (0, smithy_client_1.expectString)(output.platformVersion),
|
|
2837
2713
|
};
|
|
2838
2714
|
};
|
|
2839
|
-
const
|
|
2715
|
+
const de_Host = (output, context) => {
|
|
2840
2716
|
return {
|
|
2841
2717
|
sourcePath: (0, smithy_client_1.expectString)(output.sourcePath),
|
|
2842
2718
|
};
|
|
2843
2719
|
};
|
|
2844
|
-
const
|
|
2720
|
+
const de_JobDefinition = (output, context) => {
|
|
2845
2721
|
return {
|
|
2846
2722
|
containerOrchestrationType: (0, smithy_client_1.expectString)(output.containerOrchestrationType),
|
|
2847
|
-
containerProperties: output.containerProperties != null
|
|
2848
|
-
|
|
2849
|
-
: undefined,
|
|
2850
|
-
eksProperties: output.eksProperties != null ? deserializeAws_restJson1EksProperties(output.eksProperties, context) : undefined,
|
|
2723
|
+
containerProperties: output.containerProperties != null ? de_ContainerProperties(output.containerProperties, context) : undefined,
|
|
2724
|
+
eksProperties: output.eksProperties != null ? de_EksProperties(output.eksProperties, context) : undefined,
|
|
2851
2725
|
jobDefinitionArn: (0, smithy_client_1.expectString)(output.jobDefinitionArn),
|
|
2852
2726
|
jobDefinitionName: (0, smithy_client_1.expectString)(output.jobDefinitionName),
|
|
2853
|
-
nodeProperties: output.nodeProperties != null
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2857
|
-
platformCapabilities: output.platformCapabilities != null
|
|
2858
|
-
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
2859
|
-
: undefined,
|
|
2727
|
+
nodeProperties: output.nodeProperties != null ? de_NodeProperties(output.nodeProperties, context) : undefined,
|
|
2728
|
+
parameters: output.parameters != null ? de_ParametersMap(output.parameters, context) : undefined,
|
|
2729
|
+
platformCapabilities: output.platformCapabilities != null ? de_PlatformCapabilityList(output.platformCapabilities, context) : undefined,
|
|
2860
2730
|
propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
|
|
2861
|
-
retryStrategy: output.retryStrategy != null ?
|
|
2731
|
+
retryStrategy: output.retryStrategy != null ? de_RetryStrategy(output.retryStrategy, context) : undefined,
|
|
2862
2732
|
revision: (0, smithy_client_1.expectInt32)(output.revision),
|
|
2863
2733
|
schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
|
|
2864
2734
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2865
|
-
tags: output.tags != null ?
|
|
2866
|
-
timeout: output.timeout != null ?
|
|
2735
|
+
tags: output.tags != null ? de_TagrisTagsMap(output.tags, context) : undefined,
|
|
2736
|
+
timeout: output.timeout != null ? de_JobTimeout(output.timeout, context) : undefined,
|
|
2867
2737
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2868
2738
|
};
|
|
2869
2739
|
};
|
|
2870
|
-
const
|
|
2740
|
+
const de_JobDefinitionList = (output, context) => {
|
|
2871
2741
|
const retVal = (output || [])
|
|
2872
2742
|
.filter((e) => e != null)
|
|
2873
2743
|
.map((entry) => {
|
|
2874
2744
|
if (entry === null) {
|
|
2875
2745
|
return null;
|
|
2876
2746
|
}
|
|
2877
|
-
return
|
|
2747
|
+
return de_JobDefinition(entry, context);
|
|
2878
2748
|
});
|
|
2879
2749
|
return retVal;
|
|
2880
2750
|
};
|
|
2881
|
-
const
|
|
2751
|
+
const de_JobDependency = (output, context) => {
|
|
2882
2752
|
return {
|
|
2883
2753
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2884
2754
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2885
2755
|
};
|
|
2886
2756
|
};
|
|
2887
|
-
const
|
|
2757
|
+
const de_JobDependencyList = (output, context) => {
|
|
2888
2758
|
const retVal = (output || [])
|
|
2889
2759
|
.filter((e) => e != null)
|
|
2890
2760
|
.map((entry) => {
|
|
2891
2761
|
if (entry === null) {
|
|
2892
2762
|
return null;
|
|
2893
2763
|
}
|
|
2894
|
-
return
|
|
2764
|
+
return de_JobDependency(entry, context);
|
|
2895
2765
|
});
|
|
2896
2766
|
return retVal;
|
|
2897
2767
|
};
|
|
2898
|
-
const
|
|
2768
|
+
const de_JobDetail = (output, context) => {
|
|
2899
2769
|
return {
|
|
2900
|
-
arrayProperties: output.arrayProperties != null
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
attempts: output.attempts != null ? deserializeAws_restJson1AttemptDetails(output.attempts, context) : undefined,
|
|
2904
|
-
container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
|
|
2770
|
+
arrayProperties: output.arrayProperties != null ? de_ArrayPropertiesDetail(output.arrayProperties, context) : undefined,
|
|
2771
|
+
attempts: output.attempts != null ? de_AttemptDetails(output.attempts, context) : undefined,
|
|
2772
|
+
container: output.container != null ? de_ContainerDetail(output.container, context) : undefined,
|
|
2905
2773
|
createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
|
|
2906
|
-
dependsOn: output.dependsOn != null ?
|
|
2907
|
-
eksAttempts: output.eksAttempts != null ?
|
|
2908
|
-
eksProperties: output.eksProperties != null
|
|
2909
|
-
? deserializeAws_restJson1EksPropertiesDetail(output.eksProperties, context)
|
|
2910
|
-
: undefined,
|
|
2774
|
+
dependsOn: output.dependsOn != null ? de_JobDependencyList(output.dependsOn, context) : undefined,
|
|
2775
|
+
eksAttempts: output.eksAttempts != null ? de_EksAttemptDetails(output.eksAttempts, context) : undefined,
|
|
2776
|
+
eksProperties: output.eksProperties != null ? de_EksPropertiesDetail(output.eksProperties, context) : undefined,
|
|
2911
2777
|
isCancelled: (0, smithy_client_1.expectBoolean)(output.isCancelled),
|
|
2912
2778
|
isTerminated: (0, smithy_client_1.expectBoolean)(output.isTerminated),
|
|
2913
2779
|
jobArn: (0, smithy_client_1.expectString)(output.jobArn),
|
|
@@ -2915,41 +2781,37 @@ const deserializeAws_restJson1JobDetail = (output, context) => {
|
|
|
2915
2781
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2916
2782
|
jobName: (0, smithy_client_1.expectString)(output.jobName),
|
|
2917
2783
|
jobQueue: (0, smithy_client_1.expectString)(output.jobQueue),
|
|
2918
|
-
nodeDetails: output.nodeDetails != null ?
|
|
2919
|
-
nodeProperties: output.nodeProperties != null
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2923
|
-
platformCapabilities: output.platformCapabilities != null
|
|
2924
|
-
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
2925
|
-
: undefined,
|
|
2784
|
+
nodeDetails: output.nodeDetails != null ? de_NodeDetails(output.nodeDetails, context) : undefined,
|
|
2785
|
+
nodeProperties: output.nodeProperties != null ? de_NodeProperties(output.nodeProperties, context) : undefined,
|
|
2786
|
+
parameters: output.parameters != null ? de_ParametersMap(output.parameters, context) : undefined,
|
|
2787
|
+
platformCapabilities: output.platformCapabilities != null ? de_PlatformCapabilityList(output.platformCapabilities, context) : undefined,
|
|
2926
2788
|
propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
|
|
2927
|
-
retryStrategy: output.retryStrategy != null ?
|
|
2789
|
+
retryStrategy: output.retryStrategy != null ? de_RetryStrategy(output.retryStrategy, context) : undefined,
|
|
2928
2790
|
schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
|
|
2929
2791
|
shareIdentifier: (0, smithy_client_1.expectString)(output.shareIdentifier),
|
|
2930
2792
|
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
2931
2793
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2932
2794
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2933
2795
|
stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
|
|
2934
|
-
tags: output.tags != null ?
|
|
2935
|
-
timeout: output.timeout != null ?
|
|
2796
|
+
tags: output.tags != null ? de_TagrisTagsMap(output.tags, context) : undefined,
|
|
2797
|
+
timeout: output.timeout != null ? de_JobTimeout(output.timeout, context) : undefined,
|
|
2936
2798
|
};
|
|
2937
2799
|
};
|
|
2938
|
-
const
|
|
2800
|
+
const de_JobDetailList = (output, context) => {
|
|
2939
2801
|
const retVal = (output || [])
|
|
2940
2802
|
.filter((e) => e != null)
|
|
2941
2803
|
.map((entry) => {
|
|
2942
2804
|
if (entry === null) {
|
|
2943
2805
|
return null;
|
|
2944
2806
|
}
|
|
2945
|
-
return
|
|
2807
|
+
return de_JobDetail(entry, context);
|
|
2946
2808
|
});
|
|
2947
2809
|
return retVal;
|
|
2948
2810
|
};
|
|
2949
|
-
const
|
|
2811
|
+
const de_JobQueueDetail = (output, context) => {
|
|
2950
2812
|
return {
|
|
2951
2813
|
computeEnvironmentOrder: output.computeEnvironmentOrder != null
|
|
2952
|
-
?
|
|
2814
|
+
? de_ComputeEnvironmentOrders(output.computeEnvironmentOrder, context)
|
|
2953
2815
|
: undefined,
|
|
2954
2816
|
jobQueueArn: (0, smithy_client_1.expectString)(output.jobQueueArn),
|
|
2955
2817
|
jobQueueName: (0, smithy_client_1.expectString)(output.jobQueueName),
|
|
@@ -2958,87 +2820,83 @@ const deserializeAws_restJson1JobQueueDetail = (output, context) => {
|
|
|
2958
2820
|
state: (0, smithy_client_1.expectString)(output.state),
|
|
2959
2821
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2960
2822
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2961
|
-
tags: output.tags != null ?
|
|
2823
|
+
tags: output.tags != null ? de_TagrisTagsMap(output.tags, context) : undefined,
|
|
2962
2824
|
};
|
|
2963
2825
|
};
|
|
2964
|
-
const
|
|
2826
|
+
const de_JobQueueDetailList = (output, context) => {
|
|
2965
2827
|
const retVal = (output || [])
|
|
2966
2828
|
.filter((e) => e != null)
|
|
2967
2829
|
.map((entry) => {
|
|
2968
2830
|
if (entry === null) {
|
|
2969
2831
|
return null;
|
|
2970
2832
|
}
|
|
2971
|
-
return
|
|
2833
|
+
return de_JobQueueDetail(entry, context);
|
|
2972
2834
|
});
|
|
2973
2835
|
return retVal;
|
|
2974
2836
|
};
|
|
2975
|
-
const
|
|
2837
|
+
const de_JobSummary = (output, context) => {
|
|
2976
2838
|
return {
|
|
2977
|
-
arrayProperties: output.arrayProperties != null
|
|
2978
|
-
|
|
2979
|
-
: undefined,
|
|
2980
|
-
container: output.container != null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined,
|
|
2839
|
+
arrayProperties: output.arrayProperties != null ? de_ArrayPropertiesSummary(output.arrayProperties, context) : undefined,
|
|
2840
|
+
container: output.container != null ? de_ContainerSummary(output.container, context) : undefined,
|
|
2981
2841
|
createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
|
|
2982
2842
|
jobArn: (0, smithy_client_1.expectString)(output.jobArn),
|
|
2983
2843
|
jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
|
|
2984
2844
|
jobId: (0, smithy_client_1.expectString)(output.jobId),
|
|
2985
2845
|
jobName: (0, smithy_client_1.expectString)(output.jobName),
|
|
2986
|
-
nodeProperties: output.nodeProperties != null
|
|
2987
|
-
? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
|
|
2988
|
-
: undefined,
|
|
2846
|
+
nodeProperties: output.nodeProperties != null ? de_NodePropertiesSummary(output.nodeProperties, context) : undefined,
|
|
2989
2847
|
startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
|
|
2990
2848
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2991
2849
|
statusReason: (0, smithy_client_1.expectString)(output.statusReason),
|
|
2992
2850
|
stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
|
|
2993
2851
|
};
|
|
2994
2852
|
};
|
|
2995
|
-
const
|
|
2853
|
+
const de_JobSummaryList = (output, context) => {
|
|
2996
2854
|
const retVal = (output || [])
|
|
2997
2855
|
.filter((e) => e != null)
|
|
2998
2856
|
.map((entry) => {
|
|
2999
2857
|
if (entry === null) {
|
|
3000
2858
|
return null;
|
|
3001
2859
|
}
|
|
3002
|
-
return
|
|
2860
|
+
return de_JobSummary(entry, context);
|
|
3003
2861
|
});
|
|
3004
2862
|
return retVal;
|
|
3005
2863
|
};
|
|
3006
|
-
const
|
|
2864
|
+
const de_JobTimeout = (output, context) => {
|
|
3007
2865
|
return {
|
|
3008
2866
|
attemptDurationSeconds: (0, smithy_client_1.expectInt32)(output.attemptDurationSeconds),
|
|
3009
2867
|
};
|
|
3010
2868
|
};
|
|
3011
|
-
const
|
|
2869
|
+
const de_KeyValuePair = (output, context) => {
|
|
3012
2870
|
return {
|
|
3013
2871
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3014
2872
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3015
2873
|
};
|
|
3016
2874
|
};
|
|
3017
|
-
const
|
|
2875
|
+
const de_LaunchTemplateSpecification = (output, context) => {
|
|
3018
2876
|
return {
|
|
3019
2877
|
launchTemplateId: (0, smithy_client_1.expectString)(output.launchTemplateId),
|
|
3020
2878
|
launchTemplateName: (0, smithy_client_1.expectString)(output.launchTemplateName),
|
|
3021
2879
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
3022
2880
|
};
|
|
3023
2881
|
};
|
|
3024
|
-
const
|
|
2882
|
+
const de_LinuxParameters = (output, context) => {
|
|
3025
2883
|
return {
|
|
3026
|
-
devices: output.devices != null ?
|
|
2884
|
+
devices: output.devices != null ? de_DevicesList(output.devices, context) : undefined,
|
|
3027
2885
|
initProcessEnabled: (0, smithy_client_1.expectBoolean)(output.initProcessEnabled),
|
|
3028
2886
|
maxSwap: (0, smithy_client_1.expectInt32)(output.maxSwap),
|
|
3029
2887
|
sharedMemorySize: (0, smithy_client_1.expectInt32)(output.sharedMemorySize),
|
|
3030
2888
|
swappiness: (0, smithy_client_1.expectInt32)(output.swappiness),
|
|
3031
|
-
tmpfs: output.tmpfs != null ?
|
|
2889
|
+
tmpfs: output.tmpfs != null ? de_TmpfsList(output.tmpfs, context) : undefined,
|
|
3032
2890
|
};
|
|
3033
2891
|
};
|
|
3034
|
-
const
|
|
2892
|
+
const de_LogConfiguration = (output, context) => {
|
|
3035
2893
|
return {
|
|
3036
2894
|
logDriver: (0, smithy_client_1.expectString)(output.logDriver),
|
|
3037
|
-
options: output.options != null ?
|
|
3038
|
-
secretOptions: output.secretOptions != null ?
|
|
2895
|
+
options: output.options != null ? de_LogConfigurationOptionsMap(output.options, context) : undefined,
|
|
2896
|
+
secretOptions: output.secretOptions != null ? de_SecretList(output.secretOptions, context) : undefined,
|
|
3039
2897
|
};
|
|
3040
2898
|
};
|
|
3041
|
-
const
|
|
2899
|
+
const de_LogConfigurationOptionsMap = (output, context) => {
|
|
3042
2900
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3043
2901
|
if (value === null) {
|
|
3044
2902
|
return acc;
|
|
@@ -3047,87 +2905,85 @@ const deserializeAws_restJson1LogConfigurationOptionsMap = (output, context) =>
|
|
|
3047
2905
|
return acc;
|
|
3048
2906
|
}, {});
|
|
3049
2907
|
};
|
|
3050
|
-
const
|
|
2908
|
+
const de_MountPoint = (output, context) => {
|
|
3051
2909
|
return {
|
|
3052
2910
|
containerPath: (0, smithy_client_1.expectString)(output.containerPath),
|
|
3053
2911
|
readOnly: (0, smithy_client_1.expectBoolean)(output.readOnly),
|
|
3054
2912
|
sourceVolume: (0, smithy_client_1.expectString)(output.sourceVolume),
|
|
3055
2913
|
};
|
|
3056
2914
|
};
|
|
3057
|
-
const
|
|
2915
|
+
const de_MountPoints = (output, context) => {
|
|
3058
2916
|
const retVal = (output || [])
|
|
3059
2917
|
.filter((e) => e != null)
|
|
3060
2918
|
.map((entry) => {
|
|
3061
2919
|
if (entry === null) {
|
|
3062
2920
|
return null;
|
|
3063
2921
|
}
|
|
3064
|
-
return
|
|
2922
|
+
return de_MountPoint(entry, context);
|
|
3065
2923
|
});
|
|
3066
2924
|
return retVal;
|
|
3067
2925
|
};
|
|
3068
|
-
const
|
|
2926
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
3069
2927
|
return {
|
|
3070
2928
|
assignPublicIp: (0, smithy_client_1.expectString)(output.assignPublicIp),
|
|
3071
2929
|
};
|
|
3072
2930
|
};
|
|
3073
|
-
const
|
|
2931
|
+
const de_NetworkInterface = (output, context) => {
|
|
3074
2932
|
return {
|
|
3075
2933
|
attachmentId: (0, smithy_client_1.expectString)(output.attachmentId),
|
|
3076
2934
|
ipv6Address: (0, smithy_client_1.expectString)(output.ipv6Address),
|
|
3077
2935
|
privateIpv4Address: (0, smithy_client_1.expectString)(output.privateIpv4Address),
|
|
3078
2936
|
};
|
|
3079
2937
|
};
|
|
3080
|
-
const
|
|
2938
|
+
const de_NetworkInterfaceList = (output, context) => {
|
|
3081
2939
|
const retVal = (output || [])
|
|
3082
2940
|
.filter((e) => e != null)
|
|
3083
2941
|
.map((entry) => {
|
|
3084
2942
|
if (entry === null) {
|
|
3085
2943
|
return null;
|
|
3086
2944
|
}
|
|
3087
|
-
return
|
|
2945
|
+
return de_NetworkInterface(entry, context);
|
|
3088
2946
|
});
|
|
3089
2947
|
return retVal;
|
|
3090
2948
|
};
|
|
3091
|
-
const
|
|
2949
|
+
const de_NodeDetails = (output, context) => {
|
|
3092
2950
|
return {
|
|
3093
2951
|
isMainNode: (0, smithy_client_1.expectBoolean)(output.isMainNode),
|
|
3094
2952
|
nodeIndex: (0, smithy_client_1.expectInt32)(output.nodeIndex),
|
|
3095
2953
|
};
|
|
3096
2954
|
};
|
|
3097
|
-
const
|
|
2955
|
+
const de_NodeProperties = (output, context) => {
|
|
3098
2956
|
return {
|
|
3099
2957
|
mainNode: (0, smithy_client_1.expectInt32)(output.mainNode),
|
|
3100
|
-
nodeRangeProperties: output.nodeRangeProperties != null
|
|
3101
|
-
? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
|
|
3102
|
-
: undefined,
|
|
2958
|
+
nodeRangeProperties: output.nodeRangeProperties != null ? de_NodeRangeProperties(output.nodeRangeProperties, context) : undefined,
|
|
3103
2959
|
numNodes: (0, smithy_client_1.expectInt32)(output.numNodes),
|
|
3104
2960
|
};
|
|
3105
2961
|
};
|
|
3106
|
-
const
|
|
2962
|
+
const de_NodePropertiesSummary = (output, context) => {
|
|
3107
2963
|
return {
|
|
3108
2964
|
isMainNode: (0, smithy_client_1.expectBoolean)(output.isMainNode),
|
|
3109
2965
|
nodeIndex: (0, smithy_client_1.expectInt32)(output.nodeIndex),
|
|
3110
2966
|
numNodes: (0, smithy_client_1.expectInt32)(output.numNodes),
|
|
3111
2967
|
};
|
|
3112
2968
|
};
|
|
3113
|
-
const
|
|
2969
|
+
const de_NodeRangeProperties = (output, context) => {
|
|
3114
2970
|
const retVal = (output || [])
|
|
3115
2971
|
.filter((e) => e != null)
|
|
3116
2972
|
.map((entry) => {
|
|
3117
2973
|
if (entry === null) {
|
|
3118
2974
|
return null;
|
|
3119
2975
|
}
|
|
3120
|
-
return
|
|
2976
|
+
return de_NodeRangeProperty(entry, context);
|
|
3121
2977
|
});
|
|
3122
2978
|
return retVal;
|
|
3123
2979
|
};
|
|
3124
|
-
const
|
|
2980
|
+
const de_NodeRangeProperty = (output, context) => {
|
|
3125
2981
|
return {
|
|
3126
|
-
container: output.container != null ?
|
|
2982
|
+
container: output.container != null ? de_ContainerProperties(output.container, context) : undefined,
|
|
3127
2983
|
targetNodes: (0, smithy_client_1.expectString)(output.targetNodes),
|
|
3128
2984
|
};
|
|
3129
2985
|
};
|
|
3130
|
-
const
|
|
2986
|
+
const de_ParametersMap = (output, context) => {
|
|
3131
2987
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3132
2988
|
if (value === null) {
|
|
3133
2989
|
return acc;
|
|
@@ -3136,7 +2992,7 @@ const deserializeAws_restJson1ParametersMap = (output, context) => {
|
|
|
3136
2992
|
return acc;
|
|
3137
2993
|
}, {});
|
|
3138
2994
|
};
|
|
3139
|
-
const
|
|
2995
|
+
const de_PlatformCapabilityList = (output, context) => {
|
|
3140
2996
|
const retVal = (output || [])
|
|
3141
2997
|
.filter((e) => e != null)
|
|
3142
2998
|
.map((entry) => {
|
|
@@ -3147,103 +3003,99 @@ const deserializeAws_restJson1PlatformCapabilityList = (output, context) => {
|
|
|
3147
3003
|
});
|
|
3148
3004
|
return retVal;
|
|
3149
3005
|
};
|
|
3150
|
-
const
|
|
3006
|
+
const de_ResourceRequirement = (output, context) => {
|
|
3151
3007
|
return {
|
|
3152
3008
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
3153
3009
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3154
3010
|
};
|
|
3155
3011
|
};
|
|
3156
|
-
const
|
|
3012
|
+
const de_ResourceRequirements = (output, context) => {
|
|
3157
3013
|
const retVal = (output || [])
|
|
3158
3014
|
.filter((e) => e != null)
|
|
3159
3015
|
.map((entry) => {
|
|
3160
3016
|
if (entry === null) {
|
|
3161
3017
|
return null;
|
|
3162
3018
|
}
|
|
3163
|
-
return
|
|
3019
|
+
return de_ResourceRequirement(entry, context);
|
|
3164
3020
|
});
|
|
3165
3021
|
return retVal;
|
|
3166
3022
|
};
|
|
3167
|
-
const
|
|
3023
|
+
const de_RetryStrategy = (output, context) => {
|
|
3168
3024
|
return {
|
|
3169
3025
|
attempts: (0, smithy_client_1.expectInt32)(output.attempts),
|
|
3170
|
-
evaluateOnExit: output.evaluateOnExit != null
|
|
3171
|
-
? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
|
|
3172
|
-
: undefined,
|
|
3026
|
+
evaluateOnExit: output.evaluateOnExit != null ? de_EvaluateOnExitList(output.evaluateOnExit, context) : undefined,
|
|
3173
3027
|
};
|
|
3174
3028
|
};
|
|
3175
|
-
const
|
|
3029
|
+
const de_SchedulingPolicyDetail = (output, context) => {
|
|
3176
3030
|
return {
|
|
3177
3031
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3178
|
-
fairsharePolicy: output.fairsharePolicy != null
|
|
3179
|
-
? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
|
|
3180
|
-
: undefined,
|
|
3032
|
+
fairsharePolicy: output.fairsharePolicy != null ? de_FairsharePolicy(output.fairsharePolicy, context) : undefined,
|
|
3181
3033
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3182
|
-
tags: output.tags != null ?
|
|
3034
|
+
tags: output.tags != null ? de_TagrisTagsMap(output.tags, context) : undefined,
|
|
3183
3035
|
};
|
|
3184
3036
|
};
|
|
3185
|
-
const
|
|
3037
|
+
const de_SchedulingPolicyDetailList = (output, context) => {
|
|
3186
3038
|
const retVal = (output || [])
|
|
3187
3039
|
.filter((e) => e != null)
|
|
3188
3040
|
.map((entry) => {
|
|
3189
3041
|
if (entry === null) {
|
|
3190
3042
|
return null;
|
|
3191
3043
|
}
|
|
3192
|
-
return
|
|
3044
|
+
return de_SchedulingPolicyDetail(entry, context);
|
|
3193
3045
|
});
|
|
3194
3046
|
return retVal;
|
|
3195
3047
|
};
|
|
3196
|
-
const
|
|
3048
|
+
const de_SchedulingPolicyListingDetail = (output, context) => {
|
|
3197
3049
|
return {
|
|
3198
3050
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3199
3051
|
};
|
|
3200
3052
|
};
|
|
3201
|
-
const
|
|
3053
|
+
const de_SchedulingPolicyListingDetailList = (output, context) => {
|
|
3202
3054
|
const retVal = (output || [])
|
|
3203
3055
|
.filter((e) => e != null)
|
|
3204
3056
|
.map((entry) => {
|
|
3205
3057
|
if (entry === null) {
|
|
3206
3058
|
return null;
|
|
3207
3059
|
}
|
|
3208
|
-
return
|
|
3060
|
+
return de_SchedulingPolicyListingDetail(entry, context);
|
|
3209
3061
|
});
|
|
3210
3062
|
return retVal;
|
|
3211
3063
|
};
|
|
3212
|
-
const
|
|
3064
|
+
const de_Secret = (output, context) => {
|
|
3213
3065
|
return {
|
|
3214
3066
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3215
3067
|
valueFrom: (0, smithy_client_1.expectString)(output.valueFrom),
|
|
3216
3068
|
};
|
|
3217
3069
|
};
|
|
3218
|
-
const
|
|
3070
|
+
const de_SecretList = (output, context) => {
|
|
3219
3071
|
const retVal = (output || [])
|
|
3220
3072
|
.filter((e) => e != null)
|
|
3221
3073
|
.map((entry) => {
|
|
3222
3074
|
if (entry === null) {
|
|
3223
3075
|
return null;
|
|
3224
3076
|
}
|
|
3225
|
-
return
|
|
3077
|
+
return de_Secret(entry, context);
|
|
3226
3078
|
});
|
|
3227
3079
|
return retVal;
|
|
3228
3080
|
};
|
|
3229
|
-
const
|
|
3081
|
+
const de_ShareAttributes = (output, context) => {
|
|
3230
3082
|
return {
|
|
3231
3083
|
shareIdentifier: (0, smithy_client_1.expectString)(output.shareIdentifier),
|
|
3232
3084
|
weightFactor: (0, smithy_client_1.limitedParseFloat32)(output.weightFactor),
|
|
3233
3085
|
};
|
|
3234
3086
|
};
|
|
3235
|
-
const
|
|
3087
|
+
const de_ShareAttributesList = (output, context) => {
|
|
3236
3088
|
const retVal = (output || [])
|
|
3237
3089
|
.filter((e) => e != null)
|
|
3238
3090
|
.map((entry) => {
|
|
3239
3091
|
if (entry === null) {
|
|
3240
3092
|
return null;
|
|
3241
3093
|
}
|
|
3242
|
-
return
|
|
3094
|
+
return de_ShareAttributes(entry, context);
|
|
3243
3095
|
});
|
|
3244
3096
|
return retVal;
|
|
3245
3097
|
};
|
|
3246
|
-
const
|
|
3098
|
+
const de_StringList = (output, context) => {
|
|
3247
3099
|
const retVal = (output || [])
|
|
3248
3100
|
.filter((e) => e != null)
|
|
3249
3101
|
.map((entry) => {
|
|
@@ -3254,7 +3106,7 @@ const deserializeAws_restJson1StringList = (output, context) => {
|
|
|
3254
3106
|
});
|
|
3255
3107
|
return retVal;
|
|
3256
3108
|
};
|
|
3257
|
-
const
|
|
3109
|
+
const de_TagrisTagsMap = (output, context) => {
|
|
3258
3110
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3259
3111
|
if (value === null) {
|
|
3260
3112
|
return acc;
|
|
@@ -3263,7 +3115,7 @@ const deserializeAws_restJson1TagrisTagsMap = (output, context) => {
|
|
|
3263
3115
|
return acc;
|
|
3264
3116
|
}, {});
|
|
3265
3117
|
};
|
|
3266
|
-
const
|
|
3118
|
+
const de_TagsMap = (output, context) => {
|
|
3267
3119
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3268
3120
|
if (value === null) {
|
|
3269
3121
|
return acc;
|
|
@@ -3272,65 +3124,65 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3272
3124
|
return acc;
|
|
3273
3125
|
}, {});
|
|
3274
3126
|
};
|
|
3275
|
-
const
|
|
3127
|
+
const de_Tmpfs = (output, context) => {
|
|
3276
3128
|
return {
|
|
3277
3129
|
containerPath: (0, smithy_client_1.expectString)(output.containerPath),
|
|
3278
|
-
mountOptions: output.mountOptions != null ?
|
|
3130
|
+
mountOptions: output.mountOptions != null ? de_StringList(output.mountOptions, context) : undefined,
|
|
3279
3131
|
size: (0, smithy_client_1.expectInt32)(output.size),
|
|
3280
3132
|
};
|
|
3281
3133
|
};
|
|
3282
|
-
const
|
|
3134
|
+
const de_TmpfsList = (output, context) => {
|
|
3283
3135
|
const retVal = (output || [])
|
|
3284
3136
|
.filter((e) => e != null)
|
|
3285
3137
|
.map((entry) => {
|
|
3286
3138
|
if (entry === null) {
|
|
3287
3139
|
return null;
|
|
3288
3140
|
}
|
|
3289
|
-
return
|
|
3141
|
+
return de_Tmpfs(entry, context);
|
|
3290
3142
|
});
|
|
3291
3143
|
return retVal;
|
|
3292
3144
|
};
|
|
3293
|
-
const
|
|
3145
|
+
const de_Ulimit = (output, context) => {
|
|
3294
3146
|
return {
|
|
3295
3147
|
hardLimit: (0, smithy_client_1.expectInt32)(output.hardLimit),
|
|
3296
3148
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3297
3149
|
softLimit: (0, smithy_client_1.expectInt32)(output.softLimit),
|
|
3298
3150
|
};
|
|
3299
3151
|
};
|
|
3300
|
-
const
|
|
3152
|
+
const de_Ulimits = (output, context) => {
|
|
3301
3153
|
const retVal = (output || [])
|
|
3302
3154
|
.filter((e) => e != null)
|
|
3303
3155
|
.map((entry) => {
|
|
3304
3156
|
if (entry === null) {
|
|
3305
3157
|
return null;
|
|
3306
3158
|
}
|
|
3307
|
-
return
|
|
3159
|
+
return de_Ulimit(entry, context);
|
|
3308
3160
|
});
|
|
3309
3161
|
return retVal;
|
|
3310
3162
|
};
|
|
3311
|
-
const
|
|
3163
|
+
const de_UpdatePolicy = (output, context) => {
|
|
3312
3164
|
return {
|
|
3313
3165
|
jobExecutionTimeoutMinutes: (0, smithy_client_1.expectLong)(output.jobExecutionTimeoutMinutes),
|
|
3314
3166
|
terminateJobsOnUpdate: (0, smithy_client_1.expectBoolean)(output.terminateJobsOnUpdate),
|
|
3315
3167
|
};
|
|
3316
3168
|
};
|
|
3317
|
-
const
|
|
3169
|
+
const de_Volume = (output, context) => {
|
|
3318
3170
|
return {
|
|
3319
3171
|
efsVolumeConfiguration: output.efsVolumeConfiguration != null
|
|
3320
|
-
?
|
|
3172
|
+
? de_EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
|
|
3321
3173
|
: undefined,
|
|
3322
|
-
host: output.host != null ?
|
|
3174
|
+
host: output.host != null ? de_Host(output.host, context) : undefined,
|
|
3323
3175
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3324
3176
|
};
|
|
3325
3177
|
};
|
|
3326
|
-
const
|
|
3178
|
+
const de_Volumes = (output, context) => {
|
|
3327
3179
|
const retVal = (output || [])
|
|
3328
3180
|
.filter((e) => e != null)
|
|
3329
3181
|
.map((entry) => {
|
|
3330
3182
|
if (entry === null) {
|
|
3331
3183
|
return null;
|
|
3332
3184
|
}
|
|
3333
|
-
return
|
|
3185
|
+
return de_Volume(entry, context);
|
|
3334
3186
|
});
|
|
3335
3187
|
return retVal;
|
|
3336
3188
|
};
|