@aws-sdk/client-batch 3.121.0 → 3.127.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
  });
@@ -1703,14 +1660,13 @@ const deserializeAws_restJson1ServerExceptionResponse = async (parsedOutput, con
1703
1660
  };
1704
1661
  const serializeAws_restJson1ArrayProperties = (input, context) => {
1705
1662
  return {
1706
- ...(input.size !== undefined && input.size !== null && { size: input.size }),
1663
+ ...(input.size != null && { size: input.size }),
1707
1664
  };
1708
1665
  };
1709
1666
  const serializeAws_restJson1ComputeEnvironmentOrder = (input, context) => {
1710
1667
  return {
1711
- ...(input.computeEnvironment !== undefined &&
1712
- input.computeEnvironment !== null && { computeEnvironment: input.computeEnvironment }),
1713
- ...(input.order !== undefined && input.order !== null && { order: input.order }),
1668
+ ...(input.computeEnvironment != null && { computeEnvironment: input.computeEnvironment }),
1669
+ ...(input.order != null && { order: input.order }),
1714
1670
  };
1715
1671
  };
1716
1672
  const serializeAws_restJson1ComputeEnvironmentOrders = (input, context) => {
@@ -1725,152 +1681,117 @@ const serializeAws_restJson1ComputeEnvironmentOrders = (input, context) => {
1725
1681
  };
1726
1682
  const serializeAws_restJson1ComputeResource = (input, context) => {
1727
1683
  return {
1728
- ...(input.allocationStrategy !== undefined &&
1729
- input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy }),
1730
- ...(input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage }),
1731
- ...(input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus }),
1732
- ...(input.ec2Configuration !== undefined &&
1733
- 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 && {
1734
1688
  ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
1735
1689
  }),
1736
- ...(input.ec2KeyPair !== undefined && input.ec2KeyPair !== null && { ec2KeyPair: input.ec2KeyPair }),
1737
- ...(input.imageId !== undefined && input.imageId !== null && { imageId: input.imageId }),
1738
- ...(input.instanceRole !== undefined && input.instanceRole !== null && { instanceRole: input.instanceRole }),
1739
- ...(input.instanceTypes !== undefined &&
1740
- 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 && {
1741
1694
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
1742
1695
  }),
