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