@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.
@@ -13,8 +13,8 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
13
13
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/canceljob";
14
14
  let body;
15
15
  body = JSON.stringify({
16
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
17
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
16
+ ...(input.jobId != null && { jobId: input.jobId }),
17
+ ...(input.reason != null && { reason: input.reason }),
18
18
  });
19
19
  return new protocol_http_1.HttpRequest({
20
20
  protocol,
@@ -35,19 +35,15 @@ const serializeAws_restJson1CreateComputeEnvironmentCommand = async (input, cont
35
35
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createcomputeenvironment";
36
36
  let body;
37
37
  body = JSON.stringify({
38
- ...(input.computeEnvironmentName !== undefined &&
39
- input.computeEnvironmentName !== null && { computeEnvironmentName: input.computeEnvironmentName }),
40
- ...(input.computeResources !== undefined &&
41
- input.computeResources !== null && {
38
+ ...(input.computeEnvironmentName != null && { computeEnvironmentName: input.computeEnvironmentName }),
39
+ ...(input.computeResources != null && {
42
40
  computeResources: serializeAws_restJson1ComputeResource(input.computeResources, context),
43
41
  }),
44
- ...(input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole }),
45
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
46
- ...(input.tags !== undefined &&
47
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
48
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
49
- ...(input.unmanagedvCpus !== undefined &&
50
- input.unmanagedvCpus !== null && { unmanagedvCpus: input.unmanagedvCpus }),
42
+ ...(input.serviceRole != null && { serviceRole: input.serviceRole }),
43
+ ...(input.state != null && { state: input.state }),
44
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
45
+ ...(input.type != null && { type: input.type }),
46
+ ...(input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus }),
51
47
  });
52
48
  return new protocol_http_1.HttpRequest({
53
49
  protocol,
@@ -68,17 +64,14 @@ const serializeAws_restJson1CreateJobQueueCommand = async (input, context) => {
68
64
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createjobqueue";
69
65
  let body;
70
66
  body = JSON.stringify({
71
- ...(input.computeEnvironmentOrder !== undefined &&
72
- input.computeEnvironmentOrder !== null && {
67
+ ...(input.computeEnvironmentOrder != null && {
73
68
  computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
74
69
  }),
75
- ...(input.jobQueueName !== undefined && input.jobQueueName !== null && { jobQueueName: input.jobQueueName }),
76
- ...(input.priority !== undefined && input.priority !== null && { priority: input.priority }),
77
- ...(input.schedulingPolicyArn !== undefined &&
78
- input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn }),
79
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
80
- ...(input.tags !== undefined &&
81
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
70
+ ...(input.jobQueueName != null && { jobQueueName: input.jobQueueName }),
71
+ ...(input.priority != null && { priority: input.priority }),
72
+ ...(input.schedulingPolicyArn != null && { schedulingPolicyArn: input.schedulingPolicyArn }),
73
+ ...(input.state != null && { state: input.state }),
74
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
82
75
  });
83
76
  return new protocol_http_1.HttpRequest({
84
77
  protocol,
@@ -99,13 +92,11 @@ const serializeAws_restJson1CreateSchedulingPolicyCommand = async (input, contex
99
92
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/createschedulingpolicy";
100
93
  let body;
101
94
  body = JSON.stringify({
102
- ...(input.fairsharePolicy !== undefined &&
103
- input.fairsharePolicy !== null && {
95
+ ...(input.fairsharePolicy != null && {
104
96
  fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
105
97
  }),
106
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
107
- ...(input.tags !== undefined &&
108
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
98
+ ...(input.name != null && { name: input.name }),
99
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
109
100
  });
110
101
  return new protocol_http_1.HttpRequest({
111
102
  protocol,
@@ -126,8 +117,7 @@ const serializeAws_restJson1DeleteComputeEnvironmentCommand = async (input, cont
126
117
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deletecomputeenvironment";
127
118
  let body;
128
119
  body = JSON.stringify({
129
- ...(input.computeEnvironment !== undefined &&
130
- input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment }),
120
+ ...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
131
121
  });
132
122
  return new protocol_http_1.HttpRequest({
133
123
  protocol,
@@ -148,7 +138,7 @@ const serializeAws_restJson1DeleteJobQueueCommand = async (input, context) => {
148
138
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deletejobqueue";
149
139
  let body;
150
140
  body = JSON.stringify({
151
- ...(input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue }),
141
+ ...(input.jobQueue != null && { jobQueue: input.jobQueue }),
152
142
  });
153
143
  return new protocol_http_1.HttpRequest({
154
144
  protocol,
@@ -169,7 +159,7 @@ const serializeAws_restJson1DeleteSchedulingPolicyCommand = async (input, contex
169
159
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deleteschedulingpolicy";
170
160
  let body;
171
161
  body = JSON.stringify({
172
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
162
+ ...(input.arn != null && { arn: input.arn }),
173
163
  });
174
164
  return new protocol_http_1.HttpRequest({
175
165
  protocol,
@@ -190,7 +180,7 @@ const serializeAws_restJson1DeregisterJobDefinitionCommand = async (input, conte
190
180
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/deregisterjobdefinition";
191
181
  let body;
192
182
  body = JSON.stringify({
193
- ...(input.jobDefinition !== undefined && input.jobDefinition !== null && { jobDefinition: input.jobDefinition }),
183
+ ...(input.jobDefinition != null && { jobDefinition: input.jobDefinition }),
194
184
  });
195
185
  return new protocol_http_1.HttpRequest({
196
186
  protocol,
@@ -211,12 +201,11 @@ const serializeAws_restJson1DescribeComputeEnvironmentsCommand = async (input, c
211
201
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describecomputeenvironments";
212
202
  let body;
213
203
  body = JSON.stringify({
214
- ...(input.computeEnvironments !== undefined &&
215
- input.computeEnvironments !== null && {
204
+ ...(input.computeEnvironments != null && {
216
205
  computeEnvironments: serializeAws_restJson1StringList(input.computeEnvironments, context),
217
206
  }),
218
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
219
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
207
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
208
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
220
209
  });
221
210
  return new protocol_http_1.HttpRequest({
222
211
  protocol,
@@ -237,15 +226,13 @@ const serializeAws_restJson1DescribeJobDefinitionsCommand = async (input, contex
237
226
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobdefinitions";
238
227
  let body;
239
228
  body = JSON.stringify({
240
- ...(input.jobDefinitionName !== undefined &&
241
- input.jobDefinitionName !== null && { jobDefinitionName: input.jobDefinitionName }),
242
- ...(input.jobDefinitions !== undefined &&
243
- input.jobDefinitions !== null && {
229
+ ...(input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName }),
230
+ ...(input.jobDefinitions != null && {
244
231
  jobDefinitions: serializeAws_restJson1StringList(input.jobDefinitions, context),
245
232
  }),
246
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
247
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
248
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
233
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
234
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
235
+ ...(input.status != null && { status: input.status }),
249
236
  });
250
237
  return new protocol_http_1.HttpRequest({
251
238
  protocol,
@@ -266,10 +253,9 @@ const serializeAws_restJson1DescribeJobQueuesCommand = async (input, context) =>
266
253
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobqueues";
267
254
  let body;
268
255
  body = JSON.stringify({
269
- ...(input.jobQueues !== undefined &&
270
- input.jobQueues !== null && { jobQueues: serializeAws_restJson1StringList(input.jobQueues, context) }),
271
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
272
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
256
+ ...(input.jobQueues != null && { jobQueues: serializeAws_restJson1StringList(input.jobQueues, context) }),
257
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
258
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
273
259
  });
274
260
  return new protocol_http_1.HttpRequest({
275
261
  protocol,
@@ -290,8 +276,7 @@ const serializeAws_restJson1DescribeJobsCommand = async (input, context) => {
290
276
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describejobs";
291
277
  let body;
292
278
  body = JSON.stringify({
293
- ...(input.jobs !== undefined &&
294
- input.jobs !== null && { jobs: serializeAws_restJson1StringList(input.jobs, context) }),
279
+ ...(input.jobs != null && { jobs: serializeAws_restJson1StringList(input.jobs, context) }),
295
280
  });
296
281
  return new protocol_http_1.HttpRequest({
297
282
  protocol,
@@ -312,8 +297,7 @@ const serializeAws_restJson1DescribeSchedulingPoliciesCommand = async (input, co
312
297
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/describeschedulingpolicies";
313
298
  let body;
314
299
  body = JSON.stringify({
315
- ...(input.arns !== undefined &&
316
- input.arns !== null && { arns: serializeAws_restJson1StringList(input.arns, context) }),
300
+ ...(input.arns != null && { arns: serializeAws_restJson1StringList(input.arns, context) }),
317
301
  });
318
302
  return new protocol_http_1.HttpRequest({
319
303
  protocol,
@@ -334,15 +318,13 @@ const serializeAws_restJson1ListJobsCommand = async (input, context) => {
334
318
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/listjobs";
335
319
  let body;
336
320
  body = JSON.stringify({
337
- ...(input.arrayJobId !== undefined && input.arrayJobId !== null && { arrayJobId: input.arrayJobId }),
338
- ...(input.filters !== undefined &&
339
- input.filters !== null && { filters: serializeAws_restJson1ListJobsFilterList(input.filters, context) }),
340
- ...(input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue }),
341
- ...(input.jobStatus !== undefined && input.jobStatus !== null && { jobStatus: input.jobStatus }),
342
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
343
- ...(input.multiNodeJobId !== undefined &&
344
- input.multiNodeJobId !== null && { multiNodeJobId: input.multiNodeJobId }),
345
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
321
+ ...(input.arrayJobId != null && { arrayJobId: input.arrayJobId }),
322
+ ...(input.filters != null && { filters: serializeAws_restJson1ListJobsFilterList(input.filters, context) }),
323
+ ...(input.jobQueue != null && { jobQueue: input.jobQueue }),
324
+ ...(input.jobStatus != null && { jobStatus: input.jobStatus }),
325
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
326
+ ...(input.multiNodeJobId != null && { multiNodeJobId: input.multiNodeJobId }),
327
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
346
328
  });
347
329
  return new protocol_http_1.HttpRequest({
348
330
  protocol,
@@ -363,8 +345,8 @@ const serializeAws_restJson1ListSchedulingPoliciesCommand = async (input, contex
363
345
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/listschedulingpolicies";
364
346
  let body;
365
347
  body = JSON.stringify({
366
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
367
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
348
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
349
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
368
350
  });
369
351
  return new protocol_http_1.HttpRequest({
370
352
  protocol,
@@ -411,34 +393,25 @@ const serializeAws_restJson1RegisterJobDefinitionCommand = async (input, context
411
393
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/registerjobdefinition";
412
394
  let body;
413
395
  body = JSON.stringify({
414
- ...(input.containerProperties !== undefined &&
415
- input.containerProperties !== null && {
396
+ ...(input.containerProperties != null && {
416
397
  containerProperties: serializeAws_restJson1ContainerProperties(input.containerProperties, context),
417
398
  }),
418
- ...(input.jobDefinitionName !== undefined &&
419
- input.jobDefinitionName !== null && { jobDefinitionName: input.jobDefinitionName }),
420
- ...(input.nodeProperties !== undefined &&
421
- input.nodeProperties !== null && {
399
+ ...(input.jobDefinitionName != null && { jobDefinitionName: input.jobDefinitionName }),
400
+ ...(input.nodeProperties != null && {
422
401
  nodeProperties: serializeAws_restJson1NodeProperties(input.nodeProperties, context),
423
402
  }),
424
- ...(input.parameters !== undefined &&
425
- input.parameters !== null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
426
- ...(input.platformCapabilities !== undefined &&
427
- input.platformCapabilities !== null && {
403
+ ...(input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
404
+ ...(input.platformCapabilities != null && {
428
405
  platformCapabilities: serializeAws_restJson1PlatformCapabilityList(input.platformCapabilities, context),
429
406
  }),
430
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
431
- ...(input.retryStrategy !== undefined &&
432
- input.retryStrategy !== null && {
407
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
408
+ ...(input.retryStrategy != null && {
433
409
  retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
434
410
  }),
435
- ...(input.schedulingPriority !== undefined &&
436
- input.schedulingPriority !== null && { schedulingPriority: input.schedulingPriority }),
437
- ...(input.tags !== undefined &&
438
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
439
- ...(input.timeout !== undefined &&
440
- input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) }),
441
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
411
+ ...(input.schedulingPriority != null && { schedulingPriority: input.schedulingPriority }),
412
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
413
+ ...(input.timeout != null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) }),
414
+ ...(input.type != null && { type: input.type }),
442
415
  });
443
416
  return new protocol_http_1.HttpRequest({
444
417
  protocol,
@@ -459,38 +432,28 @@ const serializeAws_restJson1SubmitJobCommand = async (input, context) => {
459
432
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/submitjob";
460
433
  let body;
461
434
  body = JSON.stringify({
462
- ...(input.arrayProperties !== undefined &&
463
- input.arrayProperties !== null && {
435
+ ...(input.arrayProperties != null && {
464
436
  arrayProperties: serializeAws_restJson1ArrayProperties(input.arrayProperties, context),
465
437
  }),
466
- ...(input.containerOverrides !== undefined &&
467
- input.containerOverrides !== null && {
438
+ ...(input.containerOverrides != null && {
468
439
  containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
469
440
  }),
470
- ...(input.dependsOn !== undefined &&
471
- input.dependsOn !== null && { dependsOn: serializeAws_restJson1JobDependencyList(input.dependsOn, context) }),
472
- ...(input.jobDefinition !== undefined && input.jobDefinition !== null && { jobDefinition: input.jobDefinition }),
473
- ...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
474
- ...(input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue }),
475
- ...(input.nodeOverrides !== undefined &&
476
- input.nodeOverrides !== null && {
441
+ ...(input.dependsOn != null && { dependsOn: serializeAws_restJson1JobDependencyList(input.dependsOn, context) }),
442
+ ...(input.jobDefinition != null && { jobDefinition: input.jobDefinition }),
443
+ ...(input.jobName != null && { jobName: input.jobName }),
444
+ ...(input.jobQueue != null && { jobQueue: input.jobQueue }),
445
+ ...(input.nodeOverrides != null && {
477
446
  nodeOverrides: serializeAws_restJson1NodeOverrides(input.nodeOverrides, context),
478
447
  }),
479
- ...(input.parameters !== undefined &&
480
- input.parameters !== null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
481
- ...(input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags }),
482
- ...(input.retryStrategy !== undefined &&
483
- input.retryStrategy !== null && {
448
+ ...(input.parameters != null && { parameters: serializeAws_restJson1ParametersMap(input.parameters, context) }),
449
+ ...(input.propagateTags != null && { propagateTags: input.propagateTags }),
450
+ ...(input.retryStrategy != null && {
484
451
  retryStrategy: serializeAws_restJson1RetryStrategy(input.retryStrategy, context),
485
452
  }),
486
- ...(input.schedulingPriorityOverride !== undefined &&
487
- input.schedulingPriorityOverride !== null && { schedulingPriorityOverride: input.schedulingPriorityOverride }),
488
- ...(input.shareIdentifier !== undefined &&
489
- input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier }),
490
- ...(input.tags !== undefined &&
491
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
492
- ...(input.timeout !== undefined &&
493
- input.timeout !== null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) }),
453
+ ...(input.schedulingPriorityOverride != null && { schedulingPriorityOverride: input.schedulingPriorityOverride }),
454
+ ...(input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier }),
455
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
456
+ ...(input.timeout != null && { timeout: serializeAws_restJson1JobTimeout(input.timeout, context) }),
494
457
  });
495
458
  return new protocol_http_1.HttpRequest({
496
459
  protocol,
@@ -521,8 +484,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
521
484
  }
522
485
  let body;
523
486
  body = JSON.stringify({
524
- ...(input.tags !== undefined &&
525
- input.tags !== null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
487
+ ...(input.tags != null && { tags: serializeAws_restJson1TagrisTagsMap(input.tags, context) }),
526
488
  });
527
489
  return new protocol_http_1.HttpRequest({
528
490
  protocol,
@@ -543,8 +505,8 @@ const serializeAws_restJson1TerminateJobCommand = async (input, context) => {
543
505
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/terminatejob";
544
506
  let body;
545
507
  body = JSON.stringify({
546
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
547
- ...(input.reason !== undefined && input.reason !== null && { reason: input.reason }),
508
+ ...(input.jobId != null && { jobId: input.jobId }),
509
+ ...(input.reason != null && { reason: input.reason }),
548
510
  });
549
511
  return new protocol_http_1.HttpRequest({
550
512
  protocol,
@@ -595,18 +557,16 @@ const serializeAws_restJson1UpdateComputeEnvironmentCommand = async (input, cont
595
557
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updatecomputeenvironment";
596
558
  let body;
597
559
  body = JSON.stringify({
598
- ...(input.computeEnvironment !== undefined &&
599
- input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment }),
600
- ...(input.computeResources !== undefined &&
601
- input.computeResources !== null && {
560
+ ...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
561
+ ...(input.computeResources != null && {
602
562
  computeResources: serializeAws_restJson1ComputeResourceUpdate(input.computeResources, context),
603
563
  }),
604
- ...(input.serviceRole !== undefined && input.serviceRole !== null && { serviceRole: input.serviceRole }),
605
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
606
- ...(input.unmanagedvCpus !== undefined &&
607
- input.unmanagedvCpus !== null && { unmanagedvCpus: input.unmanagedvCpus }),
608
- ...(input.updatePolicy !== undefined &&
609
- input.updatePolicy !== null && { updatePolicy: serializeAws_restJson1UpdatePolicy(input.updatePolicy, context) }),
564
+ ...(input.serviceRole != null && { serviceRole: input.serviceRole }),
565
+ ...(input.state != null && { state: input.state }),
566
+ ...(input.unmanagedvCpus != null && { unmanagedvCpus: input.unmanagedvCpus }),
567
+ ...(input.updatePolicy != null && {
568
+ updatePolicy: serializeAws_restJson1UpdatePolicy(input.updatePolicy, context),
569
+ }),
610
570
  });
611
571
  return new protocol_http_1.HttpRequest({
612
572
  protocol,
@@ -627,15 +587,13 @@ const serializeAws_restJson1UpdateJobQueueCommand = async (input, context) => {
627
587
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updatejobqueue";
628
588
  let body;
629
589
  body = JSON.stringify({
630
- ...(input.computeEnvironmentOrder !== undefined &&
631
- input.computeEnvironmentOrder !== null && {
590
+ ...(input.computeEnvironmentOrder != null && {
632
591
  computeEnvironmentOrder: serializeAws_restJson1ComputeEnvironmentOrders(input.computeEnvironmentOrder, context),
633
592
  }),
634
- ...(input.jobQueue !== undefined && input.jobQueue !== null && { jobQueue: input.jobQueue }),
635
- ...(input.priority !== undefined && input.priority !== null && { priority: input.priority }),
636
- ...(input.schedulingPolicyArn !== undefined &&
637
- input.schedulingPolicyArn !== null && { schedulingPolicyArn: input.schedulingPolicyArn }),
638
- ...(input.state !== undefined && input.state !== null && { state: input.state }),
593
+ ...(input.jobQueue != null && { jobQueue: input.jobQueue }),
594
+ ...(input.priority != null && { priority: input.priority }),
595
+ ...(input.schedulingPolicyArn != null && { schedulingPolicyArn: input.schedulingPolicyArn }),
596
+ ...(input.state != null && { state: input.state }),
639
597
  });
640
598
  return new protocol_http_1.HttpRequest({
641
599
  protocol,
@@ -656,9 +614,8 @@ const serializeAws_restJson1UpdateSchedulingPolicyCommand = async (input, contex
656
614
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/updateschedulingpolicy";
657
615
  let body;
658
616
  body = JSON.stringify({
659
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
660
- ...(input.fairsharePolicy !== undefined &&
661
- input.fairsharePolicy !== null && {
617
+ ...(input.arn != null && { arn: input.arn }),
618
+ ...(input.fairsharePolicy != null && {
662
619
  fairsharePolicy: serializeAws_restJson1FairsharePolicy(input.fairsharePolicy, context),
663
620
  }),
664
621
  });
@@ -690,8 +647,7 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
690
647
  body: await parseBody(output.body, context),
691
648
  };
692
649
  let response;
693
- let errorCode = "UnknownError";
694
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
650
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
695
651
  switch (errorCode) {
696
652
  case "ClientException":
697
653
  case "com.amazonaws.batch#ClientException":
@@ -701,10 +657,12 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
701
657
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
702
658
  default:
703
659
  const parsedBody = parsedOutput.body;
660
+ const $metadata = deserializeMetadata(output);
661
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
704
662
  response = new BatchServiceException_1.BatchServiceException({
705
- name: parsedBody.code || parsedBody.Code || errorCode,
663
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
706
664
  $fault: "client",
707
- $metadata: deserializeMetadata(output),
665
+ $metadata,
708
666
  });
709
667
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
710
668
  }
@@ -734,8 +692,7 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (outp
734
692
  body: await parseBody(output.body, context),
735
693
  };
736
694
  let response;
737
- let errorCode = "UnknownError";
738
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
695
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
739
696
  switch (errorCode) {
740
697
  case "ClientException":
741
698
  case "com.amazonaws.batch#ClientException":
@@ -745,10 +702,12 @@ const deserializeAws_restJson1CreateComputeEnvironmentCommandError = async (outp
745
702
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
746
703
  default:
747
704
  const parsedBody = parsedOutput.body;
705
+ const $metadata = deserializeMetadata(output);
706
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
748
707
  response = new BatchServiceException_1.BatchServiceException({
749
- name: parsedBody.code || parsedBody.Code || errorCode,
708
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
750
709
  $fault: "client",
751
- $metadata: deserializeMetadata(output),
710
+ $metadata,
752
711
  });
753
712
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
754
713
  }
@@ -778,8 +737,7 @@ const deserializeAws_restJson1CreateJobQueueCommandError = async (output, contex
778
737
  body: await parseBody(output.body, context),
779
738
  };
780
739
  let response;
781
- let errorCode = "UnknownError";
782
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
740
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
741
  switch (errorCode) {
784
742
  case "ClientException":
785
743
  case "com.amazonaws.batch#ClientException":
@@ -789,10 +747,12 @@ const deserializeAws_restJson1CreateJobQueueCommandError = async (output, contex
789
747
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
790
748
  default:
791
749
  const parsedBody = parsedOutput.body;
750
+ const $metadata = deserializeMetadata(output);
751
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
792
752
  response = new BatchServiceException_1.BatchServiceException({
793
- name: parsedBody.code || parsedBody.Code || errorCode,
753
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
794
754
  $fault: "client",
795
- $metadata: deserializeMetadata(output),
755
+ $metadata,
796
756
  });
797
757
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
798
758
  }
@@ -822,8 +782,7 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output
822
782
  body: await parseBody(output.body, context),
823
783
  };
824
784
  let response;
825
- let errorCode = "UnknownError";
826
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
785
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
827
786
  switch (errorCode) {
828
787
  case "ClientException":
829
788
  case "com.amazonaws.batch#ClientException":
@@ -833,10 +792,12 @@ const deserializeAws_restJson1CreateSchedulingPolicyCommandError = async (output
833
792
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
834
793
  default:
835
794
  const parsedBody = parsedOutput.body;
795
+ const $metadata = deserializeMetadata(output);
796
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
836
797
  response = new BatchServiceException_1.BatchServiceException({
837
- name: parsedBody.code || parsedBody.Code || errorCode,
798
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
838
799
  $fault: "client",
839
- $metadata: deserializeMetadata(output),
800
+ $metadata,
840
801
  });
841
802
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
842
803
  }
@@ -858,8 +819,7 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (outp
858
819
  body: await parseBody(output.body, context),
859
820
  };
860
821
  let response;
861
- let errorCode = "UnknownError";
862
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
822
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
863
823
  switch (errorCode) {
864
824
  case "ClientException":
865
825
  case "com.amazonaws.batch#ClientException":
@@ -869,10 +829,12 @@ const deserializeAws_restJson1DeleteComputeEnvironmentCommandError = async (outp
869
829
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
870
830
  default:
871
831
  const parsedBody = parsedOutput.body;
832
+ const $metadata = deserializeMetadata(output);
833
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
872
834
  response = new BatchServiceException_1.BatchServiceException({
873
- name: parsedBody.code || parsedBody.Code || errorCode,
835
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
874
836
  $fault: "client",
875
- $metadata: deserializeMetadata(output),
837
+ $metadata,
876
838
  });
877
839
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
878
840
  }
@@ -894,8 +856,7 @@ const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, contex
894
856
  body: await parseBody(output.body, context),
895
857
  };
896
858
  let response;
897
- let errorCode = "UnknownError";
898
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
859
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
899
860
  switch (errorCode) {
900
861
  case "ClientException":
901
862
  case "com.amazonaws.batch#ClientException":
@@ -905,10 +866,12 @@ const deserializeAws_restJson1DeleteJobQueueCommandError = async (output, contex
905
866
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
906
867
  default:
907
868
  const parsedBody = parsedOutput.body;
869
+ const $metadata = deserializeMetadata(output);
870
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
908
871
  response = new BatchServiceException_1.BatchServiceException({
909
- name: parsedBody.code || parsedBody.Code || errorCode,
872
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
910
873
  $fault: "client",
911
- $metadata: deserializeMetadata(output),
874
+ $metadata,
912
875
  });
913
876
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
914
877
  }
@@ -930,8 +893,7 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output
930
893
  body: await parseBody(output.body, context),
931
894
  };
932
895
  let response;
933
- let errorCode = "UnknownError";
934
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
896
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
935
897
  switch (errorCode) {
936
898
  case "ClientException":
937
899
  case "com.amazonaws.batch#ClientException":
@@ -941,10 +903,12 @@ const deserializeAws_restJson1DeleteSchedulingPolicyCommandError = async (output
941
903
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
942
904
  default:
943
905
  const parsedBody = parsedOutput.body;
906
+ const $metadata = deserializeMetadata(output);
907
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
944
908
  response = new BatchServiceException_1.BatchServiceException({
945
- name: parsedBody.code || parsedBody.Code || errorCode,
909
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
946
910
  $fault: "client",
947
- $metadata: deserializeMetadata(output),
911
+ $metadata,
948
912
  });
949
913
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
950
914
  }
@@ -966,8 +930,7 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (outpu
966
930
  body: await parseBody(output.body, context),
967
931
  };
968
932
  let response;
969
- let errorCode = "UnknownError";
970
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
933
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
971
934
  switch (errorCode) {
972
935
  case "ClientException":
973
936
  case "com.amazonaws.batch#ClientException":
@@ -977,10 +940,12 @@ const deserializeAws_restJson1DeregisterJobDefinitionCommandError = async (outpu
977
940
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
978
941
  default:
979
942
  const parsedBody = parsedOutput.body;
943
+ const $metadata = deserializeMetadata(output);
944
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
980
945
  response = new BatchServiceException_1.BatchServiceException({
981
- name: parsedBody.code || parsedBody.Code || errorCode,
946
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
982
947
  $fault: "client",
983
- $metadata: deserializeMetadata(output),
948
+ $metadata,
984
949
  });
985
950
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
986
951
  }
@@ -1010,8 +975,7 @@ const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (o
1010
975
  body: await parseBody(output.body, context),
1011
976
  };
1012
977
  let response;
1013
- let errorCode = "UnknownError";
1014
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
978
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
979
  switch (errorCode) {
1016
980
  case "ClientException":
1017
981
  case "com.amazonaws.batch#ClientException":
@@ -1021,10 +985,12 @@ const deserializeAws_restJson1DescribeComputeEnvironmentsCommandError = async (o
1021
985
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1022
986
  default:
1023
987
  const parsedBody = parsedOutput.body;
988
+ const $metadata = deserializeMetadata(output);
989
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1024
990
  response = new BatchServiceException_1.BatchServiceException({
1025
- name: parsedBody.code || parsedBody.Code || errorCode,
991
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1026
992
  $fault: "client",
1027
- $metadata: deserializeMetadata(output),
993
+ $metadata,
1028
994
  });
1029
995
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1030
996
  }
@@ -1054,8 +1020,7 @@ const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output
1054
1020
  body: await parseBody(output.body, context),
1055
1021
  };
1056
1022
  let response;
1057
- let errorCode = "UnknownError";
1058
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1023
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1059
1024
  switch (errorCode) {
1060
1025
  case "ClientException":
1061
1026
  case "com.amazonaws.batch#ClientException":
@@ -1065,10 +1030,12 @@ const deserializeAws_restJson1DescribeJobDefinitionsCommandError = async (output
1065
1030
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1066
1031
  default:
1067
1032
  const parsedBody = parsedOutput.body;
1033
+ const $metadata = deserializeMetadata(output);
1034
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1068
1035
  response = new BatchServiceException_1.BatchServiceException({
1069
- name: parsedBody.code || parsedBody.Code || errorCode,
1036
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1070
1037
  $fault: "client",
1071
- $metadata: deserializeMetadata(output),
1038
+ $metadata,
1072
1039
  });
1073
1040
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1074
1041
  }
@@ -1098,8 +1065,7 @@ const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, con
1098
1065
  body: await parseBody(output.body, context),
1099
1066
  };
1100
1067
  let response;
1101
- let errorCode = "UnknownError";
1102
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1068
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1103
1069
  switch (errorCode) {
1104
1070
  case "ClientException":
1105
1071
  case "com.amazonaws.batch#ClientException":
@@ -1109,10 +1075,12 @@ const deserializeAws_restJson1DescribeJobQueuesCommandError = async (output, con
1109
1075
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1110
1076
  default:
1111
1077
  const parsedBody = parsedOutput.body;
1078
+ const $metadata = deserializeMetadata(output);
1079
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1112
1080
  response = new BatchServiceException_1.BatchServiceException({
1113
- name: parsedBody.code || parsedBody.Code || errorCode,
1081
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1114
1082
  $fault: "client",
1115
- $metadata: deserializeMetadata(output),
1083
+ $metadata,
1116
1084
  });
1117
1085
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1118
1086
  }
@@ -1138,8 +1106,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
1138
1106
  body: await parseBody(output.body, context),
1139
1107
  };
1140
1108
  let response;
1141
- let errorCode = "UnknownError";
1142
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1109
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1143
1110
  switch (errorCode) {
1144
1111
  case "ClientException":
1145
1112
  case "com.amazonaws.batch#ClientException":
@@ -1149,10 +1116,12 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
1149
1116
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1150
1117
  default:
1151
1118
  const parsedBody = parsedOutput.body;
1119
+ const $metadata = deserializeMetadata(output);
1120
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1152
1121
  response = new BatchServiceException_1.BatchServiceException({
1153
- name: parsedBody.code || parsedBody.Code || errorCode,
1122
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1154
1123
  $fault: "client",
1155
- $metadata: deserializeMetadata(output),
1124
+ $metadata,
1156
1125
  });
1157
1126
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1158
1127
  }
@@ -1178,8 +1147,7 @@ const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (ou
1178
1147
  body: await parseBody(output.body, context),
1179
1148
  };
1180
1149
  let response;
1181
- let errorCode = "UnknownError";
1182
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
1151
  switch (errorCode) {
1184
1152
  case "ClientException":
1185
1153
  case "com.amazonaws.batch#ClientException":
@@ -1189,10 +1157,12 @@ const deserializeAws_restJson1DescribeSchedulingPoliciesCommandError = async (ou
1189
1157
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1190
1158
  default:
1191
1159
  const parsedBody = parsedOutput.body;
1160
+ const $metadata = deserializeMetadata(output);
1161
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1192
1162
  response = new BatchServiceException_1.BatchServiceException({
1193
- name: parsedBody.code || parsedBody.Code || errorCode,
1163
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1194
1164
  $fault: "client",
1195
- $metadata: deserializeMetadata(output),
1165
+ $metadata,
1196
1166
  });
1197
1167
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1198
1168
  }
@@ -1222,8 +1192,7 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
1222
1192
  body: await parseBody(output.body, context),
1223
1193
  };
1224
1194
  let response;
1225
- let errorCode = "UnknownError";
1226
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1227
1196
  switch (errorCode) {
1228
1197
  case "ClientException":
1229
1198
  case "com.amazonaws.batch#ClientException":
@@ -1233,10 +1202,12 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
1233
1202
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1234
1203
  default:
1235
1204
  const parsedBody = parsedOutput.body;
1205
+ const $metadata = deserializeMetadata(output);
1206
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1236
1207
  response = new BatchServiceException_1.BatchServiceException({
1237
- name: parsedBody.code || parsedBody.Code || errorCode,
1208
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1238
1209
  $fault: "client",
1239
- $metadata: deserializeMetadata(output),
1210
+ $metadata,
1240
1211
  });
1241
1212
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1242
1213
  }
@@ -1266,8 +1237,7 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output
1266
1237
  body: await parseBody(output.body, context),
1267
1238
  };
1268
1239
  let response;
1269
- let errorCode = "UnknownError";
1270
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1240
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1271
1241
  switch (errorCode) {
1272
1242
  case "ClientException":
1273
1243
  case "com.amazonaws.batch#ClientException":
@@ -1277,10 +1247,12 @@ const deserializeAws_restJson1ListSchedulingPoliciesCommandError = async (output
1277
1247
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1278
1248
  default:
1279
1249
  const parsedBody = parsedOutput.body;
1250
+ const $metadata = deserializeMetadata(output);
1251
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1280
1252
  response = new BatchServiceException_1.BatchServiceException({
1281
- name: parsedBody.code || parsedBody.Code || errorCode,
1253
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1282
1254
  $fault: "client",
1283
- $metadata: deserializeMetadata(output),
1255
+ $metadata,
1284
1256
  });
1285
1257
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1286
1258
  }
@@ -1306,8 +1278,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1306
1278
  body: await parseBody(output.body, context),
1307
1279
  };
1308
1280
  let response;
1309
- let errorCode = "UnknownError";
1310
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1311
1282
  switch (errorCode) {
1312
1283
  case "ClientException":
1313
1284
  case "com.amazonaws.batch#ClientException":
@@ -1317,10 +1288,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1317
1288
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1318
1289
  default:
1319
1290
  const parsedBody = parsedOutput.body;
1291
+ const $metadata = deserializeMetadata(output);
1292
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1320
1293
  response = new BatchServiceException_1.BatchServiceException({
1321
- name: parsedBody.code || parsedBody.Code || errorCode,
1294
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1322
1295
  $fault: "client",
1323
- $metadata: deserializeMetadata(output),
1296
+ $metadata,
1324
1297
  });
1325
1298
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1326
1299
  }
@@ -1354,8 +1327,7 @@ const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output,
1354
1327
  body: await parseBody(output.body, context),
1355
1328
  };
1356
1329
  let response;
1357
- let errorCode = "UnknownError";
1358
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1330
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1359
1331
  switch (errorCode) {
1360
1332
  case "ClientException":
1361
1333
  case "com.amazonaws.batch#ClientException":
@@ -1365,10 +1337,12 @@ const deserializeAws_restJson1RegisterJobDefinitionCommandError = async (output,
1365
1337
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1366
1338
  default:
1367
1339
  const parsedBody = parsedOutput.body;
1340
+ const $metadata = deserializeMetadata(output);
1341
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1368
1342
  response = new BatchServiceException_1.BatchServiceException({
1369
- name: parsedBody.code || parsedBody.Code || errorCode,
1343
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1370
1344
  $fault: "client",
1371
- $metadata: deserializeMetadata(output),
1345
+ $metadata,
1372
1346
  });
1373
1347
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1374
1348
  }
@@ -1402,8 +1376,7 @@ const deserializeAws_restJson1SubmitJobCommandError = async (output, context) =>
1402
1376
  body: await parseBody(output.body, context),
1403
1377
  };
1404
1378
  let response;
1405
- let errorCode = "UnknownError";
1406
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1379
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1407
1380
  switch (errorCode) {
1408
1381
  case "ClientException":
1409
1382
  case "com.amazonaws.batch#ClientException":
@@ -1413,10 +1386,12 @@ const deserializeAws_restJson1SubmitJobCommandError = async (output, context) =>
1413
1386
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1414
1387
  default:
1415
1388
  const parsedBody = parsedOutput.body;
1389
+ const $metadata = deserializeMetadata(output);
1390
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1416
1391
  response = new BatchServiceException_1.BatchServiceException({
1417
- name: parsedBody.code || parsedBody.Code || errorCode,
1392
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1418
1393
  $fault: "client",
1419
- $metadata: deserializeMetadata(output),
1394
+ $metadata,
1420
1395
  });
1421
1396
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1422
1397
  }
@@ -1438,8 +1413,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1438
1413
  body: await parseBody(output.body, context),
1439
1414
  };
1440
1415
  let response;
1441
- let errorCode = "UnknownError";
1442
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1416
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1443
1417
  switch (errorCode) {
1444
1418
  case "ClientException":
1445
1419
  case "com.amazonaws.batch#ClientException":
@@ -1449,10 +1423,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1449
1423
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1450
1424
  default:
1451
1425
  const parsedBody = parsedOutput.body;
1426
+ const $metadata = deserializeMetadata(output);
1427
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1452
1428
  response = new BatchServiceException_1.BatchServiceException({
1453
- name: parsedBody.code || parsedBody.Code || errorCode,
1429
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1454
1430
  $fault: "client",
1455
- $metadata: deserializeMetadata(output),
1431
+ $metadata,
1456
1432
  });
1457
1433
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1458
1434
  }
@@ -1474,8 +1450,7 @@ const deserializeAws_restJson1TerminateJobCommandError = async (output, context)
1474
1450
  body: await parseBody(output.body, context),
1475
1451
  };
1476
1452
  let response;
1477
- let errorCode = "UnknownError";
1478
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1453
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1479
1454
  switch (errorCode) {
1480
1455
  case "ClientException":
1481
1456
  case "com.amazonaws.batch#ClientException":
@@ -1485,10 +1460,12 @@ const deserializeAws_restJson1TerminateJobCommandError = async (output, context)
1485
1460
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1486
1461
  default:
1487
1462
  const parsedBody = parsedOutput.body;
1463
+ const $metadata = deserializeMetadata(output);
1464
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1488
1465
  response = new BatchServiceException_1.BatchServiceException({
1489
- name: parsedBody.code || parsedBody.Code || errorCode,
1466
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1490
1467
  $fault: "client",
1491
- $metadata: deserializeMetadata(output),
1468
+ $metadata,
1492
1469
  });
1493
1470
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1494
1471
  }
@@ -1510,8 +1487,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1510
1487
  body: await parseBody(output.body, context),
1511
1488
  };
1512
1489
  let response;
1513
- let errorCode = "UnknownError";
1514
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1490
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1515
1491
  switch (errorCode) {
1516
1492
  case "ClientException":
1517
1493
  case "com.amazonaws.batch#ClientException":
@@ -1521,10 +1497,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1521
1497
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1522
1498
  default:
1523
1499
  const parsedBody = parsedOutput.body;
1500
+ const $metadata = deserializeMetadata(output);
1501
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1524
1502
  response = new BatchServiceException_1.BatchServiceException({
1525
- name: parsedBody.code || parsedBody.Code || errorCode,
1503
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1526
1504
  $fault: "client",
1527
- $metadata: deserializeMetadata(output),
1505
+ $metadata,
1528
1506
  });
1529
1507
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1530
1508
  }
@@ -1554,8 +1532,7 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (outp
1554
1532
  body: await parseBody(output.body, context),
1555
1533
  };
1556
1534
  let response;
1557
- let errorCode = "UnknownError";
1558
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1559
1536
  switch (errorCode) {
1560
1537
  case "ClientException":
1561
1538
  case "com.amazonaws.batch#ClientException":
@@ -1565,10 +1542,12 @@ const deserializeAws_restJson1UpdateComputeEnvironmentCommandError = async (outp
1565
1542
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1566
1543
  default:
1567
1544
  const parsedBody = parsedOutput.body;
1545
+ const $metadata = deserializeMetadata(output);
1546
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1568
1547
  response = new BatchServiceException_1.BatchServiceException({
1569
- name: parsedBody.code || parsedBody.Code || errorCode,
1548
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1570
1549
  $fault: "client",
1571
- $metadata: deserializeMetadata(output),
1550
+ $metadata,
1572
1551
  });
1573
1552
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1574
1553
  }
@@ -1598,8 +1577,7 @@ const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, contex
1598
1577
  body: await parseBody(output.body, context),
1599
1578
  };
1600
1579
  let response;
1601
- let errorCode = "UnknownError";
1602
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1603
1581
  switch (errorCode) {
1604
1582
  case "ClientException":
1605
1583
  case "com.amazonaws.batch#ClientException":
@@ -1609,10 +1587,12 @@ const deserializeAws_restJson1UpdateJobQueueCommandError = async (output, contex
1609
1587
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1610
1588
  default:
1611
1589
  const parsedBody = parsedOutput.body;
1590
+ const $metadata = deserializeMetadata(output);
1591
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1612
1592
  response = new BatchServiceException_1.BatchServiceException({
1613
- name: parsedBody.code || parsedBody.Code || errorCode,
1593
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1614
1594
  $fault: "client",
1615
- $metadata: deserializeMetadata(output),
1595
+ $metadata,
1616
1596
  });
1617
1597
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1618
1598
  }
@@ -1634,8 +1614,7 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output
1634
1614
  body: await parseBody(output.body, context),
1635
1615
  };
1636
1616
  let response;
1637
- let errorCode = "UnknownError";
1638
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1617
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1639
1618
  switch (errorCode) {
1640
1619
  case "ClientException":
1641
1620
  case "com.amazonaws.batch#ClientException":
@@ -1645,10 +1624,12 @@ const deserializeAws_restJson1UpdateSchedulingPolicyCommandError = async (output
1645
1624
  throw await deserializeAws_restJson1ServerExceptionResponse(parsedOutput, context);
1646
1625
  default:
1647
1626
  const parsedBody = parsedOutput.body;
1627
+ const $metadata = deserializeMetadata(output);
1628
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1648
1629
  response = new BatchServiceException_1.BatchServiceException({
1649
- name: parsedBody.code || parsedBody.Code || errorCode,
1630
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1650
1631
  $fault: "client",
1651
- $metadata: deserializeMetadata(output),
1632
+ $metadata,
1652
1633
  });
1653
1634
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1654
1635
  }
@@ -1679,14 +1660,13 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
1679
1660
  };
1680
1661
  const serializeAws_restJson1ArrayProperties = (input, context) => {
1681
1662
  return {
1682
- ...(input.size !== undefined && input.size !== null && { size: input.size }),
1663
+ ...(input.size != null && { size: input.size }),
1683
1664
  };
1684
1665
  };
1685
1666
  const serializeAws_restJson1ComputeEnvironmentOrder = (input, context) => {
1686
1667
  return {
1687
- ...(input.computeEnvironment !== undefined &&
1688
- input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment }),
1689
- ...(input.order !== undefined && input.order !== null && { order: input.order }),
1668
+ ...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
1669
+ ...(input.order != null && { order: input.order }),
1690
1670
  };
1691
1671
  };
1692
1672
  const serializeAws_restJson1ComputeEnvironmentOrders = (input, context) => {
@@ -1701,152 +1681,117 @@ const serializeAws_restJson1ComputeEnvironmentOrders = (input, context) => {
1701
1681
  };
1702
1682
  const serializeAws_restJson1ComputeResource = (input, context) => {
1703
1683
  return {
1704
- ...(input.allocationStrategy !== undefined &&
1705
- input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy }),
1706
- ...(input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage }),
1707
- ...(input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus }),
1708
- ...(input.ec2Configuration !== undefined &&
1709
- input.ec2Configuration !== null && {
1684
+ ...(input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy }),
1685
+ ...(input.bidPercentage != null && { bidPercentage: input.bidPercentage }),
1686
+ ...(input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus }),
1687
+ ...(input.ec2Configuration != null && {
1710
1688
  ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
1711
1689
  }),
1712
- ...(input.ec2KeyPair !== undefined && input.ec2KeyPair !== null && { ec2KeyPair: input.ec2KeyPair }),
1713
- ...(input.imageId !== undefined && input.imageId !== null && { imageId: input.imageId }),
1714
- ...(input.instanceRole !== undefined && input.instanceRole !== null && { instanceRole: input.instanceRole }),
1715
- ...(input.instanceTypes !== undefined &&
1716
- input.instanceTypes !== null && {
1690
+ ...(input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair }),
1691
+ ...(input.imageId != null && { imageId: input.imageId }),
1692
+ ...(input.instanceRole != null && { instanceRole: input.instanceRole }),
1693
+ ...(input.instanceTypes != null && {
1717
1694
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
1718
1695
  }),
1719
- ...(input.launchTemplate !== undefined &&
1720
- input.launchTemplate !== null && {
1696
+ ...(input.launchTemplate != null && {
1721
1697
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1722
1698
  }),
1723
- ...(input.maxvCpus !== undefined && input.maxvCpus !== null && { maxvCpus: input.maxvCpus }),
1724
- ...(input.minvCpus !== undefined && input.minvCpus !== null && { minvCpus: input.minvCpus }),
1725
- ...(input.placementGroup !== undefined &&
1726
- input.placementGroup !== null && { placementGroup: input.placementGroup }),
1727
- ...(input.securityGroupIds !== undefined &&
1728
- input.securityGroupIds !== null && {
1699
+ ...(input.maxvCpus != null && { maxvCpus: input.maxvCpus }),
1700
+ ...(input.minvCpus != null && { minvCpus: input.minvCpus }),
1701
+ ...(input.placementGroup != null && { placementGroup: input.placementGroup }),
1702
+ ...(input.securityGroupIds != null && {
1729
1703
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
1730
1704
  }),
1731
- ...(input.spotIamFleetRole !== undefined &&
1732
- input.spotIamFleetRole !== null && { spotIamFleetRole: input.spotIamFleetRole }),
1733
- ...(input.subnets !== undefined &&
1734
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1735
- ...(input.tags !== undefined &&
1736
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1737
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1705
+ ...(input.spotIamFleetRole != null && { spotIamFleetRole: input.spotIamFleetRole }),
1706
+ ...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1707
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1708
+ ...(input.type != null && { type: input.type }),
1738
1709
  };
1739
1710
  };
1740
1711
  const serializeAws_restJson1ComputeResourceUpdate = (input, context) => {
1741
1712
  return {
1742
- ...(input.allocationStrategy !== undefined &&
1743
- input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy }),
1744
- ...(input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage }),
1745
- ...(input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus }),
1746
- ...(input.ec2Configuration !== undefined &&
1747
- input.ec2Configuration !== null && {
1713
+ ...(input.allocationStrategy != null && { allocationStrategy: input.allocationStrategy }),
1714
+ ...(input.bidPercentage != null && { bidPercentage: input.bidPercentage }),
1715
+ ...(input.desiredvCpus != null && { desiredvCpus: input.desiredvCpus }),
1716
+ ...(input.ec2Configuration != null && {
1748
1717
  ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
1749
1718
  }),
1750
- ...(input.ec2KeyPair !== undefined && input.ec2KeyPair !== null && { ec2KeyPair: input.ec2KeyPair }),
1751
- ...(input.imageId !== undefined && input.imageId !== null && { imageId: input.imageId }),
1752
- ...(input.instanceRole !== undefined && input.instanceRole !== null && { instanceRole: input.instanceRole }),
1753
- ...(input.instanceTypes !== undefined &&
1754
- input.instanceTypes !== null && {
1719
+ ...(input.ec2KeyPair != null && { ec2KeyPair: input.ec2KeyPair }),
1720
+ ...(input.imageId != null && { imageId: input.imageId }),
1721
+ ...(input.instanceRole != null && { instanceRole: input.instanceRole }),
1722
+ ...(input.instanceTypes != null && {
1755
1723
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
1756
1724
  }),
1757
- ...(input.launchTemplate !== undefined &&
1758
- input.launchTemplate !== null && {
1725
+ ...(input.launchTemplate != null && {
1759
1726
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1760
1727
  }),
1761
- ...(input.maxvCpus !== undefined && input.maxvCpus !== null && { maxvCpus: input.maxvCpus }),
1762
- ...(input.minvCpus !== undefined && input.minvCpus !== null && { minvCpus: input.minvCpus }),
1763
- ...(input.placementGroup !== undefined &&
1764
- input.placementGroup !== null && { placementGroup: input.placementGroup }),
1765
- ...(input.securityGroupIds !== undefined &&
1766
- input.securityGroupIds !== null && {
1728
+ ...(input.maxvCpus != null && { maxvCpus: input.maxvCpus }),
1729
+ ...(input.minvCpus != null && { minvCpus: input.minvCpus }),
1730
+ ...(input.placementGroup != null && { placementGroup: input.placementGroup }),
1731
+ ...(input.securityGroupIds != null && {
1767
1732
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
1768
1733
  }),
1769
- ...(input.subnets !== undefined &&
1770
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1771
- ...(input.tags !== undefined &&
1772
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1773
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1774
- ...(input.updateToLatestImageVersion !== undefined &&
1775
- input.updateToLatestImageVersion !== null && { updateToLatestImageVersion: input.updateToLatestImageVersion }),
1734
+ ...(input.subnets != null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1735
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1736
+ ...(input.type != null && { type: input.type }),
1737
+ ...(input.updateToLatestImageVersion != null && { updateToLatestImageVersion: input.updateToLatestImageVersion }),
1776
1738
  };
1777
1739
  };
1778
1740
  const serializeAws_restJson1ContainerOverrides = (input, context) => {
1779
1741
  return {
1780
- ...(input.command !== undefined &&
1781
- input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) }),
1782
- ...(input.environment !== undefined &&
1783
- input.environment !== null && {
1742
+ ...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
1743
+ ...(input.environment != null && {
1784
1744
  environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
1785
1745
  }),
1786
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1787
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1788
- ...(input.resourceRequirements !== undefined &&
1789
- input.resourceRequirements !== null && {
1746
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
1747
+ ...(input.memory != null && { memory: input.memory }),
1748
+ ...(input.resourceRequirements != null && {
1790
1749
  resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
1791
1750
  }),
1792
- ...(input.vcpus !== undefined && input.vcpus !== null && { vcpus: input.vcpus }),
1751
+ ...(input.vcpus != null && { vcpus: input.vcpus }),
1793
1752
  };
1794
1753
  };
1795
1754
  const serializeAws_restJson1ContainerProperties = (input, context) => {
1796
1755
  return {
1797
- ...(input.command !== undefined &&
1798
- input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) }),
1799
- ...(input.environment !== undefined &&
1800
- input.environment !== null && {
1756
+ ...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
1757
+ ...(input.environment != null && {
1801
1758
  environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
1802
1759
  }),
1803
- ...(input.executionRoleArn !== undefined &&
1804
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn }),
1805
- ...(input.fargatePlatformConfiguration !== undefined &&
1806
- input.fargatePlatformConfiguration !== null && {
1760
+ ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
1761
+ ...(input.fargatePlatformConfiguration != null && {
1807
1762
  fargatePlatformConfiguration: serializeAws_restJson1FargatePlatformConfiguration(input.fargatePlatformConfiguration, context),
1808
1763
  }),
1809
- ...(input.image !== undefined && input.image !== null && { image: input.image }),
1810
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1811
- ...(input.jobRoleArn !== undefined && input.jobRoleArn !== null && { jobRoleArn: input.jobRoleArn }),
1812
- ...(input.linuxParameters !== undefined &&
1813
- input.linuxParameters !== null && {
1764
+ ...(input.image != null && { image: input.image }),
1765
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
1766
+ ...(input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn }),
1767
+ ...(input.linuxParameters != null && {
1814
1768
  linuxParameters: serializeAws_restJson1LinuxParameters(input.linuxParameters, context),
1815
1769
  }),
1816
- ...(input.logConfiguration !== undefined &&
1817
- input.logConfiguration !== null && {
1770
+ ...(input.logConfiguration != null && {
1818
1771
  logConfiguration: serializeAws_restJson1LogConfiguration(input.logConfiguration, context),
1819
1772
  }),
1820
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1821
- ...(input.mountPoints !== undefined &&
1822
- input.mountPoints !== null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) }),
1823
- ...(input.networkConfiguration !== undefined &&
1824
- input.networkConfiguration !== null && {
1773
+ ...(input.memory != null && { memory: input.memory }),
1774
+ ...(input.mountPoints != null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) }),
1775
+ ...(input.networkConfiguration != null && {
1825
1776
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
1826
1777
  }),
1827
- ...(input.privileged !== undefined && input.privileged !== null && { privileged: input.privileged }),
1828
- ...(input.readonlyRootFilesystem !== undefined &&
1829
- input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
1830
- ...(input.resourceRequirements !== undefined &&
1831
- input.resourceRequirements !== null && {
1778
+ ...(input.privileged != null && { privileged: input.privileged }),
1779
+ ...(input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
1780
+ ...(input.resourceRequirements != null && {
1832
1781
  resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
1833
1782
  }),
1834
- ...(input.secrets !== undefined &&
1835
- input.secrets !== null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) }),
1836
- ...(input.ulimits !== undefined &&
1837
- input.ulimits !== null && { ulimits: serializeAws_restJson1Ulimits(input.ulimits, context) }),
1838
- ...(input.user !== undefined && input.user !== null && { user: input.user }),
1839
- ...(input.vcpus !== undefined && input.vcpus !== null && { vcpus: input.vcpus }),
1840
- ...(input.volumes !== undefined &&
1841
- input.volumes !== null && { volumes: serializeAws_restJson1Volumes(input.volumes, context) }),
1783
+ ...(input.secrets != null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) }),
1784
+ ...(input.ulimits != null && { ulimits: serializeAws_restJson1Ulimits(input.ulimits, context) }),
1785
+ ...(input.user != null && { user: input.user }),
1786
+ ...(input.vcpus != null && { vcpus: input.vcpus }),
1787
+ ...(input.volumes != null && { volumes: serializeAws_restJson1Volumes(input.volumes, context) }),
1842
1788
  };
1843
1789
  };
1844
1790
  const serializeAws_restJson1Device = (input, context) => {
1845
1791
  return {
1846
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
1847
- ...(input.hostPath !== undefined && input.hostPath !== null && { hostPath: input.hostPath }),
1848
- ...(input.permissions !== undefined &&
1849
- input.permissions !== null && {
1792
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
1793
+ ...(input.hostPath != null && { hostPath: input.hostPath }),
1794
+ ...(input.permissions != null && {
1850
1795
  permissions: serializeAws_restJson1DeviceCgroupPermissions(input.permissions, context),
1851
1796
  }),
1852
1797
  };
@@ -1873,9 +1818,8 @@ const serializeAws_restJson1DevicesList = (input, context) => {
1873
1818
  };
1874
1819
  const serializeAws_restJson1Ec2Configuration = (input, context) => {
1875
1820
  return {
1876
- ...(input.imageIdOverride !== undefined &&
1877
- input.imageIdOverride !== null && { imageIdOverride: input.imageIdOverride }),
1878
- ...(input.imageType !== undefined && input.imageType !== null && { imageType: input.imageType }),
1821
+ ...(input.imageIdOverride != null && { imageIdOverride: input.imageIdOverride }),
1822
+ ...(input.imageType != null && { imageType: input.imageType }),
1879
1823
  };
1880
1824
  };
1881
1825
  const serializeAws_restJson1Ec2ConfigurationList = (input, context) => {
@@ -1890,22 +1834,19 @@ const serializeAws_restJson1Ec2ConfigurationList = (input, context) => {
1890
1834
  };
1891
1835
  const serializeAws_restJson1EFSAuthorizationConfig = (input, context) => {
1892
1836
  return {
1893
- ...(input.accessPointId !== undefined && input.accessPointId !== null && { accessPointId: input.accessPointId }),
1894
- ...(input.iam !== undefined && input.iam !== null && { iam: input.iam }),
1837
+ ...(input.accessPointId != null && { accessPointId: input.accessPointId }),
1838
+ ...(input.iam != null && { iam: input.iam }),
1895
1839
  };
1896
1840
  };
1897
1841
  const serializeAws_restJson1EFSVolumeConfiguration = (input, context) => {
1898
1842
  return {
1899
- ...(input.authorizationConfig !== undefined &&
1900
- input.authorizationConfig !== null && {
1843
+ ...(input.authorizationConfig != null && {
1901
1844
  authorizationConfig: serializeAws_restJson1EFSAuthorizationConfig(input.authorizationConfig, context),
1902
1845
  }),
1903
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId }),
1904
- ...(input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory }),
1905
- ...(input.transitEncryption !== undefined &&
1906
- input.transitEncryption !== null && { transitEncryption: input.transitEncryption }),
1907
- ...(input.transitEncryptionPort !== undefined &&
1908
- input.transitEncryptionPort !== null && { transitEncryptionPort: input.transitEncryptionPort }),
1846
+ ...(input.fileSystemId != null && { fileSystemId: input.fileSystemId }),
1847
+ ...(input.rootDirectory != null && { rootDirectory: input.rootDirectory }),
1848
+ ...(input.transitEncryption != null && { transitEncryption: input.transitEncryption }),
1849
+ ...(input.transitEncryptionPort != null && { transitEncryptionPort: input.transitEncryptionPort }),
1909
1850
  };
1910
1851
  };
1911
1852
  const serializeAws_restJson1EnvironmentVariables = (input, context) => {
@@ -1920,11 +1861,10 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
1920
1861
  };
1921
1862
  const serializeAws_restJson1EvaluateOnExit = (input, context) => {
1922
1863
  return {
1923
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
1924
- ...(input.onExitCode !== undefined && input.onExitCode !== null && { onExitCode: input.onExitCode }),
1925
- ...(input.onReason !== undefined && input.onReason !== null && { onReason: input.onReason }),
1926
- ...(input.onStatusReason !== undefined &&
1927
- input.onStatusReason !== null && { onStatusReason: input.onStatusReason }),
1864
+ ...(input.action != null && { action: input.action }),
1865
+ ...(input.onExitCode != null && { onExitCode: input.onExitCode }),
1866
+ ...(input.onReason != null && { onReason: input.onReason }),
1867
+ ...(input.onStatusReason != null && { onStatusReason: input.onStatusReason }),
1928
1868
  };
1929
1869
  };
1930
1870
  const serializeAws_restJson1EvaluateOnExitList = (input, context) => {
@@ -1939,31 +1879,27 @@ const serializeAws_restJson1EvaluateOnExitList = (input, context) => {
1939
1879
  };
1940
1880
  const serializeAws_restJson1FairsharePolicy = (input, context) => {
1941
1881
  return {
1942
- ...(input.computeReservation !== undefined &&
1943
- input.computeReservation !== null && { computeReservation: input.computeReservation }),
1944
- ...(input.shareDecaySeconds !== undefined &&
1945
- input.shareDecaySeconds !== null && { shareDecaySeconds: input.shareDecaySeconds }),
1946
- ...(input.shareDistribution !== undefined &&
1947
- input.shareDistribution !== null && {
1882
+ ...(input.computeReservation != null && { computeReservation: input.computeReservation }),
1883
+ ...(input.shareDecaySeconds != null && { shareDecaySeconds: input.shareDecaySeconds }),
1884
+ ...(input.shareDistribution != null && {
1948
1885
  shareDistribution: serializeAws_restJson1ShareAttributesList(input.shareDistribution, context),
1949
1886
  }),
1950
1887
  };
1951
1888
  };
1952
1889
  const serializeAws_restJson1FargatePlatformConfiguration = (input, context) => {
1953
1890
  return {
1954
- ...(input.platformVersion !== undefined &&
1955
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
1891
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
1956
1892
  };
1957
1893
  };
1958
1894
  const serializeAws_restJson1Host = (input, context) => {
1959
1895
  return {
1960
- ...(input.sourcePath !== undefined && input.sourcePath !== null && { sourcePath: input.sourcePath }),
1896
+ ...(input.sourcePath != null && { sourcePath: input.sourcePath }),
1961
1897
  };
1962
1898
  };
1963
1899
  const serializeAws_restJson1JobDependency = (input, context) => {
1964
1900
  return {
1965
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
1966
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1901
+ ...(input.jobId != null && { jobId: input.jobId }),
1902
+ ...(input.type != null && { type: input.type }),
1967
1903
  };
1968
1904
  };
1969
1905
  const serializeAws_restJson1JobDependencyList = (input, context) => {
@@ -1978,44 +1914,36 @@ const serializeAws_restJson1JobDependencyList = (input, context) => {
1978
1914
  };
1979
1915
  const serializeAws_restJson1JobTimeout = (input, context) => {
1980
1916
  return {
1981
- ...(input.attemptDurationSeconds !== undefined &&
1982
- input.attemptDurationSeconds !== null && { attemptDurationSeconds: input.attemptDurationSeconds }),
1917
+ ...(input.attemptDurationSeconds != null && { attemptDurationSeconds: input.attemptDurationSeconds }),
1983
1918
  };
1984
1919
  };
1985
1920
  const serializeAws_restJson1KeyValuePair = (input, context) => {
1986
1921
  return {
1987
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1988
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1922
+ ...(input.name != null && { name: input.name }),
1923
+ ...(input.value != null && { value: input.value }),
1989
1924
  };
1990
1925
  };
1991
1926
  const serializeAws_restJson1KeyValuesPair = (input, context) => {
1992
1927
  return {
1993
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1994
- ...(input.values !== undefined &&
1995
- input.values !== null && { values: serializeAws_restJson1StringList(input.values, context) }),
1928
+ ...(input.name != null && { name: input.name }),
1929
+ ...(input.values != null && { values: serializeAws_restJson1StringList(input.values, context) }),
1996
1930
  };
1997
1931
  };
1998
1932
  const serializeAws_restJson1LaunchTemplateSpecification = (input, context) => {
1999
1933
  return {
2000
- ...(input.launchTemplateId !== undefined &&
2001
- input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId }),
2002
- ...(input.launchTemplateName !== undefined &&
2003
- input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName }),
2004
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
1934
+ ...(input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId }),
1935
+ ...(input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName }),
1936
+ ...(input.version != null && { version: input.version }),
2005
1937
  };
2006
1938
  };
2007
1939
  const serializeAws_restJson1LinuxParameters = (input, context) => {
2008
1940
  return {
2009
- ...(input.devices !== undefined &&
2010
- input.devices !== null && { devices: serializeAws_restJson1DevicesList(input.devices, context) }),
2011
- ...(input.initProcessEnabled !== undefined &&
2012
- input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled }),
2013
- ...(input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap }),
2014
- ...(input.sharedMemorySize !== undefined &&
2015
- input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize }),
2016
- ...(input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness }),
2017
- ...(input.tmpfs !== undefined &&
2018
- input.tmpfs !== null && { tmpfs: serializeAws_restJson1TmpfsList(input.tmpfs, context) }),
1941
+ ...(input.devices != null && { devices: serializeAws_restJson1DevicesList(input.devices, context) }),
1942
+ ...(input.initProcessEnabled != null && { initProcessEnabled: input.initProcessEnabled }),
1943
+ ...(input.maxSwap != null && { maxSwap: input.maxSwap }),
1944
+ ...(input.sharedMemorySize != null && { sharedMemorySize: input.sharedMemorySize }),
1945
+ ...(input.swappiness != null && { swappiness: input.swappiness }),
1946
+ ...(input.tmpfs != null && { tmpfs: serializeAws_restJson1TmpfsList(input.tmpfs, context) }),
2019
1947
  };
2020
1948
  };
2021
1949
  const serializeAws_restJson1ListJobsFilterList = (input, context) => {
@@ -2030,11 +1958,9 @@ const serializeAws_restJson1ListJobsFilterList = (input, context) => {
2030
1958
  };
2031
1959
  const serializeAws_restJson1LogConfiguration = (input, context) => {
2032
1960
  return {
2033
- ...(input.logDriver !== undefined && input.logDriver !== null && { logDriver: input.logDriver }),
2034
- ...(input.options !== undefined &&
2035
- input.options !== null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) }),
2036
- ...(input.secretOptions !== undefined &&
2037
- input.secretOptions !== null && {
1961
+ ...(input.logDriver != null && { logDriver: input.logDriver }),
1962
+ ...(input.options != null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) }),
1963
+ ...(input.secretOptions != null && {
2038
1964
  secretOptions: serializeAws_restJson1SecretList(input.secretOptions, context),
2039
1965
  }),
2040
1966
  };
@@ -2052,9 +1978,9 @@ const serializeAws_restJson1LogConfigurationOptionsMap = (input, context) => {
2052
1978
  };
2053
1979
  const serializeAws_restJson1MountPoint = (input, context) => {
2054
1980
  return {
2055
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
2056
- ...(input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly }),
2057
- ...(input.sourceVolume !== undefined && input.sourceVolume !== null && { sourceVolume: input.sourceVolume }),
1981
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
1982
+ ...(input.readOnly != null && { readOnly: input.readOnly }),
1983
+ ...(input.sourceVolume != null && { sourceVolume: input.sourceVolume }),
2058
1984
  };
2059
1985
  };
2060
1986
  const serializeAws_restJson1MountPoints = (input, context) => {
@@ -2069,36 +1995,32 @@ const serializeAws_restJson1MountPoints = (input, context) => {
2069
1995
  };
2070
1996
  const serializeAws_restJson1NetworkConfiguration = (input, context) => {
2071
1997
  return {
2072
- ...(input.assignPublicIp !== undefined &&
2073
- input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp }),
1998
+ ...(input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }),
2074
1999
  };
2075
2000
  };
2076
2001
  const serializeAws_restJson1NodeOverrides = (input, context) => {
2077
2002
  return {
2078
- ...(input.nodePropertyOverrides !== undefined &&
2079
- input.nodePropertyOverrides !== null && {
2003
+ ...(input.nodePropertyOverrides != null && {
2080
2004
  nodePropertyOverrides: serializeAws_restJson1NodePropertyOverrides(input.nodePropertyOverrides, context),
2081
2005
  }),
2082
- ...(input.numNodes !== undefined && input.numNodes !== null && { numNodes: input.numNodes }),
2006
+ ...(input.numNodes != null && { numNodes: input.numNodes }),
2083
2007
  };
2084
2008
  };
2085
2009
  const serializeAws_restJson1NodeProperties = (input, context) => {
2086
2010
  return {
2087
- ...(input.mainNode !== undefined && input.mainNode !== null && { mainNode: input.mainNode }),
2088
- ...(input.nodeRangeProperties !== undefined &&
2089
- input.nodeRangeProperties !== null && {
2011
+ ...(input.mainNode != null && { mainNode: input.mainNode }),
2012
+ ...(input.nodeRangeProperties != null && {
2090
2013
  nodeRangeProperties: serializeAws_restJson1NodeRangeProperties(input.nodeRangeProperties, context),
2091
2014
  }),
2092
- ...(input.numNodes !== undefined && input.numNodes !== null && { numNodes: input.numNodes }),
2015
+ ...(input.numNodes != null && { numNodes: input.numNodes }),
2093
2016
  };
2094
2017
  };
2095
2018
  const serializeAws_restJson1NodePropertyOverride = (input, context) => {
2096
2019
  return {
2097
- ...(input.containerOverrides !== undefined &&
2098
- input.containerOverrides !== null && {
2020
+ ...(input.containerOverrides != null && {
2099
2021
  containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
2100
2022
  }),
2101
- ...(input.targetNodes !== undefined && input.targetNodes !== null && { targetNodes: input.targetNodes }),
2023
+ ...(input.targetNodes != null && { targetNodes: input.targetNodes }),
2102
2024
  };
2103
2025
  };
2104
2026
  const serializeAws_restJson1NodePropertyOverrides = (input, context) => {
@@ -2123,9 +2045,8 @@ const serializeAws_restJson1NodeRangeProperties = (input, context) => {
2123
2045
  };
2124
2046
  const serializeAws_restJson1NodeRangeProperty = (input, context) => {
2125
2047
  return {
2126
- ...(input.container !== undefined &&
2127
- input.container !== null && { container: serializeAws_restJson1ContainerProperties(input.container, context) }),
2128
- ...(input.targetNodes !== undefined && input.targetNodes !== null && { targetNodes: input.targetNodes }),
2048
+ ...(input.container != null && { container: serializeAws_restJson1ContainerProperties(input.container, context) }),
2049
+ ...(input.targetNodes != null && { targetNodes: input.targetNodes }),
2129
2050
  };
2130
2051
  };
2131
2052
  const serializeAws_restJson1ParametersMap = (input, context) => {
@@ -2151,8 +2072,8 @@ const serializeAws_restJson1PlatformCapabilityList = (input, context) => {
2151
2072
  };
2152
2073
  const serializeAws_restJson1ResourceRequirement = (input, context) => {
2153
2074
  return {
2154
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2155
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2075
+ ...(input.type != null && { type: input.type }),
2076
+ ...(input.value != null && { value: input.value }),
2156
2077
  };
2157
2078
  };
2158
2079
  const serializeAws_restJson1ResourceRequirements = (input, context) => {
@@ -2167,17 +2088,16 @@ const serializeAws_restJson1ResourceRequirements = (input, context) => {
2167
2088
  };
2168
2089
  const serializeAws_restJson1RetryStrategy = (input, context) => {
2169
2090
  return {
2170
- ...(input.attempts !== undefined && input.attempts !== null && { attempts: input.attempts }),
2171
- ...(input.evaluateOnExit !== undefined &&
2172
- input.evaluateOnExit !== null && {
2091
+ ...(input.attempts != null && { attempts: input.attempts }),
2092
+ ...(input.evaluateOnExit != null && {
2173
2093
  evaluateOnExit: serializeAws_restJson1EvaluateOnExitList(input.evaluateOnExit, context),
2174
2094
  }),
2175
2095
  };
2176
2096
  };
2177
2097
  const serializeAws_restJson1Secret = (input, context) => {
2178
2098
  return {
2179
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2180
- ...(input.valueFrom !== undefined && input.valueFrom !== null && { valueFrom: input.valueFrom }),
2099
+ ...(input.name != null && { name: input.name }),
2100
+ ...(input.valueFrom != null && { valueFrom: input.valueFrom }),
2181
2101
  };
2182
2102
  };
2183
2103
  const serializeAws_restJson1SecretList = (input, context) => {
@@ -2192,10 +2112,8 @@ const serializeAws_restJson1SecretList = (input, context) => {
2192
2112
  };
2193
2113
  const serializeAws_restJson1ShareAttributes = (input, context) => {
2194
2114
  return {
2195
- ...(input.shareIdentifier !== undefined &&
2196
- input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier }),
2197
- ...(input.weightFactor !== undefined &&
2198
- input.weightFactor !== null && { weightFactor: (0, smithy_client_1.serializeFloat)(input.weightFactor) }),
2115
+ ...(input.shareIdentifier != null && { shareIdentifier: input.shareIdentifier }),
2116
+ ...(input.weightFactor != null && { weightFactor: (0, smithy_client_1.serializeFloat)(input.weightFactor) }),
2199
2117
  };
2200
2118
  };
2201
2119
  const serializeAws_restJson1ShareAttributesList = (input, context) => {
@@ -2242,10 +2160,9 @@ const serializeAws_restJson1TagsMap = (input, context) => {
2242
2160
  };
2243
2161
  const serializeAws_restJson1Tmpfs = (input, context) => {
2244
2162
  return {
2245
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
2246
- ...(input.mountOptions !== undefined &&
2247
- input.mountOptions !== null && { mountOptions: serializeAws_restJson1StringList(input.mountOptions, context) }),
2248
- ...(input.size !== undefined && input.size !== null && { size: input.size }),
2163
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
2164
+ ...(input.mountOptions != null && { mountOptions: serializeAws_restJson1StringList(input.mountOptions, context) }),
2165
+ ...(input.size != null && { size: input.size }),
2249
2166
  };
2250
2167
  };
2251
2168
  const serializeAws_restJson1TmpfsList = (input, context) => {
@@ -2260,9 +2177,9 @@ const serializeAws_restJson1TmpfsList = (input, context) => {
2260
2177
  };
2261
2178
  const serializeAws_restJson1Ulimit = (input, context) => {
2262
2179
  return {
2263
- ...(input.hardLimit !== undefined && input.hardLimit !== null && { hardLimit: input.hardLimit }),
2264
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2265
- ...(input.softLimit !== undefined && input.softLimit !== null && { softLimit: input.softLimit }),
2180
+ ...(input.hardLimit != null && { hardLimit: input.hardLimit }),
2181
+ ...(input.name != null && { name: input.name }),
2182
+ ...(input.softLimit != null && { softLimit: input.softLimit }),
2266
2183
  };
2267
2184
  };
2268
2185
  const serializeAws_restJson1Ulimits = (input, context) => {
@@ -2277,20 +2194,17 @@ const serializeAws_restJson1Ulimits = (input, context) => {
2277
2194
  };
2278
2195
  const serializeAws_restJson1UpdatePolicy = (input, context) => {
2279
2196
  return {
2280
- ...(input.jobExecutionTimeoutMinutes !== undefined &&
2281
- input.jobExecutionTimeoutMinutes !== null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes }),
2282
- ...(input.terminateJobsOnUpdate !== undefined &&
2283
- input.terminateJobsOnUpdate !== null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }),
2197
+ ...(input.jobExecutionTimeoutMinutes != null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes }),
2198
+ ...(input.terminateJobsOnUpdate != null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }),
2284
2199
  };
2285
2200
  };
2286
2201
  const serializeAws_restJson1Volume = (input, context) => {
2287
2202
  return {
2288
- ...(input.efsVolumeConfiguration !== undefined &&
2289
- input.efsVolumeConfiguration !== null && {
2203
+ ...(input.efsVolumeConfiguration != null && {
2290
2204
  efsVolumeConfiguration: serializeAws_restJson1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
2291
2205
  }),
2292
- ...(input.host !== undefined && input.host !== null && { host: serializeAws_restJson1Host(input.host, context) }),
2293
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2206
+ ...(input.host != null && { host: serializeAws_restJson1Host(input.host, context) }),
2207
+ ...(input.name != null && { name: input.name }),
2294
2208
  };
2295
2209
  };
2296
2210
  const serializeAws_restJson1Volumes = (input, context) => {
@@ -2318,7 +2232,7 @@ const deserializeAws_restJson1ArrayPropertiesDetail = (output, context) => {
2318
2232
  return {
2319
2233
  index: (0, smithy_client_1.expectInt32)(output.index),
2320
2234
  size: (0, smithy_client_1.expectInt32)(output.size),
2321
- statusSummary: output.statusSummary !== undefined && output.statusSummary !== null
2235
+ statusSummary: output.statusSummary != null
2322
2236
  ? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
2323
2237
  : undefined,
2324
2238
  };
@@ -2334,7 +2248,7 @@ const deserializeAws_restJson1AttemptContainerDetail = (output, context) => {
2334
2248
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
2335
2249
  exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
2336
2250
  logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
2337
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
2251
+ networkInterfaces: output.networkInterfaces != null
2338
2252
  ? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
2339
2253
  : undefined,
2340
2254
  reason: (0, smithy_client_1.expectString)(output.reason),
@@ -2343,9 +2257,7 @@ const deserializeAws_restJson1AttemptContainerDetail = (output, context) => {
2343
2257
  };
2344
2258
  const deserializeAws_restJson1AttemptDetail = (output, context) => {
2345
2259
  return {
2346
- container: output.container !== undefined && output.container !== null
2347
- ? deserializeAws_restJson1AttemptContainerDetail(output.container, context)
2348
- : undefined,
2260
+ container: output.container != null ? deserializeAws_restJson1AttemptContainerDetail(output.container, context) : undefined,
2349
2261
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
2350
2262
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2351
2263
  stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
@@ -2366,7 +2278,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
2366
2278
  return {
2367
2279
  computeEnvironmentArn: (0, smithy_client_1.expectString)(output.computeEnvironmentArn),
2368
2280
  computeEnvironmentName: (0, smithy_client_1.expectString)(output.computeEnvironmentName),
2369
- computeResources: output.computeResources !== undefined && output.computeResources !== null
2281
+ computeResources: output.computeResources != null
2370
2282
  ? deserializeAws_restJson1ComputeResource(output.computeResources, context)
2371
2283
  : undefined,
2372
2284
  ecsClusterArn: (0, smithy_client_1.expectString)(output.ecsClusterArn),
@@ -2374,14 +2286,10 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
2374
2286
  state: (0, smithy_client_1.expectString)(output.state),
2375
2287
  status: (0, smithy_client_1.expectString)(output.status),
2376
2288
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2377
- tags: output.tags !== undefined && output.tags !== null
2378
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2379
- : undefined,
2289
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2380
2290
  type: (0, smithy_client_1.expectString)(output.type),
2381
2291
  unmanagedvCpus: (0, smithy_client_1.expectInt32)(output.unmanagedvCpus),
2382
- updatePolicy: output.updatePolicy !== undefined && output.updatePolicy !== null
2383
- ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context)
2384
- : undefined,
2292
+ updatePolicy: output.updatePolicy != null ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context) : undefined,
2385
2293
  };
2386
2294
  };
2387
2295
  const deserializeAws_restJson1ComputeEnvironmentDetailList = (output, context) => {
@@ -2417,132 +2325,106 @@ const deserializeAws_restJson1ComputeResource = (output, context) => {
2417
2325
  allocationStrategy: (0, smithy_client_1.expectString)(output.allocationStrategy),
2418
2326
  bidPercentage: (0, smithy_client_1.expectInt32)(output.bidPercentage),
2419
2327
  desiredvCpus: (0, smithy_client_1.expectInt32)(output.desiredvCpus),
2420
- ec2Configuration: output.ec2Configuration !== undefined && output.ec2Configuration !== null
2328
+ ec2Configuration: output.ec2Configuration != null
2421
2329
  ? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
2422
2330
  : undefined,
2423
2331
  ec2KeyPair: (0, smithy_client_1.expectString)(output.ec2KeyPair),
2424
2332
  imageId: (0, smithy_client_1.expectString)(output.imageId),
2425
2333
  instanceRole: (0, smithy_client_1.expectString)(output.instanceRole),
2426
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
2427
- ? deserializeAws_restJson1StringList(output.instanceTypes, context)
2428
- : undefined,
2429
- launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
2334
+ instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
2335
+ launchTemplate: output.launchTemplate != null
2430
2336
  ? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
2431
2337
  : undefined,
2432
2338
  maxvCpus: (0, smithy_client_1.expectInt32)(output.maxvCpus),
2433
2339
  minvCpus: (0, smithy_client_1.expectInt32)(output.minvCpus),
2434
2340
  placementGroup: (0, smithy_client_1.expectString)(output.placementGroup),
2435
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
2341
+ securityGroupIds: output.securityGroupIds != null
2436
2342
  ? deserializeAws_restJson1StringList(output.securityGroupIds, context)
2437
2343
  : undefined,
2438
2344
  spotIamFleetRole: (0, smithy_client_1.expectString)(output.spotIamFleetRole),
2439
- subnets: output.subnets !== undefined && output.subnets !== null
2440
- ? deserializeAws_restJson1StringList(output.subnets, context)
2441
- : undefined,
2442
- tags: output.tags !== undefined && output.tags !== null
2443
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2444
- : undefined,
2345
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
2346
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2445
2347
  type: (0, smithy_client_1.expectString)(output.type),
2446
2348
  };
2447
2349
  };
2448
2350
  const deserializeAws_restJson1ContainerDetail = (output, context) => {
2449
2351
  return {
2450
- command: output.command !== undefined && output.command !== null
2451
- ? deserializeAws_restJson1StringList(output.command, context)
2452
- : undefined,
2352
+ command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
2453
2353
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
2454
- environment: output.environment !== undefined && output.environment !== null
2354
+ environment: output.environment != null
2455
2355
  ? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
2456
2356
  : undefined,
2457
2357
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
2458
2358
  exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
2459
- fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null
2359
+ fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
2460
2360
  ? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
2461
2361
  : undefined,
2462
2362
  image: (0, smithy_client_1.expectString)(output.image),
2463
2363
  instanceType: (0, smithy_client_1.expectString)(output.instanceType),
2464
2364
  jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
2465
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
2365
+ linuxParameters: output.linuxParameters != null
2466
2366
  ? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
2467
2367
  : undefined,
2468
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
2368
+ logConfiguration: output.logConfiguration != null
2469
2369
  ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
2470
2370
  : undefined,
2471
2371
  logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
2472
2372
  memory: (0, smithy_client_1.expectInt32)(output.memory),
2473
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
2474
- ? deserializeAws_restJson1MountPoints(output.mountPoints, context)
2475
- : undefined,
2476
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
2373
+ mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
2374
+ networkConfiguration: output.networkConfiguration != null
2477
2375
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
2478
2376
  : undefined,
2479
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
2377
+ networkInterfaces: output.networkInterfaces != null
2480
2378
  ? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
2481
2379
  : undefined,
2482
2380
  privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
2483
2381
  readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
2484
2382
  reason: (0, smithy_client_1.expectString)(output.reason),
2485
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
2383
+ resourceRequirements: output.resourceRequirements != null
2486
2384
  ? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
2487
2385
  : undefined,
2488
- secrets: output.secrets !== undefined && output.secrets !== null
2489
- ? deserializeAws_restJson1SecretList(output.secrets, context)
2490
- : undefined,
2386
+ secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
2491
2387
  taskArn: (0, smithy_client_1.expectString)(output.taskArn),
2492
- ulimits: output.ulimits !== undefined && output.ulimits !== null
2493
- ? deserializeAws_restJson1Ulimits(output.ulimits, context)
2494
- : undefined,
2388
+ ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
2495
2389
  user: (0, smithy_client_1.expectString)(output.user),
2496
2390
  vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
2497
- volumes: output.volumes !== undefined && output.volumes !== null
2498
- ? deserializeAws_restJson1Volumes(output.volumes, context)
2499
- : undefined,
2391
+ volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
2500
2392
  };
2501
2393
  };
2502
2394
  const deserializeAws_restJson1ContainerProperties = (output, context) => {
2503
2395
  return {
2504
- command: output.command !== undefined && output.command !== null
2505
- ? deserializeAws_restJson1StringList(output.command, context)
2506
- : undefined,
2507
- environment: output.environment !== undefined && output.environment !== null
2396
+ command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
2397
+ environment: output.environment != null
2508
2398
  ? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
2509
2399
  : undefined,
2510
2400
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
2511
- fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null
2401
+ fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
2512
2402
  ? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
2513
2403
  : undefined,
2514
2404
  image: (0, smithy_client_1.expectString)(output.image),
2515
2405
  instanceType: (0, smithy_client_1.expectString)(output.instanceType),
2516
2406
  jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
2517
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
2407
+ linuxParameters: output.linuxParameters != null
2518
2408
  ? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
2519
2409
  : undefined,
2520
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
2410
+ logConfiguration: output.logConfiguration != null
2521
2411
  ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
2522
2412
  : undefined,
2523
2413
  memory: (0, smithy_client_1.expectInt32)(output.memory),
2524
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
2525
- ? deserializeAws_restJson1MountPoints(output.mountPoints, context)
2526
- : undefined,
2527
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
2414
+ mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
2415
+ networkConfiguration: output.networkConfiguration != null
2528
2416
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
2529
2417
  : undefined,
2530
2418
  privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
2531
2419
  readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
2532
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
2420
+ resourceRequirements: output.resourceRequirements != null
2533
2421
  ? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
2534
2422
  : undefined,
2535
- secrets: output.secrets !== undefined && output.secrets !== null
2536
- ? deserializeAws_restJson1SecretList(output.secrets, context)
2537
- : undefined,
2538
- ulimits: output.ulimits !== undefined && output.ulimits !== null
2539
- ? deserializeAws_restJson1Ulimits(output.ulimits, context)
2540
- : undefined,
2423
+ secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
2424
+ ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
2541
2425
  user: (0, smithy_client_1.expectString)(output.user),
2542
2426
  vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
2543
- volumes: output.volumes !== undefined && output.volumes !== null
2544
- ? deserializeAws_restJson1Volumes(output.volumes, context)
2545
- : undefined,
2427
+ volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
2546
2428
  };
2547
2429
  };
2548
2430
  const deserializeAws_restJson1ContainerSummary = (output, context) => {
@@ -2555,7 +2437,7 @@ const deserializeAws_restJson1Device = (output, context) => {
2555
2437
  return {
2556
2438
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
2557
2439
  hostPath: (0, smithy_client_1.expectString)(output.hostPath),
2558
- permissions: output.permissions !== undefined && output.permissions !== null
2440
+ permissions: output.permissions != null
2559
2441
  ? deserializeAws_restJson1DeviceCgroupPermissions(output.permissions, context)
2560
2442
  : undefined,
2561
2443
  };
@@ -2607,7 +2489,7 @@ const deserializeAws_restJson1EFSAuthorizationConfig = (output, context) => {
2607
2489
  };
2608
2490
  const deserializeAws_restJson1EFSVolumeConfiguration = (output, context) => {
2609
2491
  return {
2610
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
2492
+ authorizationConfig: output.authorizationConfig != null
2611
2493
  ? deserializeAws_restJson1EFSAuthorizationConfig(output.authorizationConfig, context)
2612
2494
  : undefined,
2613
2495
  fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
@@ -2650,7 +2532,7 @@ const deserializeAws_restJson1FairsharePolicy = (output, context) => {
2650
2532
  return {
2651
2533
  computeReservation: (0, smithy_client_1.expectInt32)(output.computeReservation),
2652
2534
  shareDecaySeconds: (0, smithy_client_1.expectInt32)(output.shareDecaySeconds),
2653
- shareDistribution: output.shareDistribution !== undefined && output.shareDistribution !== null
2535
+ shareDistribution: output.shareDistribution != null
2654
2536
  ? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
2655
2537
  : undefined,
2656
2538
  };
@@ -2667,33 +2549,25 @@ const deserializeAws_restJson1Host = (output, context) => {
2667
2549
  };
2668
2550
  const deserializeAws_restJson1JobDefinition = (output, context) => {
2669
2551
  return {
2670
- containerProperties: output.containerProperties !== undefined && output.containerProperties !== null
2552
+ containerProperties: output.containerProperties != null
2671
2553
  ? deserializeAws_restJson1ContainerProperties(output.containerProperties, context)
2672
2554
  : undefined,
2673
2555
  jobDefinitionArn: (0, smithy_client_1.expectString)(output.jobDefinitionArn),
2674
2556
  jobDefinitionName: (0, smithy_client_1.expectString)(output.jobDefinitionName),
2675
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2557
+ nodeProperties: output.nodeProperties != null
2676
2558
  ? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
2677
2559
  : undefined,
2678
- parameters: output.parameters !== undefined && output.parameters !== null
2679
- ? deserializeAws_restJson1ParametersMap(output.parameters, context)
2680
- : undefined,
2681
- platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
2560
+ parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
2561
+ platformCapabilities: output.platformCapabilities != null
2682
2562
  ? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
2683
2563
  : undefined,
2684
2564
  propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
2685
- retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
2686
- ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2687
- : undefined,
2565
+ retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
2688
2566
  revision: (0, smithy_client_1.expectInt32)(output.revision),
2689
2567
  schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
2690
2568
  status: (0, smithy_client_1.expectString)(output.status),
2691
- tags: output.tags !== undefined && output.tags !== null
2692
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2693
- : undefined,
2694
- timeout: output.timeout !== undefined && output.timeout !== null
2695
- ? deserializeAws_restJson1JobTimeout(output.timeout, context)
2696
- : undefined,
2569
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2570
+ timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
2697
2571
  type: (0, smithy_client_1.expectString)(output.type),
2698
2572
  };
2699
2573
  };
@@ -2727,52 +2601,36 @@ const deserializeAws_restJson1JobDependencyList = (output, context) => {
2727
2601
  };
2728
2602
  const deserializeAws_restJson1JobDetail = (output, context) => {
2729
2603
  return {
2730
- arrayProperties: output.arrayProperties !== undefined && output.arrayProperties !== null
2604
+ arrayProperties: output.arrayProperties != null
2731
2605
  ? deserializeAws_restJson1ArrayPropertiesDetail(output.arrayProperties, context)
2732
2606
  : undefined,
2733
- attempts: output.attempts !== undefined && output.attempts !== null
2734
- ? deserializeAws_restJson1AttemptDetails(output.attempts, context)
2735
- : undefined,
2736
- container: output.container !== undefined && output.container !== null
2737
- ? deserializeAws_restJson1ContainerDetail(output.container, context)
2738
- : undefined,
2607
+ attempts: output.attempts != null ? deserializeAws_restJson1AttemptDetails(output.attempts, context) : undefined,
2608
+ container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
2739
2609
  createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
2740
- dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
2741
- ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context)
2742
- : undefined,
2610
+ dependsOn: output.dependsOn != null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) : undefined,
2743
2611
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
2744
2612
  jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
2745
2613
  jobId: (0, smithy_client_1.expectString)(output.jobId),
2746
2614
  jobName: (0, smithy_client_1.expectString)(output.jobName),
2747
2615
  jobQueue: (0, smithy_client_1.expectString)(output.jobQueue),
2748
- nodeDetails: output.nodeDetails !== undefined && output.nodeDetails !== null
2749
- ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context)
2750
- : undefined,
2751
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2616
+ nodeDetails: output.nodeDetails != null ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context) : undefined,
2617
+ nodeProperties: output.nodeProperties != null
2752
2618
  ? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
2753
2619
  : undefined,
2754
- parameters: output.parameters !== undefined && output.parameters !== null
2755
- ? deserializeAws_restJson1ParametersMap(output.parameters, context)
2756
- : undefined,
2757
- platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
2620
+ parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
2621
+ platformCapabilities: output.platformCapabilities != null
2758
2622
  ? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
2759
2623
  : undefined,
2760
2624
  propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
2761
- retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
2762
- ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2763
- : undefined,
2625
+ retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
2764
2626
  schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
2765
2627
  shareIdentifier: (0, smithy_client_1.expectString)(output.shareIdentifier),
2766
2628
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
2767
2629
  status: (0, smithy_client_1.expectString)(output.status),
2768
2630
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2769
2631
  stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
2770
- tags: output.tags !== undefined && output.tags !== null
2771
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2772
- : undefined,
2773
- timeout: output.timeout !== undefined && output.timeout !== null
2774
- ? deserializeAws_restJson1JobTimeout(output.timeout, context)
2775
- : undefined,
2632
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2633
+ timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
2776
2634
  };
2777
2635
  };
2778
2636
  const deserializeAws_restJson1JobDetailList = (output, context) => {
@@ -2788,7 +2646,7 @@ const deserializeAws_restJson1JobDetailList = (output, context) => {
2788
2646
  };
2789
2647
  const deserializeAws_restJson1JobQueueDetail = (output, context) => {
2790
2648
  return {
2791
- computeEnvironmentOrder: output.computeEnvironmentOrder !== undefined && output.computeEnvironmentOrder !== null
2649
+ computeEnvironmentOrder: output.computeEnvironmentOrder != null
2792
2650
  ? deserializeAws_restJson1ComputeEnvironmentOrders(output.computeEnvironmentOrder, context)
2793
2651
  : undefined,
2794
2652
  jobQueueArn: (0, smithy_client_1.expectString)(output.jobQueueArn),
@@ -2798,9 +2656,7 @@ const deserializeAws_restJson1JobQueueDetail = (output, context) => {
2798
2656
  state: (0, smithy_client_1.expectString)(output.state),
2799
2657
  status: (0, smithy_client_1.expectString)(output.status),
2800
2658
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2801
- tags: output.tags !== undefined && output.tags !== null
2802
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2803
- : undefined,
2659
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2804
2660
  };
2805
2661
  };
2806
2662
  const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
@@ -2816,18 +2672,16 @@ const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
2816
2672
  };
2817
2673
  const deserializeAws_restJson1JobSummary = (output, context) => {
2818
2674
  return {
2819
- arrayProperties: output.arrayProperties !== undefined && output.arrayProperties !== null
2675
+ arrayProperties: output.arrayProperties != null
2820
2676
  ? deserializeAws_restJson1ArrayPropertiesSummary(output.arrayProperties, context)
2821
2677
  : undefined,
2822
- container: output.container !== undefined && output.container !== null
2823
- ? deserializeAws_restJson1ContainerSummary(output.container, context)
2824
- : undefined,
2678
+ container: output.container != null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined,
2825
2679
  createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
2826
2680
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
2827
2681
  jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
2828
2682
  jobId: (0, smithy_client_1.expectString)(output.jobId),
2829
2683
  jobName: (0, smithy_client_1.expectString)(output.jobName),
2830
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2684
+ nodeProperties: output.nodeProperties != null
2831
2685
  ? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
2832
2686
  : undefined,
2833
2687
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
@@ -2867,27 +2721,19 @@ const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) =>
2867
2721
  };
2868
2722
  const deserializeAws_restJson1LinuxParameters = (output, context) => {
2869
2723
  return {
2870
- devices: output.devices !== undefined && output.devices !== null
2871
- ? deserializeAws_restJson1DevicesList(output.devices, context)
2872
- : undefined,
2724
+ devices: output.devices != null ? deserializeAws_restJson1DevicesList(output.devices, context) : undefined,
2873
2725
  initProcessEnabled: (0, smithy_client_1.expectBoolean)(output.initProcessEnabled),
2874
2726
  maxSwap: (0, smithy_client_1.expectInt32)(output.maxSwap),
2875
2727
  sharedMemorySize: (0, smithy_client_1.expectInt32)(output.sharedMemorySize),
2876
2728
  swappiness: (0, smithy_client_1.expectInt32)(output.swappiness),
2877
- tmpfs: output.tmpfs !== undefined && output.tmpfs !== null
2878
- ? deserializeAws_restJson1TmpfsList(output.tmpfs, context)
2879
- : undefined,
2729
+ tmpfs: output.tmpfs != null ? deserializeAws_restJson1TmpfsList(output.tmpfs, context) : undefined,
2880
2730
  };
2881
2731
  };
2882
2732
  const deserializeAws_restJson1LogConfiguration = (output, context) => {
2883
2733
  return {
2884
2734
  logDriver: (0, smithy_client_1.expectString)(output.logDriver),
2885
- options: output.options !== undefined && output.options !== null
2886
- ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context)
2887
- : undefined,
2888
- secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
2889
- ? deserializeAws_restJson1SecretList(output.secretOptions, context)
2890
- : undefined,
2735
+ options: output.options != null ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context) : undefined,
2736
+ secretOptions: output.secretOptions != null ? deserializeAws_restJson1SecretList(output.secretOptions, context) : undefined,
2891
2737
  };
2892
2738
  };
2893
2739
  const deserializeAws_restJson1LogConfigurationOptionsMap = (output, context) => {
@@ -2951,7 +2797,7 @@ const deserializeAws_restJson1NodeDetails = (output, context) => {
2951
2797
  const deserializeAws_restJson1NodeProperties = (output, context) => {
2952
2798
  return {
2953
2799
  mainNode: (0, smithy_client_1.expectInt32)(output.mainNode),
2954
- nodeRangeProperties: output.nodeRangeProperties !== undefined && output.nodeRangeProperties !== null
2800
+ nodeRangeProperties: output.nodeRangeProperties != null
2955
2801
  ? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
2956
2802
  : undefined,
2957
2803
  numNodes: (0, smithy_client_1.expectInt32)(output.numNodes),
@@ -2977,9 +2823,7 @@ const deserializeAws_restJson1NodeRangeProperties = (output, context) => {
2977
2823
  };
2978
2824
  const deserializeAws_restJson1NodeRangeProperty = (output, context) => {
2979
2825
  return {
2980
- container: output.container !== undefined && output.container !== null
2981
- ? deserializeAws_restJson1ContainerProperties(output.container, context)
2982
- : undefined,
2826
+ container: output.container != null ? deserializeAws_restJson1ContainerProperties(output.container, context) : undefined,
2983
2827
  targetNodes: (0, smithy_client_1.expectString)(output.targetNodes),
2984
2828
  };
2985
2829
  };
@@ -3025,7 +2869,7 @@ const deserializeAws_restJson1ResourceRequirements = (output, context) => {
3025
2869
  const deserializeAws_restJson1RetryStrategy = (output, context) => {
3026
2870
  return {
3027
2871
  attempts: (0, smithy_client_1.expectInt32)(output.attempts),
3028
- evaluateOnExit: output.evaluateOnExit !== undefined && output.evaluateOnExit !== null
2872
+ evaluateOnExit: output.evaluateOnExit != null
3029
2873
  ? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
3030
2874
  : undefined,
3031
2875
  };
@@ -3033,13 +2877,11 @@ const deserializeAws_restJson1RetryStrategy = (output, context) => {
3033
2877
  const deserializeAws_restJson1SchedulingPolicyDetail = (output, context) => {
3034
2878
  return {
3035
2879
  arn: (0, smithy_client_1.expectString)(output.arn),
3036
- fairsharePolicy: output.fairsharePolicy !== undefined && output.fairsharePolicy !== null
2880
+ fairsharePolicy: output.fairsharePolicy != null
3037
2881
  ? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
3038
2882
  : undefined,
3039
2883
  name: (0, smithy_client_1.expectString)(output.name),
3040
- tags: output.tags !== undefined && output.tags !== null
3041
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
3042
- : undefined,
2884
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
3043
2885
  };
3044
2886
  };
3045
2887
  const deserializeAws_restJson1SchedulingPolicyDetailList = (output, context) => {
@@ -3139,9 +2981,7 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
3139
2981
  const deserializeAws_restJson1Tmpfs = (output, context) => {
3140
2982
  return {
3141
2983
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
3142
- mountOptions: output.mountOptions !== undefined && output.mountOptions !== null
3143
- ? deserializeAws_restJson1StringList(output.mountOptions, context)
3144
- : undefined,
2984
+ mountOptions: output.mountOptions != null ? deserializeAws_restJson1StringList(output.mountOptions, context) : undefined,
3145
2985
  size: (0, smithy_client_1.expectInt32)(output.size),
3146
2986
  };
3147
2987
  };
@@ -3182,12 +3022,10 @@ const deserializeAws_restJson1UpdatePolicy = (output, context) => {
3182
3022
  };
3183
3023
  const deserializeAws_restJson1Volume = (output, context) => {
3184
3024
  return {
3185
- efsVolumeConfiguration: output.efsVolumeConfiguration !== undefined && output.efsVolumeConfiguration !== null
3025
+ efsVolumeConfiguration: output.efsVolumeConfiguration != null
3186
3026
  ? deserializeAws_restJson1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
3187
3027
  : undefined,
3188
- host: output.host !== undefined && output.host !== null
3189
- ? deserializeAws_restJson1Host(output.host, context)
3190
- : undefined,
3028
+ host: output.host != null ? deserializeAws_restJson1Host(output.host, context) : undefined,
3191
3029
  name: (0, smithy_client_1.expectString)(output.name),
3192
3030
  };
3193
3031
  };
@@ -3251,5 +3089,4 @@ const loadRestJsonErrorCode = (output, data) => {
3251
3089
  if (data["__type"] !== undefined) {
3252
3090
  return sanitizeErrorCode(data["__type"]);
3253
3091
  }
3254
- return "";
3255
3092
  };