1743
- ...(input.launchTemplate !== undefined &&
1744
- input.launchTemplate !== null && {
1696
+ ...(input.launchTemplate != null && {
1745
1697
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1746
1698
  }),
1747
- ...(input.maxvCpus !== undefined && input.maxvCpus !== null && { maxvCpus: input.maxvCpus }),
1748
- ...(input.minvCpus !== undefined && input.minvCpus !== null && { minvCpus: input.minvCpus }),
1749
- ...(input.placementGroup !== undefined &&
1750
- input.placementGroup !== null && { placementGroup: input.placementGroup }),
1751
- ...(input.securityGroupIds !== undefined &&
1752
- 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 && {
1753
1703
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
1754
1704
  }),
1755
- ...(input.spotIamFleetRole !== undefined &&
1756
- input.spotIamFleetRole !== null && { spotIamFleetRole: input.spotIamFleetRole }),
1757
- ...(input.subnets !== undefined &&
1758
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1759
- ...(input.tags !== undefined &&
1760
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1761
- ...(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 }),
1762
1709
  };
1763
1710
  };
1764
1711
  const serializeAws_restJson1ComputeResourceUpdate = (input, context) => {
1765
1712
  return {
1766
- ...(input.allocationStrategy !== undefined &&
1767
- input.allocationStrategy !== null && { allocationStrategy: input.allocationStrategy }),
1768
- ...(input.bidPercentage !== undefined && input.bidPercentage !== null && { bidPercentage: input.bidPercentage }),
1769
- ...(input.desiredvCpus !== undefined && input.desiredvCpus !== null && { desiredvCpus: input.desiredvCpus }),
1770
- ...(input.ec2Configuration !== undefined &&
1771
- 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 && {
1772
1717
  ec2Configuration: serializeAws_restJson1Ec2ConfigurationList(input.ec2Configuration, context),
1773
1718
  }),
1774
- ...(input.ec2KeyPair !== undefined && input.ec2KeyPair !== null && { ec2KeyPair: input.ec2KeyPair }),
1775
- ...(input.imageId !== undefined && input.imageId !== null && { imageId: input.imageId }),
1776
- ...(input.instanceRole !== undefined && input.instanceRole !== null && { instanceRole: input.instanceRole }),
1777
- ...(input.instanceTypes !== undefined &&
1778
- 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 && {
1779
1723
  instanceTypes: serializeAws_restJson1StringList(input.instanceTypes, context),
1780
1724
  }),
1781
- ...(input.launchTemplate !== undefined &&
1782
- input.launchTemplate !== null && {
1725
+ ...(input.launchTemplate != null && {
1783
1726
  launchTemplate: serializeAws_restJson1LaunchTemplateSpecification(input.launchTemplate, context),
1784
1727
  }),
1785
- ...(input.maxvCpus !== undefined && input.maxvCpus !== null && { maxvCpus: input.maxvCpus }),
1786
- ...(input.minvCpus !== undefined && input.minvCpus !== null && { minvCpus: input.minvCpus }),
1787
- ...(input.placementGroup !== undefined &&
1788
- input.placementGroup !== null && { placementGroup: input.placementGroup }),
1789
- ...(input.securityGroupIds !== undefined &&
1790
- 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 && {
1791
1732
  securityGroupIds: serializeAws_restJson1StringList(input.securityGroupIds, context),
1792
1733
  }),
1793
- ...(input.subnets !== undefined &&
1794
- input.subnets !== null && { subnets: serializeAws_restJson1StringList(input.subnets, context) }),
1795
- ...(input.tags !== undefined &&
1796
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
1797
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1798
- ...(input.updateToLatestImageVersion !== undefined &&
1799
- 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 }),
1800
1738
  };
1801
1739
  };
1802
1740
  const serializeAws_restJson1ContainerOverrides = (input, context) => {
1803
1741
  return {
1804
- ...(input.command !== undefined &&
1805
- input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) }),
1806
- ...(input.environment !== undefined &&
1807
- input.environment !== null && {
1742
+ ...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
1743
+ ...(input.environment != null && {
1808
1744
  environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
1809
1745
  }),
1810
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1811
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1812
- ...(input.resourceRequirements !== undefined &&
1813
- input.resourceRequirements !== null && {
1746
+ ...(input.instanceType != null && { instanceType: input.instanceType }),
1747
+ ...(input.memory != null && { memory: input.memory }),
1748
+ ...(input.resourceRequirements != null && {
1814
1749
  resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
1815
1750
  }),
1816
- ...(input.vcpus !== undefined && input.vcpus !== null && { vcpus: input.vcpus }),
1751
+ ...(input.vcpus != null && { vcpus: input.vcpus }),
1817
1752
  };
1818
1753
  };
1819
1754
  const serializeAws_restJson1ContainerProperties = (input, context) => {
1820
1755
  return {
1821
- ...(input.command !== undefined &&
1822
- input.command !== null && { command: serializeAws_restJson1StringList(input.command, context) }),
1823
- ...(input.environment !== undefined &&
1824
- input.environment !== null && {
1756
+ ...(input.command != null && { command: serializeAws_restJson1StringList(input.command, context) }),
1757
+ ...(input.environment != null && {
1825
1758
  environment: serializeAws_restJson1EnvironmentVariables(input.environment, context),
1826
1759
  }),
1827
- ...(input.executionRoleArn !== undefined &&
1828
- input.executionRoleArn !== null && { executionRoleArn: input.executionRoleArn }),
1829
- ...(input.fargatePlatformConfiguration !== undefined &&
1830
- input.fargatePlatformConfiguration !== null && {
1760
+ ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
1761
+ ...(input.fargatePlatformConfiguration != null && {
1831
1762
  fargatePlatformConfiguration: serializeAws_restJson1FargatePlatformConfiguration(input.fargatePlatformConfiguration, context),
1832
1763
  }),
1833
- ...(input.image !== undefined && input.image !== null && { image: input.image }),
1834
- ...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
1835
- ...(input.jobRoleArn !== undefined && input.jobRoleArn !== null && { jobRoleArn: input.jobRoleArn }),
1836
- ...(input.linuxParameters !== undefined &&
1837
- 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 && {
1838
1768
  linuxParameters: serializeAws_restJson1LinuxParameters(input.linuxParameters, context),
1839
1769
  }),
1840
- ...(input.logConfiguration !== undefined &&
1841
- input.logConfiguration !== null && {
1770
+ ...(input.logConfiguration != null && {
1842
1771
  logConfiguration: serializeAws_restJson1LogConfiguration(input.logConfiguration, context),
1843
1772
  }),
1844
- ...(input.memory !== undefined && input.memory !== null && { memory: input.memory }),
1845
- ...(input.mountPoints !== undefined &&
1846
- input.mountPoints !== null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) }),
1847
- ...(input.networkConfiguration !== undefined &&
1848
- input.networkConfiguration !== null && {
1773
+ ...(input.memory != null && { memory: input.memory }),
1774
+ ...(input.mountPoints != null && { mountPoints: serializeAws_restJson1MountPoints(input.mountPoints, context) }),
1775
+ ...(input.networkConfiguration != null && {
1849
1776
  networkConfiguration: serializeAws_restJson1NetworkConfiguration(input.networkConfiguration, context),
1850
1777
  }),
1851
- ...(input.privileged !== undefined && input.privileged !== null && { privileged: input.privileged }),
1852
- ...(input.readonlyRootFilesystem !== undefined &&
1853
- input.readonlyRootFilesystem !== null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
1854
- ...(input.resourceRequirements !== undefined &&
1855
- input.resourceRequirements !== null && {
1778
+ ...(input.privileged != null && { privileged: input.privileged }),
1779
+ ...(input.readonlyRootFilesystem != null && { readonlyRootFilesystem: input.readonlyRootFilesystem }),
1780
+ ...(input.resourceRequirements != null && {
1856
1781
  resourceRequirements: serializeAws_restJson1ResourceRequirements(input.resourceRequirements, context),
1857
1782
  }),
1858
- ...(input.secrets !== undefined &&
1859
- input.secrets !== null && { secrets: serializeAws_restJson1SecretList(input.secrets, context) }),
1860
- ...(input.ulimits !== undefined &&
1861
- input.ulimits !== null && { ulimits: serializeAws_restJson1Ulimits(input.ulimits, context) }),
1862
- ...(input.user !== undefined && input.user !== null && { user: input.user }),
1863
- ...(input.vcpus !== undefined && input.vcpus !== null && { vcpus: input.vcpus }),
1864
- ...(input.volumes !== undefined &&
1865
- 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) }),
1866
1788
  };
1867
1789
  };
1868
1790
  const serializeAws_restJson1Device = (input, context) => {
1869
1791
  return {
1870
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
1871
- ...(input.hostPath !== undefined && input.hostPath !== null && { hostPath: input.hostPath }),
1872
- ...(input.permissions !== undefined &&
1873
- input.permissions !== null && {
1792
+ ...(input.containerPath != null && { containerPath: input.containerPath }),
1793
+ ...(input.hostPath != null && { hostPath: input.hostPath }),
1794
+ ...(input.permissions != null && {
1874
1795
  permissions: serializeAws_restJson1DeviceCgroupPermissions(input.permissions, context),
1875
1796
  }),
1876
1797
  };
@@ -1897,9 +1818,8 @@ const serializeAws_restJson1DevicesList = (input, context) => {
1897
1818
  };
1898
1819
  const serializeAws_restJson1Ec2Configuration = (input, context) => {
1899
1820
  return {
1900
- ...(input.imageIdOverride !== undefined &&
1901
- input.imageIdOverride !== null && { imageIdOverride: input.imageIdOverride }),
1902
- ...(input.imageType !== undefined && input.imageType !== null && { imageType: input.imageType }),
1821
+ ...(input.imageIdOverride != null && { imageIdOverride: input.imageIdOverride }),
1822
+ ...(input.imageType != null && { imageType: input.imageType }),
1903
1823
  };
1904
1824
  };
1905
1825
  const serializeAws_restJson1Ec2ConfigurationList = (input, context) => {
@@ -1914,22 +1834,19 @@ const serializeAws_restJson1Ec2ConfigurationList = (input, context) => {
1914
1834
  };
1915
1835
  const serializeAws_restJson1EFSAuthorizationConfig = (input, context) => {
1916
1836
  return {
1917
- ...(input.accessPointId !== undefined && input.accessPointId !== null && { accessPointId: input.accessPointId }),
1918
- ...(input.iam !== undefined && input.iam !== null && { iam: input.iam }),
1837
+ ...(input.accessPointId != null && { accessPointId: input.accessPointId }),
1838
+ ...(input.iam != null && { iam: input.iam }),
1919
1839
  };
1920
1840
  };
1921
1841
  const serializeAws_restJson1EFSVolumeConfiguration = (input, context) => {
1922
1842
  return {
1923
- ...(input.authorizationConfig !== undefined &&
1924
- input.authorizationConfig !== null && {
1843
+ ...(input.authorizationConfig != null && {
1925
1844
  authorizationConfig: serializeAws_restJson1EFSAuthorizationConfig(input.authorizationConfig, context),
1926
1845
  }),
1927
- ...(input.fileSystemId !== undefined && input.fileSystemId !== null && { fileSystemId: input.fileSystemId }),
1928
- ...(input.rootDirectory !== undefined && input.rootDirectory !== null && { rootDirectory: input.rootDirectory }),
1929
- ...(input.transitEncryption !== undefined &&
1930
- input.transitEncryption !== null && { transitEncryption: input.transitEncryption }),
1931
- ...(input.transitEncryptionPort !== undefined &&
1932
- 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 }),
1933
1850
  };
1934
1851
  };
1935
1852
  const serializeAws_restJson1EnvironmentVariables = (input, context) => {
@@ -1944,11 +1861,10 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
1944
1861
  };
1945
1862
  const serializeAws_restJson1EvaluateOnExit = (input, context) => {
1946
1863
  return {
1947
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
1948
- ...(input.onExitCode !== undefined && input.onExitCode !== null && { onExitCode: input.onExitCode }),
1949
- ...(input.onReason !== undefined && input.onReason !== null && { onReason: input.onReason }),
1950
- ...(input.onStatusReason !== undefined &&
1951
- 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 }),
1952
1868
  };
1953
1869
  };
1954
1870
  const serializeAws_restJson1EvaluateOnExitList = (input, context) => {
@@ -1963,31 +1879,27 @@ const serializeAws_restJson1EvaluateOnExitList = (input, context) => {
1963
1879
  };
1964
1880
  const serializeAws_restJson1FairsharePolicy = (input, context) => {
1965
1881
  return {
1966
- ...(input.computeReservation !== undefined &&
1967
- input.computeReservation !== null && { computeReservation: input.computeReservation }),
1968
- ...(input.shareDecaySeconds !== undefined &&
1969
- input.shareDecaySeconds !== null && { shareDecaySeconds: input.shareDecaySeconds }),
1970
- ...(input.shareDistribution !== undefined &&
1971
- input.shareDistribution !== null && {
1882
+ ...(input.computeReservation != null && { computeReservation: input.computeReservation }),
1883
+ ...(input.shareDecaySeconds != null && { shareDecaySeconds: input.shareDecaySeconds }),
1884
+ ...(input.shareDistribution != null && {
1972
1885
  shareDistribution: serializeAws_restJson1ShareAttributesList(input.shareDistribution, context),
1973
1886
  }),
1974
1887
  };
1975
1888
  };
1976
1889
  const serializeAws_restJson1FargatePlatformConfiguration = (input, context) => {
1977
1890
  return {
1978
- ...(input.platformVersion !== undefined &&
1979
- input.platformVersion !== null && { platformVersion: input.platformVersion }),
1891
+ ...(input.platformVersion != null && { platformVersion: input.platformVersion }),
1980
1892
  };
1981
1893
  };
1982
1894
  const serializeAws_restJson1Host = (input, context) => {
1983
1895
  return {
1984
- ...(input.sourcePath !== undefined && input.sourcePath !== null && { sourcePath: input.sourcePath }),
1896
+ ...(input.sourcePath != null && { sourcePath: input.sourcePath }),
1985
1897
  };
1986
1898
  };
1987
1899
  const serializeAws_restJson1JobDependency = (input, context) => {
1988
1900
  return {
1989
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
1990
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1901
+ ...(input.jobId != null && { jobId: input.jobId }),
1902
+ ...(input.type != null && { type: input.type }),
1991
1903
  };
1992
1904
  };
1993
1905
  const serializeAws_restJson1JobDependencyList = (input, context) => {
@@ -2002,44 +1914,36 @@ const serializeAws_restJson1JobDependencyList = (input, context) => {
2002
1914
  };
2003
1915
  const serializeAws_restJson1JobTimeout = (input, context) => {
2004
1916
  return {
2005
- ...(input.attemptDurationSeconds !== undefined &&
2006
- input.attemptDurationSeconds !== null && { attemptDurationSeconds: input.attemptDurationSeconds }),
1917
+ ...(input.attemptDurationSeconds != null && { attemptDurationSeconds: input.attemptDurationSeconds }),
2007
1918
  };
2008
1919
  };
2009
1920
  const serializeAws_restJson1KeyValuePair = (input, context) => {
2010
1921
  return {
2011
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2012
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1922
+ ...(input.name != null && { name: input.name }),
1923
+ ...(input.value != null && { value: input.value }),
2013
1924
  };
2014
1925
  };
2015
1926
  const serializeAws_restJson1KeyValuesPair = (input, context) => {
2016
1927
  return {
2017
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2018
- ...(input.values !== undefined &&
2019
- 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) }),
2020
1930
  };
2021
1931
  };
2022
1932
  const serializeAws_restJson1LaunchTemplateSpecification = (input, context) => {
2023
1933
  return {
2024
- ...(input.launchTemplateId !== undefined &&
2025
- input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId }),
2026
- ...(input.launchTemplateName !== undefined &&
2027
- input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName }),
2028
- ...(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 }),
2029
1937
  };
2030
1938
  };
2031
1939
  const serializeAws_restJson1LinuxParameters = (input, context) => {
2032
1940
  return {
2033
- ...(input.devices !== undefined &&
2034
- input.devices !== null && { devices: serializeAws_restJson1DevicesList(input.devices, context) }),
2035
- ...(input.initProcessEnabled !== undefined &&
2036
- input.initProcessEnabled !== null && { initProcessEnabled: input.initProcessEnabled }),
2037
- ...(input.maxSwap !== undefined && input.maxSwap !== null && { maxSwap: input.maxSwap }),
2038
- ...(input.sharedMemorySize !== undefined &&
2039
- input.sharedMemorySize !== null && { sharedMemorySize: input.sharedMemorySize }),
2040
- ...(input.swappiness !== undefined && input.swappiness !== null && { swappiness: input.swappiness }),
2041
- ...(input.tmpfs !== undefined &&
2042
- 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) }),
2043
1947
  };
2044
1948
  };
2045
1949
  const serializeAws_restJson1ListJobsFilterList = (input, context) => {
@@ -2054,11 +1958,9 @@ const serializeAws_restJson1ListJobsFilterList = (input, context) => {
2054
1958
  };
2055
1959
  const serializeAws_restJson1LogConfiguration = (input, context) => {
2056
1960
  return {
2057
- ...(input.logDriver !== undefined && input.logDriver !== null && { logDriver: input.logDriver }),
2058
- ...(input.options !== undefined &&
2059
- input.options !== null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) }),
2060
- ...(input.secretOptions !== undefined &&
2061
- input.secretOptions !== null && {
1961
+ ...(input.logDriver != null && { logDriver: input.logDriver }),
1962
+ ...(input.options != null && { options: serializeAws_restJson1LogConfigurationOptionsMap(input.options, context) }),
1963
+ ...(input.secretOptions != null && {
2062
1964
  secretOptions: serializeAws_restJson1SecretList(input.secretOptions, context),
2063
1965
  }),
2064
1966
  };
@@ -2076,9 +1978,9 @@ const serializeAws_restJson1LogConfigurationOptionsMap = (input, context) => {
2076
1978
  };
2077
1979
  const serializeAws_restJson1MountPoint = (input, context) => {
2078
1980
  return {
2079
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
2080
- ...(input.readOnly !== undefined && input.readOnly !== null && { readOnly: input.readOnly }),
2081
- ...(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 }),
2082
1984
  };
2083
1985
  };
2084
1986
  const serializeAws_restJson1MountPoints = (input, context) => {
@@ -2093,36 +1995,32 @@ const serializeAws_restJson1MountPoints = (input, context) => {
2093
1995
  };
2094
1996
  const serializeAws_restJson1NetworkConfiguration = (input, context) => {
2095
1997
  return {
2096
- ...(input.assignPublicIp !== undefined &&
2097
- input.assignPublicIp !== null && { assignPublicIp: input.assignPublicIp }),
1998
+ ...(input.assignPublicIp != null && { assignPublicIp: input.assignPublicIp }),
2098
1999
  };
2099
2000
  };
2100
2001
  const serializeAws_restJson1NodeOverrides = (input, context) => {
2101
2002
  return {
2102
- ...(input.nodePropertyOverrides !== undefined &&
2103
- input.nodePropertyOverrides !== null && {
2003
+ ...(input.nodePropertyOverrides != null && {
2104
2004
  nodePropertyOverrides: serializeAws_restJson1NodePropertyOverrides(input.nodePropertyOverrides, context),
2105
2005
  }),
2106
- ...(input.numNodes !== undefined && input.numNodes !== null && { numNodes: input.numNodes }),
2006
+ ...(input.numNodes != null && { numNodes: input.numNodes }),
2107
2007
  };
2108
2008
  };
2109
2009
  const serializeAws_restJson1NodeProperties = (input, context) => {
2110
2010
  return {
2111
- ...(input.mainNode !== undefined && input.mainNode !== null && { mainNode: input.mainNode }),
2112
- ...(input.nodeRangeProperties !== undefined &&
2113
- input.nodeRangeProperties !== null && {
2011
+ ...(input.mainNode != null && { mainNode: input.mainNode }),
2012
+ ...(input.nodeRangeProperties != null && {
2114
2013
  nodeRangeProperties: serializeAws_restJson1NodeRangeProperties(input.nodeRangeProperties, context),
2115
2014
  }),
2116
- ...(input.numNodes !== undefined && input.numNodes !== null && { numNodes: input.numNodes }),
2015
+ ...(input.numNodes != null && { numNodes: input.numNodes }),
2117
2016
  };
2118
2017
  };
2119
2018
  const serializeAws_restJson1NodePropertyOverride = (input, context) => {
2120
2019
  return {
2121
- ...(input.containerOverrides !== undefined &&
2122
- input.containerOverrides !== null && {
2020
+ ...(input.containerOverrides != null && {
2123
2021
  containerOverrides: serializeAws_restJson1ContainerOverrides(input.containerOverrides, context),
2124
2022
  }),
2125
- ...(input.targetNodes !== undefined && input.targetNodes !== null && { targetNodes: input.targetNodes }),
2023
+ ...(input.targetNodes != null && { targetNodes: input.targetNodes }),
2126
2024
  };
2127
2025
  };
2128
2026
  const serializeAws_restJson1NodePropertyOverrides = (input, context) => {
@@ -2147,9 +2045,8 @@ const serializeAws_restJson1NodeRangeProperties = (input, context) => {
2147
2045
  };
2148
2046
  const serializeAws_restJson1NodeRangeProperty = (input, context) => {
2149
2047
  return {
2150
- ...(input.container !== undefined &&
2151
- input.container !== null && { container: serializeAws_restJson1ContainerProperties(input.container, context) }),
2152
- ...(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 }),
2153
2050
  };
2154
2051
  };
2155
2052
  const serializeAws_restJson1ParametersMap = (input, context) => {
@@ -2175,8 +2072,8 @@ const serializeAws_restJson1PlatformCapabilityList = (input, context) => {
2175
2072
  };
2176
2073
  const serializeAws_restJson1ResourceRequirement = (input, context) => {
2177
2074
  return {
2178
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2179
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
2075
+ ...(input.type != null && { type: input.type }),
2076
+ ...(input.value != null && { value: input.value }),
2180
2077
  };
2181
2078
  };
2182
2079
  const serializeAws_restJson1ResourceRequirements = (input, context) => {
@@ -2191,17 +2088,16 @@ const serializeAws_restJson1ResourceRequirements = (input, context) => {
2191
2088
  };
2192
2089
  const serializeAws_restJson1RetryStrategy = (input, context) => {
2193
2090
  return {
2194
- ...(input.attempts !== undefined && input.attempts !== null && { attempts: input.attempts }),
2195
- ...(input.evaluateOnExit !== undefined &&
2196
- input.evaluateOnExit !== null && {
2091
+ ...(input.attempts != null && { attempts: input.attempts }),
2092
+ ...(input.evaluateOnExit != null && {
2197
2093
  evaluateOnExit: serializeAws_restJson1EvaluateOnExitList(input.evaluateOnExit, context),
2198
2094
  }),
2199
2095
  };
2200
2096
  };
2201
2097
  const serializeAws_restJson1Secret = (input, context) => {
2202
2098
  return {
2203
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2204
- ...(input.valueFrom !== undefined && input.valueFrom !== null && { valueFrom: input.valueFrom }),
2099
+ ...(input.name != null && { name: input.name }),
2100
+ ...(input.valueFrom != null && { valueFrom: input.valueFrom }),
2205
2101
  };
2206
2102
  };
2207
2103
  const serializeAws_restJson1SecretList = (input, context) => {
@@ -2216,10 +2112,8 @@ const serializeAws_restJson1SecretList = (input, context) => {
2216
2112
  };
2217
2113
  const serializeAws_restJson1ShareAttributes = (input, context) => {
2218
2114
  return {
2219
- ...(input.shareIdentifier !== undefined &&
2220
- input.shareIdentifier !== null && { shareIdentifier: input.shareIdentifier }),
2221
- ...(input.weightFactor !== undefined &&
2222
- 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) }),
2223
2117
  };
2224
2118
  };
2225
2119
  const serializeAws_restJson1ShareAttributesList = (input, context) => {
@@ -2266,10 +2160,9 @@ const serializeAws_restJson1TagsMap = (input, context) => {
2266
2160
  };
2267
2161
  const serializeAws_restJson1Tmpfs = (input, context) => {
2268
2162
  return {
2269
- ...(input.containerPath !== undefined && input.containerPath !== null && { containerPath: input.containerPath }),
2270
- ...(input.mountOptions !== undefined &&
2271
- input.mountOptions !== null && { mountOptions: serializeAws_restJson1StringList(input.mountOptions, context) }),
2272
- ...(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 }),
2273
2166
  };
2274
2167
  };
2275
2168
  const serializeAws_restJson1TmpfsList = (input, context) => {
@@ -2284,9 +2177,9 @@ const serializeAws_restJson1TmpfsList = (input, context) => {
2284
2177
  };
2285
2178
  const serializeAws_restJson1Ulimit = (input, context) => {
2286
2179
  return {
2287
- ...(input.hardLimit !== undefined && input.hardLimit !== null && { hardLimit: input.hardLimit }),
2288
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2289
- ...(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 }),
2290
2183
  };
2291
2184
  };
2292
2185
  const serializeAws_restJson1Ulimits = (input, context) => {
@@ -2301,20 +2194,17 @@ const serializeAws_restJson1Ulimits = (input, context) => {
2301
2194
  };
2302
2195
  const serializeAws_restJson1UpdatePolicy = (input, context) => {
2303
2196
  return {
2304
- ...(input.jobExecutionTimeoutMinutes !== undefined &&
2305
- input.jobExecutionTimeoutMinutes !== null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes }),
2306
- ...(input.terminateJobsOnUpdate !== undefined &&
2307
- input.terminateJobsOnUpdate !== null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }),
2197
+ ...(input.jobExecutionTimeoutMinutes != null && { jobExecutionTimeoutMinutes: input.jobExecutionTimeoutMinutes }),
2198
+ ...(input.terminateJobsOnUpdate != null && { terminateJobsOnUpdate: input.terminateJobsOnUpdate }),
2308
2199
  };
2309
2200
  };
2310
2201
  const serializeAws_restJson1Volume = (input, context) => {
2311
2202
  return {
2312
- ...(input.efsVolumeConfiguration !== undefined &&
2313
- input.efsVolumeConfiguration !== null && {
2203
+ ...(input.efsVolumeConfiguration != null && {
2314
2204
  efsVolumeConfiguration: serializeAws_restJson1EFSVolumeConfiguration(input.efsVolumeConfiguration, context),
2315
2205
  }),
2316
- ...(input.host !== undefined && input.host !== null && { host: serializeAws_restJson1Host(input.host, context) }),
2317
- ...(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 }),
2318
2208
  };
2319
2209
  };
2320
2210
  const serializeAws_restJson1Volumes = (input, context) => {
@@ -2342,7 +2232,7 @@ const deserializeAws_restJson1ArrayPropertiesDetail = (output, context) => {
2342
2232
  return {
2343
2233
  index: (0, smithy_client_1.expectInt32)(output.index),
2344
2234
  size: (0, smithy_client_1.expectInt32)(output.size),
2345
- statusSummary: output.statusSummary !== undefined && output.statusSummary !== null
2235
+ statusSummary: output.statusSummary != null
2346
2236
  ? deserializeAws_restJson1ArrayJobStatusSummary(output.statusSummary, context)
2347
2237
  : undefined,
2348
2238
  };
@@ -2358,7 +2248,7 @@ const deserializeAws_restJson1AttemptContainerDetail = (output, context) => {
2358
2248
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
2359
2249
  exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
2360
2250
  logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
2361
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
2251
+ networkInterfaces: output.networkInterfaces != null
2362
2252
  ? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
2363
2253
  : undefined,
2364
2254
  reason: (0, smithy_client_1.expectString)(output.reason),
@@ -2367,9 +2257,7 @@ const deserializeAws_restJson1AttemptContainerDetail = (output, context) => {
2367
2257
  };
2368
2258
  const deserializeAws_restJson1AttemptDetail = (output, context) => {
2369
2259
  return {
2370
- container: output.container !== undefined && output.container !== null
2371
- ? deserializeAws_restJson1AttemptContainerDetail(output.container, context)
2372
- : undefined,
2260
+ container: output.container != null ? deserializeAws_restJson1AttemptContainerDetail(output.container, context) : undefined,
2373
2261
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
2374
2262
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2375
2263
  stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
@@ -2390,7 +2278,7 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
2390
2278
  return {
2391
2279
  computeEnvironmentArn: (0, smithy_client_1.expectString)(output.computeEnvironmentArn),
2392
2280
  computeEnvironmentName: (0, smithy_client_1.expectString)(output.computeEnvironmentName),
2393
- computeResources: output.computeResources !== undefined && output.computeResources !== null
2281
+ computeResources: output.computeResources != null
2394
2282
  ? deserializeAws_restJson1ComputeResource(output.computeResources, context)
2395
2283
  : undefined,
2396
2284
  ecsClusterArn: (0, smithy_client_1.expectString)(output.ecsClusterArn),
@@ -2398,14 +2286,10 @@ const deserializeAws_restJson1ComputeEnvironmentDetail = (output, context) => {
2398
2286
  state: (0, smithy_client_1.expectString)(output.state),
2399
2287
  status: (0, smithy_client_1.expectString)(output.status),
2400
2288
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2401
- tags: output.tags !== undefined && output.tags !== null
2402
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2403
- : undefined,
2289
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2404
2290
  type: (0, smithy_client_1.expectString)(output.type),
2405
2291
  unmanagedvCpus: (0, smithy_client_1.expectInt32)(output.unmanagedvCpus),
2406
- updatePolicy: output.updatePolicy !== undefined && output.updatePolicy !== null
2407
- ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context)
2408
- : undefined,
2292
+ updatePolicy: output.updatePolicy != null ? deserializeAws_restJson1UpdatePolicy(output.updatePolicy, context) : undefined,
2409
2293
  };
2410
2294
  };
2411
2295
  const deserializeAws_restJson1ComputeEnvironmentDetailList = (output, context) => {
@@ -2441,132 +2325,106 @@ const deserializeAws_restJson1ComputeResource = (output, context) => {
2441
2325
  allocationStrategy: (0, smithy_client_1.expectString)(output.allocationStrategy),
2442
2326
  bidPercentage: (0, smithy_client_1.expectInt32)(output.bidPercentage),
2443
2327
  desiredvCpus: (0, smithy_client_1.expectInt32)(output.desiredvCpus),
2444
- ec2Configuration: output.ec2Configuration !== undefined && output.ec2Configuration !== null
2328
+ ec2Configuration: output.ec2Configuration != null
2445
2329
  ? deserializeAws_restJson1Ec2ConfigurationList(output.ec2Configuration, context)
2446
2330
  : undefined,
2447
2331
  ec2KeyPair: (0, smithy_client_1.expectString)(output.ec2KeyPair),
2448
2332
  imageId: (0, smithy_client_1.expectString)(output.imageId),
2449
2333
  instanceRole: (0, smithy_client_1.expectString)(output.instanceRole),
2450
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
2451
- ? deserializeAws_restJson1StringList(output.instanceTypes, context)
2452
- : undefined,
2453
- launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
2334
+ instanceTypes: output.instanceTypes != null ? deserializeAws_restJson1StringList(output.instanceTypes, context) : undefined,
2335
+ launchTemplate: output.launchTemplate != null
2454
2336
  ? deserializeAws_restJson1LaunchTemplateSpecification(output.launchTemplate, context)
2455
2337
  : undefined,
2456
2338
  maxvCpus: (0, smithy_client_1.expectInt32)(output.maxvCpus),
2457
2339
  minvCpus: (0, smithy_client_1.expectInt32)(output.minvCpus),
2458
2340
  placementGroup: (0, smithy_client_1.expectString)(output.placementGroup),
2459
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
2341
+ securityGroupIds: output.securityGroupIds != null
2460
2342
  ? deserializeAws_restJson1StringList(output.securityGroupIds, context)
2461
2343
  : undefined,
2462
2344
  spotIamFleetRole: (0, smithy_client_1.expectString)(output.spotIamFleetRole),
2463
- subnets: output.subnets !== undefined && output.subnets !== null
2464
- ? deserializeAws_restJson1StringList(output.subnets, context)
2465
- : undefined,
2466
- tags: output.tags !== undefined && output.tags !== null
2467
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2468
- : undefined,
2345
+ subnets: output.subnets != null ? deserializeAws_restJson1StringList(output.subnets, context) : undefined,
2346
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2469
2347
  type: (0, smithy_client_1.expectString)(output.type),
2470
2348
  };
2471
2349
  };
2472
2350
  const deserializeAws_restJson1ContainerDetail = (output, context) => {
2473
2351
  return {
2474
- command: output.command !== undefined && output.command !== null
2475
- ? deserializeAws_restJson1StringList(output.command, context)
2476
- : undefined,
2352
+ command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
2477
2353
  containerInstanceArn: (0, smithy_client_1.expectString)(output.containerInstanceArn),
2478
- environment: output.environment !== undefined && output.environment !== null
2354
+ environment: output.environment != null
2479
2355
  ? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
2480
2356
  : undefined,
2481
2357
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
2482
2358
  exitCode: (0, smithy_client_1.expectInt32)(output.exitCode),
2483
- fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null
2359
+ fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
2484
2360
  ? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
2485
2361
  : undefined,
2486
2362
  image: (0, smithy_client_1.expectString)(output.image),
2487
2363
  instanceType: (0, smithy_client_1.expectString)(output.instanceType),
2488
2364
  jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
2489
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
2365
+ linuxParameters: output.linuxParameters != null
2490
2366
  ? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
2491
2367
  : undefined,
2492
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
2368
+ logConfiguration: output.logConfiguration != null
2493
2369
  ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
2494
2370
  : undefined,
2495
2371
  logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
2496
2372
  memory: (0, smithy_client_1.expectInt32)(output.memory),
2497
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
2498
- ? deserializeAws_restJson1MountPoints(output.mountPoints, context)
2499
- : undefined,
2500
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
2373
+ mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
2374
+ networkConfiguration: output.networkConfiguration != null
2501
2375
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
2502
2376
  : undefined,
2503
- networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
2377
+ networkInterfaces: output.networkInterfaces != null
2504
2378
  ? deserializeAws_restJson1NetworkInterfaceList(output.networkInterfaces, context)
2505
2379
  : undefined,
2506
2380
  privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
2507
2381
  readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
2508
2382
  reason: (0, smithy_client_1.expectString)(output.reason),
2509
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
2383
+ resourceRequirements: output.resourceRequirements != null
2510
2384
  ? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
2511
2385
  : undefined,
2512
- secrets: output.secrets !== undefined && output.secrets !== null
2513
- ? deserializeAws_restJson1SecretList(output.secrets, context)
2514
- : undefined,
2386
+ secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
2515
2387
  taskArn: (0, smithy_client_1.expectString)(output.taskArn),
2516
- ulimits: output.ulimits !== undefined && output.ulimits !== null
2517
- ? deserializeAws_restJson1Ulimits(output.ulimits, context)
2518
- : undefined,
2388
+ ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
2519
2389
  user: (0, smithy_client_1.expectString)(output.user),
2520
2390
  vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
2521
- volumes: output.volumes !== undefined && output.volumes !== null
2522
- ? deserializeAws_restJson1Volumes(output.volumes, context)
2523
- : undefined,
2391
+ volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
2524
2392
  };
2525
2393
  };
2526
2394
  const deserializeAws_restJson1ContainerProperties = (output, context) => {
2527
2395
  return {
2528
- command: output.command !== undefined && output.command !== null
2529
- ? deserializeAws_restJson1StringList(output.command, context)
2530
- : undefined,
2531
- environment: output.environment !== undefined && output.environment !== null
2396
+ command: output.command != null ? deserializeAws_restJson1StringList(output.command, context) : undefined,
2397
+ environment: output.environment != null
2532
2398
  ? deserializeAws_restJson1EnvironmentVariables(output.environment, context)
2533
2399
  : undefined,
2534
2400
  executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
2535
- fargatePlatformConfiguration: output.fargatePlatformConfiguration !== undefined && output.fargatePlatformConfiguration !== null
2401
+ fargatePlatformConfiguration: output.fargatePlatformConfiguration != null
2536
2402
  ? deserializeAws_restJson1FargatePlatformConfiguration(output.fargatePlatformConfiguration, context)
2537
2403
  : undefined,
2538
2404
  image: (0, smithy_client_1.expectString)(output.image),
2539
2405
  instanceType: (0, smithy_client_1.expectString)(output.instanceType),
2540
2406
  jobRoleArn: (0, smithy_client_1.expectString)(output.jobRoleArn),
2541
- linuxParameters: output.linuxParameters !== undefined && output.linuxParameters !== null
2407
+ linuxParameters: output.linuxParameters != null
2542
2408
  ? deserializeAws_restJson1LinuxParameters(output.linuxParameters, context)
2543
2409
  : undefined,
2544
- logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
2410
+ logConfiguration: output.logConfiguration != null
2545
2411
  ? deserializeAws_restJson1LogConfiguration(output.logConfiguration, context)
2546
2412
  : undefined,
2547
2413
  memory: (0, smithy_client_1.expectInt32)(output.memory),
2548
- mountPoints: output.mountPoints !== undefined && output.mountPoints !== null
2549
- ? deserializeAws_restJson1MountPoints(output.mountPoints, context)
2550
- : undefined,
2551
- networkConfiguration: output.networkConfiguration !== undefined && output.networkConfiguration !== null
2414
+ mountPoints: output.mountPoints != null ? deserializeAws_restJson1MountPoints(output.mountPoints, context) : undefined,
2415
+ networkConfiguration: output.networkConfiguration != null
2552
2416
  ? deserializeAws_restJson1NetworkConfiguration(output.networkConfiguration, context)
2553
2417
  : undefined,
2554
2418
  privileged: (0, smithy_client_1.expectBoolean)(output.privileged),
2555
2419
  readonlyRootFilesystem: (0, smithy_client_1.expectBoolean)(output.readonlyRootFilesystem),
2556
- resourceRequirements: output.resourceRequirements !== undefined && output.resourceRequirements !== null
2420
+ resourceRequirements: output.resourceRequirements != null
2557
2421
  ? deserializeAws_restJson1ResourceRequirements(output.resourceRequirements, context)
2558
2422
  : undefined,
2559
- secrets: output.secrets !== undefined && output.secrets !== null
2560
- ? deserializeAws_restJson1SecretList(output.secrets, context)
2561
- : undefined,
2562
- ulimits: output.ulimits !== undefined && output.ulimits !== null
2563
- ? deserializeAws_restJson1Ulimits(output.ulimits, context)
2564
- : undefined,
2423
+ secrets: output.secrets != null ? deserializeAws_restJson1SecretList(output.secrets, context) : undefined,
2424
+ ulimits: output.ulimits != null ? deserializeAws_restJson1Ulimits(output.ulimits, context) : undefined,
2565
2425
  user: (0, smithy_client_1.expectString)(output.user),
2566
2426
  vcpus: (0, smithy_client_1.expectInt32)(output.vcpus),
2567
- volumes: output.volumes !== undefined && output.volumes !== null
2568
- ? deserializeAws_restJson1Volumes(output.volumes, context)
2569
- : undefined,
2427
+ volumes: output.volumes != null ? deserializeAws_restJson1Volumes(output.volumes, context) : undefined,
2570
2428
  };
2571
2429
  };
2572
2430
  const deserializeAws_restJson1ContainerSummary = (output, context) => {
@@ -2579,7 +2437,7 @@ const deserializeAws_restJson1Device = (output, context) => {
2579
2437
  return {
2580
2438
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
2581
2439
  hostPath: (0, smithy_client_1.expectString)(output.hostPath),
2582
- permissions: output.permissions !== undefined && output.permissions !== null
2440
+ permissions: output.permissions != null
2583
2441
  ? deserializeAws_restJson1DeviceCgroupPermissions(output.permissions, context)
2584
2442
  : undefined,
2585
2443
  };
@@ -2631,7 +2489,7 @@ const deserializeAws_restJson1EFSAuthorizationConfig = (output, context) => {
2631
2489
  };
2632
2490
  const deserializeAws_restJson1EFSVolumeConfiguration = (output, context) => {
2633
2491
  return {
2634
- authorizationConfig: output.authorizationConfig !== undefined && output.authorizationConfig !== null
2492
+ authorizationConfig: output.authorizationConfig != null
2635
2493
  ? deserializeAws_restJson1EFSAuthorizationConfig(output.authorizationConfig, context)
2636
2494
  : undefined,
2637
2495
  fileSystemId: (0, smithy_client_1.expectString)(output.fileSystemId),
@@ -2674,7 +2532,7 @@ const deserializeAws_restJson1FairsharePolicy = (output, context) => {
2674
2532
  return {
2675
2533
  computeReservation: (0, smithy_client_1.expectInt32)(output.computeReservation),
2676
2534
  shareDecaySeconds: (0, smithy_client_1.expectInt32)(output.shareDecaySeconds),
2677
- shareDistribution: output.shareDistribution !== undefined && output.shareDistribution !== null
2535
+ shareDistribution: output.shareDistribution != null
2678
2536
  ? deserializeAws_restJson1ShareAttributesList(output.shareDistribution, context)
2679
2537
  : undefined,
2680
2538
  };
@@ -2691,33 +2549,25 @@ const deserializeAws_restJson1Host = (output, context) => {
2691
2549
  };
2692
2550
  const deserializeAws_restJson1JobDefinition = (output, context) => {
2693
2551
  return {
2694
- containerProperties: output.containerProperties !== undefined && output.containerProperties !== null
2552
+ containerProperties: output.containerProperties != null
2695
2553
  ? deserializeAws_restJson1ContainerProperties(output.containerProperties, context)
2696
2554
  : undefined,
2697
2555
  jobDefinitionArn: (0, smithy_client_1.expectString)(output.jobDefinitionArn),
2698
2556
  jobDefinitionName: (0, smithy_client_1.expectString)(output.jobDefinitionName),
2699
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2557
+ nodeProperties: output.nodeProperties != null
2700
2558
  ? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
2701
2559
  : undefined,
2702
- parameters: output.parameters !== undefined && output.parameters !== null
2703
- ? deserializeAws_restJson1ParametersMap(output.parameters, context)
2704
- : undefined,
2705
- platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
2560
+ parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
2561
+ platformCapabilities: output.platformCapabilities != null
2706
2562
  ? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
2707
2563
  : undefined,
2708
2564
  propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
2709
- retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
2710
- ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2711
- : undefined,
2565
+ retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
2712
2566
  revision: (0, smithy_client_1.expectInt32)(output.revision),
2713
2567
  schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
2714
2568
  status: (0, smithy_client_1.expectString)(output.status),
2715
- tags: output.tags !== undefined && output.tags !== null
2716
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2717
- : undefined,
2718
- timeout: output.timeout !== undefined && output.timeout !== null
2719
- ? deserializeAws_restJson1JobTimeout(output.timeout, context)
2720
- : undefined,
2569
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2570
+ timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
2721
2571
  type: (0, smithy_client_1.expectString)(output.type),
2722
2572
  };
2723
2573
  };
@@ -2751,52 +2601,36 @@ const deserializeAws_restJson1JobDependencyList = (output, context) => {
2751
2601
  };
2752
2602
  const deserializeAws_restJson1JobDetail = (output, context) => {
2753
2603
  return {
2754
- arrayProperties: output.arrayProperties !== undefined && output.arrayProperties !== null
2604
+ arrayProperties: output.arrayProperties != null
2755
2605
  ? deserializeAws_restJson1ArrayPropertiesDetail(output.arrayProperties, context)
2756
2606
  : undefined,
2757
- attempts: output.attempts !== undefined && output.attempts !== null
2758
- ? deserializeAws_restJson1AttemptDetails(output.attempts, context)
2759
- : undefined,
2760
- container: output.container !== undefined && output.container !== null
2761
- ? deserializeAws_restJson1ContainerDetail(output.container, context)
2762
- : undefined,
2607
+ attempts: output.attempts != null ? deserializeAws_restJson1AttemptDetails(output.attempts, context) : undefined,
2608
+ container: output.container != null ? deserializeAws_restJson1ContainerDetail(output.container, context) : undefined,
2763
2609
  createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
2764
- dependsOn: output.dependsOn !== undefined && output.dependsOn !== null
2765
- ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context)
2766
- : undefined,
2610
+ dependsOn: output.dependsOn != null ? deserializeAws_restJson1JobDependencyList(output.dependsOn, context) : undefined,
2767
2611
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
2768
2612
  jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
2769
2613
  jobId: (0, smithy_client_1.expectString)(output.jobId),
2770
2614
  jobName: (0, smithy_client_1.expectString)(output.jobName),
2771
2615
  jobQueue: (0, smithy_client_1.expectString)(output.jobQueue),
2772
- nodeDetails: output.nodeDetails !== undefined && output.nodeDetails !== null
2773
- ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context)
2774
- : undefined,
2775
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2616
+ nodeDetails: output.nodeDetails != null ? deserializeAws_restJson1NodeDetails(output.nodeDetails, context) : undefined,
2617
+ nodeProperties: output.nodeProperties != null
2776
2618
  ? deserializeAws_restJson1NodeProperties(output.nodeProperties, context)
2777
2619
  : undefined,
2778
- parameters: output.parameters !== undefined && output.parameters !== null
2779
- ? deserializeAws_restJson1ParametersMap(output.parameters, context)
2780
- : undefined,
2781
- platformCapabilities: output.platformCapabilities !== undefined && output.platformCapabilities !== null
2620
+ parameters: output.parameters != null ? deserializeAws_restJson1ParametersMap(output.parameters, context) : undefined,
2621
+ platformCapabilities: output.platformCapabilities != null
2782
2622
  ? deserializeAws_restJson1PlatformCapabilityList(output.platformCapabilities, context)
2783
2623
  : undefined,
2784
2624
  propagateTags: (0, smithy_client_1.expectBoolean)(output.propagateTags),
2785
- retryStrategy: output.retryStrategy !== undefined && output.retryStrategy !== null
2786
- ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context)
2787
- : undefined,
2625
+ retryStrategy: output.retryStrategy != null ? deserializeAws_restJson1RetryStrategy(output.retryStrategy, context) : undefined,
2788
2626
  schedulingPriority: (0, smithy_client_1.expectInt32)(output.schedulingPriority),
2789
2627
  shareIdentifier: (0, smithy_client_1.expectString)(output.shareIdentifier),
2790
2628
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
2791
2629
  status: (0, smithy_client_1.expectString)(output.status),
2792
2630
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2793
2631
  stoppedAt: (0, smithy_client_1.expectLong)(output.stoppedAt),
2794
- tags: output.tags !== undefined && output.tags !== null
2795
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2796
- : undefined,
2797
- timeout: output.timeout !== undefined && output.timeout !== null
2798
- ? deserializeAws_restJson1JobTimeout(output.timeout, context)
2799
- : undefined,
2632
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2633
+ timeout: output.timeout != null ? deserializeAws_restJson1JobTimeout(output.timeout, context) : undefined,
2800
2634
  };
2801
2635
  };
2802
2636
  const deserializeAws_restJson1JobDetailList = (output, context) => {
@@ -2812,7 +2646,7 @@ const deserializeAws_restJson1JobDetailList = (output, context) => {
2812
2646
  };
2813
2647
  const deserializeAws_restJson1JobQueueDetail = (output, context) => {
2814
2648
  return {
2815
- computeEnvironmentOrder: output.computeEnvironmentOrder !== undefined && output.computeEnvironmentOrder !== null
2649
+ computeEnvironmentOrder: output.computeEnvironmentOrder != null
2816
2650
  ? deserializeAws_restJson1ComputeEnvironmentOrders(output.computeEnvironmentOrder, context)
2817
2651
  : undefined,
2818
2652
  jobQueueArn: (0, smithy_client_1.expectString)(output.jobQueueArn),
@@ -2822,9 +2656,7 @@ const deserializeAws_restJson1JobQueueDetail = (output, context) => {
2822
2656
  state: (0, smithy_client_1.expectString)(output.state),
2823
2657
  status: (0, smithy_client_1.expectString)(output.status),
2824
2658
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
2825
- tags: output.tags !== undefined && output.tags !== null
2826
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
2827
- : undefined,
2659
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
2828
2660
  };
2829
2661
  };
2830
2662
  const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
@@ -2840,18 +2672,16 @@ const deserializeAws_restJson1JobQueueDetailList = (output, context) => {
2840
2672
  };
2841
2673
  const deserializeAws_restJson1JobSummary = (output, context) => {
2842
2674
  return {
2843
- arrayProperties: output.arrayProperties !== undefined && output.arrayProperties !== null
2675
+ arrayProperties: output.arrayProperties != null
2844
2676
  ? deserializeAws_restJson1ArrayPropertiesSummary(output.arrayProperties, context)
2845
2677
  : undefined,
2846
- container: output.container !== undefined && output.container !== null
2847
- ? deserializeAws_restJson1ContainerSummary(output.container, context)
2848
- : undefined,
2678
+ container: output.container != null ? deserializeAws_restJson1ContainerSummary(output.container, context) : undefined,
2849
2679
  createdAt: (0, smithy_client_1.expectLong)(output.createdAt),
2850
2680
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
2851
2681
  jobDefinition: (0, smithy_client_1.expectString)(output.jobDefinition),
2852
2682
  jobId: (0, smithy_client_1.expectString)(output.jobId),
2853
2683
  jobName: (0, smithy_client_1.expectString)(output.jobName),
2854
- nodeProperties: output.nodeProperties !== undefined && output.nodeProperties !== null
2684
+ nodeProperties: output.nodeProperties != null
2855
2685
  ? deserializeAws_restJson1NodePropertiesSummary(output.nodeProperties, context)
2856
2686
  : undefined,
2857
2687
  startedAt: (0, smithy_client_1.expectLong)(output.startedAt),
@@ -2891,27 +2721,19 @@ const deserializeAws_restJson1LaunchTemplateSpecification = (output, context) =>
2891
2721
  };
2892
2722
  const deserializeAws_restJson1LinuxParameters = (output, context) => {
2893
2723
  return {
2894
- devices: output.devices !== undefined && output.devices !== null
2895
- ? deserializeAws_restJson1DevicesList(output.devices, context)
2896
- : undefined,
2724
+ devices: output.devices != null ? deserializeAws_restJson1DevicesList(output.devices, context) : undefined,
2897
2725
  initProcessEnabled: (0, smithy_client_1.expectBoolean)(output.initProcessEnabled),
2898
2726
  maxSwap: (0, smithy_client_1.expectInt32)(output.maxSwap),
2899
2727
  sharedMemorySize: (0, smithy_client_1.expectInt32)(output.sharedMemorySize),
2900
2728
  swappiness: (0, smithy_client_1.expectInt32)(output.swappiness),
2901
- tmpfs: output.tmpfs !== undefined && output.tmpfs !== null
2902
- ? deserializeAws_restJson1TmpfsList(output.tmpfs, context)
2903
- : undefined,
2729
+ tmpfs: output.tmpfs != null ? deserializeAws_restJson1TmpfsList(output.tmpfs, context) : undefined,
2904
2730
  };
2905
2731
  };
2906
2732
  const deserializeAws_restJson1LogConfiguration = (output, context) => {
2907
2733
  return {
2908
2734
  logDriver: (0, smithy_client_1.expectString)(output.logDriver),
2909
- options: output.options !== undefined && output.options !== null
2910
- ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context)
2911
- : undefined,
2912
- secretOptions: output.secretOptions !== undefined && output.secretOptions !== null
2913
- ? deserializeAws_restJson1SecretList(output.secretOptions, context)
2914
- : undefined,
2735
+ options: output.options != null ? deserializeAws_restJson1LogConfigurationOptionsMap(output.options, context) : undefined,
2736
+ secretOptions: output.secretOptions != null ? deserializeAws_restJson1SecretList(output.secretOptions, context) : undefined,
2915
2737
  };
2916
2738
  };
2917
2739
  const deserializeAws_restJson1LogConfigurationOptionsMap = (output, context) => {
@@ -2975,7 +2797,7 @@ const deserializeAws_restJson1NodeDetails = (output, context) => {
2975
2797
  const deserializeAws_restJson1NodeProperties = (output, context) => {
2976
2798
  return {
2977
2799
  mainNode: (0, smithy_client_1.expectInt32)(output.mainNode),
2978
- nodeRangeProperties: output.nodeRangeProperties !== undefined && output.nodeRangeProperties !== null
2800
+ nodeRangeProperties: output.nodeRangeProperties != null
2979
2801
  ? deserializeAws_restJson1NodeRangeProperties(output.nodeRangeProperties, context)
2980
2802
  : undefined,
2981
2803
  numNodes: (0, smithy_client_1.expectInt32)(output.numNodes),
@@ -3001,9 +2823,7 @@ const deserializeAws_restJson1NodeRangeProperties = (output, context) => {
3001
2823
  };
3002
2824
  const deserializeAws_restJson1NodeRangeProperty = (output, context) => {
3003
2825
  return {
3004
- container: output.container !== undefined && output.container !== null
3005
- ? deserializeAws_restJson1ContainerProperties(output.container, context)
3006
- : undefined,
2826
+ container: output.container != null ? deserializeAws_restJson1ContainerProperties(output.container, context) : undefined,
3007
2827
  targetNodes: (0, smithy_client_1.expectString)(output.targetNodes),
3008
2828
  };
3009
2829
  };
@@ -3049,7 +2869,7 @@ const deserializeAws_restJson1ResourceRequirements = (output, context) => {
3049
2869
  const deserializeAws_restJson1RetryStrategy = (output, context) => {
3050
2870
  return {
3051
2871
  attempts: (0, smithy_client_1.expectInt32)(output.attempts),
3052
- evaluateOnExit: output.evaluateOnExit !== undefined && output.evaluateOnExit !== null
2872
+ evaluateOnExit: output.evaluateOnExit != null
3053
2873
  ? deserializeAws_restJson1EvaluateOnExitList(output.evaluateOnExit, context)
3054
2874
  : undefined,
3055
2875
  };
@@ -3057,13 +2877,11 @@ const deserializeAws_restJson1RetryStrategy = (output, context) => {
3057
2877
  const deserializeAws_restJson1SchedulingPolicyDetail = (output, context) => {
3058
2878
  return {
3059
2879
  arn: (0, smithy_client_1.expectString)(output.arn),
3060
- fairsharePolicy: output.fairsharePolicy !== undefined && output.fairsharePolicy !== null
2880
+ fairsharePolicy: output.fairsharePolicy != null
3061
2881
  ? deserializeAws_restJson1FairsharePolicy(output.fairsharePolicy, context)
3062
2882
  : undefined,
3063
2883
  name: (0, smithy_client_1.expectString)(output.name),
3064
- tags: output.tags !== undefined && output.tags !== null
3065
- ? deserializeAws_restJson1TagrisTagsMap(output.tags, context)
3066
- : undefined,
2884
+ tags: output.tags != null ? deserializeAws_restJson1TagrisTagsMap(output.tags, context) : undefined,
3067
2885
  };
3068
2886
  };
3069
2887
  const deserializeAws_restJson1SchedulingPolicyDetailList = (output, context) => {
@@ -3163,9 +2981,7 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
3163
2981
  const deserializeAws_restJson1Tmpfs = (output, context) => {
3164
2982
  return {
3165
2983
  containerPath: (0, smithy_client_1.expectString)(output.containerPath),
3166
- mountOptions: output.mountOptions !== undefined && output.mountOptions !== null
3167
- ? deserializeAws_restJson1StringList(output.mountOptions, context)
3168
- : undefined,
2984
+ mountOptions: output.mountOptions != null ? deserializeAws_restJson1StringList(output.mountOptions, context) : undefined,
3169
2985
  size: (0, smithy_client_1.expectInt32)(output.size),
3170
2986
  };
3171
2987
  };
@@ -3206,12 +3022,10 @@ const deserializeAws_restJson1UpdatePolicy = (output, context) => {
3206
3022
  };
3207
3023
  const deserializeAws_restJson1Volume = (output, context) => {
3208
3024
  return {
3209
- efsVolumeConfiguration: output.efsVolumeConfiguration !== undefined && output.efsVolumeConfiguration !== null
3025
+ efsVolumeConfiguration: output.efsVolumeConfiguration != null
3210
3026
  ? deserializeAws_restJson1EFSVolumeConfiguration(output.efsVolumeConfiguration, context)
3211
3027
  : undefined,
3212
- host: output.host !== undefined && output.host !== null
3213
- ? deserializeAws_restJson1Host(output.host, context)
3214
- : undefined,
3028
+ host: output.host != null ? deserializeAws_restJson1Host(output.host, context) : undefined,
3215
3029
  name: (0, smithy_client_1.expectString)(output.name),
3216
3030
  };
3217
3031
  };