@aws-sdk/client-batch 3.118.1 → 3.128.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 +415 -578
- package/dist-es/protocols/Aws_restJson1.js +288 -451
- 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({
|
|
@@ -701,7 +658,7 @@ export var deserializeAws_restJson1CancelJobCommand = function (output, context)
|
|
|
701
658
|
});
|
|
702
659
|
}); };
|
|
703
660
|
var deserializeAws_restJson1CancelJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
704
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
661
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
705
662
|
var _c;
|
|
706
663
|
return __generator(this, function (_d) {
|
|
707
664
|
switch (_d.label) {
|
|
@@ -711,7 +668,6 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
711
668
|
return [4, parseBody(output.body, context)];
|
|
712
669
|
case 1:
|
|
713
670
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
714
|
-
errorCode = "UnknownError";
|
|
715
671
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
716
672
|
_b = errorCode;
|
|
717
673
|
switch (_b) {
|
|
@@ -727,10 +683,12 @@ var deserializeAws_restJson1CancelJobCommandError = function (output, context) {
|
|
|
727
683
|
case 5: throw _d.sent();
|
|
728
684
|
case 6:
|
|
729
685
|
parsedBody = parsedOutput.body;
|
|
686
|
+
$metadata = deserializeMetadata(output);
|
|
687
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
730
688
|
response = new __BaseException({
|
|
731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
689
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
732
690
|
$fault: "client",
|
|
733
|
-
$metadata:
|
|
691
|
+
$metadata: $metadata,
|
|
734
692
|
});
|
|
735
693
|
throw __decorateServiceException(response, parsedBody);
|
|
736
694
|
}
|
|
@@ -765,7 +723,7 @@ export var deserializeAws_restJson1CreateComputeEnvironmentCommand = function (o
|
|
|
765
723
|
});
|
|
766
724
|
}); };
|
|
767
725
|
var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
768
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
726
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
769
727
|
var _c;
|
|
770
728
|
return __generator(this, function (_d) {
|
|
771
729
|
switch (_d.label) {
|
|
@@ -775,7 +733,6 @@ var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (out
|
|
|
775
733
|
return [4, parseBody(output.body, context)];
|
|
776
734
|
case 1:
|
|
777
735
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
778
|
-
errorCode = "UnknownError";
|
|
779
736
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
737
|
_b = errorCode;
|
|
781
738
|
switch (_b) {
|
|
@@ -791,10 +748,12 @@ var deserializeAws_restJson1CreateComputeEnvironmentCommandError = function (out
|
|
|
791
748
|
case 5: throw _d.sent();
|
|
792
749
|
case 6:
|
|
793
750
|
parsedBody = parsedOutput.body;
|
|
751
|
+
$metadata = deserializeMetadata(output);
|
|
752
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
794
753
|
response = new __BaseException({
|
|
795
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
796
755
|
$fault: "client",
|
|
797
|
-
$metadata:
|
|
756
|
+
$metadata: $metadata,
|
|
798
757
|
});
|
|
799
758
|
throw __decorateServiceException(response, parsedBody);
|
|
800
759
|
}
|
|
@@ -829,7 +788,7 @@ export var deserializeAws_restJson1CreateJobQueueCommand = function (output, con
|
|
|
829
788
|
});
|
|
830
789
|
}); };
|
|
831
790
|
var deserializeAws_restJson1CreateJobQueueCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
832
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
791
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
833
792
|
var _c;
|
|
834
793
|
return __generator(this, function (_d) {
|
|
835
794
|
switch (_d.label) {
|
|
@@ -839,7 +798,6 @@ var deserializeAws_restJson1CreateJobQueueCommandError = function (output, conte
|
|
|
839
798
|
return [4, parseBody(output.body, context)];
|
|
840
799
|
case 1:
|
|
841
800
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
842
|
-
errorCode = "UnknownError";
|
|
843
801
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
844
802
|
_b = errorCode;
|
|
845
803
|
switch (_b) {
|
|
@@ -855,10 +813,12 @@ var deserializeAws_restJson1CreateJobQueueCommandError = function (output, conte
|
|
|
855
813
|
case 5: throw _d.sent();
|
|
856
814
|
case 6:
|
|
857
815
|
parsedBody = parsedOutput.body;
|
|
816
|
+
$metadata = deserializeMetadata(output);
|
|
817
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
858
818
|
response = new __BaseException({
|
|
859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
819
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
860
820
|
$fault: "client",
|
|
861
|
-
$metadata:
|
|
821
|
+
$metadata: $metadata,
|
|
862
822
|
});
|
|
863
823
|
throw __decorateServiceException(response, parsedBody);
|
|
864
824
|
}
|
|
@@ -893,7 +853,7 @@ export var deserializeAws_restJson1CreateSchedulingPolicyCommand = function (out
|
|
|
893
853
|
});
|
|
894
854
|
}); };
|
|
895
855
|
var deserializeAws_restJson1CreateSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
896
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
856
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
897
857
|
var _c;
|
|
898
858
|
return __generator(this, function (_d) {
|
|
899
859
|
switch (_d.label) {
|
|
@@ -903,7 +863,6 @@ var deserializeAws_restJson1CreateSchedulingPolicyCommandError = function (outpu
|
|
|
903
863
|
return [4, parseBody(output.body, context)];
|
|
904
864
|
case 1:
|
|
905
865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
906
|
-
errorCode = "UnknownError";
|
|
907
866
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
867
|
_b = errorCode;
|
|
909
868
|
switch (_b) {
|
|
@@ -919,10 +878,12 @@ var deserializeAws_restJson1CreateSchedulingPolicyCommandError = function (outpu
|
|
|
919
878
|
case 5: throw _d.sent();
|
|
920
879
|
case 6:
|
|
921
880
|
parsedBody = parsedOutput.body;
|
|
881
|
+
$metadata = deserializeMetadata(output);
|
|
882
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
922
883
|
response = new __BaseException({
|
|
923
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
884
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
924
885
|
$fault: "client",
|
|
925
|
-
$metadata:
|
|
886
|
+
$metadata: $metadata,
|
|
926
887
|
});
|
|
927
888
|
throw __decorateServiceException(response, parsedBody);
|
|
928
889
|
}
|
|
@@ -947,7 +908,7 @@ export var deserializeAws_restJson1DeleteComputeEnvironmentCommand = function (o
|
|
|
947
908
|
});
|
|
948
909
|
}); };
|
|
949
910
|
var deserializeAws_restJson1DeleteComputeEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
950
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
911
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
951
912
|
var _c;
|
|
952
913
|
return __generator(this, function (_d) {
|
|
953
914
|
switch (_d.label) {
|
|
@@ -957,7 +918,6 @@ var deserializeAws_restJson1DeleteComputeEnvironmentCommandError = function (out
|
|
|
957
918
|
return [4, parseBody(output.body, context)];
|
|
958
919
|
case 1:
|
|
959
920
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
960
|
-
errorCode = "UnknownError";
|
|
961
921
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
922
|
_b = errorCode;
|
|
963
923
|
switch (_b) {
|
|
@@ -973,10 +933,12 @@ var deserializeAws_restJson1DeleteComputeEnvironmentCommandError = function (out
|
|
|
973
933
|
case 5: throw _d.sent();
|
|
974
934
|
case 6:
|
|
975
935
|
parsedBody = parsedOutput.body;
|
|
936
|
+
$metadata = deserializeMetadata(output);
|
|
937
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
976
938
|
response = new __BaseException({
|
|
977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
978
940
|
$fault: "client",
|
|
979
|
-
$metadata:
|
|
941
|
+
$metadata: $metadata,
|
|
980
942
|
});
|
|
981
943
|
throw __decorateServiceException(response, parsedBody);
|
|
982
944
|
}
|
|
@@ -1001,7 +963,7 @@ export var deserializeAws_restJson1DeleteJobQueueCommand = function (output, con
|
|
|
1001
963
|
});
|
|
1002
964
|
}); };
|
|
1003
965
|
var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1004
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
966
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1005
967
|
var _c;
|
|
1006
968
|
return __generator(this, function (_d) {
|
|
1007
969
|
switch (_d.label) {
|
|
@@ -1011,7 +973,6 @@ var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, conte
|
|
|
1011
973
|
return [4, parseBody(output.body, context)];
|
|
1012
974
|
case 1:
|
|
1013
975
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1014
|
-
errorCode = "UnknownError";
|
|
1015
976
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
977
|
_b = errorCode;
|
|
1017
978
|
switch (_b) {
|
|
@@ -1027,10 +988,12 @@ var deserializeAws_restJson1DeleteJobQueueCommandError = function (output, conte
|
|
|
1027
988
|
case 5: throw _d.sent();
|
|
1028
989
|
case 6:
|
|
1029
990
|
parsedBody = parsedOutput.body;
|
|
991
|
+
$metadata = deserializeMetadata(output);
|
|
992
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1030
993
|
response = new __BaseException({
|
|
1031
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
994
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1032
995
|
$fault: "client",
|
|
1033
|
-
$metadata:
|
|
996
|
+
$metadata: $metadata,
|
|
1034
997
|
});
|
|
1035
998
|
throw __decorateServiceException(response, parsedBody);
|
|
1036
999
|
}
|
|
@@ -1055,7 +1018,7 @@ export var deserializeAws_restJson1DeleteSchedulingPolicyCommand = function (out
|
|
|
1055
1018
|
});
|
|
1056
1019
|
}); };
|
|
1057
1020
|
var deserializeAws_restJson1DeleteSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1058
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1021
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1059
1022
|
var _c;
|
|
1060
1023
|
return __generator(this, function (_d) {
|
|
1061
1024
|
switch (_d.label) {
|
|
@@ -1065,7 +1028,6 @@ var deserializeAws_restJson1DeleteSchedulingPolicyCommandError = function (outpu
|
|
|
1065
1028
|
return [4, parseBody(output.body, context)];
|
|
1066
1029
|
case 1:
|
|
1067
1030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1068
|
-
errorCode = "UnknownError";
|
|
1069
1031
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
1032
|
_b = errorCode;
|
|
1071
1033
|
switch (_b) {
|
|
@@ -1081,10 +1043,12 @@ var deserializeAws_restJson1DeleteSchedulingPolicyCommandError = function (outpu
|
|
|
1081
1043
|
case 5: throw _d.sent();
|
|
1082
1044
|
case 6:
|
|
1083
1045
|
parsedBody = parsedOutput.body;
|
|
1046
|
+
$metadata = deserializeMetadata(output);
|
|
1047
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1048
|
response = new __BaseException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1050
|
$fault: "client",
|
|
1087
|
-
$metadata:
|
|
1051
|
+
$metadata: $metadata,
|
|
1088
1052
|
});
|
|
1089
1053
|
throw __decorateServiceException(response, parsedBody);
|
|
1090
1054
|
}
|
|
@@ -1109,7 +1073,7 @@ export var deserializeAws_restJson1DeregisterJobDefinitionCommand = function (ou
|
|
|
1109
1073
|
});
|
|
1110
1074
|
}); };
|
|
1111
1075
|
var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1112
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1076
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1113
1077
|
var _c;
|
|
1114
1078
|
return __generator(this, function (_d) {
|
|
1115
1079
|
switch (_d.label) {
|
|
@@ -1119,7 +1083,6 @@ var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (outp
|
|
|
1119
1083
|
return [4, parseBody(output.body, context)];
|
|
1120
1084
|
case 1:
|
|
1121
1085
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1122
|
-
errorCode = "UnknownError";
|
|
1123
1086
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1087
|
_b = errorCode;
|
|
1125
1088
|
switch (_b) {
|
|
@@ -1135,10 +1098,12 @@ var deserializeAws_restJson1DeregisterJobDefinitionCommandError = function (outp
|
|
|
1135
1098
|
case 5: throw _d.sent();
|
|
1136
1099
|
case 6:
|
|
1137
1100
|
parsedBody = parsedOutput.body;
|
|
1101
|
+
$metadata = deserializeMetadata(output);
|
|
1102
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1138
1103
|
response = new __BaseException({
|
|
1139
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1104
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1140
1105
|
$fault: "client",
|
|
1141
|
-
$metadata:
|
|
1106
|
+
$metadata: $metadata,
|
|
1142
1107
|
});
|
|
1143
1108
|
throw __decorateServiceException(response, parsedBody);
|
|
1144
1109
|
}
|
|
@@ -1173,7 +1138,7 @@ export var deserializeAws_restJson1DescribeComputeEnvironmentsCommand = function
|
|
|
1173
1138
|
});
|
|
1174
1139
|
}); };
|
|
1175
1140
|
var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1141
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1177
1142
|
var _c;
|
|
1178
1143
|
return __generator(this, function (_d) {
|
|
1179
1144
|
switch (_d.label) {
|
|
@@ -1183,7 +1148,6 @@ var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (
|
|
|
1183
1148
|
return [4, parseBody(output.body, context)];
|
|
1184
1149
|
case 1:
|
|
1185
1150
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1186
|
-
errorCode = "UnknownError";
|
|
1187
1151
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1152
|
_b = errorCode;
|
|
1189
1153
|
switch (_b) {
|
|
@@ -1199,10 +1163,12 @@ var deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = function (
|
|
|
1199
1163
|
case 5: throw _d.sent();
|
|
1200
1164
|
case 6:
|
|
1201
1165
|
parsedBody = parsedOutput.body;
|
|
1166
|
+
$metadata = deserializeMetadata(output);
|
|
1167
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1202
1168
|
response = new __BaseException({
|
|
1203
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1204
1170
|
$fault: "client",
|
|
1205
|
-
$metadata:
|
|
1171
|
+
$metadata: $metadata,
|
|
1206
1172
|
});
|
|
1207
1173
|
throw __decorateServiceException(response, parsedBody);
|
|
1208
1174
|
}
|
|
@@ -1237,7 +1203,7 @@ export var deserializeAws_restJson1DescribeJobDefinitionsCommand = function (out
|
|
|
1237
1203
|
});
|
|
1238
1204
|
}); };
|
|
1239
1205
|
var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1240
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1206
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1241
1207
|
var _c;
|
|
1242
1208
|
return __generator(this, function (_d) {
|
|
1243
1209
|
switch (_d.label) {
|
|
@@ -1247,7 +1213,6 @@ var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (outpu
|
|
|
1247
1213
|
return [4, parseBody(output.body, context)];
|
|
1248
1214
|
case 1:
|
|
1249
1215
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1250
|
-
errorCode = "UnknownError";
|
|
1251
1216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1217
|
_b = errorCode;
|
|
1253
1218
|
switch (_b) {
|
|
@@ -1263,10 +1228,12 @@ var deserializeAws_restJson1DescribeJobDefinitionsCommandError = function (outpu
|
|
|
1263
1228
|
case 5: throw _d.sent();
|
|
1264
1229
|
case 6:
|
|
1265
1230
|
parsedBody = parsedOutput.body;
|
|
1231
|
+
$metadata = deserializeMetadata(output);
|
|
1232
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1266
1233
|
response = new __BaseException({
|
|
1267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1234
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1268
1235
|
$fault: "client",
|
|
1269
|
-
$metadata:
|
|
1236
|
+
$metadata: $metadata,
|
|
1270
1237
|
});
|
|
1271
1238
|
throw __decorateServiceException(response, parsedBody);
|
|
1272
1239
|
}
|
|
@@ -1301,7 +1268,7 @@ export var deserializeAws_restJson1DescribeJobQueuesCommand = function (output,
|
|
|
1301
1268
|
});
|
|
1302
1269
|
}); };
|
|
1303
1270
|
var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1304
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1271
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1305
1272
|
var _c;
|
|
1306
1273
|
return __generator(this, function (_d) {
|
|
1307
1274
|
switch (_d.label) {
|
|
@@ -1311,7 +1278,6 @@ var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, co
|
|
|
1311
1278
|
return [4, parseBody(output.body, context)];
|
|
1312
1279
|
case 1:
|
|
1313
1280
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1314
|
-
errorCode = "UnknownError";
|
|
1315
1281
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1282
|
_b = errorCode;
|
|
1317
1283
|
switch (_b) {
|
|
@@ -1327,10 +1293,12 @@ var deserializeAws_restJson1DescribeJobQueuesCommandError = function (output, co
|
|
|
1327
1293
|
case 5: throw _d.sent();
|
|
1328
1294
|
case 6:
|
|
1329
1295
|
parsedBody = parsedOutput.body;
|
|
1296
|
+
$metadata = deserializeMetadata(output);
|
|
1297
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1330
1298
|
response = new __BaseException({
|
|
1331
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1332
1300
|
$fault: "client",
|
|
1333
|
-
$metadata:
|
|
1301
|
+
$metadata: $metadata,
|
|
1334
1302
|
});
|
|
1335
1303
|
throw __decorateServiceException(response, parsedBody);
|
|
1336
1304
|
}
|
|
@@ -1361,7 +1329,7 @@ export var deserializeAws_restJson1DescribeJobsCommand = function (output, conte
|
|
|
1361
1329
|
});
|
|
1362
1330
|
}); };
|
|
1363
1331
|
var deserializeAws_restJson1DescribeJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1364
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1332
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1365
1333
|
var _c;
|
|
1366
1334
|
return __generator(this, function (_d) {
|
|
1367
1335
|
switch (_d.label) {
|
|
@@ -1371,7 +1339,6 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1371
1339
|
return [4, parseBody(output.body, context)];
|
|
1372
1340
|
case 1:
|
|
1373
1341
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1374
|
-
errorCode = "UnknownError";
|
|
1375
1342
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
1343
|
_b = errorCode;
|
|
1377
1344
|
switch (_b) {
|
|
@@ -1387,10 +1354,12 @@ var deserializeAws_restJson1DescribeJobsCommandError = function (output, context
|
|
|
1387
1354
|
case 5: throw _d.sent();
|
|
1388
1355
|
case 6:
|
|
1389
1356
|
parsedBody = parsedOutput.body;
|
|
1357
|
+
$metadata = deserializeMetadata(output);
|
|
1358
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1390
1359
|
response = new __BaseException({
|
|
1391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1360
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1392
1361
|
$fault: "client",
|
|
1393
|
-
$metadata:
|
|
1362
|
+
$metadata: $metadata,
|
|
1394
1363
|
});
|
|
1395
1364
|
throw __decorateServiceException(response, parsedBody);
|
|
1396
1365
|
}
|
|
@@ -1421,7 +1390,7 @@ export var deserializeAws_restJson1DescribeSchedulingPoliciesCommand = function
|
|
|
1421
1390
|
});
|
|
1422
1391
|
}); };
|
|
1423
1392
|
var deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1424
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1393
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1425
1394
|
var _c;
|
|
1426
1395
|
return __generator(this, function (_d) {
|
|
1427
1396
|
switch (_d.label) {
|
|
@@ -1431,7 +1400,6 @@ var deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = function (o
|
|
|
1431
1400
|
return [4, parseBody(output.body, context)];
|
|
1432
1401
|
case 1:
|
|
1433
1402
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1434
|
-
errorCode = "UnknownError";
|
|
1435
1403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1404
|
_b = errorCode;
|
|
1437
1405
|
switch (_b) {
|
|
@@ -1447,10 +1415,12 @@ var deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = function (o
|
|
|
1447
1415
|
case 5: throw _d.sent();
|
|
1448
1416
|
case 6:
|
|
1449
1417
|
parsedBody = parsedOutput.body;
|
|
1418
|
+
$metadata = deserializeMetadata(output);
|
|
1419
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1450
1420
|
response = new __BaseException({
|
|
1451
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1421
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1452
1422
|
$fault: "client",
|
|
1453
|
-
$metadata:
|
|
1423
|
+
$metadata: $metadata,
|
|
1454
1424
|
});
|
|
1455
1425
|
throw __decorateServiceException(response, parsedBody);
|
|
1456
1426
|
}
|
|
@@ -1485,7 +1455,7 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
1485
1455
|
});
|
|
1486
1456
|
}); };
|
|
1487
1457
|
var deserializeAws_restJson1ListJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1488
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1458
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1489
1459
|
var _c;
|
|
1490
1460
|
return __generator(this, function (_d) {
|
|
1491
1461
|
switch (_d.label) {
|
|
@@ -1495,7 +1465,6 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
1495
1465
|
return [4, parseBody(output.body, context)];
|
|
1496
1466
|
case 1:
|
|
1497
1467
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1498
|
-
errorCode = "UnknownError";
|
|
1499
1468
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1500
1469
|
_b = errorCode;
|
|
1501
1470
|
switch (_b) {
|
|
@@ -1511,10 +1480,12 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
1511
1480
|
case 5: throw _d.sent();
|
|
1512
1481
|
case 6:
|
|
1513
1482
|
parsedBody = parsedOutput.body;
|
|
1483
|
+
$metadata = deserializeMetadata(output);
|
|
1484
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1514
1485
|
response = new __BaseException({
|
|
1515
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1486
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1516
1487
|
$fault: "client",
|
|
1517
|
-
$metadata:
|
|
1488
|
+
$metadata: $metadata,
|
|
1518
1489
|
});
|
|
1519
1490
|
throw __decorateServiceException(response, parsedBody);
|
|
1520
1491
|
}
|
|
@@ -1549,7 +1520,7 @@ export var deserializeAws_restJson1ListSchedulingPoliciesCommand = function (out
|
|
|
1549
1520
|
});
|
|
1550
1521
|
}); };
|
|
1551
1522
|
var deserializeAws_restJson1ListSchedulingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1552
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1523
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1553
1524
|
var _c;
|
|
1554
1525
|
return __generator(this, function (_d) {
|
|
1555
1526
|
switch (_d.label) {
|
|
@@ -1559,7 +1530,6 @@ var deserializeAws_restJson1ListSchedulingPoliciesCommandError = function (outpu
|
|
|
1559
1530
|
return [4, parseBody(output.body, context)];
|
|
1560
1531
|
case 1:
|
|
1561
1532
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1562
|
-
errorCode = "UnknownError";
|
|
1563
1533
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
1534
|
_b = errorCode;
|
|
1565
1535
|
switch (_b) {
|
|
@@ -1575,10 +1545,12 @@ var deserializeAws_restJson1ListSchedulingPoliciesCommandError = function (outpu
|
|
|
1575
1545
|
case 5: throw _d.sent();
|
|
1576
1546
|
case 6:
|
|
1577
1547
|
parsedBody = parsedOutput.body;
|
|
1548
|
+
$metadata = deserializeMetadata(output);
|
|
1549
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1578
1550
|
response = new __BaseException({
|
|
1579
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1580
1552
|
$fault: "client",
|
|
1581
|
-
$metadata:
|
|
1553
|
+
$metadata: $metadata,
|
|
1582
1554
|
});
|
|
1583
1555
|
throw __decorateServiceException(response, parsedBody);
|
|
1584
1556
|
}
|
|
@@ -1609,7 +1581,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1609
1581
|
});
|
|
1610
1582
|
}); };
|
|
1611
1583
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1612
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1584
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1613
1585
|
var _c;
|
|
1614
1586
|
return __generator(this, function (_d) {
|
|
1615
1587
|
switch (_d.label) {
|
|
@@ -1619,7 +1591,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1619
1591
|
return [4, parseBody(output.body, context)];
|
|
1620
1592
|
case 1:
|
|
1621
1593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1622
|
-
errorCode = "UnknownError";
|
|
1623
1594
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1595
|
_b = errorCode;
|
|
1625
1596
|
switch (_b) {
|
|
@@ -1635,10 +1606,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1635
1606
|
case 5: throw _d.sent();
|
|
1636
1607
|
case 6:
|
|
1637
1608
|
parsedBody = parsedOutput.body;
|
|
1609
|
+
$metadata = deserializeMetadata(output);
|
|
1610
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1638
1611
|
response = new __BaseException({
|
|
1639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1612
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1640
1613
|
$fault: "client",
|
|
1641
|
-
$metadata:
|
|
1614
|
+
$metadata: $metadata,
|
|
1642
1615
|
});
|
|
1643
1616
|
throw __decorateServiceException(response, parsedBody);
|
|
1644
1617
|
}
|
|
@@ -1677,7 +1650,7 @@ export var deserializeAws_restJson1RegisterJobDefinitionCommand = function (outp
|
|
|
1677
1650
|
});
|
|
1678
1651
|
}); };
|
|
1679
1652
|
var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1653
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1681
1654
|
var _c;
|
|
1682
1655
|
return __generator(this, function (_d) {
|
|
1683
1656
|
switch (_d.label) {
|
|
@@ -1687,7 +1660,6 @@ var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output
|
|
|
1687
1660
|
return [4, parseBody(output.body, context)];
|
|
1688
1661
|
case 1:
|
|
1689
1662
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1690
|
-
errorCode = "UnknownError";
|
|
1691
1663
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1692
1664
|
_b = errorCode;
|
|
1693
1665
|
switch (_b) {
|
|
@@ -1703,10 +1675,12 @@ var deserializeAws_restJson1RegisterJobDefinitionCommandError = function (output
|
|
|
1703
1675
|
case 5: throw _d.sent();
|
|
1704
1676
|
case 6:
|
|
1705
1677
|
parsedBody = parsedOutput.body;
|
|
1678
|
+
$metadata = deserializeMetadata(output);
|
|
1679
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1706
1680
|
response = new __BaseException({
|
|
1707
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1708
1682
|
$fault: "client",
|
|
1709
|
-
$metadata:
|
|
1683
|
+
$metadata: $metadata,
|
|
1710
1684
|
});
|
|
1711
1685
|
throw __decorateServiceException(response, parsedBody);
|
|
1712
1686
|
}
|
|
@@ -1745,7 +1719,7 @@ export var deserializeAws_restJson1SubmitJobCommand = function (output, context)
|
|
|
1745
1719
|
});
|
|
1746
1720
|
}); };
|
|
1747
1721
|
var deserializeAws_restJson1SubmitJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1722
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1749
1723
|
var _c;
|
|
1750
1724
|
return __generator(this, function (_d) {
|
|
1751
1725
|
switch (_d.label) {
|
|
@@ -1755,7 +1729,6 @@ var deserializeAws_restJson1SubmitJobCommandError = function (output, context) {
|
|
|
1755
1729
|
return [4, parseBody(output.body, context)];
|
|
1756
1730
|
case 1:
|
|
1757
1731
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1758
|
-
errorCode = "UnknownError";
|
|
1759
1732
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1733
|
_b = errorCode;
|
|
1761
1734
|
switch (_b) {
|
|
@@ -1771,10 +1744,12 @@ var deserializeAws_restJson1SubmitJobCommandError = function (output, context) {
|
|
|
1771
1744
|
case 5: throw _d.sent();
|
|
1772
1745
|
case 6:
|
|
1773
1746
|
parsedBody = parsedOutput.body;
|
|
1747
|
+
$metadata = deserializeMetadata(output);
|
|
1748
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1774
1749
|
response = new __BaseException({
|
|
1775
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1750
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1776
1751
|
$fault: "client",
|
|
1777
|
-
$metadata:
|
|
1752
|
+
$metadata: $metadata,
|
|
1778
1753
|
});
|
|
1779
1754
|
throw __decorateServiceException(response, parsedBody);
|
|
1780
1755
|
}
|
|
@@ -1799,7 +1774,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1799
1774
|
});
|
|
1800
1775
|
}); };
|
|
1801
1776
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1777
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1803
1778
|
var _c;
|
|
1804
1779
|
return __generator(this, function (_d) {
|
|
1805
1780
|
switch (_d.label) {
|
|
@@ -1809,7 +1784,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1809
1784
|
return [4, parseBody(output.body, context)];
|
|
1810
1785
|
case 1:
|
|
1811
1786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1812
|
-
errorCode = "UnknownError";
|
|
1813
1787
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1814
1788
|
_b = errorCode;
|
|
1815
1789
|
switch (_b) {
|
|
@@ -1825,10 +1799,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1825
1799
|
case 5: throw _d.sent();
|
|
1826
1800
|
case 6:
|
|
1827
1801
|
parsedBody = parsedOutput.body;
|
|
1802
|
+
$metadata = deserializeMetadata(output);
|
|
1803
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1828
1804
|
response = new __BaseException({
|
|
1829
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1805
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1830
1806
|
$fault: "client",
|
|
1831
|
-
$metadata:
|
|
1807
|
+
$metadata: $metadata,
|
|
1832
1808
|
});
|
|
1833
1809
|
throw __decorateServiceException(response, parsedBody);
|
|
1834
1810
|
}
|
|
@@ -1853,7 +1829,7 @@ export var deserializeAws_restJson1TerminateJobCommand = function (output, conte
|
|
|
1853
1829
|
});
|
|
1854
1830
|
}); };
|
|
1855
1831
|
var deserializeAws_restJson1TerminateJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1856
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1832
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1857
1833
|
var _c;
|
|
1858
1834
|
return __generator(this, function (_d) {
|
|
1859
1835
|
switch (_d.label) {
|
|
@@ -1863,7 +1839,6 @@ var deserializeAws_restJson1TerminateJobCommandError = function (output, context
|
|
|
1863
1839
|
return [4, parseBody(output.body, context)];
|
|
1864
1840
|
case 1:
|
|
1865
1841
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1866
|
-
errorCode = "UnknownError";
|
|
1867
1842
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1868
1843
|
_b = errorCode;
|
|
1869
1844
|
switch (_b) {
|
|
@@ -1879,10 +1854,12 @@ var deserializeAws_restJson1TerminateJobCommandError = function (output, context
|
|
|
1879
1854
|
case 5: throw _d.sent();
|
|
1880
1855
|
case 6:
|
|
1881
1856
|
parsedBody = parsedOutput.body;
|
|
1857
|
+
$metadata = deserializeMetadata(output);
|
|
1858
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1882
1859
|
response = new __BaseException({
|
|
1883
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1860
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1884
1861
|
$fault: "client",
|
|
1885
|
-
$metadata:
|
|
1862
|
+
$metadata: $metadata,
|
|
1886
1863
|
});
|
|
1887
1864
|
throw __decorateServiceException(response, parsedBody);
|
|
1888
1865
|
}
|
|
@@ -1907,7 +1884,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1907
1884
|
});
|
|
1908
1885
|
}); };
|
|
1909
1886
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1910
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1887
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1911
1888
|
var _c;
|
|
1912
1889
|
return __generator(this, function (_d) {
|
|
1913
1890
|
switch (_d.label) {
|
|
@@ -1917,7 +1894,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1917
1894
|
return [4, parseBody(output.body, context)];
|
|
1918
1895
|
case 1:
|
|
1919
1896
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1920
|
-
errorCode = "UnknownError";
|
|
1921
1897
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1922
1898
|
_b = errorCode;
|
|
1923
1899
|
switch (_b) {
|
|
@@ -1933,10 +1909,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1933
1909
|
case 5: throw _d.sent();
|
|
1934
1910
|
case 6:
|
|
1935
1911
|
parsedBody = parsedOutput.body;
|
|
1912
|
+
$metadata = deserializeMetadata(output);
|
|
1913
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1936
1914
|
response = new __BaseException({
|
|
1937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1915
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1938
1916
|
$fault: "client",
|
|
1939
|
-
$metadata:
|
|
1917
|
+
$metadata: $metadata,
|
|
1940
1918
|
});
|
|
1941
1919
|
throw __decorateServiceException(response, parsedBody);
|
|
1942
1920
|
}
|
|
@@ -1971,7 +1949,7 @@ export var deserializeAws_restJson1UpdateComputeEnvironmentCommand = function (o
|
|
|
1971
1949
|
});
|
|
1972
1950
|
}); };
|
|
1973
1951
|
var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1974
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1952
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1975
1953
|
var _c;
|
|
1976
1954
|
return __generator(this, function (_d) {
|
|
1977
1955
|
switch (_d.label) {
|
|
@@ -1981,7 +1959,6 @@ var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (out
|
|
|
1981
1959
|
return [4, parseBody(output.body, context)];
|
|
1982
1960
|
case 1:
|
|
1983
1961
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1984
|
-
errorCode = "UnknownError";
|
|
1985
1962
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1986
1963
|
_b = errorCode;
|
|
1987
1964
|
switch (_b) {
|
|
@@ -1997,10 +1974,12 @@ var deserializeAws_restJson1UpdateComputeEnvironmentCommandError = function (out
|
|
|
1997
1974
|
case 5: throw _d.sent();
|
|
1998
1975
|
case 6:
|
|
1999
1976
|
parsedBody = parsedOutput.body;
|
|
1977
|
+
$metadata = deserializeMetadata(output);
|
|
1978
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2000
1979
|
response = new __BaseException({
|
|
2001
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1980
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2002
1981
|
$fault: "client",
|
|
2003
|
-
$metadata:
|
|
1982
|
+
$metadata: $metadata,
|
|
2004
1983
|
});
|
|
2005
1984
|
throw __decorateServiceException(response, parsedBody);
|
|
2006
1985
|
}
|
|
@@ -2035,7 +2014,7 @@ export var deserializeAws_restJson1UpdateJobQueueCommand = function (output, con
|
|
|
2035
2014
|
});
|
|
2036
2015
|
}); };
|
|
2037
2016
|
var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2038
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2017
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2039
2018
|
var _c;
|
|
2040
2019
|
return __generator(this, function (_d) {
|
|
2041
2020
|
switch (_d.label) {
|
|
@@ -2045,7 +2024,6 @@ var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, conte
|
|
|
2045
2024
|
return [4, parseBody(output.body, context)];
|
|
2046
2025
|
case 1:
|
|
2047
2026
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2048
|
-
errorCode = "UnknownError";
|
|
2049
2027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
2028
|
_b = errorCode;
|
|
2051
2029
|
switch (_b) {
|
|
@@ -2061,10 +2039,12 @@ var deserializeAws_restJson1UpdateJobQueueCommandError = function (output, conte
|
|
|
2061
2039
|
case 5: throw _d.sent();
|
|
2062
2040
|
case 6:
|
|
2063
2041
|
parsedBody = parsedOutput.body;
|
|
2042
|
+
$metadata = deserializeMetadata(output);
|
|
2043
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2064
2044
|
response = new __BaseException({
|
|
2065
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2045
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2066
2046
|
$fault: "client",
|
|
2067
|
-
$metadata:
|
|
2047
|
+
$metadata: $metadata,
|
|
2068
2048
|
});
|
|
2069
2049
|
throw __decorateServiceException(response, parsedBody);
|
|
2070
2050
|
}
|
|
@@ -2089,7 +2069,7 @@ export var deserializeAws_restJson1UpdateSchedulingPolicyCommand = function (out
|
|
|
2089
2069
|
});
|
|
2090
2070
|
}); };
|
|
2091
2071
|
var deserializeAws_restJson1UpdateSchedulingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2092
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2072
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2093
2073
|
var _c;
|
|
2094
2074
|
return __generator(this, function (_d) {
|
|
2095
2075
|
switch (_d.label) {
|
|
@@ -2099,7 +2079,6 @@ var deserializeAws_restJson1UpdateSchedulingPolicyCommandError = function (outpu
|
|
|
2099
2079
|
return [4, parseBody(output.body, context)];
|
|
2100
2080
|
case 1:
|
|
2101
2081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2102
|
-
errorCode = "UnknownError";
|
|
2103
2082
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
2083
|
_b = errorCode;
|
|
2105
2084
|
switch (_b) {
|
|
@@ -2115,10 +2094,12 @@ var deserializeAws_restJson1UpdateSchedulingPolicyCommandError = function (outpu
|
|
|
2115
2094
|
case 5: throw _d.sent();
|
|
2116
2095
|
case 6:
|
|
2117
2096
|
parsedBody = parsedOutput.body;
|
|
2097
|
+
$metadata = deserializeMetadata(output);
|
|
2098
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2118
2099
|
response = new __BaseException({
|
|
2119
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2100
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2120
2101
|
$fault: "client",
|
|
2121
|
-
$metadata:
|
|
2102
|
+
$metadata: $metadata,
|
|
2122
2103
|
});
|
|
2123
2104
|
throw __decorateServiceException(response, parsedBody);
|
|
2124
2105
|
}
|
|
@@ -2149,11 +2130,10 @@ var deserializeAws_restJson1ServerExceptionResponse = function (parsedOutput, co
|
|
|
2149
2130
|
});
|
|
2150
2131
|
}); };
|
|
2151
2132
|
var serializeAws_restJson1ArrayProperties = function (input, context) {
|
|
2152
|
-
return __assign({}, (input.size
|
|
2133
|
+
return __assign({}, (input.size != null && { size: input.size }));
|
|
2153
2134
|
};
|
|
2154
2135
|
var serializeAws_restJson1ComputeEnvironmentOrder = function (input, context) {
|
|
2155
|
-
return __assign(__assign({}, (input.computeEnvironment
|
|
2156
|
-
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 }));
|
|
2157
2137
|
};
|
|
2158
2138
|
var serializeAws_restJson1ComputeEnvironmentOrders = function (input, context) {
|
|
2159
2139
|
return input
|
|
@@ -2166,86 +2146,51 @@ var serializeAws_restJson1ComputeEnvironmentOrders = function (input, context) {
|
|
|
2166
2146
|
});
|
|
2167
2147
|
};
|
|
2168
2148
|
var serializeAws_restJson1ComputeResource = function (input, context) {
|
|
2169
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy
|
|
2170
|
-
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 &&
|
|
2171
|
-
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 && {
|
|
2172
2150
|
ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
|
|
2173
|
-
})), (input.ec2KeyPair
|
|
2174
|
-
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 && {
|
|
2175
2152
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
2176
|
-
})), (input.launchTemplate
|
|
2177
|
-
input.launchTemplate !== null && {
|
|
2153
|
+
})), (input.launchTemplate != null && {
|
|
2178
2154
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
2179
|
-
})), (input.maxvCpus
|
|
2180
|
-
input.placementGroup !== null && { placementGroup: input.placementGroup })), (input.securityGroupIds !== undefined &&
|
|
2181
|
-
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 && {
|
|
2182
2156
|
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
2183
|
-
})), (input.spotIamFleetRole
|
|
2184
|
-
input.spotIamFleetRole !== null && { spotIamFleetRole: input.spotIamFleetRole })), (input.subnets !== undefined &&
|
|
2185
|
-
input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined &&
|
|
2186
|
-
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 }));
|
|
2187
2158
|
};
|
|
2188
2159
|
var serializeAws_restJson1ComputeResourceUpdate = function (input, context) {
|
|
2189
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.allocationStrategy
|
|
2190
|
-
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 &&
|
|
2191
|
-
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 && {
|
|
2192
2161
|
ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
|
|
2193
|
-
})), (input.ec2KeyPair
|
|
2194
|
-
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 && {
|
|
2195
2163
|
instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
|
|
2196
|
-
})), (input.launchTemplate
|
|
2197
|
-
input.launchTemplate !== null && {
|
|
2164
|
+
})), (input.launchTemplate != null && {
|
|
2198
2165
|
launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
|
|
2199
|
-
})), (input.maxvCpus
|
|
2200
|
-
input.placementGroup !== null && { placementGroup: input.placementGroup })), (input.securityGroupIds !== undefined &&
|
|
2201
|
-
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 && {
|
|
2202
2167
|
securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
|
|
2203
|
-
})), (input.subnets
|
|
2204
|
-
input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) })), (input.tags !== undefined &&
|
|
2205
|
-
input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.updateToLatestImageVersion !== undefined &&
|
|
2206
|
-
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 }));
|
|
2207
2169
|
};
|
|
2208
2170
|
var serializeAws_restJson1ContainerOverrides = function (input, context) {
|
|
2209
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.command
|
|
2210
|
-
input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment !== undefined &&
|
|
2211
|
-
input.environment !== null && {
|
|
2171
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.command != null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment != null && {
|
|
2212
2172
|
environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
|
|
2213
|
-
})), (input.instanceType
|
|
2214
|
-
input.resourceRequirements !== null && {
|
|
2173
|
+
})), (input.instanceType != null && { instanceType: input.instanceType })), (input.memory != null && { memory: input.memory })), (input.resourceRequirements != null && {
|
|
2215
2174
|
resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
|
|
2216
|
-
})), (input.vcpus
|
|
2175
|
+
})), (input.vcpus != null && { vcpus: input.vcpus }));
|
|
2217
2176
|
};
|
|
2218
2177
|
var serializeAws_restJson1ContainerProperties = function (input, context) {
|
|
2219
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.command
|
|
2220
|
-
input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) })), (input.environment !== undefined &&
|
|
2221
|
-
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 && {
|
|
2222
2179
|
environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
|
|
2223
|
-
})), (input.executionRoleArn
|
|
2224
|
-
input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn })), (input.fargatePlatformConfiguration !== undefined &&
|
|
2225
|
-
input.fargatePlatformConfiguration !== null && {
|
|
2180
|
+
})), (input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn })), (input.fargatePlatformConfiguration != null && {
|
|
2226
2181
|
fargatePlatformConfiguration: serializeAws_restJson1FargatePlatformConfiguration(input.fargatePlatformConfiguration, context),
|
|
2227
|
-
})), (input.image
|
|
2228
|
-
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 && {
|
|
2229
2183
|
linuxParameters: serializeAws_restJson1LinuxParameters(input.linuxParameters, context),
|
|
2230
|
-
})), (input.logConfiguration
|
|
2231
|
-
input.logConfiguration !== null && {
|
|
2184
|
+
})), (input.logConfiguration != null && {
|
|
2232
2185
|
logConfiguration: serializeAws_restJson1LogConfiguration(input.logConfiguration, context),
|
|
2233
|
-
})), (input.memory
|
|
2234
|
-
input.mountPoints !== null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) })), (input.networkConfiguration !== undefined &&
|
|
2235
|
-
input.networkConfiguration !== null && {
|
|
2186
|
+
})), (input.memory != null && { memory: input.memory })), (input.mountPoints != null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) })), (input.networkConfiguration != null && {
|
|
2236
2187
|
networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
|
|
2237
|
-
})), (input.privileged
|
|
2238
|
-
input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.resourceRequirements !== undefined &&
|
|
2239
|
-
input.resourceRequirements !== null && {
|
|
2188
|
+
})), (input.privileged != null && { privileged: input.privileged })), (input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem })), (input.resourceRequirements != null && {
|
|
2240
2189
|
resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
|
|
2241
|
-
})), (input.secrets
|
|
2242
|
-
input.secrets !== null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) })), (input.ulimits !== undefined &&
|
|
2243
|
-
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 &&
|
|
2244
|
-
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) }));
|
|
2245
2191
|
};
|
|
2246
2192
|
var serializeAws_restJson1Device = function (input, context) {
|
|
2247
|
-
return __assign(__assign(__assign({}, (input.containerPath
|
|
2248
|
-
input.permissions !== null && {
|
|
2193
|
+
return __assign(__assign(__assign({}, (input.containerPath != null && { containerPath: input.containerPath })), (input.hostPath != null && { hostPath: input.hostPath })), (input.permissions != null && {
|
|
2249
2194
|
permissions: serializeAws_restJson1DeviceCgroupPermissions(input.permissions, context),
|
|
2250
2195
|
}));
|
|
2251
2196
|
};
|
|
@@ -2270,8 +2215,7 @@ var serializeAws_restJson1DevicesList = function (input, context) {
|
|
|
2270
2215
|
});
|
|
2271
2216
|
};
|
|
2272
2217
|
var serializeAws_restJson1Ec2Configuration = function (input, context) {
|
|
2273
|
-
return __assign(__assign({}, (input.imageIdOverride
|
|
2274
|
-
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 }));
|
|
2275
2219
|
};
|
|
2276
2220
|
var serializeAws_restJson1Ec2ConfigurationList = function (input, context) {
|
|
2277
2221
|
return input
|
|
@@ -2284,15 +2228,12 @@ var serializeAws_restJson1Ec2ConfigurationList = function (input, context) {
|
|
|
2284
2228
|
});
|
|
2285
2229
|
};
|
|
2286
2230
|
var serializeAws_restJson1EFSAuthorizationConfig = function (input, context) {
|
|
2287
|
-
return __assign(__assign({}, (input.accessPointId
|
|
2231
|
+
return __assign(__assign({}, (input.accessPointId != null && { accessPointId: input.accessPointId })), (input.iam != null && { iam: input.iam }));
|
|
2288
2232
|
};
|
|
2289
2233
|
var serializeAws_restJson1EFSVolumeConfiguration = function (input, context) {
|
|
2290
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig
|
|
2291
|
-
input.authorizationConfig !== null && {
|
|
2234
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.authorizationConfig != null && {
|
|
2292
2235
|
authorizationConfig: serializeAws_restJson1EFSAuthorizationConfig(input.authorizationConfig, context),
|
|
2293
|
-
})), (input.fileSystemId
|
|
2294
|
-
input.transitEncryption !== null && { transitEncryption: input.transitEncryption })), (input.transitEncryptionPort !== undefined &&
|
|
2295
|
-
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 }));
|
|
2296
2237
|
};
|
|
2297
2238
|
var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
2298
2239
|
return input
|
|
@@ -2305,8 +2246,7 @@ var serializeAws_restJson1EnvironmentVariables = function (input, context) {
|
|
|
2305
2246
|
});
|
|
2306
2247
|
};
|
|
2307
2248
|
var serializeAws_restJson1EvaluateOnExit = function (input, context) {
|
|
2308
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
2309
|
-
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 }));
|
|
2310
2250
|
};
|
|
2311
2251
|
var serializeAws_restJson1EvaluateOnExitList = function (input, context) {
|
|
2312
2252
|
return input
|
|
@@ -2319,22 +2259,18 @@ var serializeAws_restJson1EvaluateOnExitList = function (input, context) {
|
|
|
2319
2259
|
});
|
|
2320
2260
|
};
|
|
2321
2261
|
var serializeAws_restJson1FairsharePolicy = function (input, context) {
|
|
2322
|
-
return __assign(__assign(__assign({}, (input.computeReservation
|
|
2323
|
-
input.computeReservation !== null && { computeReservation: input.computeReservation })), (input.shareDecaySeconds !== undefined &&
|
|
2324
|
-
input.shareDecaySeconds !== null && { shareDecaySeconds: input.shareDecaySeconds })), (input.shareDistribution !== undefined &&
|
|
2325
|
-
input.shareDistribution !== null && {
|
|
2262
|
+
return __assign(__assign(__assign({}, (input.computeReservation != null && { computeReservation: input.computeReservation })), (input.shareDecaySeconds != null && { shareDecaySeconds: input.shareDecaySeconds })), (input.shareDistribution != null && {
|
|
2326
2263
|
shareDistribution: serializeAws_restJson1ShareAttributesList(input.shareDistribution, context),
|
|
2327
2264
|
}));
|
|
2328
2265
|
};
|
|
2329
2266
|
var serializeAws_restJson1FargatePlatformConfiguration = function (input, context) {
|
|
2330
|
-
return __assign({}, (input.platformVersion
|
|
2331
|
-
input.platformVersion !== null && { platformVersion: input.platformVersion }));
|
|
2267
|
+
return __assign({}, (input.platformVersion != null && { platformVersion: input.platformVersion }));
|
|
2332
2268
|
};
|
|
2333
2269
|
var serializeAws_restJson1Host = function (input, context) {
|
|
2334
|
-
return __assign({}, (input.sourcePath
|
|
2270
|
+
return __assign({}, (input.sourcePath != null && { sourcePath: input.sourcePath }));
|
|
2335
2271
|
};
|
|
2336
2272
|
var serializeAws_restJson1JobDependency = function (input, context) {
|
|
2337
|
-
return __assign(__assign({}, (input.jobId
|
|
2273
|
+
return __assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.type != null && { type: input.type }));
|
|
2338
2274
|
};
|
|
2339
2275
|
var serializeAws_restJson1JobDependencyList = function (input, context) {
|
|
2340
2276
|
return input
|
|
@@ -2347,27 +2283,19 @@ var serializeAws_restJson1JobDependencyList = function (input, context) {
|
|
|
2347
2283
|
});
|
|
2348
2284
|
};
|
|
2349
2285
|
var serializeAws_restJson1JobTimeout = function (input, context) {
|
|
2350
|
-
return __assign({}, (input.attemptDurationSeconds
|
|
2351
|
-
input.attemptDurationSeconds !== null && { attemptDurationSeconds: input.attemptDurationSeconds }));
|
|
2286
|
+
return __assign({}, (input.attemptDurationSeconds != null && { attemptDurationSeconds: input.attemptDurationSeconds }));
|
|
2352
2287
|
};
|
|
2353
2288
|
var serializeAws_restJson1KeyValuePair = function (input, context) {
|
|
2354
|
-
return __assign(__assign({}, (input.name
|
|
2289
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
2355
2290
|
};
|
|
2356
2291
|
var serializeAws_restJson1KeyValuesPair = function (input, context) {
|
|
2357
|
-
return __assign(__assign({}, (input.name
|
|
2358
|
-
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) }));
|
|
2359
2293
|
};
|
|
2360
2294
|
var serializeAws_restJson1LaunchTemplateSpecification = function (input, context) {
|
|
2361
|
-
return __assign(__assign(__assign({}, (input.launchTemplateId
|
|
2362
|
-
input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId })), (input.launchTemplateName !== undefined &&
|
|
2363
|
-
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 }));
|
|
2364
2296
|
};
|
|
2365
2297
|
var serializeAws_restJson1LinuxParameters = function (input, context) {
|
|
2366
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.devices
|
|
2367
|
-
input.devices !== null && { devices: serializeAws_restJson1DevicesList(input.devices, context) })), (input.initProcessEnabled !== undefined &&
|
|
2368
|
-
input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled })), (input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap })), (input.sharedMemorySize !== undefined &&
|
|
2369
|
-
input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize })), (input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness })), (input.tmpfs !== undefined &&
|
|
2370
|
-
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) }));
|
|
2371
2299
|
};
|
|
2372
2300
|
var serializeAws_restJson1ListJobsFilterList = function (input, context) {
|
|
2373
2301
|
return input
|
|
@@ -2380,9 +2308,7 @@ var serializeAws_restJson1ListJobsFilterList = function (input, context) {
|
|
|
2380
2308
|
});
|
|
2381
2309
|
};
|
|
2382
2310
|
var serializeAws_restJson1LogConfiguration = function (input, context) {
|
|
2383
|
-
return __assign(__assign(__assign({}, (input.logDriver
|
|
2384
|
-
input.options !== null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) })), (input.secretOptions !== undefined &&
|
|
2385
|
-
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 && {
|
|
2386
2312
|
secretOptions: serializeAws_restJson1SecretList(input.secretOptions, context),
|
|
2387
2313
|
}));
|
|
2388
2314
|
};
|
|
@@ -2397,7 +2323,7 @@ var serializeAws_restJson1LogConfigurationOptionsMap = function (input, context)
|
|
|
2397
2323
|
}, {});
|
|
2398
2324
|
};
|
|
2399
2325
|
var serializeAws_restJson1MountPoint = function (input, context) {
|
|
2400
|
-
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 }));
|
|
2401
2327
|
};
|
|
2402
2328
|
var serializeAws_restJson1MountPoints = function (input, context) {
|
|
2403
2329
|
return input
|
|
@@ -2410,26 +2336,22 @@ var serializeAws_restJson1MountPoints = function (input, context) {
|
|
|
2410
2336
|
});
|
|
2411
2337
|
};
|
|
2412
2338
|
var serializeAws_restJson1NetworkConfiguration = function (input, context) {
|
|
2413
|
-
return __assign({}, (input.assignPublicIp
|
|
2414
|
-
input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp }));
|
|
2339
|
+
return __assign({}, (input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }));
|
|
2415
2340
|
};
|
|
2416
2341
|
var serializeAws_restJson1NodeOverrides = function (input, context) {
|
|
2417
|
-
return __assign(__assign({}, (input.nodePropertyOverrides
|
|
2418
|
-
input.nodePropertyOverrides !== null && {
|
|
2342
|
+
return __assign(__assign({}, (input.nodePropertyOverrides != null && {
|
|
2419
2343
|
nodePropertyOverrides: serializeAws_restJson1NodePropertyOverrides(input.nodePropertyOverrides, context),
|
|
2420
|
-
})), (input.numNodes
|
|
2344
|
+
})), (input.numNodes != null && { numNodes: input.numNodes }));
|
|
2421
2345
|
};
|
|
2422
2346
|
var serializeAws_restJson1NodeProperties = function (input, context) {
|
|
2423
|
-
return __assign(__assign(__assign({}, (input.mainNode
|
|
2424
|
-
input.nodeRangeProperties !== null && {
|
|
2347
|
+
return __assign(__assign(__assign({}, (input.mainNode != null && { mainNode: input.mainNode })), (input.nodeRangeProperties != null && {
|
|
2425
2348
|
nodeRangeProperties: serializeAws_restJson1NodeRangeProperties(input.nodeRangeProperties, context),
|
|
2426
|
-
})), (input.numNodes
|
|
2349
|
+
})), (input.numNodes != null && { numNodes: input.numNodes }));
|
|
2427
2350
|
};
|
|
2428
2351
|
var serializeAws_restJson1NodePropertyOverride = function (input, context) {
|
|
2429
|
-
return __assign(__assign({}, (input.containerOverrides
|
|
2430
|
-
input.containerOverrides !== null && {
|
|
2352
|
+
return __assign(__assign({}, (input.containerOverrides != null && {
|
|
2431
2353
|
containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
|
|
2432
|
-
})), (input.targetNodes
|
|
2354
|
+
})), (input.targetNodes != null && { targetNodes: input.targetNodes }));
|
|
2433
2355
|
};
|
|
2434
2356
|
var serializeAws_restJson1NodePropertyOverrides = function (input, context) {
|
|
2435
2357
|
return input
|
|
@@ -2452,8 +2374,7 @@ var serializeAws_restJson1NodeRangeProperties = function (input, context) {
|
|
|
2452
2374
|
});
|
|
2453
2375
|
};
|
|
2454
2376
|
var serializeAws_restJson1NodeRangeProperty = function (input, context) {
|
|
2455
|
-
return __assign(__assign({}, (input.container
|
|
2456
|
-
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 }));
|
|
2457
2378
|
};
|
|
2458
2379
|
var serializeAws_restJson1ParametersMap = function (input, context) {
|
|
2459
2380
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -2476,7 +2397,7 @@ var serializeAws_restJson1PlatformCapabilityList = function (input, context) {
|
|
|
2476
2397
|
});
|
|
2477
2398
|
};
|
|
2478
2399
|
var serializeAws_restJson1ResourceRequirement = function (input, context) {
|
|
2479
|
-
return __assign(__assign({}, (input.type
|
|
2400
|
+
return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: input.value }));
|
|
2480
2401
|
};
|
|
2481
2402
|
var serializeAws_restJson1ResourceRequirements = function (input, context) {
|
|
2482
2403
|
return input
|
|
@@ -2489,13 +2410,12 @@ var serializeAws_restJson1ResourceRequirements = function (input, context) {
|
|
|
2489
2410
|
});
|
|
2490
2411
|
};
|
|
2491
2412
|
var serializeAws_restJson1RetryStrategy = function (input, context) {
|
|
2492
|
-
return __assign(__assign({}, (input.attempts
|
|
2493
|
-
input.evaluateOnExit !== null && {
|
|
2413
|
+
return __assign(__assign({}, (input.attempts != null && { attempts: input.attempts })), (input.evaluateOnExit != null && {
|
|
2494
2414
|
evaluateOnExit: serializeAws_restJson1EvaluateOnExitList(input.evaluateOnExit, context),
|
|
2495
2415
|
}));
|
|
2496
2416
|
};
|
|
2497
2417
|
var serializeAws_restJson1Secret = function (input, context) {
|
|
2498
|
-
return __assign(__assign({}, (input.name
|
|
2418
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.valueFrom != null && { valueFrom: input.valueFrom }));
|
|
2499
2419
|
};
|
|
2500
2420
|
var serializeAws_restJson1SecretList = function (input, context) {
|
|
2501
2421
|
return input
|
|
@@ -2508,9 +2428,7 @@ var serializeAws_restJson1SecretList = function (input, context) {
|
|
|
2508
2428
|
});
|
|
2509
2429
|
};
|
|
2510
2430
|
var serializeAws_restJson1ShareAttributes = function (input, context) {
|
|
2511
|
-
return __assign(__assign({}, (input.shareIdentifier
|
|
2512
|
-
input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier })), (input.weightFactor !== undefined &&
|
|
2513
|
-
input.weightFactor !== null && { weightFactor: __serializeFloat(input.weightFactor) }));
|
|
2431
|
+
return __assign(__assign({}, (input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier })), (input.weightFactor != null && { weightFactor: __serializeFloat(input.weightFactor) }));
|
|
2514
2432
|
};
|
|
2515
2433
|
var serializeAws_restJson1ShareAttributesList = function (input, context) {
|
|
2516
2434
|
return input
|
|
@@ -2553,8 +2471,7 @@ var serializeAws_restJson1TagsMap = function (input, context) {
|
|
|
2553
2471
|
}, {});
|
|
2554
2472
|
};
|
|
2555
2473
|
var serializeAws_restJson1Tmpfs = function (input, context) {
|
|
2556
|
-
return __assign(__assign(__assign({}, (input.containerPath
|
|
2557
|
-
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 }));
|
|
2558
2475
|
};
|
|
2559
2476
|
var serializeAws_restJson1TmpfsList = function (input, context) {
|
|
2560
2477
|
return input
|
|
@@ -2567,7 +2484,7 @@ var serializeAws_restJson1TmpfsList = function (input, context) {
|
|
|
2567
2484
|
});
|
|
2568
2485
|
};
|
|
2569
2486
|
var serializeAws_restJson1Ulimit = function (input, context) {
|
|
2570
|
-
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 }));
|
|
2571
2488
|
};
|
|
2572
2489
|
var serializeAws_restJson1Ulimits = function (input, context) {
|
|
2573
2490
|
return input
|
|
@@ -2580,15 +2497,12 @@ var serializeAws_restJson1Ulimits = function (input, context) {
|
|
|
2580
2497
|
});
|
|
2581
2498
|
};
|
|
2582
2499
|
var serializeAws_restJson1UpdatePolicy = function (input, context) {
|
|
2583
|
-
return __assign(__assign({}, (input.jobExecutionTimeoutMinutes
|
|
2584
|
-
input.jobExecutionTimeoutMinutes !== null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes })), (input.terminateJobsOnUpdate !== undefined &&
|
|
2585
|
-
input.terminateJobsOnUpdate !== null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }));
|
|
2500
|
+
return __assign(__assign({}, (input.jobExecutionTimeoutMinutes != null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes })), (input.terminateJobsOnUpdate != null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }));
|
|
2586
2501
|
};
|
|
2587
2502
|
var serializeAws_restJson1Volume = function (input, context) {
|
|
2588
|
-
return __assign(__assign(__assign({}, (input.efsVolumeConfiguration
|
|
2589
|
-
input.efsVolumeConfiguration !== null && {
|
|
2503
|
+
return __assign(__assign(__assign({}, (input.efsVolumeConfiguration != null && {
|
|
2590
2504
|
efsVolumeConfiguration: serializeAws_restJson1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
|
|
2591
|
-
})), (input.host
|
|
2505
|
+
})), (input.host != null && { host: serializeAws_restJson1Host(input.host, context) })), (input.name != null && { name: input.name }));
|
|
2592
2506
|
};
|
|
2593
2507
|
var serializeAws_restJson1Volumes = function (input, context) {
|
|
2594
2508
|
return input
|
|
@@ -2614,7 +2528,7 @@ var deserializeAws_restJson1ArrayPropertiesDetail = function (output, context) {
|
|
|
2614
2528
|
return {
|
|
2615
2529
|
index: __expectInt32(output.index),
|
|
2616
2530
|
size: __expectInt32(output.size),
|
|
2617
|
-
statusSummary: output.statusSummary
|
|
2531
|
+
statusSummary: output.statusSummary != null
|
|
2618
2532
|
? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
|
|
2619
2533
|
: undefined,
|
|
2620
2534
|
};
|
|
@@ -2630,7 +2544,7 @@ var deserializeAws_restJson1AttemptContainerDetail = function (output, context)
|
|
|
2630
2544
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
2631
2545
|
exitCode: __expectInt32(output.exitCode),
|
|
2632
2546
|
logStreamName: __expectString(output.logStreamName),
|
|
2633
|
-
networkInterfaces: output.networkInterfaces
|
|
2547
|
+
networkInterfaces: output.networkInterfaces != null
|
|
2634
2548
|
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2635
2549
|
: undefined,
|
|
2636
2550
|
reason: __expectString(output.reason),
|
|
@@ -2639,9 +2553,7 @@ var deserializeAws_restJson1AttemptContainerDetail = function (output, context)
|
|
|
2639
2553
|
};
|
|
2640
2554
|
var deserializeAws_restJson1AttemptDetail = function (output, context) {
|
|
2641
2555
|
return {
|
|
2642
|
-
container: output.container
|
|
2643
|
-
? deserializeAws_restJson1AttemptContainerDetail(output.container, context)
|
|
2644
|
-
: undefined,
|
|
2556
|
+
container: output.container != null ? deserializeAws_restJson1AttemptContainerDetail(output.container, context) : undefined,
|
|
2645
2557
|
startedAt: __expectLong(output.startedAt),
|
|
2646
2558
|
statusReason: __expectString(output.statusReason),
|
|
2647
2559
|
stoppedAt: __expectLong(output.stoppedAt),
|
|
@@ -2662,7 +2574,7 @@ var deserializeAws_restJson1ComputeEnvironmentDetail = function (output, context
|
|
|
2662
2574
|
return {
|
|
2663
2575
|
computeEnvironmentArn: __expectString(output.computeEnvironmentArn),
|
|
2664
2576
|
computeEnvironmentName: __expectString(output.computeEnvironmentName),
|
|
2665
|
-
computeResources: output.computeResources
|
|
2577
|
+
computeResources: output.computeResources != null
|
|
2666
2578
|
? deserializeAws_restJson1ComputeResource(output.computeResources, context)
|
|
2667
2579
|
: undefined,
|
|
2668
2580
|
ecsClusterArn: __expectString(output.ecsClusterArn),
|
|
@@ -2670,14 +2582,10 @@ var deserializeAws_restJson1ComputeEnvironmentDetail = function (output, context
|
|
|
2670
2582
|
state: __expectString(output.state),
|
|
2671
2583
|
status: __expectString(output.status),
|
|
2672
2584
|
statusReason: __expectString(output.statusReason),
|
|
2673
|
-
tags: output.tags
|
|
2674
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
2675
|
-
: undefined,
|
|
2585
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2676
2586
|
type: __expectString(output.type),
|
|
2677
2587
|
unmanagedvCpus: __expectInt32(output.unmanagedvCpus),
|
|
2678
|
-
updatePolicy: output.updatePolicy
|
|
2679
|
-
? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context)
|
|
2680
|
-
: undefined,
|
|
2588
|
+
updatePolicy: output.updatePolicy != null ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context) : undefined,
|
|
2681
2589
|
};
|
|
2682
2590
|
};
|
|
2683
2591
|
var deserializeAws_restJson1ComputeEnvironmentDetailList = function (output, context) {
|
|
@@ -2713,132 +2621,106 @@ var deserializeAws_restJson1ComputeResource = function (output, context) {
|
|
|
2713
2621
|
allocationStrategy: __expectString(output.allocationStrategy),
|
|
2714
2622
|
bidPercentage: __expectInt32(output.bidPercentage),
|
|
2715
2623
|
desiredvCpus: __expectInt32(output.desiredvCpus),
|
|
2716
|
-
ec2Configuration: output.ec2Configuration
|
|
2624
|
+
ec2Configuration: output.ec2Configuration != null
|
|
2717
2625
|
? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
|
|
2718
2626
|
: undefined,
|
|
2719
2627
|
ec2KeyPair: __expectString(output.ec2KeyPair),
|
|
2720
2628
|
imageId: __expectString(output.imageId),
|
|
2721
2629
|
instanceRole: __expectString(output.instanceRole),
|
|
2722
|
-
instanceTypes: output.instanceTypes
|
|
2723
|
-
|
|
2724
|
-
: undefined,
|
|
2725
|
-
launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
|
|
2630
|
+
instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
|
|
2631
|
+
launchTemplate: output.launchTemplate != null
|
|
2726
2632
|
? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
|
|
2727
2633
|
: undefined,
|
|
2728
2634
|
maxvCpus: __expectInt32(output.maxvCpus),
|
|
2729
2635
|
minvCpus: __expectInt32(output.minvCpus),
|
|
2730
2636
|
placementGroup: __expectString(output.placementGroup),
|
|
2731
|
-
securityGroupIds: output.securityGroupIds
|
|
2637
|
+
securityGroupIds: output.securityGroupIds != null
|
|
2732
2638
|
? deserializeAws_restJson1StringList(output.securityGroupIds, context)
|
|
2733
2639
|
: undefined,
|
|
2734
2640
|
spotIamFleetRole: __expectString(output.spotIamFleetRole),
|
|
2735
|
-
subnets: output.subnets
|
|
2736
|
-
|
|
2737
|
-
: undefined,
|
|
2738
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
2739
|
-
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
2740
|
-
: undefined,
|
|
2641
|
+
subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
|
|
2642
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
2741
2643
|
type: __expectString(output.type),
|
|
2742
2644
|
};
|
|
2743
2645
|
};
|
|
2744
2646
|
var deserializeAws_restJson1ContainerDetail = function (output, context) {
|
|
2745
2647
|
return {
|
|
2746
|
-
command: output.command
|
|
2747
|
-
? deserializeAws_restJson1StringList(output.command, context)
|
|
2748
|
-
: undefined,
|
|
2648
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2749
2649
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
2750
|
-
environment: output.environment
|
|
2650
|
+
environment: output.environment != null
|
|
2751
2651
|
? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
|
|
2752
2652
|
: undefined,
|
|
2753
2653
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2754
2654
|
exitCode: __expectInt32(output.exitCode),
|
|
2755
|
-
fargatePlatformConfiguration: output.fargatePlatformConfiguration
|
|
2655
|
+
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2756
2656
|
? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2757
2657
|
: undefined,
|
|
2758
2658
|
image: __expectString(output.image),
|
|
2759
2659
|
instanceType: __expectString(output.instanceType),
|
|
2760
2660
|
jobRoleArn: __expectString(output.jobRoleArn),
|
|
2761
|
-
linuxParameters: output.linuxParameters
|
|
2661
|
+
linuxParameters: output.linuxParameters != null
|
|
2762
2662
|
? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
|
|
2763
2663
|
: undefined,
|
|
2764
|
-
logConfiguration: output.logConfiguration
|
|
2664
|
+
logConfiguration: output.logConfiguration != null
|
|
2765
2665
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2766
2666
|
: undefined,
|
|
2767
2667
|
logStreamName: __expectString(output.logStreamName),
|
|
2768
2668
|
memory: __expectInt32(output.memory),
|
|
2769
|
-
mountPoints: output.mountPoints
|
|
2770
|
-
|
|
2771
|
-
: undefined,
|
|
2772
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
2669
|
+
mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
|
|
2670
|
+
networkConfiguration: output.networkConfiguration != null
|
|
2773
2671
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
2774
2672
|
: undefined,
|
|
2775
|
-
networkInterfaces: output.networkInterfaces
|
|
2673
|
+
networkInterfaces: output.networkInterfaces != null
|
|
2776
2674
|
? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
|
|
2777
2675
|
: undefined,
|
|
2778
2676
|
privileged: __expectBoolean(output.privileged),
|
|
2779
2677
|
readonlyRootFilesystem: __expectBoolean(output.readonlyRootFilesystem),
|
|
2780
2678
|
reason: __expectString(output.reason),
|
|
2781
|
-
resourceRequirements: output.resourceRequirements
|
|
2679
|
+
resourceRequirements: output.resourceRequirements != null
|
|
2782
2680
|
? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
|
|
2783
2681
|
: undefined,
|
|
2784
|
-
secrets: output.secrets
|
|
2785
|
-
? deserializeAws_restJson1SecretList(output.secrets, context)
|
|
2786
|
-
: undefined,
|
|
2682
|
+
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2787
2683
|
taskArn: __expectString(output.taskArn),
|
|
2788
|
-
ulimits: output.ulimits
|
|
2789
|
-
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2790
|
-
: undefined,
|
|
2684
|
+
ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
|
|
2791
2685
|
user: __expectString(output.user),
|
|
2792
2686
|
vcpus: __expectInt32(output.vcpus),
|
|
2793
|
-
volumes: output.volumes
|
|
2794
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2795
|
-
: undefined,
|
|
2687
|
+
volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
2796
2688
|
};
|
|
2797
2689
|
};
|
|
2798
2690
|
var deserializeAws_restJson1ContainerProperties = function (output, context) {
|
|
2799
2691
|
return {
|
|
2800
|
-
command: output.command
|
|
2801
|
-
|
|
2802
|
-
: undefined,
|
|
2803
|
-
environment: output.environment !== undefined && output.environment !== null
|
|
2692
|
+
command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
|
|
2693
|
+
environment: output.environment != null
|
|
2804
2694
|
? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
|
|
2805
2695
|
: undefined,
|
|
2806
2696
|
executionRoleArn: __expectString(output.executionRoleArn),
|
|
2807
|
-
fargatePlatformConfiguration: output.fargatePlatformConfiguration
|
|
2697
|
+
fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
|
|
2808
2698
|
? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
|
|
2809
2699
|
: undefined,
|
|
2810
2700
|
image: __expectString(output.image),
|
|
2811
2701
|
instanceType: __expectString(output.instanceType),
|
|
2812
2702
|
jobRoleArn: __expectString(output.jobRoleArn),
|
|
2813
|
-
linuxParameters: output.linuxParameters
|
|
2703
|
+
linuxParameters: output.linuxParameters != null
|
|
2814
2704
|
? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
|
|
2815
2705
|
: undefined,
|
|
2816
|
-
logConfiguration: output.logConfiguration
|
|
2706
|
+
logConfiguration: output.logConfiguration != null
|
|
2817
2707
|
? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
|
|
2818
2708
|
: undefined,
|
|
2819
2709
|
memory: __expectInt32(output.memory),
|
|
2820
|
-
mountPoints: output.mountPoints
|
|
2821
|
-
|
|
2822
|
-
: undefined,
|
|
2823
|
-
networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
|
|
2710
|
+
mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
|
|
2711
|
+
networkConfiguration: output.networkConfiguration != null
|
|
2824
2712
|
? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
|
|
2825
2713
|
: undefined,
|
|
2826
2714
|
privileged: __expectBoolean(output.privileged),
|
|
2827
2715
|
readonlyRootFilesystem: __expectBoolean(output.readonlyRootFilesystem),
|
|
2828
|
-
resourceRequirements: output.resourceRequirements
|
|
2716
|
+
resourceRequirements: output.resourceRequirements != null
|
|
2829
2717
|
? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
|
|
2830
2718
|
: undefined,
|
|
2831
|
-
secrets: output.secrets
|
|
2832
|
-
|
|
2833
|
-
: undefined,
|
|
2834
|
-
ulimits: output.ulimits !== undefined && output.ulimits !== null
|
|
2835
|
-
? deserializeAws_restJson1Ulimits(output.ulimits, context)
|
|
2836
|
-
: undefined,
|
|
2719
|
+
secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
|
|
2720
|
+
ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
|
|
2837
2721
|
user: __expectString(output.user),
|
|
2838
2722
|
vcpus: __expectInt32(output.vcpus),
|
|
2839
|
-
volumes: output.volumes
|
|
2840
|
-
? deserializeAws_restJson1Volumes(output.volumes, context)
|
|
2841
|
-
: undefined,
|
|
2723
|
+
volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
|
|
2842
2724
|
};
|
|
2843
2725
|
};
|
|
2844
2726
|
var deserializeAws_restJson1ContainerSummary = function (output, context) {
|
|
@@ -2851,7 +2733,7 @@ var deserializeAws_restJson1Device = function (output, context) {
|
|
|
2851
2733
|
return {
|
|
2852
2734
|
containerPath: __expectString(output.containerPath),
|
|
2853
2735
|
hostPath: __expectString(output.hostPath),
|
|
2854
|
-
permissions: output.permissions
|
|
2736
|
+
permissions: output.permissions != null
|
|
2855
2737
|
? deserializeAws_restJson1DeviceCgroupPermissions(output.permissions, context)
|
|
2856
2738
|
: undefined,
|
|
2857
2739
|
};
|
|
@@ -2903,7 +2785,7 @@ var deserializeAws_restJson1EFSAuthorizationConfig = function (output, context)
|
|
|
2903
2785
|
};
|
|
2904
2786
|
var deserializeAws_restJson1EFSVolumeConfiguration = function (output, context) {
|
|
2905
2787
|
return {
|
|
2906
|
-
authorizationConfig: output.authorizationConfig
|
|
2788
|
+
authorizationConfig: output.authorizationConfig != null
|
|
2907
2789
|
? deserializeAws_restJson1EFSAuthorizationConfig(output.authorizationConfig, context)
|
|
2908
2790
|
: undefined,
|
|
2909
2791
|
fileSystemId: __expectString(output.fileSystemId),
|
|
@@ -2946,7 +2828,7 @@ var deserializeAws_restJson1FairsharePolicy = function (output, context) {
|
|
|
2946
2828
|
return {
|
|
2947
2829
|
computeReservation: __expectInt32(output.computeReservation),
|
|
2948
2830
|
shareDecaySeconds: __expectInt32(output.shareDecaySeconds),
|
|
2949
|
-
shareDistribution: output.shareDistribution
|
|
2831
|
+
shareDistribution: output.shareDistribution != null
|
|
2950
2832
|
? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
|
|
2951
2833
|
: undefined,
|
|
2952
2834
|
};
|
|
@@ -2963,33 +2845,25 @@ var deserializeAws_restJson1Host = function (output, context) {
|
|
|
2963
2845
|
};
|
|
2964
2846
|
var deserializeAws_restJson1JobDefinition = function (output, context) {
|
|
2965
2847
|
return {
|
|
2966
|
-
containerProperties: output.containerProperties
|
|
2848
|
+
containerProperties: output.containerProperties != null
|
|
2967
2849
|
? deserializeAws_restJson1ContainerProperties(output.containerProperties, context)
|
|
2968
2850
|
: undefined,
|
|
2969
2851
|
jobDefinitionArn: __expectString(output.jobDefinitionArn),
|
|
2970
2852
|
jobDefinitionName: __expectString(output.jobDefinitionName),
|
|
2971
|
-
nodeProperties: output.nodeProperties
|
|
2853
|
+
nodeProperties: output.nodeProperties != null
|
|
2972
2854
|
? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
|
|
2973
2855
|
: undefined,
|
|
2974
|
-
parameters: output.parameters
|
|
2975
|
-
|
|
2976
|
-
: undefined,
|
|
2977
|
-
platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
|
|
2856
|
+
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2857
|
+
platformCapabilities: output.platformCapabilities != null
|
|
2978
2858
|
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
2979
2859
|
: undefined,
|
|
2980
2860
|
propagateTags: __expectBoolean(output.propagateTags),
|
|
2981
|
-
retryStrategy: output.retryStrategy
|
|
2982
|
-
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
2983
|
-
: undefined,
|
|
2861
|
+
retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
|
|
2984
2862
|
revision: __expectInt32(output.revision),
|
|
2985
2863
|
schedulingPriority: __expectInt32(output.schedulingPriority),
|
|
2986
2864
|
status: __expectString(output.status),
|
|
2987
|
-
tags: output.tags
|
|
2988
|
-
|
|
2989
|
-
: undefined,
|
|
2990
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
2991
|
-
? deserializeAws_restJson1JobTimeout(output.timeout, context)
|
|
2992
|
-
: undefined,
|
|
2865
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2866
|
+
timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
|
|
2993
2867
|
type: __expectString(output.type),
|
|
2994
2868
|
};
|
|
2995
2869
|
};
|
|
@@ -3023,52 +2897,36 @@ var deserializeAws_restJson1JobDependencyList = function (output, context) {
|
|
|
3023
2897
|
};
|
|
3024
2898
|
var deserializeAws_restJson1JobDetail = function (output, context) {
|
|
3025
2899
|
return {
|
|
3026
|
-
arrayProperties: output.arrayProperties
|
|
2900
|
+
arrayProperties: output.arrayProperties != null
|
|
3027
2901
|
? deserializeAws_restJson1ArrayPropertiesDetail(output.arrayProperties, context)
|
|
3028
2902
|
: undefined,
|
|
3029
|
-
attempts: output.attempts
|
|
3030
|
-
|
|
3031
|
-
: undefined,
|
|
3032
|
-
container: output.container !== undefined && output.container !== null
|
|
3033
|
-
? deserializeAws_restJson1ContainerDetail(output.container, context)
|
|
3034
|
-
: undefined,
|
|
2903
|
+
attempts: output.attempts != null ? deserializeAws_restJson1AttemptDetails(output.attempts, context) : undefined,
|
|
2904
|
+
container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
|
|
3035
2905
|
createdAt: __expectLong(output.createdAt),
|
|
3036
|
-
dependsOn: output.dependsOn
|
|
3037
|
-
? deserializeAws_restJson1JobDependencyList(output.dependsOn, context)
|
|
3038
|
-
: undefined,
|
|
2906
|
+
dependsOn: output.dependsOn != null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) : undefined,
|
|
3039
2907
|
jobArn: __expectString(output.jobArn),
|
|
3040
2908
|
jobDefinition: __expectString(output.jobDefinition),
|
|
3041
2909
|
jobId: __expectString(output.jobId),
|
|
3042
2910
|
jobName: __expectString(output.jobName),
|
|
3043
2911
|
jobQueue: __expectString(output.jobQueue),
|
|
3044
|
-
nodeDetails: output.nodeDetails
|
|
3045
|
-
|
|
3046
|
-
: undefined,
|
|
3047
|
-
nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
|
|
2912
|
+
nodeDetails: output.nodeDetails != null ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context) : undefined,
|
|
2913
|
+
nodeProperties: output.nodeProperties != null
|
|
3048
2914
|
? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
|
|
3049
2915
|
: undefined,
|
|
3050
|
-
parameters: output.parameters
|
|
3051
|
-
|
|
3052
|
-
: undefined,
|
|
3053
|
-
platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
|
|
2916
|
+
parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
|
|
2917
|
+
platformCapabilities: output.platformCapabilities != null
|
|
3054
2918
|
? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
|
|
3055
2919
|
: undefined,
|
|
3056
2920
|
propagateTags: __expectBoolean(output.propagateTags),
|
|
3057
|
-
retryStrategy: output.retryStrategy
|
|
3058
|
-
? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
|
|
3059
|
-
: undefined,
|
|
2921
|
+
retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
|
|
3060
2922
|
schedulingPriority: __expectInt32(output.schedulingPriority),
|
|
3061
2923
|
shareIdentifier: __expectString(output.shareIdentifier),
|
|
3062
2924
|
startedAt: __expectLong(output.startedAt),
|
|
3063
2925
|
status: __expectString(output.status),
|
|
3064
2926
|
statusReason: __expectString(output.statusReason),
|
|
3065
2927
|
stoppedAt: __expectLong(output.stoppedAt),
|
|
3066
|
-
tags: output.tags
|
|
3067
|
-
|
|
3068
|
-
: undefined,
|
|
3069
|
-
timeout: output.timeout !== undefined && output.timeout !== null
|
|
3070
|
-
? deserializeAws_restJson1JobTimeout(output.timeout, context)
|
|
3071
|
-
: undefined,
|
|
2928
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
2929
|
+
timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
|
|
3072
2930
|
};
|
|
3073
2931
|
};
|
|
3074
2932
|
var deserializeAws_restJson1JobDetailList = function (output, context) {
|
|
@@ -3084,7 +2942,7 @@ var deserializeAws_restJson1JobDetailList = function (output, context) {
|
|
|
3084
2942
|
};
|
|
3085
2943
|
var deserializeAws_restJson1JobQueueDetail = function (output, context) {
|
|
3086
2944
|
return {
|
|
3087
|
-
computeEnvironmentOrder: output.computeEnvironmentOrder
|
|
2945
|
+
computeEnvironmentOrder: output.computeEnvironmentOrder != null
|
|
3088
2946
|
? deserializeAws_restJson1ComputeEnvironmentOrders(output.computeEnvironmentOrder, context)
|
|
3089
2947
|
: undefined,
|
|
3090
2948
|
jobQueueArn: __expectString(output.jobQueueArn),
|
|
@@ -3094,9 +2952,7 @@ var deserializeAws_restJson1JobQueueDetail = function (output, context) {
|
|
|
3094
2952
|
state: __expectString(output.state),
|
|
3095
2953
|
status: __expectString(output.status),
|
|
3096
2954
|
statusReason: __expectString(output.statusReason),
|
|
3097
|
-
tags: output.tags
|
|
3098
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
3099
|
-
: undefined,
|
|
2955
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
3100
2956
|
};
|
|
3101
2957
|
};
|
|
3102
2958
|
var deserializeAws_restJson1JobQueueDetailList = function (output, context) {
|
|
@@ -3112,18 +2968,16 @@ var deserializeAws_restJson1JobQueueDetailList = function (output, context) {
|
|
|
3112
2968
|
};
|
|
3113
2969
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
3114
2970
|
return {
|
|
3115
|
-
arrayProperties: output.arrayProperties
|
|
2971
|
+
arrayProperties: output.arrayProperties != null
|
|
3116
2972
|
? deserializeAws_restJson1ArrayPropertiesSummary(output.arrayProperties, context)
|
|
3117
2973
|
: undefined,
|
|
3118
|
-
container: output.container
|
|
3119
|
-
? deserializeAws_restJson1ContainerSummary(output.container, context)
|
|
3120
|
-
: undefined,
|
|
2974
|
+
container: output.container != null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined,
|
|
3121
2975
|
createdAt: __expectLong(output.createdAt),
|
|
3122
2976
|
jobArn: __expectString(output.jobArn),
|
|
3123
2977
|
jobDefinition: __expectString(output.jobDefinition),
|
|
3124
2978
|
jobId: __expectString(output.jobId),
|
|
3125
2979
|
jobName: __expectString(output.jobName),
|
|
3126
|
-
nodeProperties: output.nodeProperties
|
|
2980
|
+
nodeProperties: output.nodeProperties != null
|
|
3127
2981
|
? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
|
|
3128
2982
|
: undefined,
|
|
3129
2983
|
startedAt: __expectLong(output.startedAt),
|
|
@@ -3163,27 +3017,19 @@ var deserializeAws_restJson1LaunchTemplateSpecification = function (output, cont
|
|
|
3163
3017
|
};
|
|
3164
3018
|
var deserializeAws_restJson1LinuxParameters = function (output, context) {
|
|
3165
3019
|
return {
|
|
3166
|
-
devices: output.devices
|
|
3167
|
-
? deserializeAws_restJson1DevicesList(output.devices, context)
|
|
3168
|
-
: undefined,
|
|
3020
|
+
devices: output.devices != null ? deserializeAws_restJson1DevicesList(output.devices, context) : undefined,
|
|
3169
3021
|
initProcessEnabled: __expectBoolean(output.initProcessEnabled),
|
|
3170
3022
|
maxSwap: __expectInt32(output.maxSwap),
|
|
3171
3023
|
sharedMemorySize: __expectInt32(output.sharedMemorySize),
|
|
3172
3024
|
swappiness: __expectInt32(output.swappiness),
|
|
3173
|
-
tmpfs: output.tmpfs
|
|
3174
|
-
? deserializeAws_restJson1TmpfsList(output.tmpfs, context)
|
|
3175
|
-
: undefined,
|
|
3025
|
+
tmpfs: output.tmpfs != null ? deserializeAws_restJson1TmpfsList(output.tmpfs, context) : undefined,
|
|
3176
3026
|
};
|
|
3177
3027
|
};
|
|
3178
3028
|
var deserializeAws_restJson1LogConfiguration = function (output, context) {
|
|
3179
3029
|
return {
|
|
3180
3030
|
logDriver: __expectString(output.logDriver),
|
|
3181
|
-
options: output.options
|
|
3182
|
-
|
|
3183
|
-
: undefined,
|
|
3184
|
-
secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
|
|
3185
|
-
? deserializeAws_restJson1SecretList(output.secretOptions, context)
|
|
3186
|
-
: undefined,
|
|
3031
|
+
options: output.options != null ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context) : undefined,
|
|
3032
|
+
secretOptions: output.secretOptions != null ? deserializeAws_restJson1SecretList(output.secretOptions, context) : undefined,
|
|
3187
3033
|
};
|
|
3188
3034
|
};
|
|
3189
3035
|
var deserializeAws_restJson1LogConfigurationOptionsMap = function (output, context) {
|
|
@@ -3246,7 +3092,7 @@ var deserializeAws_restJson1NodeDetails = function (output, context) {
|
|
|
3246
3092
|
var deserializeAws_restJson1NodeProperties = function (output, context) {
|
|
3247
3093
|
return {
|
|
3248
3094
|
mainNode: __expectInt32(output.mainNode),
|
|
3249
|
-
nodeRangeProperties: output.nodeRangeProperties
|
|
3095
|
+
nodeRangeProperties: output.nodeRangeProperties != null
|
|
3250
3096
|
? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
|
|
3251
3097
|
: undefined,
|
|
3252
3098
|
numNodes: __expectInt32(output.numNodes),
|
|
@@ -3272,9 +3118,7 @@ var deserializeAws_restJson1NodeRangeProperties = function (output, context) {
|
|
|
3272
3118
|
};
|
|
3273
3119
|
var deserializeAws_restJson1NodeRangeProperty = function (output, context) {
|
|
3274
3120
|
return {
|
|
3275
|
-
container: output.container
|
|
3276
|
-
? deserializeAws_restJson1ContainerProperties(output.container, context)
|
|
3277
|
-
: undefined,
|
|
3121
|
+
container: output.container != null ? deserializeAws_restJson1ContainerProperties(output.container, context) : undefined,
|
|
3278
3122
|
targetNodes: __expectString(output.targetNodes),
|
|
3279
3123
|
};
|
|
3280
3124
|
};
|
|
@@ -3319,7 +3163,7 @@ var deserializeAws_restJson1ResourceRequirements = function (output, context) {
|
|
|
3319
3163
|
var deserializeAws_restJson1RetryStrategy = function (output, context) {
|
|
3320
3164
|
return {
|
|
3321
3165
|
attempts: __expectInt32(output.attempts),
|
|
3322
|
-
evaluateOnExit: output.evaluateOnExit
|
|
3166
|
+
evaluateOnExit: output.evaluateOnExit != null
|
|
3323
3167
|
? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
|
|
3324
3168
|
: undefined,
|
|
3325
3169
|
};
|
|
@@ -3327,13 +3171,11 @@ var deserializeAws_restJson1RetryStrategy = function (output, context) {
|
|
|
3327
3171
|
var deserializeAws_restJson1SchedulingPolicyDetail = function (output, context) {
|
|
3328
3172
|
return {
|
|
3329
3173
|
arn: __expectString(output.arn),
|
|
3330
|
-
fairsharePolicy: output.fairsharePolicy
|
|
3174
|
+
fairsharePolicy: output.fairsharePolicy != null
|
|
3331
3175
|
? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
|
|
3332
3176
|
: undefined,
|
|
3333
3177
|
name: __expectString(output.name),
|
|
3334
|
-
tags: output.tags
|
|
3335
|
-
? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
|
|
3336
|
-
: undefined,
|
|
3178
|
+
tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
|
|
3337
3179
|
};
|
|
3338
3180
|
};
|
|
3339
3181
|
var deserializeAws_restJson1SchedulingPolicyDetailList = function (output, context) {
|
|
@@ -3431,9 +3273,7 @@ var deserializeAws_restJson1TagsMap = function (output, context) {
|
|
|
3431
3273
|
var deserializeAws_restJson1Tmpfs = function (output, context) {
|
|
3432
3274
|
return {
|
|
3433
3275
|
containerPath: __expectString(output.containerPath),
|
|
3434
|
-
mountOptions: output.mountOptions
|
|
3435
|
-
? deserializeAws_restJson1StringList(output.mountOptions, context)
|
|
3436
|
-
: undefined,
|
|
3276
|
+
mountOptions: output.mountOptions != null ? deserializeAws_restJson1StringList(output.mountOptions, context) : undefined,
|
|
3437
3277
|
size: __expectInt32(output.size),
|
|
3438
3278
|
};
|
|
3439
3279
|
};
|
|
@@ -3474,12 +3314,10 @@ var deserializeAws_restJson1UpdatePolicy = function (output, context) {
|
|
|
3474
3314
|
};
|
|
3475
3315
|
var deserializeAws_restJson1Volume = function (output, context) {
|
|
3476
3316
|
return {
|
|
3477
|
-
efsVolumeConfiguration: output.efsVolumeConfiguration
|
|
3317
|
+
efsVolumeConfiguration: output.efsVolumeConfiguration != null
|
|
3478
3318
|
? deserializeAws_restJson1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
|
|
3479
3319
|
: undefined,
|
|
3480
|
-
host: output.host
|
|
3481
|
-
? deserializeAws_restJson1Host(output.host, context)
|
|
3482
|
-
: undefined,
|
|
3320
|
+
host: output.host != null ? deserializeAws_restJson1Host(output.host, context) : undefined,
|
|
3483
3321
|
name: __expectString(output.name),
|
|
3484
3322
|
};
|
|
3485
3323
|
};
|
|
@@ -3550,5 +3388,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3550
3388
|
if (data["__type"] !== undefined) {
|
|
3551
3389
|
return sanitizeErrorCode(data["__type"]);
|
|
3552
3390
|
}
|
|
3553
|
-
return "";
|
|
3554
3391
|
};
|