@aws-sdk/client-batch 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +298 -481
- package/dist-es/protocols/Aws_restJson1.js +171 -354
- package/package.json +26 -26
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/canceljob";
|
|
17
|
-
body = JSON.stringify(__assign(__assign({}, (input.jobId
|
|
17
|
+
body = JSON.stringify(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.reason != null && { reason: input.reason })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -38,13 +38,9 @@ export var serializeAws_restJson1CreateComputeEnvironmentCommand = function (inp
|
|
|
38
38
|
"content-type": "application/json",
|
|
39
39
|
};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createcomputeenvironment";
|
|
41
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentName
|
|
42
|
-
input.computeEnvironmentName !== null && { computeEnvironmentName: input.computeEnvironmentName })), (input.computeResources !== undefined &&
|
|
43
|
-
input.computeResources !== null && {
|
|
41
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentName != null && { computeEnvironmentName: input.computeEnvironmentName })), (input.computeResources != null && {
|
|
44
42
|
computeResources: serializeAws_restJson1ComputeResource(input.computeResources, context),
|
|
45
|
-
})), (input.serviceRole
|
|
46
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.unmanagedvCpus !== undefined &&
|
|
47
|
-
input.unmanagedvCpus !== null && { unmanagedvCpus: input.unmanagedvCpus })));
|
|
43
|
+
})), (input.serviceRole != null && { serviceRole: input.serviceRole })), (input.state != null && { state: input.state })), (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.type != null && { type: input.type })), (input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus })));
|
|
48
44
|
return [2, new __HttpRequest({
|
|
49
45
|
protocol: protocol,
|
|
50
46
|
hostname: hostname,
|
|
@@ -68,12 +64,9 @@ export var serializeAws_restJson1CreateJobQueueCommand = function (input, contex
|
|
|
68
64
|
"content-type": "application/json",
|
|
69
65
|
};
|
|
70
66
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createjobqueue";
|
|
71
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder
|
|
72
|
-
input.computeEnvironmentOrder !== null && {
|
|
67
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder != null && {
|
|
73
68
|
computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
74
|
-
})), (input.jobQueueName
|
|
75
|
-
input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state !== undefined && input.state !== null && { state: input.state })), (input.tags !== undefined &&
|
|
76
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
69
|
+
})), (input.jobQueueName != null && { jobQueueName: input.jobQueueName })), (input.priority != null && { priority: input.priority })), (input.schedulingPolicyArn != null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state != null && { state: input.state })), (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
77
70
|
return [2, new __HttpRequest({
|
|
78
71
|
protocol: protocol,
|
|
79
72
|
hostname: hostname,
|
|
@@ -97,11 +90,9 @@ export var serializeAws_restJson1CreateSchedulingPolicyCommand = function (input
|
|
|
97
90
|
"content-type": "application/json",
|
|
98
91
|
};
|
|
99
92
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/createschedulingpolicy";
|
|
100
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.fairsharePolicy
|
|
101
|
-
input.fairsharePolicy !== null && {
|
|
93
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.fairsharePolicy != null && {
|
|
102
94
|
fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
|
|
103
|
-
})), (input.name
|
|
104
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
95
|
+
})), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
105
96
|
return [2, new __HttpRequest({
|
|
106
97
|
protocol: protocol,
|
|
107
98
|
hostname: hostname,
|
|
@@ -125,8 +116,7 @@ export var serializeAws_restJson1DeleteComputeEnvironmentCommand = function (inp
|
|
|
125
116
|
"content-type": "application/json",
|
|
126
117
|
};
|
|
127
118
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deletecomputeenvironment";
|
|
128
|
-
body = JSON.stringify(__assign({}, (input.computeEnvironment
|
|
129
|
-
input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment })));
|
|
119
|
+
body = JSON.stringify(__assign({}, (input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment })));
|
|
130
120
|
return [2, new __HttpRequest({
|
|
131
121
|
protocol: protocol,
|
|
132
122
|
hostname: hostname,
|
|
@@ -150,7 +140,7 @@ export var serializeAws_restJson1DeleteJobQueueCommand = function (input, contex
|
|
|
150
140
|
"content-type": "application/json",
|
|
151
141
|
};
|
|
152
142
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deletejobqueue";
|
|
153
|
-
body = JSON.stringify(__assign({}, (input.jobQueue
|
|
143
|
+
body = JSON.stringify(__assign({}, (input.jobQueue != null && { jobQueue: input.jobQueue })));
|
|
154
144
|
return [2, new __HttpRequest({
|
|
155
145
|
protocol: protocol,
|
|
156
146
|
hostname: hostname,
|
|
@@ -174,7 +164,7 @@ export var serializeAws_restJson1DeleteSchedulingPolicyCommand = function (input
|
|
|
174
164
|
"content-type": "application/json",
|
|
175
165
|
};
|
|
176
166
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deleteschedulingpolicy";
|
|
177
|
-
body = JSON.stringify(__assign({}, (input.arn
|
|
167
|
+
body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
|
|
178
168
|
return [2, new __HttpRequest({
|
|
179
169
|
protocol: protocol,
|
|
180
170
|
hostname: hostname,
|
|
@@ -198,7 +188,7 @@ export var serializeAws_restJson1DeregisterJobDefinitionCommand = function (inpu
|
|
|
198
188
|
"content-type": "application/json",
|
|
199
189
|
};
|
|
200
190
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/deregisterjobdefinition";
|
|
201
|
-
body = JSON.stringify(__assign({}, (input.jobDefinition
|
|
191
|
+
body = JSON.stringify(__assign({}, (input.jobDefinition != null && { jobDefinition: input.jobDefinition })));
|
|
202
192
|
return [2, new __HttpRequest({
|
|
203
193
|
protocol: protocol,
|
|
204
194
|
hostname: hostname,
|
|
@@ -222,10 +212,9 @@ export var serializeAws_restJson1DescribeComputeEnvironmentsCommand = function (
|
|
|
222
212
|
"content-type": "application/json",
|
|
223
213
|
};
|
|
224
214
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describecomputeenvironments";
|
|
225
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.computeEnvironments
|
|
226
|
-
input.computeEnvironments !== null && {
|
|
215
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.computeEnvironments != null && {
|
|
227
216
|
computeEnvironments: serializeAws_restJson1StringList(input.computeEnvironments, context),
|
|
228
|
-
})), (input.maxResults
|
|
217
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
229
218
|
return [2, new __HttpRequest({
|
|
230
219
|
protocol: protocol,
|
|
231
220
|
hostname: hostname,
|
|
@@ -249,11 +238,9 @@ export var serializeAws_restJson1DescribeJobDefinitionsCommand = function (input
|
|
|
249
238
|
"content-type": "application/json",
|
|
250
239
|
};
|
|
251
240
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describejobdefinitions";
|
|
252
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.jobDefinitionName
|
|
253
|
-
input.jobDefinitionName !== null && { jobDefinitionName: input.jobDefinitionName })), (input.jobDefinitions !== undefined &&
|
|
254
|
-
input.jobDefinitions !== null && {
|
|
241
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName })), (input.jobDefinitions != null && {
|
|
255
242
|
jobDefinitions: serializeAws_restJson1StringList(input.jobDefinitions, context),
|
|
256
|
-
})), (input.maxResults
|
|
243
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.status != null && { status: input.status })));
|
|
257
244
|
return [2, new __HttpRequest({
|
|
258
245
|
protocol: protocol,
|
|
259
246
|
hostname: hostname,
|
|
@@ -277,8 +264,7 @@ export var serializeAws_restJson1DescribeJobQueuesCommand = function (input, con
|
|
|
277
264
|
"content-type": "application/json",
|
|
278
265
|
};
|
|
279
266
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describejobqueues";
|
|
280
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.jobQueues
|
|
281
|
-
input.jobQueues !== null && { jobQueues: serializeAws_restJson1StringList(input.jobQueues, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
267
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.jobQueues != null && { jobQueues: serializeAws_restJson1StringList(input.jobQueues, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
282
268
|
return [2, new __HttpRequest({
|
|
283
269
|
protocol: protocol,
|
|
284
270
|
hostname: hostname,
|
|
@@ -302,8 +288,7 @@ export var serializeAws_restJson1DescribeJobsCommand = function (input, context)
|
|
|
302
288
|
"content-type": "application/json",
|
|
303
289
|
};
|
|
304
290
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describejobs";
|
|
305
|
-
body = JSON.stringify(__assign({}, (input.jobs
|
|
306
|
-
input.jobs !== null && { jobs: serializeAws_restJson1StringList(input.jobs, context) })));
|
|
291
|
+
body = JSON.stringify(__assign({}, (input.jobs != null && { jobs: serializeAws_restJson1StringList(input.jobs, context) })));
|
|
307
292
|
return [2, new __HttpRequest({
|
|
308
293
|
protocol: protocol,
|
|
309
294
|
hostname: hostname,
|
|
@@ -327,8 +312,7 @@ export var serializeAws_restJson1DescribeSchedulingPoliciesCommand = function (i
|
|
|
327
312
|
"content-type": "application/json",
|
|
328
313
|
};
|
|
329
314
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/describeschedulingpolicies";
|
|
330
|
-
body = JSON.stringify(__assign({}, (input.arns
|
|
331
|
-
input.arns !== null && { arns: serializeAws_restJson1StringList(input.arns, context) })));
|
|
315
|
+
body = JSON.stringify(__assign({}, (input.arns != null && { arns: serializeAws_restJson1StringList(input.arns, context) })));
|
|
332
316
|
return [2, new __HttpRequest({
|
|
333
317
|
protocol: protocol,
|
|
334
318
|
hostname: hostname,
|
|
@@ -352,9 +336,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
352
336
|
"content-type": "application/json",
|
|
353
337
|
};
|
|
354
338
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/listjobs";
|
|
355
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayJobId
|
|
356
|
-
input.filters !== null && { filters: serializeAws_restJson1ListJobsFilterList(input.filters, context) })), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.jobStatus !== undefined && input.jobStatus !== null && { jobStatus: input.jobStatus })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.multiNodeJobId !== undefined &&
|
|
357
|
-
input.multiNodeJobId !== null && { multiNodeJobId: input.multiNodeJobId })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
339
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayJobId != null && { arrayJobId: input.arrayJobId })), (input.filters != null && { filters: serializeAws_restJson1ListJobsFilterList(input.filters, context) })), (input.jobQueue != null && { jobQueue: input.jobQueue })), (input.jobStatus != null && { jobStatus: input.jobStatus })), (input.maxResults != null && { maxResults: input.maxResults })), (input.multiNodeJobId != null && { multiNodeJobId: input.multiNodeJobId })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
358
340
|
return [2, new __HttpRequest({
|
|
359
341
|
protocol: protocol,
|
|
360
342
|
hostname: hostname,
|
|
@@ -378,7 +360,7 @@ export var serializeAws_restJson1ListSchedulingPoliciesCommand = function (input
|
|
|
378
360
|
"content-type": "application/json",
|
|
379
361
|
};
|
|
380
362
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/listschedulingpolicies";
|
|
381
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
363
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
382
364
|
return [2, new __HttpRequest({
|
|
383
365
|
protocol: protocol,
|
|
384
366
|
hostname: hostname,
|
|
@@ -433,24 +415,15 @@ export var serializeAws_restJson1RegisterJobDefinitionCommand = function (input,
|
|
|
433
415
|
"content-type": "application/json",
|
|
434
416
|
};
|
|
435
417
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/registerjobdefinition";
|
|
436
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerProperties
|
|
437
|
-
input.containerProperties !== null && {
|
|
418
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerProperties != null && {
|
|
438
419
|
containerProperties: serializeAws_restJson1ContainerProperties(input.containerProperties, context),
|
|
439
|
-
})), (input.jobDefinitionName
|
|
440
|
-
input.jobDefinitionName !== null && { jobDefinitionName: input.jobDefinitionName })), (input.nodeProperties !== undefined &&
|
|
441
|
-
input.nodeProperties !== null && {
|
|
420
|
+
})), (input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName })), (input.nodeProperties != null && {
|
|
442
421
|
nodeProperties: serializeAws_restJson1NodeProperties(input.nodeProperties, context),
|
|
443
|
-
})), (input.parameters
|
|
444
|
-
input.parameters !== null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) })), (input.platformCapabilities !== undefined &&
|
|
445
|
-
input.platformCapabilities !== null && {
|
|
422
|
+
})), (input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) })), (input.platformCapabilities != null && {
|
|
446
423
|
platformCapabilities: serializeAws_restJson1PlatformCapabilityList(input.platformCapabilities, context),
|
|
447
|
-
})), (input.propagateTags
|
|
448
|
-
input.retryStrategy !== null && {
|
|
424
|
+
})), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.retryStrategy != null && {
|
|
449
425
|
retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
|
|
450
|
-
})), (input.schedulingPriority
|
|
451
|
-
input.schedulingPriority !== null && { schedulingPriority: input.schedulingPriority })), (input.tags !== undefined &&
|
|
452
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
|
|
453
|
-
input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
426
|
+
})), (input.schedulingPriority != null && { schedulingPriority: input.schedulingPriority })), (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout != null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })), (input.type != null && { type: input.type })));
|
|
454
427
|
return [2, new __HttpRequest({
|
|
455
428
|
protocol: protocol,
|
|
456
429
|
hostname: hostname,
|
|
@@ -474,25 +447,15 @@ export var serializeAws_restJson1SubmitJobCommand = function (input, context) {
|
|
|
474
447
|
"content-type": "application/json",
|
|
475
448
|
};
|
|
476
449
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/submitjob";
|
|
477
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayProperties
|
|
478
|
-
input.arrayProperties !== null && {
|
|
450
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arrayProperties != null && {
|
|
479
451
|
arrayProperties: serializeAws_restJson1ArrayProperties(input.arrayProperties, context),
|
|
480
|
-
})), (input.containerOverrides
|
|
481
|
-
input.containerOverrides !== null && {
|
|
452
|
+
})), (input.containerOverrides != null && {
|
|
482
453
|
containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
|
|
483
|
-
})), (input.dependsOn
|
|
484
|
-
input.dependsOn !== null && { dependsOn: serializeAws_restJson1JobDependencyList(input.dependsOn, context) })), (input.jobDefinition !== undefined && input.jobDefinition !== null && { jobDefinition: input.jobDefinition })), (input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName })), (input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue })), (input.nodeOverrides !== undefined &&
|
|
485
|
-
input.nodeOverrides !== null && {
|
|
454
|
+
})), (input.dependsOn != null && { dependsOn: serializeAws_restJson1JobDependencyList(input.dependsOn, context) })), (input.jobDefinition != null && { jobDefinition: input.jobDefinition })), (input.jobName != null && { jobName: input.jobName })), (input.jobQueue != null && { jobQueue: input.jobQueue })), (input.nodeOverrides != null && {
|
|
486
455
|
nodeOverrides: serializeAws_restJson1NodeOverrides(input.nodeOverrides, context),
|
|
487
|
-
})), (input.parameters
|
|
488
|
-
input.parameters !== null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.retryStrategy !== undefined &&
|
|
489
|
-
input.retryStrategy !== null && {
|
|
456
|
+
})), (input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) })), (input.propagateTags != null && { propagateTags: input.propagateTags })), (input.retryStrategy != null && {
|
|
490
457
|
retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
|
|
491
|
-
})), (input.schedulingPriorityOverride
|
|
492
|
-
input.schedulingPriorityOverride !== null && { schedulingPriorityOverride: input.schedulingPriorityOverride })), (input.shareIdentifier !== undefined &&
|
|
493
|
-
input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier })), (input.tags !== undefined &&
|
|
494
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout !== undefined &&
|
|
495
|
-
input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })));
|
|
458
|
+
})), (input.schedulingPriorityOverride != null && { schedulingPriorityOverride: input.schedulingPriorityOverride })), (input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier })), (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })), (input.timeout != null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) })));
|
|
496
459
|
return [2, new __HttpRequest({
|
|
497
460
|
protocol: protocol,
|
|
498
461
|
hostname: hostname,
|
|
@@ -526,8 +489,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
526
489
|
else {
|
|
527
490
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
528
491
|
}
|
|
529
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
530
|
-
input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
492
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) })));
|
|
531
493
|
return [2, new __HttpRequest({
|
|
532
494
|
protocol: protocol,
|
|
533
495
|
hostname: hostname,
|
|
@@ -551,7 +513,7 @@ export var serializeAws_restJson1TerminateJobCommand = function (input, context)
|
|
|
551
513
|
"content-type": "application/json",
|
|
552
514
|
};
|
|
553
515
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/terminatejob";
|
|
554
|
-
body = JSON.stringify(__assign(__assign({}, (input.jobId
|
|
516
|
+
body = JSON.stringify(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.reason != null && { reason: input.reason })));
|
|
555
517
|
return [2, new __HttpRequest({
|
|
556
518
|
protocol: protocol,
|
|
557
519
|
hostname: hostname,
|
|
@@ -608,13 +570,11 @@ export var serializeAws_restJson1UpdateComputeEnvironmentCommand = function (inp
|
|
|
608
570
|
"content-type": "application/json",
|
|
609
571
|
};
|
|
610
572
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updatecomputeenvironment";
|
|
611
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironment
|
|
612
|
-
input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment })), (input.computeResources !== undefined &&
|
|
613
|
-
input.computeResources !== null && {
|
|
573
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment })), (input.computeResources != null && {
|
|
614
574
|
computeResources: serializeAws_restJson1ComputeResourceUpdate(input.computeResources, context),
|
|
615
|
-
})), (input.serviceRole
|
|
616
|
-
|
|
617
|
-
|
|
575
|
+
})), (input.serviceRole != null && { serviceRole: input.serviceRole })), (input.state != null && { state: input.state })), (input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus })), (input.updatePolicy != null && {
|
|
576
|
+
updatePolicy: serializeAws_restJson1UpdatePolicy(input.updatePolicy, context),
|
|
577
|
+
})));
|
|
618
578
|
return [2, new __HttpRequest({
|
|
619
579
|
protocol: protocol,
|
|
620
580
|
hostname: hostname,
|
|
@@ -638,11 +598,9 @@ export var serializeAws_restJson1UpdateJobQueueCommand = function (input, contex
|
|
|
638
598
|
"content-type": "application/json",
|
|
639
599
|
};
|
|
640
600
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updatejobqueue";
|
|
641
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder
|
|
642
|
-
input.computeEnvironmentOrder !== null && {
|
|
601
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.computeEnvironmentOrder != null && {
|
|
643
602
|
computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
|
|
644
|
-
})), (input.jobQueue
|
|
645
|
-
input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state !== undefined && input.state !== null && { state: input.state })));
|
|
603
|
+
})), (input.jobQueue != null && { jobQueue: input.jobQueue })), (input.priority != null && { priority: input.priority })), (input.schedulingPolicyArn != null && { schedulingPolicyArn: input.schedulingPolicyArn })), (input.state != null && { state: input.state })));
|
|
646
604
|
return [2, new __HttpRequest({
|
|
647
605
|
protocol: protocol,
|
|
648
606
|
hostname: hostname,
|
|
@@ -666,8 +624,7 @@ export var serializeAws_restJson1UpdateSchedulingPolicyCommand = function (input
|
|
|
666
624
|
"content-type": "application/json",
|
|
667
625
|
};
|
|
668
626
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/updateschedulingpolicy";
|
|
669
|
-
body = JSON.stringify(__assign(__assign({}, (input.arn
|
|
670
|
-
input.fairsharePolicy !== null && {
|
|
627
|
+
body = JSON.stringify(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.fairsharePolicy != null && {
|
|
671
628
|
fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
|
|
672
629
|
})));
|
|
673
630
|
return [2, new __HttpRequest({
|
|
@@ -2173,11 +2130,10 @@ var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, co
|
|
|
2173
2130
|
});
|
|
2174
2131
|
}); };
|
|
2175
2132
|
var serializeAws_restJson1ArrayProperties = function (input, context) {
|
|
2176
|
-
return __assign({}, (input.size
|
|
2133
|
+
return __assign({}, (input.size != null && { size: input.size }));
|
|
2177
2134
|
};
|
|
2178
2135
|
var serializeAws_restJson1ComputeEnvironmentOrder = function (input, context) {
|
|
2179
|
-
return __assign(__assign({}, (input.computeEnvironment
|
|
2180
|
-
input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment })), (input.order !== undefined && input.order !== null && { order: input.order }));
|
|
2136
|
+
return __assign(__assign({}, (input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment })), (input.order != null && { order: input.order }));
|
|
2181
2137
|
};
|
|
2182
2138
|
var serializeAws_restJson1ComputeEnvironmentOrders = function (input, context) {
|
|
2183
2139
|
return input
|
|
@@ -2190,86 +2146,51 @@ var serializeAws_restJson1ComputeEnvironmentOrders = function (input, context) {
|
|
|
2190
2146
|
});
|
|
2191
2147
|
};
|
|
2192
2148
|
var serializeAws_restJson1ComputeResource = function (input, context) {
|
|
2193
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy
|
|
2194
|
-
input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy })), (input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage })), (input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus })), (input.ec2Configuration !== undefined &&
|
|
2195
|
-
input.ec2Configuration !== null && {
|
|
2149
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy })), (input.bidPercentage != null && { bidPercentage: input.bidPercentage })), (input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus })), (input.ec2Configuration != null && {
|
|
2196
2150
|
ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
|
|
2197
|
-
})), (input.ec2KeyPair
|
|
2198
|
-
input.instanceTypes !== null && {
|
|
2151
|
+
})), (input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair })), (input.imageId != null && { imageId: input.imageId })), (input.instanceRole != null && { instanceRole: input.instanceRole })), (input.instanceTypes != null && {
|
|
2199
2152
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
2200
|
-
})), (input.launchTemplate
|
|
2201
|
-
input.launchTemplate !== null && {
|
|
2153
|
+
})), (input.launchTemplate != null && {
|
|
2202
2154
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
2203
|
-
})), (input.maxvCpus
|
|
2204
|
-
input.placementGroup !== null && { placementGroup: input.placementGroup })), (input.securityGroupIds !== undefined &&
|
|
2205
|
-
input.securityGroupIds !== null && {
|
|
2155
|
+
})), (input.maxvCpus != null && { maxvCpus: input.maxvCpus })), (input.minvCpus != null && { minvCpus: input.minvCpus })), (input.placementGroup != null && { placementGroup: input.placementGroup })), (input.securityGroupIds != null && {
|
|
2206
2156
|
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
2207
|
-
})), (input.spotIamFleetRole
|
|
2208
|
-
input.spotIamFleetRole !== null && { spotIamFleetRole: input.spotIamFleetRole })), (input.subnets !== undefined &&
|
|
2209
|
-
input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined &&
|
|
2210
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
2157
|
+
})), (input.spotIamFleetRole != null && { spotIamFleetRole: input.spotIamFleetRole })), (input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type != null && { type: input.type }));
|
|
2211
2158
|
};
|
|
2212
2159
|
var serializeAws_restJson1ComputeResourceUpdate = function (input, context) {
|
|
2213
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy
|
|
2214
|
-
input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy })), (input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage })), (input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus })), (input.ec2Configuration !== undefined &&
|
|
2215
|
-
input.ec2Configuration !== null && {
|
|
2160
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy })), (input.bidPercentage != null && { bidPercentage: input.bidPercentage })), (input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus })), (input.ec2Configuration != null && {
|
|
2216
2161
|
ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
|
|
2217
|
-
})), (input.ec2KeyPair
|
|
2218
|
-
input.instanceTypes !== null && {
|
|
2162
|
+
})), (input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair })), (input.imageId != null && { imageId: input.imageId })), (input.instanceRole != null && { instanceRole: input.instanceRole })), (input.instanceTypes != null && {
|
|
2219
2163
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
2220
|
-
})), (input.launchTemplate
|
|
2221
|
-
input.launchTemplate !== null && {
|
|
2164
|
+
})), (input.launchTemplate != null && {
|
|
2222
2165
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
2223
|
-
})), (input.maxvCpus
|
|
2224
|
-
input.placementGroup !== null && { placementGroup: input.placementGroup })), (input.securityGroupIds !== undefined &&
|
|
2225
|
-
input.securityGroupIds !== null && {
|
|
2166
|
+
})), (input.maxvCpus != null && { maxvCpus: input.maxvCpus })), (input.minvCpus != null && { minvCpus: input.minvCpus })), (input.placementGroup != null && { placementGroup: input.placementGroup })), (input.securityGroupIds != null && {
|
|
2226
2167
|
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
2227
|
-
})), (input.subnets
|
|
2228
|
-
input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined &&
|
|
2229
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.updateToLatestImageVersion !== undefined &&
|
|
2230
|
-
input.updateToLatestImageVersion !== null && { updateToLatestImageVersion: input.updateToLatestImageVersion }));
|
|
2168
|
+
})), (input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type != null && { type: input.type })), (input.updateToLatestImageVersion != null && { updateToLatestImageVersion: input.updateToLatestImageVersion }));
|
|
2231
2169
|
};
|
|
2232
2170
|
var serializeAws_restJson1ContainerOverrides = function (input, context) {
|
|
2233
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.command
|
|
2234
|
-
input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment !== undefined &&
|
|
2235
|
-
input.environment !== null && {
|
|
2171
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment != null && {
|
|
2236
2172
|
environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
|
|
2237
|
-
})), (input.instanceType
|
|
2238
|
-
input.resourceRequirements !== null && {
|
|
2173
|
+
})), (input.instanceType != null && { instanceType: input.instanceType })), (input.memory != null && { memory: input.memory })), (input.resourceRequirements != null && {
|
|
2239
2174
|
resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
|
|
2240
|
-
})), (input.vcpus
|
|
2175
|
+
})), (input.vcpus != null && { vcpus: input.vcpus }));
|
|
2241
2176
|
};
|
|
2242
2177
|
var serializeAws_restJson1ContainerProperties = function (input, context) {
|
|
2243
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command
|
|
2244
|
-
input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment !== undefined &&
|
|
2245
|
-
input.environment !== null && {
|
|
2178
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment != null && {
|
|
2246
2179
|
environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
|
|
2247
|
-
})), (input.executionRoleArn
|
|
2248
|
-
input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.fargatePlatformConfiguration !== undefined &&
|
|
2249
|
-
input.fargatePlatformConfiguration !== null && {
|
|
2180
|
+
})), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.fargatePlatformConfiguration != null && {
|
|
2250
2181
|
fargatePlatformConfiguration: serializeAws_restJson1FargatePlatformConfiguration(input.fargatePlatformConfiguration, context),
|
|
2251
|
-
})), (input.image
|
|
2252
|
-
input.linuxParameters !== null && {
|
|
2182
|
+
})), (input.image != null && { image: input.image })), (input.instanceType != null && { instanceType: input.instanceType })), (input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn })), (input.linuxParameters != null && {
|
|
2253
2183
|
linuxParameters: serializeAws_restJson1LinuxParameters(input.linuxParameters, context),
|
|
2254
|
-
})), (input.logConfiguration
|
|
2255
|
-
input.logConfiguration !== null && {
|
|
2184
|
+
})), (input.logConfiguration != null && {
|
|
2256
2185
|
logConfiguration: serializeAws_restJson1LogConfiguration(input.logConfiguration, context),
|
|
2257
|
-
})), (input.memory
|
|
2258
|
-
input.mountPoints !== null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) })), (input.networkConfiguration !== undefined &&
|
|
2259
|
-
input.networkConfiguration !== null && {
|
|
2186
|
+
})), (input.memory != null && { memory: input.memory })), (input.mountPoints != null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) })), (input.networkConfiguration != null && {
|
|
2260
2187
|
networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
|
|
2261
|
-
})), (input.privileged
|
|
2262
|
-
input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.resourceRequirements !== undefined &&
|
|
2263
|
-
input.resourceRequirements !== null && {
|
|
2188
|
+
})), (input.privileged != null && { privileged: input.privileged })), (input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.resourceRequirements != null && {
|
|
2264
2189
|
resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
|
|
2265
|
-
})), (input.secrets
|
|
2266
|
-
input.secrets !== null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) })), (input.ulimits !== undefined &&
|
|
2267
|
-
input.ulimits !== null && { ulimits: serializeAws_restJson1Ulimits(input.ulimits, context) })), (input.user !== undefined && input.user !== null && { user: input.user })), (input.vcpus !== undefined && input.vcpus !== null && { vcpus: input.vcpus })), (input.volumes !== undefined &&
|
|
2268
|
-
input.volumes !== null && { volumes: serializeAws_restJson1Volumes(input.volumes, context) }));
|
|
2190
|
+
})), (input.secrets != null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) })), (input.ulimits != null && { ulimits: serializeAws_restJson1Ulimits(input.ulimits, context) })), (input.user != null && { user: input.user })), (input.vcpus != null && { vcpus: input.vcpus })), (input.volumes != null && { volumes: serializeAws_restJson1Volumes(input.volumes, context) }));
|
|
2269
2191
|
};
|
|
2270
2192
|
var serializeAws_restJson1Device = function (input, context) {
|
|
2271
|
-
return __assign(__assign(__assign({}, (input.containerPath
|
|
2272
|
-
input.permissions !== null && {
|
|
2193
|
+
return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.hostPath != null && { hostPath: input.hostPath })), (input.permissions != null && {
|
|
2273
2194
|
permissions: serializeAws_restJson1DeviceCgroupPermissions(input.permissions, context),
|
|
2274
2195
|
}));
|
|
2275
2196
|
};
|
|
@@ -2294,8 +2215,7 @@ var serializeAws_restJson1DevicesList = function (input, context) {
|
|
|
2294
2215
|
});
|
|
2295
2216
|
};
|
|
2296
2217
|
var serializeAws_restJson1Ec2Configuration = function (input, context) {
|
|
2297
|
-
return __assign(__assign({}, (input.imageIdOverride
|
|
2298
|
-
input.imageIdOverride !== null && { imageIdOverride: input.imageIdOverride })), (input.imageType !== undefined && input.imageType !== null && { imageType: input.imageType }));
|
|
2218
|
+
return __assign(__assign({}, (input.imageIdOverride != null && { imageIdOverride: input.imageIdOverride })), (input.imageType != null && { imageType: input.imageType }));
|
|
2299
2219
|
};
|
|
2300
2220
|
var serializeAws_restJson1Ec2ConfigurationList = function (input, context) {
|
|
2301
2221
|
return input
|
|
@@ -2308,15 +2228,12 @@ var serializeAws_restJson1Ec2ConfigurationList = function (input, context) {
|
|
|
2308
2228
|
});
|
|
2309
2229
|
};
|
|
2310
2230
|
var serializeAws_restJson1EFSAuthorizationConfig = function (input, context) {
|
|
2311
|
-
return __assign(__assign({}, (input.accessPointId
|
|
2231
|
+
return __assign(__assign({}, (input.accessPointId != null && { accessPointId: input.accessPointId })), (input.iam != null && { iam: input.iam }));
|
|
2312
2232
|
};
|
|
2313
2233
|
var serializeAws_restJson1EFSVolumeConfiguration = function (input, context) {
|
|
2314
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig
|
|
2315
|
-
input.authorizationConfig !== null && {
|
|
2234
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig != null && {
|
|
2316
2235
|
authorizationConfig: serializeAws_restJson1EFSAuthorizationConfig(input.authorizationConfig, context),
|
|
2317
|
-
})), (input.fileSystemId
|
|
2318
|
-
input.transitEncryption !== null && { transitEncryption: input.transitEncryption })), (input.transitEncryptionPort !== undefined &&
|
|
2319
|
-
input.transitEncryptionPort !== null && { transitEncryptionPort: input.transitEncryptionPort }));
|
|
2236
|
+
})), (input.fileSystemId != null && { fileSystemId: input.fileSystemId })), (input.rootDirectory != null && { rootDirectory: input.rootDirectory })), (input.transitEncryption != null && { transitEncryption: input.transitEncryption })), (input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }));
|
|
2320
2237
|
};
|
|
2321
2238
|
var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
2322
2239
|
return input
|
|
@@ -2329,8 +2246,7 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
|
2329
2246
|
});
|
|
2330
2247
|
};
|
|
2331
2248
|
var serializeAws_restJson1EvaluateOnExit = function (input, context) {
|
|
2332
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
2333
|
-
input.onStatusReason !== null && { onStatusReason: input.onStatusReason }));
|
|
2249
|
+
return __assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.onExitCode != null && { onExitCode: input.onExitCode })), (input.onReason != null && { onReason: input.onReason })), (input.onStatusReason != null && { onStatusReason: input.onStatusReason }));
|
|
2334
2250
|
};
|
|
2335
2251
|
var serializeAws_restJson1EvaluateOnExitList = function (input, context) {
|
|
2336
2252
|
return input
|
|
@@ -2343,22 +2259,18 @@ var serializeAws_restJson1EvaluateOnExitList = function (input, context) {
|
|
|
2343
2259
|
});
|
|
2344
2260
|
};
|
|
2345
2261
|
var serializeAws_restJson1FairsharePolicy = function (input, context) {
|
|
2346
|
-
return __assign(__assign(__assign({}, (input.computeReservation
|
|
2347
|
-
input.computeReservation !== null && { computeReservation: input.computeReservation })), (input.shareDecaySeconds !== undefined &&
|
|
2348
|
-
input.shareDecaySeconds !== null && { shareDecaySeconds: input.shareDecaySeconds })), (input.shareDistribution !== undefined &&
|
|
2349
|
-
input.shareDistribution !== null && {
|
|
2262
|
+
return __assign(__assign(__assign({}, (input.computeReservation != null && { computeReservation: input.computeReservation })), (input.shareDecaySeconds != null && { shareDecaySeconds: input.shareDecaySeconds })), (input.shareDistribution != null && {
|
|
2350
2263
|
shareDistribution: serializeAws_restJson1ShareAttributesList(input.shareDistribution, context),
|
|
2351
2264
|
}));
|
|
2352
2265
|
};
|
|
2353
2266
|
var serializeAws_restJson1FargatePlatformConfiguration = function (input, context) {
|
|
2354
|
-
return __assign({}, (input.platformVersion
|
|
2355
|
-
input.platformVersion !== null && { platformVersion: input.platformVersion }));
|
|
2267
|
+
return __assign({}, (input.platformVersion != null && { platformVersion: input.platformVersion }));
|
|
2356
2268
|
};
|
|
2357
2269
|
var serializeAws_restJson1Host = function (input, context) {
|
|
2358
|
-
return __assign({}, (input.sourcePath
|
|
2270
|
+
return __assign({}, (input.sourcePath != null && { sourcePath: input.sourcePath }));
|
|
2359
2271
|
};
|
|
2360
2272
|
var serializeAws_restJson1JobDependency = function (input, context) {
|
|
2361
|
-
return __assign(__assign({}, (input.jobId
|
|
2273
|
+
return __assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.type != null && { type: input.type }));
|
|
2362
2274
|
};
|
|
2363
2275
|
var serializeAws_restJson1JobDependencyList = function (input, context) {
|
|
2364
2276
|
return input
|
|
@@ -2371,27 +2283,19 @@ var serializeAws_restJson1JobDependencyList = function (input, context) {
|
|
|
2371
2283
|
});
|
|
2372
2284
|
};
|
|
2373
2285
|
var serializeAws_restJson1JobTimeout = function (input, context) {
|
|
2374
|
-
return __assign({}, (input.attemptDurationSeconds
|
|
2375
|
-
input.attemptDurationSeconds !== null && { attemptDurationSeconds: input.attemptDurationSeconds }));
|
|
2286
|
+
return __assign({}, (input.attemptDurationSeconds != null && { attemptDurationSeconds: input.attemptDurationSeconds }));
|
|
2376
2287
|
};
|
|
2377
2288
|
var serializeAws_restJson1KeyValuePair = function (input, context) {
|
|
2378
|
-
return __assign(__assign({}, (input.name
|
|
2289
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
2379
2290
|
};
|
|
2380
2291
|
var serializeAws_restJson1KeyValuesPair = function (input, context) {
|
|
2381
|
-
return __assign(__assign({}, (input.name
|
|
2382
|
-
input.values !== null && { values: serializeAws_restJson1StringList(input.values, context) }));
|
|
2292
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1StringList(input.values, context) }));
|
|
2383
2293
|
};
|
|
2384
2294
|
var serializeAws_restJson1LaunchTemplateSpecification = function (input, context) {
|
|
2385
|
-
return __assign(__assign(__assign({}, (input.launchTemplateId
|
|
2386
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName !== undefined &&
|
|
2387
|
-
input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName })), (input.version !== undefined && input.version !== null && { version: input.version }));
|
|
2295
|
+
return __assign(__assign(__assign({}, (input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName })), (input.version != null && { version: input.version }));
|
|
2388
2296
|
};
|
|
2389
2297
|
var serializeAws_restJson1LinuxParameters = function (input, context) {
|
|
2390
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.devices
|
|
2391
|
-
input.devices !== null && { devices: serializeAws_restJson1DevicesList(input.devices, context) })), (input.initProcessEnabled !== undefined &&
|
|
2392
|
-
input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled })), (input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap })), (input.sharedMemorySize !== undefined &&
|
|
2393
|
-
input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize })), (input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness })), (input.tmpfs !== undefined &&
|
|
2394
|
-
input.tmpfs !== null && { tmpfs: serializeAws_restJson1TmpfsList(input.tmpfs, context) }));
|
|
2298
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.devices != null && { devices: serializeAws_restJson1DevicesList(input.devices, context) })), (input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled })), (input.maxSwap != null && { maxSwap: input.maxSwap })), (input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize })), (input.swappiness != null && { swappiness: input.swappiness })), (input.tmpfs != null && { tmpfs: serializeAws_restJson1TmpfsList(input.tmpfs, context) }));
|
|
2395
2299
|
};
|
|
2396
2300
|
var serializeAws_restJson1ListJobsFilterList = function (input, context) {
|
|
2397
2301
|
return input
|
|
@@ -2404,9 +2308,7 @@ var serializeAws_restJson1ListJobsFilterList = function (input, context) {
|
|
|
2404
2308
|
});
|
|
2405
2309
|
};
|
|
2406
2310
|
var serializeAws_restJson1LogConfiguration = function (input, context) {
|
|
2407
|
-
return __assign(__assign(__assign({}, (input.logDriver
|
|
2408
|
-
input.options !== null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) })), (input.secretOptions !== undefined &&
|
|
2409
|
-
input.secretOptions !== null && {
|
|
2311
|
+
return __assign(__assign(__assign({}, (input.logDriver != null && { logDriver: input.logDriver })), (input.options != null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) })), (input.secretOptions != null && {
|
|
2410
2312
|
secretOptions: serializeAws_restJson1SecretList(input.secretOptions, context),
|
|
2411
2313
|
}));
|
|
2412
2314
|
};
|
|
@@ -2421,7 +2323,7 @@ var serializeAws_restJson1LogConfigurationOptionsMap = function (input, context)
|
|
|
2421
2323
|
}, {});
|
|
2422
2324
|
};
|
|
2423
2325
|
var serializeAws_restJson1MountPoint = function (input, context) {
|
|
2424
|
-
return __assign(__assign(__assign({}, (input.containerPath
|
|
2326
|
+
return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.readOnly != null && { readOnly: input.readOnly })), (input.sourceVolume != null && { sourceVolume: input.sourceVolume }));
|
|
2425
2327
|
};
|
|
2426
2328
|
var serializeAws_restJson1MountPoints = function (input, context) {
|
|
2427
2329
|
return input
|
|
@@ -2434,26 +2336,22 @@ var serializeAws_restJson1MountPoints = function (input, context) {
|
|
|
2434
2336
|
});
|
|
2435
2337
|
};
|
|
2436
2338
|
var serializeAws_restJson1NetworkConfiguration = function (input, context) {
|
|
2437
|
-
return __assign({}, (input.assignPublicIp
|
|
2438
|
-
input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp }));
|
|
2339
|
+
return __assign({}, (input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }));
|
|
2439
2340
|
};
|
|
2440
2341
|
var serializeAws_restJson1NodeOverrides = function (input, context) {
|
|
2441
|
-
return __assign(__assign({}, (input.nodePropertyOverrides
|
|
2442
|
-
input.nodePropertyOverrides !== null && {
|
|
2342
|
+
return __assign(__assign({}, (input.nodePropertyOverrides != null && {
|
|
2443
2343
|
nodePropertyOverrides: serializeAws_restJson1NodePropertyOverrides(input.nodePropertyOverrides, context),
|
|
2444
|
-
})), (input.numNodes
|
|
2344
|
+
})), (input.numNodes != null && { numNodes: input.numNodes }));
|
|
2445
2345
|
};
|
|
2446
2346
|
var serializeAws_restJson1NodeProperties = function (input, context) {
|
|
2447
|
-
return __assign(__assign(__assign({}, (input.mainNode
|
|
2448
|
-
input.nodeRangeProperties !== null && {
|
|
2347
|
+
return __assign(__assign(__assign({}, (input.mainNode != null && { mainNode: input.mainNode })), (input.nodeRangeProperties != null && {
|
|
2449
2348
|
nodeRangeProperties: serializeAws_restJson1NodeRangeProperties(input.nodeRangeProperties, context),
|
|
2450
|
-
})), (input.numNodes
|
|
2349
|
+
})), (input.numNodes != null && { numNodes: input.numNodes }));
|
|
2451
2350
|
};
|
|
2452
2351
|
var serializeAws_restJson1NodePropertyOverride = function (input, context) {
|
|
2453
|
-
return __assign(__assign({}, (input.containerOverrides
|
|
2454
|
-
input.containerOverrides !== null && {
|
|
2352
|
+
return __assign(__assign({}, (input.containerOverrides != null && {
|
|
2455
2353
|
containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
|
|
2456
|
-
})), (input.targetNodes
|
|
2354
|
+
})), (input.targetNodes != null && { targetNodes: input.targetNodes }));
|
|
2457
2355
|
};
|
|
2458
2356
|
var serializeAws_restJson1NodePropertyOverrides = function (input, context) {
|
|
2459
2357
|
return input
|
|
@@ -2476,8 +2374,7 @@ var serializeAws_restJson1NodeRangeProperties = function (input, context) {
|
|
|
2476
2374
|
});
|
|
2477
2375
|
};
|
|
2478
2376
|
var serializeAws_restJson1NodeRangeProperty = function (input, context) {
|
|
2479
|
-
return __assign(__assign({}, (input.container
|
|
2480
|
-
input.container !== null && { container: serializeAws_restJson1ContainerProperties(input.container, context) })), (input.targetNodes !== undefined && input.targetNodes !== null && { targetNodes: input.targetNodes }));
|
|
2377
|
+
return __assign(__assign({}, (input.container != null && { container: serializeAws_restJson1ContainerProperties(input.container, context) })), (input.targetNodes != null && { targetNodes: input.targetNodes }));
|
|
2481
2378
|
};
|
|
2482
2379
|
var serializeAws_restJson1ParametersMap = function (input, context) {
|
|
2483
2380
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2500,7 +2397,7 @@ var serializeAws_restJson1PlatformCapabilityList = function (input, context) {
|
|
|
2500
2397
|
});
|
|
2501
2398
|
};
|
|
2502
2399
|
var serializeAws_restJson1ResourceRequirement = function (input, context) {
|
|
2503
|
-
return __assign(__assign({}, (input.type
|
|
2400
|
+
return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
|
|
2504
2401
|
};
|
|
2505
2402
|
var serializeAws_restJson1ResourceRequirements = function (input, context) {
|
|
2506
2403
|
return input
|
|
@@ -2513,13 +2410,12 @@ var serializeAws_restJson1ResourceRequirements = function (input, context) {
|
|
|
2513
2410
|
});
|
|
2514
2411
|
};
|
|
2515
2412
|
var serializeAws_restJson1RetryStrategy = function (input, context) {
|
|
2516
|
-
return __assign(__assign({}, (input.attempts
|
|
2517
|
-
input.evaluateOnExit !== null && {
|
|
2413
|
+
return __assign(__assign({}, (input.attempts != null && { attempts: input.attempts })), (input.evaluateOnExit != null && {
|
|
2518
2414
|
evaluateOnExit: serializeAws_restJson1EvaluateOnExitList(input.evaluateOnExit, context),
|
|
2519
2415
|
}));
|
|
2520
2416
|
};
|
|
2521
2417
|
var serializeAws_restJson1Secret = function (input, context) {
|
|
2522
|
-
return __assign(__assign({}, (input.name
|
|
2418
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.valueFrom != null && { valueFrom: input.valueFrom }));
|
|
2523
2419
|
};
|
|
2524
2420
|
var serializeAws_restJson1SecretList = function (input, context) {
|
|
2525
2421
|
return input
|
|
@@ -2532,9 +2428,7 @@ var serializeAws_restJson1SecretList = function (input, context) {
|
|
|
2532
2428
|
});
|
|
2533
2429
|
};
|
|
2534
2430
|
var serializeAws_restJson1ShareAttributes = function (input, context) {
|
|
2535
|
-
return __assign(__assign({}, (input.shareIdentifier
|
|
2536
|
-
input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier })), (input.weightFactor !== undefined &&
|
|
2537
|
-
input.weightFactor !== null && { weightFactor: __serializeFloat(input.weightFactor) }));
|
|
2431
|
+
return __assign(__assign({}, (input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier })), (input.weightFactor != null && { weightFactor: __serializeFloat(input.weightFactor) }));
|
|
2538
2432
|
};
|
|
2539
2433
|
var serializeAws_restJson1ShareAttributesList = function (input, context) {
|
|
2540
2434
|
return input
|
|
@@ -2577,8 +2471,7 @@ var serializeAws_restJson1TagsMap = function (input, context) {
|
|
|
2577
2471
|
}, {});
|
|
2578
2472
|
};
|
|
2579
2473
|
var serializeAws_restJson1Tmpfs = function (input, context) {
|
|
2580
|
-
return __assign(__assign(__assign({}, (input.containerPath
|
|
2581
|
-
input.mountOptions !== null && { mountOptions: serializeAws_restJson1StringList(input.mountOptions, context) })), (input.size !== undefined && input.size !== null && { size: input.size }));
|
|
2474
|
+
return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.mountOptions != null && { mountOptions: serializeAws_restJson1StringList(input.mountOptions, context) })), (input.size != null && { size: input.size }));
|
|
2582
2475
|
};
|
|
2583
2476
|
var serializeAws_restJson1TmpfsList = function (input, context) {
|
|
2584
2477
|
return input
|
|
@@ -2591,7 +2484,7 @@ var serializeAws_restJson1TmpfsList = function (input, context) {
|
|
|
2591
2484
|
});
|
|
2592
2485
|
};
|
|
2593
2486
|
var serializeAws_restJson1Ulimit = function (input, context) {
|
|
2594
|
-
return __assign(__assign(__assign({}, (input.hardLimit
|
|
2487
|
+
return __assign(__assign(__assign({}, (input.hardLimit != null && { hardLimit: input.hardLimit })), (input.name != null && { name: input.name })), (input.softLimit != null && { softLimit: input.softLimit }));
|
|
2595
2488
|
};
|
|
2596
2489
|
var serializeAws_restJson1Ulimits = function (input, context) {
|
|
2597
2490
|
return input
|
|
@@ -2604,15 +2497,12 @@ var serializeAws_restJson1Ulimits = function (input, context) {
|
|
|
2604
2497
|
});
|
|
2605
2498
|
};
|
|
2606
2499
|
var serializeAws_restJson1UpdatePolicy = function (input, context) {
|
|
2607
|
-
return __assign(__assign({}, (input.jobExecutionTimeoutMinutes
|
|
2608
|
-
input.jobExecutionTimeoutMinutes !== null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes })), (input.terminateJobsOnUpdate !== undefined &&
|
|
2609
|
-
input.terminateJobsOnUpdate !== null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }));
|
|
2500
|
+
return __assign(__assign({}, (input.jobExecutionTimeoutMinutes != null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes })), (input.terminateJobsOnUpdate != null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }));
|
|
2610
2501
|
};
|
|
2611
2502
|
var serializeAws_restJson1Volume = function (input, context) {
|
|
2612
|
-
return __assign(__assign(__assign({}, (input.efsVolumeConfiguration
|
|
2613
|
-
input.efsVolumeConfiguration !== null && {
|
|
2503
|
+
return __assign(__assign(__assign({}, (input.efsVolumeConfiguration != null && {
|
|
2614
2504
|
efsVolumeConfiguration: serializeAws_restJson1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
|
|
2615
|
-
})), (input.host
|
|
2505
|
+
})), (input.host != null && { host: serializeAws_restJson1Host(input.host, context) })), (input.name != null && { name: input.name }));
|
|
2616
2506
|
};
|
|
2617
2507
|
var serializeAws_restJson1Volumes = function (input, context) {
|
|
2618
2508
|
return input
|
|
@@ -2638,7 +2528,7 @@ var deserializeAws_restJson1ArrayPropertiesDetail = function (output, context) {
|
|
|
2638
2528
|
return {
|
|
2639
2529
|
index: __expectInt32(output.index),
|
|
2640
2530
|
size: __expectInt32(output.size),
|
|
2641
|
-
statusSummary: output.statusSummary
|
|
2531
|
+
statusSummary: output.statusSummary != null
|
|
2642
2532
|
? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
|
|
2643
2533
|
: undefined,
|
|
2644
2534
|
};
|
|
@@ -2654,7 +2544,7 @@ var deserializeAws_restJson1AttemptContainerDetail = function (output, context)
|
|
|
2654
2544
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
2655
2545
|
exitCode: __expectInt32(output.exitCode),
|
|
2656
2546
|
logStreamName: __expectString(output.logStreamName),
|
|
2657
|
-
networkInterfaces: output.networkInterfaces
|
|
2547
|
+
networkInterfaces: output.networkInterfaces != null
|
|
2658
2548
|
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2659
2549
|
: undefined,
|
|
2660
2550
|
reason: __expectString(output.reason),
|
|
@@ -2663,9 +2553,7 @@ var deserializeAws_restJson1AttemptContainerDetail = function (output, context)
|
|
|
2663
2553
|
};
|
|
2664
2554
|
var deserializeAws_restJson1AttemptDetail = function (output, context) {
|
|
2665
2555
|
return {
|
|
2666
|
-
container: output.container
|
|
2667
|
-
? deserializeAws_restJson1AttemptContainerDetail(output.container, context)
|
|
2668
|
-
: undefined,
|
|
2556
|
+
container: output.container != null ? deserializeAws_restJson1AttemptContainerDetail(output.container, context) : undefined,
|
|
2669
2557
|
startedAt: __expectLong(output.startedAt),
|
|
2670
2558
|
statusReason: __expectString(output.statusReason),
|
|
2671
2559
|
stoppedAt: __expectLong(output.stoppedAt),
|
|
@@ -2686,7 +2574,7 @@ var deserializeAws_restJson1ComputeEnvironmentDetail = function (output, context
|
|
|
2686
2574
|
return {
|
|
2687
2575
|
computeEnvironmentArn: __expectString(output.computeEnvironmentArn),
|
|
2688
2576
|
computeEnvironmentName: __expectString(output.computeEnvironmentName),
|
|
2689
|
-
computeResources: output.computeResources
|
|
2577
|
+
computeResources: output.computeResources != null
|
|
2690
2578
|
? deserializeAws_restJson1ComputeResource(output.computeResources, context)
|
|
2691
2579
|
: undefined,
|
|
2692
2580
|
ecsClusterArn: __expectString(output.ecsClusterArn),
|
|
@@ -2694,14 +2582,10 @@ var deserializeAws_restJson1ComputeEnvironmentDetail = function (output, context
|
|
|
2694
2582
|
state: __expectString(output.state),
|
|
2695
2583
|
status: __expectString(output.status),
|
|
2696
2584
|
statusReason: __expectString(output.statusReason),
|
|
2697
|
-
tags: output.tags
|
|
2698
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
2699
|
-
: undefined,
|
|
2585
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2700
2586
|
type: __expectString(output.type),
|
|
2701
2587
|
unmanagedvCpus: __expectInt32(output.unmanagedvCpus),
|
|
2702
|
-
updatePolicy: output.updatePolicy
|
|
2703
|
-
? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context)
|
|
2704
|
-
: undefined,
|
|
2588
|
+
updatePolicy: output.updatePolicy != null ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context) : undefined,
|
|
2705
2589
|
};
|
|
2706
2590
|
};
|
|
2707
2591
|
var deserializeAws_restJson1ComputeEnvironmentDetailList = function (output, context) {
|
|
@@ -2737,132 +2621,106 @@ var deserializeAws_restJson1ComputeResource = function (output, context) {
|
|
|
2737
2621
|
allocationStrategy: __expectString(output.allocationStrategy),
|
|
2738
2622
|
bidPercentage: __expectInt32(output.bidPercentage),
|
|
2739
2623
|
desiredvCpus: __expectInt32(output.desiredvCpus),
|
|
2740
|
-
ec2Configuration: output.ec2Configuration
|
|
2624
|
+
ec2Configuration: output.ec2Configuration != null
|
|
2741
2625
|
? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
|
|
2742
2626
|
: undefined,
|
|
2743
2627
|
ec2KeyPair: __expectString(output.ec2KeyPair),
|
|
2744
2628
|
imageId: __expectString(output.imageId),
|
|
2745
2629
|
instanceRole: __expectString(output.instanceRole),
|
|
2746
|
-
instanceTypes: output.instanceTypes
|
|
2747
|
-
|
|
2748
|
-
: undefined,
|
|
2749
|
-
launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
|
|
2630
|
+
instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
|
|
2631
|
+
launchTemplate: output.launchTemplate != null
|
|
2750
2632
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
2751
2633
|
: undefined,
|
|
2752
2634
|
maxvCpus: __expectInt32(output.maxvCpus),
|
|
2753
2635
|
minvCpus: __expectInt32(output.minvCpus),
|
|
2754
2636
|
placementGroup: __expectString(output.placementGroup),
|
|
2755
|
-
securityGroupIds: output.securityGroupIds
|
|
2637
|
+
securityGroupIds: output.securityGroupIds != null
|
|
2756
2638
|
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
2757
2639
|
: undefined,
|
|
2758
2640
|
spotIamFleetRole: __expectString(output.spotIamFleetRole),
|
|
2759
|
-
subnets: output.subnets
|
|
2760
|
-
|
|
2761
|
-
: undefined,
|
|
2762
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
2763
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
2764
|
-
: undefined,
|
|
2641
|
+
subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
|
|
2642
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
2765
2643
|
type: __expectString(output.type),
|
|
2766
2644
|
};
|
|
2767
2645
|
};
|
|
2768
2646
|
var deserializeAws_restJson1ContainerDetail = function (output, context) {
|
|
2769
2647
|
return {
|
|
2770
|
-
command: output.command
|
|
2771
|
-
? deserializeAws_restJson1StringList(output.command, context)
|
|
2772
|
-
: undefined,
|
|
2648
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2773
2649
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
2774
|
-
environment: output.environment
|
|
2650
|
+
environment: output.environment != null
|
|
2775
2651
|
? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
|
|
2776
2652
|
: undefined,
|
|
2777
2653
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2778
2654
|
exitCode: __expectInt32(output.exitCode),
|
|
2779
|
-
fargatePlatformConfiguration: output.fargatePlatformConfiguration
|
|
2655
|
+
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2780
2656
|
? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2781
2657
|
: undefined,
|
|
2782
2658
|
image: __expectString(output.image),
|
|
2783
2659
|
instanceType: __expectString(output.instanceType),
|
|
2784
2660
|
jobRoleArn: __expectString(output.jobRoleArn),
|
|
2785
|
-
linuxParameters: output.linuxParameters
|
|
2661
|
+
linuxParameters: output.linuxParameters != null
|
|
2786
2662
|
? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
|
|
2787
2663
|
: undefined,
|
|
2788
|
-
logConfiguration: output.logConfiguration
|
|
2664
|
+
logConfiguration: output.logConfiguration != null
|
|
2789
2665
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2790
2666
|
: undefined,
|
|
2791
2667
|
logStreamName: __expectString(output.logStreamName),
|
|
2792
2668
|
memory: __expectInt32(output.memory),
|
|
2793
|
-
mountPoints: output.mountPoints
|
|
2794
|
-
|
|
2795
|
-
: undefined,
|
|
2796
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
2669
|
+
mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
|
|
2670
|
+
networkConfiguration: output.networkConfiguration != null
|
|
2797
2671
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
2798
2672
|
: undefined,
|
|
2799
|
-
networkInterfaces: output.networkInterfaces
|
|
2673
|
+
networkInterfaces: output.networkInterfaces != null
|
|
2800
2674
|
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2801
2675
|
: undefined,
|
|
2802
2676
|
privileged: __expectBoolean(output.privileged),
|
|
2803
2677
|
readonlyRootFilesystem: __expectBoolean(output.readonlyRootFilesystem),
|
|
2804
2678
|
reason: __expectString(output.reason),
|
|
2805
|
-
resourceRequirements: output.resourceRequirements
|
|
2679
|
+
resourceRequirements: output.resourceRequirements != null
|
|
2806
2680
|
? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
|
|
2807
2681
|
: undefined,
|
|
2808
|
-
secrets: output.secrets
|
|
2809
|
-
? deserializeAws_restJson1SecretList(output.secrets, context)
|
|
2810
|
-
: undefined,
|
|
2682
|
+
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2811
2683
|
taskArn: __expectString(output.taskArn),
|
|
2812
|
-
ulimits: output.ulimits
|
|
2813
|
-
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2814
|
-
: undefined,
|
|
2684
|
+
ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
|
|
2815
2685
|
user: __expectString(output.user),
|
|
2816
2686
|
vcpus: __expectInt32(output.vcpus),
|
|
2817
|
-
volumes: output.volumes
|
|
2818
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2819
|
-
: undefined,
|
|
2687
|
+
volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
2820
2688
|
};
|
|
2821
2689
|
};
|
|
2822
2690
|
var deserializeAws_restJson1ContainerProperties = function (output, context) {
|
|
2823
2691
|
return {
|
|
2824
|
-
command: output.command
|
|
2825
|
-
|
|
2826
|
-
: undefined,
|
|
2827
|
-
environment: output.environment !== undefined && output.environment !== null
|
|
2692
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2693
|
+
environment: output.environment != null
|
|
2828
2694
|
? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
|
|
2829
2695
|
: undefined,
|
|
2830
2696
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2831
|
-
fargatePlatformConfiguration: output.fargatePlatformConfiguration
|
|
2697
|
+
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2832
2698
|
? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2833
2699
|
: undefined,
|
|
2834
2700
|
image: __expectString(output.image),
|
|
2835
2701
|
instanceType: __expectString(output.instanceType),
|
|
2836
2702
|
jobRoleArn: __expectString(output.jobRoleArn),
|
|
2837
|
-
linuxParameters: output.linuxParameters
|
|
2703
|
+
linuxParameters: output.linuxParameters != null
|
|
2838
2704
|
? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
|
|
2839
2705
|
: undefined,
|
|
2840
|
-
logConfiguration: output.logConfiguration
|
|
2706
|
+
logConfiguration: output.logConfiguration != null
|
|
2841
2707
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2842
2708
|
: undefined,
|
|
2843
2709
|
memory: __expectInt32(output.memory),
|
|
2844
|
-
mountPoints: output.mountPoints
|
|
2845
|
-
|
|
2846
|
-
: undefined,
|
|
2847
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
2710
|
+
mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
|
|
2711
|
+
networkConfiguration: output.networkConfiguration != null
|
|
2848
2712
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
2849
2713
|
: undefined,
|
|
2850
2714
|
privileged: __expectBoolean(output.privileged),
|
|
2851
2715
|
readonlyRootFilesystem: __expectBoolean(output.readonlyRootFilesystem),
|
|
2852
|
-
resourceRequirements: output.resourceRequirements
|
|
2716
|
+
resourceRequirements: output.resourceRequirements != null
|
|
2853
2717
|
? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
|
|
2854
2718
|
: undefined,
|
|
2855
|
-
secrets: output.secrets
|
|
2856
|
-
|
|
2857
|
-
: undefined,
|
|
2858
|
-
ulimits: output.ulimits !== undefined && output.ulimits !== null
|
|
2859
|
-
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2860
|
-
: undefined,
|
|
2719
|
+
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2720
|
+
ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
|
|
2861
2721
|
user: __expectString(output.user),
|
|
2862
2722
|
vcpus: __expectInt32(output.vcpus),
|
|
2863
|
-
volumes: output.volumes
|
|
2864
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2865
|
-
: undefined,
|
|
2723
|
+
volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
2866
2724
|
};
|
|
2867
2725
|
};
|
|
2868
2726
|
var deserializeAws_restJson1ContainerSummary = function (output, context) {
|
|
@@ -2875,7 +2733,7 @@ var deserializeAws_restJson1Device = function (output, context) {
|
|
|
2875
2733
|
return {
|
|
2876
2734
|
containerPath: __expectString(output.containerPath),
|
|
2877
2735
|
hostPath: __expectString(output.hostPath),
|
|
2878
|
-
permissions: output.permissions
|
|
2736
|
+
permissions: output.permissions != null
|
|
2879
2737
|
? deserializeAws_restJson1DeviceCgroupPermissions(output.permissions, context)
|
|
2880
2738
|
: undefined,
|
|
2881
2739
|
};
|
|
@@ -2927,7 +2785,7 @@ var deserializeAws_restJson1EFSAuthorizationConfig = function (output, context)
|
|
|
2927
2785
|
};
|
|
2928
2786
|
var deserializeAws_restJson1EFSVolumeConfiguration = function (output, context) {
|
|
2929
2787
|
return {
|
|
2930
|
-
authorizationConfig: output.authorizationConfig
|
|
2788
|
+
authorizationConfig: output.authorizationConfig != null
|
|
2931
2789
|
? deserializeAws_restJson1EFSAuthorizationConfig(output.authorizationConfig, context)
|
|
2932
2790
|
: undefined,
|
|
2933
2791
|
fileSystemId: __expectString(output.fileSystemId),
|
|
@@ -2970,7 +2828,7 @@ var deserializeAws_restJson1FairsharePolicy = function (output, context) {
|
|
|
2970
2828
|
return {
|
|
2971
2829
|
computeReservation: __expectInt32(output.computeReservation),
|
|
2972
2830
|
shareDecaySeconds: __expectInt32(output.shareDecaySeconds),
|
|
2973
|
-
shareDistribution: output.shareDistribution
|
|
2831
|
+
shareDistribution: output.shareDistribution != null
|
|
2974
2832
|
? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
|
|
2975
2833
|
: undefined,
|
|
2976
2834
|
};
|
|
@@ -2987,33 +2845,25 @@ var deserializeAws_restJson1Host = function (output, context) {
|
|
|
2987
2845
|
};
|
|
2988
2846
|
var deserializeAws_restJson1JobDefinition = function (output, context) {
|
|
2989
2847
|
return {
|
|
2990
|
-
containerProperties: output.containerProperties
|
|
2848
|
+
containerProperties: output.containerProperties != null
|
|
2991
2849
|
? deserializeAws_restJson1ContainerProperties(output.containerProperties, context)
|
|
2992
2850
|
: undefined,
|
|
2993
2851
|
jobDefinitionArn: __expectString(output.jobDefinitionArn),
|
|
2994
2852
|
jobDefinitionName: __expectString(output.jobDefinitionName),
|
|
2995
|
-
nodeProperties: output.nodeProperties
|
|
2853
|
+
nodeProperties: output.nodeProperties != null
|
|
2996
2854
|
? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
|
|
2997
2855
|
: undefined,
|
|
2998
|
-
parameters: output.parameters
|
|
2999
|
-
|
|
3000
|
-
: undefined,
|
|
3001
|
-
platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
|
|
2856
|
+
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2857
|
+
platformCapabilities: output.platformCapabilities != null
|
|
3002
2858
|
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
3003
2859
|
: undefined,
|
|
3004
2860
|
propagateTags: __expectBoolean(output.propagateTags),
|
|
3005
|
-
retryStrategy: output.retryStrategy
|
|
3006
|
-
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
3007
|
-
: undefined,
|
|
2861
|
+
retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
|
|
3008
2862
|
revision: __expectInt32(output.revision),
|
|
3009
2863
|
schedulingPriority: __expectInt32(output.schedulingPriority),
|
|
3010
2864
|
status: __expectString(output.status),
|
|
3011
|
-
tags: output.tags
|
|
3012
|
-
|
|
3013
|
-
: undefined,
|
|
3014
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
3015
|
-
? deserializeAws_restJson1JobTimeout(output.timeout, context)
|
|
3016
|
-
: undefined,
|
|
2865
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2866
|
+
timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
|
|
3017
2867
|
type: __expectString(output.type),
|
|
3018
2868
|
};
|
|
3019
2869
|
};
|
|
@@ -3047,52 +2897,36 @@ var deserializeAws_restJson1JobDependencyList = function (output, context) {
|
|
|
3047
2897
|
};
|
|
3048
2898
|
var deserializeAws_restJson1JobDetail = function (output, context) {
|
|
3049
2899
|
return {
|
|
3050
|
-
arrayProperties: output.arrayProperties
|
|
2900
|
+
arrayProperties: output.arrayProperties != null
|
|
3051
2901
|
? deserializeAws_restJson1ArrayPropertiesDetail(output.arrayProperties, context)
|
|
3052
2902
|
: undefined,
|
|
3053
|
-
attempts: output.attempts
|
|
3054
|
-
|
|
3055
|
-
: undefined,
|
|
3056
|
-
container: output.container !== undefined && output.container !== null
|
|
3057
|
-
? deserializeAws_restJson1ContainerDetail(output.container, context)
|
|
3058
|
-
: undefined,
|
|
2903
|
+
attempts: output.attempts != null ? deserializeAws_restJson1AttemptDetails(output.attempts, context) : undefined,
|
|
2904
|
+
container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
|
|
3059
2905
|
createdAt: __expectLong(output.createdAt),
|
|
3060
|
-
dependsOn: output.dependsOn
|
|
3061
|
-
? deserializeAws_restJson1JobDependencyList(output.dependsOn, context)
|
|
3062
|
-
: undefined,
|
|
2906
|
+
dependsOn: output.dependsOn != null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) : undefined,
|
|
3063
2907
|
jobArn: __expectString(output.jobArn),
|
|
3064
2908
|
jobDefinition: __expectString(output.jobDefinition),
|
|
3065
2909
|
jobId: __expectString(output.jobId),
|
|
3066
2910
|
jobName: __expectString(output.jobName),
|
|
3067
2911
|
jobQueue: __expectString(output.jobQueue),
|
|
3068
|
-
nodeDetails: output.nodeDetails
|
|
3069
|
-
|
|
3070
|
-
: undefined,
|
|
3071
|
-
nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
|
|
2912
|
+
nodeDetails: output.nodeDetails != null ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context) : undefined,
|
|
2913
|
+
nodeProperties: output.nodeProperties != null
|
|
3072
2914
|
? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
|
|
3073
2915
|
: undefined,
|
|
3074
|
-
parameters: output.parameters
|
|
3075
|
-
|
|
3076
|
-
: undefined,
|
|
3077
|
-
platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
|
|
2916
|
+
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2917
|
+
platformCapabilities: output.platformCapabilities != null
|
|
3078
2918
|
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
3079
2919
|
: undefined,
|
|
3080
2920
|
propagateTags: __expectBoolean(output.propagateTags),
|
|
3081
|
-
retryStrategy: output.retryStrategy
|
|
3082
|
-
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
3083
|
-
: undefined,
|
|
2921
|
+
retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
|
|
3084
2922
|
schedulingPriority: __expectInt32(output.schedulingPriority),
|
|
3085
2923
|
shareIdentifier: __expectString(output.shareIdentifier),
|
|
3086
2924
|
startedAt: __expectLong(output.startedAt),
|
|
3087
2925
|
status: __expectString(output.status),
|
|
3088
2926
|
statusReason: __expectString(output.statusReason),
|
|
3089
2927
|
stoppedAt: __expectLong(output.stoppedAt),
|
|
3090
|
-
tags: output.tags
|
|
3091
|
-
|
|
3092
|
-
: undefined,
|
|
3093
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
3094
|
-
? deserializeAws_restJson1JobTimeout(output.timeout, context)
|
|
3095
|
-
: undefined,
|
|
2928
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2929
|
+
timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
|
|
3096
2930
|
};
|
|
3097
2931
|
};
|
|
3098
2932
|
var deserializeAws_restJson1JobDetailList = function (output, context) {
|
|
@@ -3108,7 +2942,7 @@ var deserializeAws_restJson1JobDetailList = function (output, context) {
|
|
|
3108
2942
|
};
|
|
3109
2943
|
var deserializeAws_restJson1JobQueueDetail = function (output, context) {
|
|
3110
2944
|
return {
|
|
3111
|
-
computeEnvironmentOrder: output.computeEnvironmentOrder
|
|
2945
|
+
computeEnvironmentOrder: output.computeEnvironmentOrder != null
|
|
3112
2946
|
? deserializeAws_restJson1ComputeEnvironmentOrders(output.computeEnvironmentOrder, context)
|
|
3113
2947
|
: undefined,
|
|
3114
2948
|
jobQueueArn: __expectString(output.jobQueueArn),
|
|
@@ -3118,9 +2952,7 @@ var deserializeAws_restJson1JobQueueDetail = function (output, context) {
|
|
|
3118
2952
|
state: __expectString(output.state),
|
|
3119
2953
|
status: __expectString(output.status),
|
|
3120
2954
|
statusReason: __expectString(output.statusReason),
|
|
3121
|
-
tags: output.tags
|
|
3122
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
3123
|
-
: undefined,
|
|
2955
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
3124
2956
|
};
|
|
3125
2957
|
};
|
|
3126
2958
|
var deserializeAws_restJson1JobQueueDetailList = function (output, context) {
|
|
@@ -3136,18 +2968,16 @@ var deserializeAws_restJson1JobQueueDetailList = function (output, context) {
|
|
|
3136
2968
|
};
|
|
3137
2969
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
3138
2970
|
return {
|
|
3139
|
-
arrayProperties: output.arrayProperties
|
|
2971
|
+
arrayProperties: output.arrayProperties != null
|
|
3140
2972
|
? deserializeAws_restJson1ArrayPropertiesSummary(output.arrayProperties, context)
|
|
3141
2973
|
: undefined,
|
|
3142
|
-
container: output.container
|
|
3143
|
-
? deserializeAws_restJson1ContainerSummary(output.container, context)
|
|
3144
|
-
: undefined,
|
|
2974
|
+
container: output.container != null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined,
|
|
3145
2975
|
createdAt: __expectLong(output.createdAt),
|
|
3146
2976
|
jobArn: __expectString(output.jobArn),
|
|
3147
2977
|
jobDefinition: __expectString(output.jobDefinition),
|
|
3148
2978
|
jobId: __expectString(output.jobId),
|
|
3149
2979
|
jobName: __expectString(output.jobName),
|
|
3150
|
-
nodeProperties: output.nodeProperties
|
|
2980
|
+
nodeProperties: output.nodeProperties != null
|
|
3151
2981
|
? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
|
|
3152
2982
|
: undefined,
|
|
3153
2983
|
startedAt: __expectLong(output.startedAt),
|
|
@@ -3187,27 +3017,19 @@ var deserializeAws_restJson1LaunchTemplateSpecification = function (output, cont
|
|
|
3187
3017
|
};
|
|
3188
3018
|
var deserializeAws_restJson1LinuxParameters = function (output, context) {
|
|
3189
3019
|
return {
|
|
3190
|
-
devices: output.devices
|
|
3191
|
-
? deserializeAws_restJson1DevicesList(output.devices, context)
|
|
3192
|
-
: undefined,
|
|
3020
|
+
devices: output.devices != null ? deserializeAws_restJson1DevicesList(output.devices, context) : undefined,
|
|
3193
3021
|
initProcessEnabled: __expectBoolean(output.initProcessEnabled),
|
|
3194
3022
|
maxSwap: __expectInt32(output.maxSwap),
|
|
3195
3023
|
sharedMemorySize: __expectInt32(output.sharedMemorySize),
|
|
3196
3024
|
swappiness: __expectInt32(output.swappiness),
|
|
3197
|
-
tmpfs: output.tmpfs
|
|
3198
|
-
? deserializeAws_restJson1TmpfsList(output.tmpfs, context)
|
|
3199
|
-
: undefined,
|
|
3025
|
+
tmpfs: output.tmpfs != null ? deserializeAws_restJson1TmpfsList(output.tmpfs, context) : undefined,
|
|
3200
3026
|
};
|
|
3201
3027
|
};
|
|
3202
3028
|
var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
3203
3029
|
return {
|
|
3204
3030
|
logDriver: __expectString(output.logDriver),
|
|
3205
|
-
options: output.options
|
|
3206
|
-
|
|
3207
|
-
: undefined,
|
|
3208
|
-
secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
|
|
3209
|
-
? deserializeAws_restJson1SecretList(output.secretOptions, context)
|
|
3210
|
-
: undefined,
|
|
3031
|
+
options: output.options != null ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context) : undefined,
|
|
3032
|
+
secretOptions: output.secretOptions != null ? deserializeAws_restJson1SecretList(output.secretOptions, context) : undefined,
|
|
3211
3033
|
};
|
|
3212
3034
|
};
|
|
3213
3035
|
var deserializeAws_restJson1LogConfigurationOptionsMap = function (output, context) {
|
|
@@ -3270,7 +3092,7 @@ var deserializeAws_restJson1NodeDetails = function (output, context) {
|
|
|
3270
3092
|
var deserializeAws_restJson1NodeProperties = function (output, context) {
|
|
3271
3093
|
return {
|
|
3272
3094
|
mainNode: __expectInt32(output.mainNode),
|
|
3273
|
-
nodeRangeProperties: output.nodeRangeProperties
|
|
3095
|
+
nodeRangeProperties: output.nodeRangeProperties != null
|
|
3274
3096
|
? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
|
|
3275
3097
|
: undefined,
|
|
3276
3098
|
numNodes: __expectInt32(output.numNodes),
|
|
@@ -3296,9 +3118,7 @@ var deserializeAws_restJson1NodeRangeProperties = function (output, context) {
|
|
|
3296
3118
|
};
|
|
3297
3119
|
var deserializeAws_restJson1NodeRangeProperty = function (output, context) {
|
|
3298
3120
|
return {
|
|
3299
|
-
container: output.container
|
|
3300
|
-
? deserializeAws_restJson1ContainerProperties(output.container, context)
|
|
3301
|
-
: undefined,
|
|
3121
|
+
container: output.container != null ? deserializeAws_restJson1ContainerProperties(output.container, context) : undefined,
|
|
3302
3122
|
targetNodes: __expectString(output.targetNodes),
|
|
3303
3123
|
};
|
|
3304
3124
|
};
|
|
@@ -3343,7 +3163,7 @@ var deserializeAws_restJson1ResourceRequirements = function (output, context) {
|
|
|
3343
3163
|
var deserializeAws_restJson1RetryStrategy = function (output, context) {
|
|
3344
3164
|
return {
|
|
3345
3165
|
attempts: __expectInt32(output.attempts),
|
|
3346
|
-
evaluateOnExit: output.evaluateOnExit
|
|
3166
|
+
evaluateOnExit: output.evaluateOnExit != null
|
|
3347
3167
|
? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
|
|
3348
3168
|
: undefined,
|
|
3349
3169
|
};
|
|
@@ -3351,13 +3171,11 @@ var deserializeAws_restJson1RetryStrategy = function (output, context) {
|
|
|
3351
3171
|
var deserializeAws_restJson1SchedulingPolicyDetail = function (output, context) {
|
|
3352
3172
|
return {
|
|
3353
3173
|
arn: __expectString(output.arn),
|
|
3354
|
-
fairsharePolicy: output.fairsharePolicy
|
|
3174
|
+
fairsharePolicy: output.fairsharePolicy != null
|
|
3355
3175
|
? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
|
|
3356
3176
|
: undefined,
|
|
3357
3177
|
name: __expectString(output.name),
|
|
3358
|
-
tags: output.tags
|
|
3359
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
3360
|
-
: undefined,
|
|
3178
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
3361
3179
|
};
|
|
3362
3180
|
};
|
|
3363
3181
|
var deserializeAws_restJson1SchedulingPolicyDetailList = function (output, context) {
|
|
@@ -3455,9 +3273,7 @@ var deserializeAws_restJson1TagsMap = function (output, context) {
|
|
|
3455
3273
|
var deserializeAws_restJson1Tmpfs = function (output, context) {
|
|
3456
3274
|
return {
|
|
3457
3275
|
containerPath: __expectString(output.containerPath),
|
|
3458
|
-
mountOptions: output.mountOptions
|
|
3459
|
-
? deserializeAws_restJson1StringList(output.mountOptions, context)
|
|
3460
|
-
: undefined,
|
|
3276
|
+
mountOptions: output.mountOptions != null ? deserializeAws_restJson1StringList(output.mountOptions, context) : undefined,
|
|
3461
3277
|
size: __expectInt32(output.size),
|
|
3462
3278
|
};
|
|
3463
3279
|
};
|
|
@@ -3498,12 +3314,10 @@ var deserializeAws_restJson1UpdatePolicy = function (output, context) {
|
|
|
3498
3314
|
};
|
|
3499
3315
|
var deserializeAws_restJson1Volume = function (output, context) {
|
|
3500
3316
|
return {
|
|
3501
|
-
efsVolumeConfiguration: output.efsVolumeConfiguration
|
|
3317
|
+
efsVolumeConfiguration: output.efsVolumeConfiguration != null
|
|
3502
3318
|
? deserializeAws_restJson1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
|
|
3503
3319
|
: undefined,
|
|
3504
|
-
host: output.host
|
|
3505
|
-
? deserializeAws_restJson1Host(output.host, context)
|
|
3506
|
-
: undefined,
|
|
3320
|
+
host: output.host != null ? deserializeAws_restJson1Host(output.host, context) : undefined,
|
|
3507
3321
|
name: __expectString(output.name),
|
|
3508
3322
|
};
|
|
3509
3323
|
};
|
|
@@ -3556,6 +3370,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3556
3370
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3557
3371
|
var sanitizeErrorCode = function (rawValue) {
|
|
3558
3372
|
var cleanValue = rawValue;
|
|
3373
|
+
if (typeof cleanValue === "number") {
|
|
3374
|
+
cleanValue = cleanValue.toString();
|
|
3375
|
+
}
|
|
3559
3376
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3560
3377
|
cleanValue = cleanValue.split(":")[0];
|
|
3561
3378
|
}
|