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