@aws-sdk/client-emr-containers 3.312.0 → 3.316.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.
@@ -32,13 +32,13 @@ const se_CreateJobTemplateCommand = async (input, context) => {
32
32
  };
33
33
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
34
34
  let body;
35
- body = JSON.stringify({
36
- clientToken: input.clientToken ?? (0, uuid_1.v4)(),
37
- ...(input.jobTemplateData != null && { jobTemplateData: se_JobTemplateData(input.jobTemplateData, context) }),
38
- ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
39
- ...(input.name != null && { name: input.name }),
40
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
41
- });
35
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
36
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
37
+ jobTemplateData: (_) => se_JobTemplateData(_, context),
38
+ kmsKeyArn: [],
39
+ name: [],
40
+ tags: (_) => (0, smithy_client_1._json)(_),
41
+ }));
42
42
  return new protocol_http_1.HttpRequest({
43
43
  protocol,
44
44
  hostname,
@@ -59,18 +59,16 @@ const se_CreateManagedEndpointCommand = async (input, context) => {
59
59
  "/virtualclusters/{virtualClusterId}/endpoints";
60
60
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
61
61
  let body;
62
- body = JSON.stringify({
63
- ...(input.certificateArn != null && { certificateArn: input.certificateArn }),
64
- clientToken: input.clientToken ?? (0, uuid_1.v4)(),
65
- ...(input.configurationOverrides != null && {
66
- configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
67
- }),
68
- ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
69
- ...(input.name != null && { name: input.name }),
70
- ...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
71
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
72
- ...(input.type != null && { type: input.type }),
73
- });
62
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
63
+ certificateArn: [],
64
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
65
+ configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
66
+ executionRoleArn: [],
67
+ name: [],
68
+ releaseLabel: [],
69
+ tags: (_) => (0, smithy_client_1._json)(_),
70
+ type: [],
71
+ }));
74
72
  return new protocol_http_1.HttpRequest({
75
73
  protocol,
76
74
  hostname,
@@ -89,14 +87,12 @@ const se_CreateVirtualClusterCommand = async (input, context) => {
89
87
  };
90
88
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
91
89
  let body;
92
- body = JSON.stringify({
93
- clientToken: input.clientToken ?? (0, uuid_1.v4)(),
94
- ...(input.containerProvider != null && {
95
- containerProvider: se_ContainerProvider(input.containerProvider, context),
96
- }),
97
- ...(input.name != null && { name: input.name }),
98
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
99
- });
90
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
91
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
92
+ containerProvider: (_) => (0, smithy_client_1._json)(_),
93
+ name: [],
94
+ tags: (_) => (0, smithy_client_1._json)(_),
95
+ }));
100
96
  return new protocol_http_1.HttpRequest({
101
97
  protocol,
102
98
  hostname,
@@ -239,7 +235,7 @@ const se_ListJobRunsCommand = async (input, context) => {
239
235
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
240
236
  "/virtualclusters/{virtualClusterId}/jobruns";
241
237
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
242
- const query = map({
238
+ const query = (0, smithy_client_1.map)({
243
239
  createdBefore: [
244
240
  () => input.createdBefore !== void 0,
245
241
  () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
@@ -270,7 +266,7 @@ const se_ListJobTemplatesCommand = async (input, context) => {
270
266
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
271
267
  const headers = {};
272
268
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/jobtemplates";
273
- const query = map({
269
+ const query = (0, smithy_client_1.map)({
274
270
  createdAfter: [
275
271
  () => input.createdAfter !== void 0,
276
272
  () => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
@@ -301,7 +297,7 @@ const se_ListManagedEndpointsCommand = async (input, context) => {
301
297
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
302
298
  "/virtualclusters/{virtualClusterId}/endpoints";
303
299
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
304
- const query = map({
300
+ const query = (0, smithy_client_1.map)({
305
301
  createdBefore: [
306
302
  () => input.createdBefore !== void 0,
307
303
  () => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
@@ -349,7 +345,7 @@ const se_ListVirtualClustersCommand = async (input, context) => {
349
345
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
350
346
  const headers = {};
351
347
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/virtualclusters";
352
- const query = map({
348
+ const query = (0, smithy_client_1.map)({
353
349
  containerProviderId: [, input.containerProviderId],
354
350
  containerProviderType: [, input.containerProviderType],
355
351
  createdAfter: [
@@ -386,24 +382,18 @@ const se_StartJobRunCommand = async (input, context) => {
386
382
  "/virtualclusters/{virtualClusterId}/jobruns";
387
383
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
388
384
  let body;
389
- body = JSON.stringify({
390
- clientToken: input.clientToken ?? (0, uuid_1.v4)(),
391
- ...(input.configurationOverrides != null && {
392
- configurationOverrides: se_ConfigurationOverrides(input.configurationOverrides, context),
393
- }),
394
- ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
395
- ...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
396
- ...(input.jobTemplateId != null && { jobTemplateId: input.jobTemplateId }),
397
- ...(input.jobTemplateParameters != null && {
398
- jobTemplateParameters: se_TemplateParameterInputMap(input.jobTemplateParameters, context),
399
- }),
400
- ...(input.name != null && { name: input.name }),
401
- ...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
402
- ...(input.retryPolicyConfiguration != null && {
403
- retryPolicyConfiguration: se_RetryPolicyConfiguration(input.retryPolicyConfiguration, context),
404
- }),
405
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
406
- });
385
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
386
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
387
+ configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
388
+ executionRoleArn: [],
389
+ jobDriver: (_) => (0, smithy_client_1._json)(_),
390
+ jobTemplateId: [],
391
+ jobTemplateParameters: (_) => (0, smithy_client_1._json)(_),
392
+ name: [],
393
+ releaseLabel: [],
394
+ retryPolicyConfiguration: (_) => (0, smithy_client_1._json)(_),
395
+ tags: (_) => (0, smithy_client_1._json)(_),
396
+ }));
407
397
  return new protocol_http_1.HttpRequest({
408
398
  protocol,
409
399
  hostname,
@@ -423,9 +413,9 @@ const se_TagResourceCommand = async (input, context) => {
423
413
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
424
414
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
425
415
  let body;
426
- body = JSON.stringify({
427
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
428
- });
416
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
417
+ tags: (_) => (0, smithy_client_1._json)(_),
418
+ }));
429
419
  return new protocol_http_1.HttpRequest({
430
420
  protocol,
431
421
  hostname,
@@ -442,7 +432,7 @@ const se_UntagResourceCommand = async (input, context) => {
442
432
  const headers = {};
443
433
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
444
434
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
445
- const query = map({
435
+ const query = (0, smithy_client_1.map)({
446
436
  tagKeys: [
447
437
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
448
438
  () => (input.tagKeys || []).map((_entry) => _entry),
@@ -465,16 +455,15 @@ const de_CancelJobRunCommand = async (output, context) => {
465
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
466
456
  return de_CancelJobRunCommandError(output, context);
467
457
  }
468
- const contents = map({
458
+ const contents = (0, smithy_client_1.map)({
469
459
  $metadata: deserializeMetadata(output),
470
460
  });
471
461
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
472
- if (data.id != null) {
473
- contents.id = (0, smithy_client_1.expectString)(data.id);
474
- }
475
- if (data.virtualClusterId != null) {
476
- contents.virtualClusterId = (0, smithy_client_1.expectString)(data.virtualClusterId);
477
- }
462
+ const doc = (0, smithy_client_1.take)(data, {
463
+ id: smithy_client_1.expectString,
464
+ virtualClusterId: smithy_client_1.expectString,
465
+ });
466
+ Object.assign(contents, doc);
478
467
  return contents;
479
468
  };
480
469
  exports.de_CancelJobRunCommand = de_CancelJobRunCommand;
@@ -493,10 +482,9 @@ const de_CancelJobRunCommandError = async (output, context) => {
493
482
  throw await de_ValidationExceptionRes(parsedOutput, context);
494
483
  default:
495
484
  const parsedBody = parsedOutput.body;
496
- (0, smithy_client_1.throwDefaultError)({
485
+ return throwDefaultError({
497
486
  output,
498
487
  parsedBody,
499
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
500
488
  errorCode,
501
489
  });
502
490
  }
@@ -505,22 +493,17 @@ const de_CreateJobTemplateCommand = async (output, context) => {
505
493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
506
494
  return de_CreateJobTemplateCommandError(output, context);
507
495
  }
508
- const contents = map({
496
+ const contents = (0, smithy_client_1.map)({
509
497
  $metadata: deserializeMetadata(output),
510
498
  });
511
499
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
512
- if (data.arn != null) {
513
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
514
- }
515
- if (data.createdAt != null) {
516
- contents.createdAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.createdAt));
517
- }
518
- if (data.id != null) {
519
- contents.id = (0, smithy_client_1.expectString)(data.id);
520
- }
521
- if (data.name != null) {
522
- contents.name = (0, smithy_client_1.expectString)(data.name);
523
- }
500
+ const doc = (0, smithy_client_1.take)(data, {
501
+ arn: smithy_client_1.expectString,
502
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
503
+ id: smithy_client_1.expectString,
504
+ name: smithy_client_1.expectString,
505
+ });
506
+ Object.assign(contents, doc);
524
507
  return contents;
525
508
  };
526
509
  exports.de_CreateJobTemplateCommand = de_CreateJobTemplateCommand;
@@ -542,10 +525,9 @@ const de_CreateJobTemplateCommandError = async (output, context) => {
542
525
  throw await de_ValidationExceptionRes(parsedOutput, context);
543
526
  default:
544
527
  const parsedBody = parsedOutput.body;
545
- (0, smithy_client_1.throwDefaultError)({
528
+ return throwDefaultError({
546
529
  output,
547
530
  parsedBody,
548
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
549
531
  errorCode,
550
532
  });
551
533
  }
@@ -554,22 +536,17 @@ const de_CreateManagedEndpointCommand = async (output, context) => {
554
536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
555
537
  return de_CreateManagedEndpointCommandError(output, context);
556
538
  }
557
- const contents = map({
539
+ const contents = (0, smithy_client_1.map)({
558
540
  $metadata: deserializeMetadata(output),
559
541
  });
560
542
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
561
- if (data.arn != null) {
562
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
563
- }
564
- if (data.id != null) {
565
- contents.id = (0, smithy_client_1.expectString)(data.id);
566
- }
567
- if (data.name != null) {
568
- contents.name = (0, smithy_client_1.expectString)(data.name);
569
- }
570
- if (data.virtualClusterId != null) {
571
- contents.virtualClusterId = (0, smithy_client_1.expectString)(data.virtualClusterId);
572
- }
543
+ const doc = (0, smithy_client_1.take)(data, {
544
+ arn: smithy_client_1.expectString,
545
+ id: smithy_client_1.expectString,
546
+ name: smithy_client_1.expectString,
547
+ virtualClusterId: smithy_client_1.expectString,
548
+ });
549
+ Object.assign(contents, doc);
573
550
  return contents;
574
551
  };
575
552
  exports.de_CreateManagedEndpointCommand = de_CreateManagedEndpointCommand;
@@ -591,10 +568,9 @@ const de_CreateManagedEndpointCommandError = async (output, context) => {
591
568
  throw await de_ValidationExceptionRes(parsedOutput, context);
592
569
  default:
593
570
  const parsedBody = parsedOutput.body;
594
- (0, smithy_client_1.throwDefaultError)({
571
+ return throwDefaultError({
595
572
  output,
596
573
  parsedBody,
597
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
598
574
  errorCode,
599
575
  });
600
576
  }
@@ -603,19 +579,16 @@ const de_CreateVirtualClusterCommand = async (output, context) => {
603
579
  if (output.statusCode !== 200 && output.statusCode >= 300) {
604
580
  return de_CreateVirtualClusterCommandError(output, context);
605
581
  }
606
- const contents = map({
582
+ const contents = (0, smithy_client_1.map)({
607
583
  $metadata: deserializeMetadata(output),
608
584
  });
609
585
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
610
- if (data.arn != null) {
611
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
612
- }
613
- if (data.id != null) {
614
- contents.id = (0, smithy_client_1.expectString)(data.id);
615
- }
616
- if (data.name != null) {
617
- contents.name = (0, smithy_client_1.expectString)(data.name);
618
- }
586
+ const doc = (0, smithy_client_1.take)(data, {
587
+ arn: smithy_client_1.expectString,
588
+ id: smithy_client_1.expectString,
589
+ name: smithy_client_1.expectString,
590
+ });
591
+ Object.assign(contents, doc);
619
592
  return contents;
620
593
  };
621
594
  exports.de_CreateVirtualClusterCommand = de_CreateVirtualClusterCommand;
@@ -637,10 +610,9 @@ const de_CreateVirtualClusterCommandError = async (output, context) => {
637
610
  throw await de_ValidationExceptionRes(parsedOutput, context);
638
611
  default:
639
612
  const parsedBody = parsedOutput.body;
640
- (0, smithy_client_1.throwDefaultError)({
613
+ return throwDefaultError({
641
614
  output,
642
615
  parsedBody,
643
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
644
616
  errorCode,
645
617
  });
646
618
  }
@@ -649,13 +621,14 @@ const de_DeleteJobTemplateCommand = async (output, context) => {
649
621
  if (output.statusCode !== 200 && output.statusCode >= 300) {
650
622
  return de_DeleteJobTemplateCommandError(output, context);
651
623
  }
652
- const contents = map({
624
+ const contents = (0, smithy_client_1.map)({
653
625
  $metadata: deserializeMetadata(output),
654
626
  });
655
627
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
656
- if (data.id != null) {
657
- contents.id = (0, smithy_client_1.expectString)(data.id);
658
- }
628
+ const doc = (0, smithy_client_1.take)(data, {
629
+ id: smithy_client_1.expectString,
630
+ });
631
+ Object.assign(contents, doc);
659
632
  return contents;
660
633
  };
661
634
  exports.de_DeleteJobTemplateCommand = de_DeleteJobTemplateCommand;
@@ -674,10 +647,9 @@ const de_DeleteJobTemplateCommandError = async (output, context) => {
674
647
  throw await de_ValidationExceptionRes(parsedOutput, context);
675
648
  default:
676
649
  const parsedBody = parsedOutput.body;
677
- (0, smithy_client_1.throwDefaultError)({
650
+ return throwDefaultError({
678
651
  output,
679
652
  parsedBody,
680
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
681
653
  errorCode,
682
654
  });
683
655
  }
@@ -686,16 +658,15 @@ const de_DeleteManagedEndpointCommand = async (output, context) => {
686
658
  if (output.statusCode !== 200 && output.statusCode >= 300) {
687
659
  return de_DeleteManagedEndpointCommandError(output, context);
688
660
  }
689
- const contents = map({
661
+ const contents = (0, smithy_client_1.map)({
690
662
  $metadata: deserializeMetadata(output),
691
663
  });
692
664
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
693
- if (data.id != null) {
694
- contents.id = (0, smithy_client_1.expectString)(data.id);
695
- }
696
- if (data.virtualClusterId != null) {
697
- contents.virtualClusterId = (0, smithy_client_1.expectString)(data.virtualClusterId);
698
- }
665
+ const doc = (0, smithy_client_1.take)(data, {
666
+ id: smithy_client_1.expectString,
667
+ virtualClusterId: smithy_client_1.expectString,
668
+ });
669
+ Object.assign(contents, doc);
699
670
  return contents;
700
671
  };
701
672
  exports.de_DeleteManagedEndpointCommand = de_DeleteManagedEndpointCommand;
@@ -714,10 +685,9 @@ const de_DeleteManagedEndpointCommandError = async (output, context) => {
714
685
  throw await de_ValidationExceptionRes(parsedOutput, context);
715
686
  default:
716
687
  const parsedBody = parsedOutput.body;
717
- (0, smithy_client_1.throwDefaultError)({
688
+ return throwDefaultError({
718
689
  output,
719
690
  parsedBody,
720
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
721
691
  errorCode,
722
692
  });
723
693
  }
@@ -726,13 +696,14 @@ const de_DeleteVirtualClusterCommand = async (output, context) => {
726
696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
727
697
  return de_DeleteVirtualClusterCommandError(output, context);
728
698
  }
729
- const contents = map({
699
+ const contents = (0, smithy_client_1.map)({
730
700
  $metadata: deserializeMetadata(output),
731
701
  });
732
702
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
733
- if (data.id != null) {
734
- contents.id = (0, smithy_client_1.expectString)(data.id);
735
- }
703
+ const doc = (0, smithy_client_1.take)(data, {
704
+ id: smithy_client_1.expectString,
705
+ });
706
+ Object.assign(contents, doc);
736
707
  return contents;
737
708
  };
738
709
  exports.de_DeleteVirtualClusterCommand = de_DeleteVirtualClusterCommand;
@@ -751,10 +722,9 @@ const de_DeleteVirtualClusterCommandError = async (output, context) => {
751
722
  throw await de_ValidationExceptionRes(parsedOutput, context);
752
723
  default:
753
724
  const parsedBody = parsedOutput.body;
754
- (0, smithy_client_1.throwDefaultError)({
725
+ return throwDefaultError({
755
726
  output,
756
727
  parsedBody,
757
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
758
728
  errorCode,
759
729
  });
760
730
  }
@@ -763,13 +733,14 @@ const de_DescribeJobRunCommand = async (output, context) => {
763
733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
764
734
  return de_DescribeJobRunCommandError(output, context);
765
735
  }
766
- const contents = map({
736
+ const contents = (0, smithy_client_1.map)({
767
737
  $metadata: deserializeMetadata(output),
768
738
  });
769
739
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
770
- if (data.jobRun != null) {
771
- contents.jobRun = de_JobRun(data.jobRun, context);
772
- }
740
+ const doc = (0, smithy_client_1.take)(data, {
741
+ jobRun: (_) => de_JobRun(_, context),
742
+ });
743
+ Object.assign(contents, doc);
773
744
  return contents;
774
745
  };
775
746
  exports.de_DescribeJobRunCommand = de_DescribeJobRunCommand;
@@ -791,10 +762,9 @@ const de_DescribeJobRunCommandError = async (output, context) => {
791
762
  throw await de_ValidationExceptionRes(parsedOutput, context);
792
763
  default:
793
764
  const parsedBody = parsedOutput.body;
794
- (0, smithy_client_1.throwDefaultError)({
765
+ return throwDefaultError({
795
766
  output,
796
767
  parsedBody,
797
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
798
768
  errorCode,
799
769
  });
800
770
  }
@@ -803,13 +773,14 @@ const de_DescribeJobTemplateCommand = async (output, context) => {
803
773
  if (output.statusCode !== 200 && output.statusCode >= 300) {
804
774
  return de_DescribeJobTemplateCommandError(output, context);
805
775
  }
806
- const contents = map({
776
+ const contents = (0, smithy_client_1.map)({
807
777
  $metadata: deserializeMetadata(output),
808
778
  });
809
779
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
810
- if (data.jobTemplate != null) {
811
- contents.jobTemplate = de_JobTemplate(data.jobTemplate, context);
812
- }
780
+ const doc = (0, smithy_client_1.take)(data, {
781
+ jobTemplate: (_) => de_JobTemplate(_, context),
782
+ });
783
+ Object.assign(contents, doc);
813
784
  return contents;
814
785
  };
815
786
  exports.de_DescribeJobTemplateCommand = de_DescribeJobTemplateCommand;
@@ -831,10 +802,9 @@ const de_DescribeJobTemplateCommandError = async (output, context) => {
831
802
  throw await de_ValidationExceptionRes(parsedOutput, context);
832
803
  default:
833
804
  const parsedBody = parsedOutput.body;
834
- (0, smithy_client_1.throwDefaultError)({
805
+ return throwDefaultError({
835
806
  output,
836
807
  parsedBody,
837
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
838
808
  errorCode,
839
809
  });
840
810
  }
@@ -843,13 +813,14 @@ const de_DescribeManagedEndpointCommand = async (output, context) => {
843
813
  if (output.statusCode !== 200 && output.statusCode >= 300) {
844
814
  return de_DescribeManagedEndpointCommandError(output, context);
845
815
  }
846
- const contents = map({
816
+ const contents = (0, smithy_client_1.map)({
847
817
  $metadata: deserializeMetadata(output),
848
818
  });
849
819
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
850
- if (data.endpoint != null) {
851
- contents.endpoint = de_Endpoint(data.endpoint, context);
852
- }
820
+ const doc = (0, smithy_client_1.take)(data, {
821
+ endpoint: (_) => de_Endpoint(_, context),
822
+ });
823
+ Object.assign(contents, doc);
853
824
  return contents;
854
825
  };
855
826
  exports.de_DescribeManagedEndpointCommand = de_DescribeManagedEndpointCommand;
@@ -871,10 +842,9 @@ const de_DescribeManagedEndpointCommandError = async (output, context) => {
871
842
  throw await de_ValidationExceptionRes(parsedOutput, context);
872
843
  default:
873
844
  const parsedBody = parsedOutput.body;
874
- (0, smithy_client_1.throwDefaultError)({
845
+ return throwDefaultError({
875
846
  output,
876
847
  parsedBody,
877
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
878
848
  errorCode,
879
849
  });
880
850
  }
@@ -883,13 +853,14 @@ const de_DescribeVirtualClusterCommand = async (output, context) => {
883
853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
884
854
  return de_DescribeVirtualClusterCommandError(output, context);
885
855
  }
886
- const contents = map({
856
+ const contents = (0, smithy_client_1.map)({
887
857
  $metadata: deserializeMetadata(output),
888
858
  });
889
859
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
890
- if (data.virtualCluster != null) {
891
- contents.virtualCluster = de_VirtualCluster(data.virtualCluster, context);
892
- }
860
+ const doc = (0, smithy_client_1.take)(data, {
861
+ virtualCluster: (_) => de_VirtualCluster(_, context),
862
+ });
863
+ Object.assign(contents, doc);
893
864
  return contents;
894
865
  };
895
866
  exports.de_DescribeVirtualClusterCommand = de_DescribeVirtualClusterCommand;
@@ -911,10 +882,9 @@ const de_DescribeVirtualClusterCommandError = async (output, context) => {
911
882
  throw await de_ValidationExceptionRes(parsedOutput, context);
912
883
  default:
913
884
  const parsedBody = parsedOutput.body;
914
- (0, smithy_client_1.throwDefaultError)({
885
+ return throwDefaultError({
915
886
  output,
916
887
  parsedBody,
917
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
918
888
  errorCode,
919
889
  });
920
890
  }
@@ -923,16 +893,15 @@ const de_ListJobRunsCommand = async (output, context) => {
923
893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
924
894
  return de_ListJobRunsCommandError(output, context);
925
895
  }
926
- const contents = map({
896
+ const contents = (0, smithy_client_1.map)({
927
897
  $metadata: deserializeMetadata(output),
928
898
  });
929
899
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
930
- if (data.jobRuns != null) {
931
- contents.jobRuns = de_JobRuns(data.jobRuns, context);
932
- }
933
- if (data.nextToken != null) {
934
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
935
- }
900
+ const doc = (0, smithy_client_1.take)(data, {
901
+ jobRuns: (_) => de_JobRuns(_, context),
902
+ nextToken: smithy_client_1.expectString,
903
+ });
904
+ Object.assign(contents, doc);
936
905
  return contents;
937
906
  };
938
907
  exports.de_ListJobRunsCommand = de_ListJobRunsCommand;
@@ -951,10 +920,9 @@ const de_ListJobRunsCommandError = async (output, context) => {
951
920
  throw await de_ValidationExceptionRes(parsedOutput, context);
952
921
  default:
953
922
  const parsedBody = parsedOutput.body;
954
- (0, smithy_client_1.throwDefaultError)({
923
+ return throwDefaultError({
955
924
  output,
956
925
  parsedBody,
957
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
958
926
  errorCode,
959
927
  });
960
928
  }
@@ -963,16 +931,15 @@ const de_ListJobTemplatesCommand = async (output, context) => {
963
931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
964
932
  return de_ListJobTemplatesCommandError(output, context);
965
933
  }
966
- const contents = map({
934
+ const contents = (0, smithy_client_1.map)({
967
935
  $metadata: deserializeMetadata(output),
968
936
  });
969
937
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
970
- if (data.nextToken != null) {
971
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
972
- }
973
- if (data.templates != null) {
974
- contents.templates = de_JobTemplates(data.templates, context);
975
- }
938
+ const doc = (0, smithy_client_1.take)(data, {
939
+ nextToken: smithy_client_1.expectString,
940
+ templates: (_) => de_JobTemplates(_, context),
941
+ });
942
+ Object.assign(contents, doc);
976
943
  return contents;
977
944
  };
978
945
  exports.de_ListJobTemplatesCommand = de_ListJobTemplatesCommand;
@@ -991,10 +958,9 @@ const de_ListJobTemplatesCommandError = async (output, context) => {
991
958
  throw await de_ValidationExceptionRes(parsedOutput, context);
992
959
  default:
993
960
  const parsedBody = parsedOutput.body;
994
- (0, smithy_client_1.throwDefaultError)({
961
+ return throwDefaultError({
995
962
  output,
996
963
  parsedBody,
997
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
998
964
  errorCode,
999
965
  });
1000
966
  }
@@ -1003,16 +969,15 @@ const de_ListManagedEndpointsCommand = async (output, context) => {
1003
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1004
970
  return de_ListManagedEndpointsCommandError(output, context);
1005
971
  }
1006
- const contents = map({
972
+ const contents = (0, smithy_client_1.map)({
1007
973
  $metadata: deserializeMetadata(output),
1008
974
  });
1009
975
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1010
- if (data.endpoints != null) {
1011
- contents.endpoints = de_Endpoints(data.endpoints, context);
1012
- }
1013
- if (data.nextToken != null) {
1014
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1015
- }
976
+ const doc = (0, smithy_client_1.take)(data, {
977
+ endpoints: (_) => de_Endpoints(_, context),
978
+ nextToken: smithy_client_1.expectString,
979
+ });
980
+ Object.assign(contents, doc);
1016
981
  return contents;
1017
982
  };
1018
983
  exports.de_ListManagedEndpointsCommand = de_ListManagedEndpointsCommand;
@@ -1031,10 +996,9 @@ const de_ListManagedEndpointsCommandError = async (output, context) => {
1031
996
  throw await de_ValidationExceptionRes(parsedOutput, context);
1032
997
  default:
1033
998
  const parsedBody = parsedOutput.body;
1034
- (0, smithy_client_1.throwDefaultError)({
999
+ return throwDefaultError({
1035
1000
  output,
1036
1001
  parsedBody,
1037
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1038
1002
  errorCode,
1039
1003
  });
1040
1004
  }
@@ -1043,13 +1007,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1043
1007
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
1008
  return de_ListTagsForResourceCommandError(output, context);
1045
1009
  }
1046
- const contents = map({
1010
+ const contents = (0, smithy_client_1.map)({
1047
1011
  $metadata: deserializeMetadata(output),
1048
1012
  });
1049
1013
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1050
- if (data.tags != null) {
1051
- contents.tags = de_TagMap(data.tags, context);
1052
- }
1014
+ const doc = (0, smithy_client_1.take)(data, {
1015
+ tags: smithy_client_1._json,
1016
+ });
1017
+ Object.assign(contents, doc);
1053
1018
  return contents;
1054
1019
  };
1055
1020
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -1071,10 +1036,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1071
1036
  throw await de_ValidationExceptionRes(parsedOutput, context);
1072
1037
  default:
1073
1038
  const parsedBody = parsedOutput.body;
1074
- (0, smithy_client_1.throwDefaultError)({
1039
+ return throwDefaultError({
1075
1040
  output,
1076
1041
  parsedBody,
1077
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1078
1042
  errorCode,
1079
1043
  });
1080
1044
  }
@@ -1083,16 +1047,15 @@ const de_ListVirtualClustersCommand = async (output, context) => {
1083
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1084
1048
  return de_ListVirtualClustersCommandError(output, context);
1085
1049
  }
1086
- const contents = map({
1050
+ const contents = (0, smithy_client_1.map)({
1087
1051
  $metadata: deserializeMetadata(output),
1088
1052
  });
1089
1053
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1090
- if (data.nextToken != null) {
1091
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1092
- }
1093
- if (data.virtualClusters != null) {
1094
- contents.virtualClusters = de_VirtualClusters(data.virtualClusters, context);
1095
- }
1054
+ const doc = (0, smithy_client_1.take)(data, {
1055
+ nextToken: smithy_client_1.expectString,
1056
+ virtualClusters: (_) => de_VirtualClusters(_, context),
1057
+ });
1058
+ Object.assign(contents, doc);
1096
1059
  return contents;
1097
1060
  };
1098
1061
  exports.de_ListVirtualClustersCommand = de_ListVirtualClustersCommand;
@@ -1111,10 +1074,9 @@ const de_ListVirtualClustersCommandError = async (output, context) => {
1111
1074
  throw await de_ValidationExceptionRes(parsedOutput, context);
1112
1075
  default:
1113
1076
  const parsedBody = parsedOutput.body;
1114
- (0, smithy_client_1.throwDefaultError)({
1077
+ return throwDefaultError({
1115
1078
  output,
1116
1079
  parsedBody,
1117
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1118
1080
  errorCode,
1119
1081
  });
1120
1082
  }
@@ -1123,22 +1085,17 @@ const de_StartJobRunCommand = async (output, context) => {
1123
1085
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1124
1086
  return de_StartJobRunCommandError(output, context);
1125
1087
  }
1126
- const contents = map({
1088
+ const contents = (0, smithy_client_1.map)({
1127
1089
  $metadata: deserializeMetadata(output),
1128
1090
  });
1129
1091
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1130
- if (data.arn != null) {
1131
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
1132
- }
1133
- if (data.id != null) {
1134
- contents.id = (0, smithy_client_1.expectString)(data.id);
1135
- }
1136
- if (data.name != null) {
1137
- contents.name = (0, smithy_client_1.expectString)(data.name);
1138
- }
1139
- if (data.virtualClusterId != null) {
1140
- contents.virtualClusterId = (0, smithy_client_1.expectString)(data.virtualClusterId);
1141
- }
1092
+ const doc = (0, smithy_client_1.take)(data, {
1093
+ arn: smithy_client_1.expectString,
1094
+ id: smithy_client_1.expectString,
1095
+ name: smithy_client_1.expectString,
1096
+ virtualClusterId: smithy_client_1.expectString,
1097
+ });
1098
+ Object.assign(contents, doc);
1142
1099
  return contents;
1143
1100
  };
1144
1101
  exports.de_StartJobRunCommand = de_StartJobRunCommand;
@@ -1160,10 +1117,9 @@ const de_StartJobRunCommandError = async (output, context) => {
1160
1117
  throw await de_ValidationExceptionRes(parsedOutput, context);
1161
1118
  default:
1162
1119
  const parsedBody = parsedOutput.body;
1163
- (0, smithy_client_1.throwDefaultError)({
1120
+ return throwDefaultError({
1164
1121
  output,
1165
1122
  parsedBody,
1166
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1167
1123
  errorCode,
1168
1124
  });
1169
1125
  }
@@ -1172,7 +1128,7 @@ const de_TagResourceCommand = async (output, context) => {
1172
1128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1173
1129
  return de_TagResourceCommandError(output, context);
1174
1130
  }
1175
- const contents = map({
1131
+ const contents = (0, smithy_client_1.map)({
1176
1132
  $metadata: deserializeMetadata(output),
1177
1133
  });
1178
1134
  await collectBody(output.body, context);
@@ -1197,10 +1153,9 @@ const de_TagResourceCommandError = async (output, context) => {
1197
1153
  throw await de_ValidationExceptionRes(parsedOutput, context);
1198
1154
  default:
1199
1155
  const parsedBody = parsedOutput.body;
1200
- (0, smithy_client_1.throwDefaultError)({
1156
+ return throwDefaultError({
1201
1157
  output,
1202
1158
  parsedBody,
1203
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1204
1159
  errorCode,
1205
1160
  });
1206
1161
  }
@@ -1209,7 +1164,7 @@ const de_UntagResourceCommand = async (output, context) => {
1209
1164
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
1165
  return de_UntagResourceCommandError(output, context);
1211
1166
  }
1212
- const contents = map({
1167
+ const contents = (0, smithy_client_1.map)({
1213
1168
  $metadata: deserializeMetadata(output),
1214
1169
  });
1215
1170
  await collectBody(output.body, context);
@@ -1234,21 +1189,21 @@ const de_UntagResourceCommandError = async (output, context) => {
1234
1189
  throw await de_ValidationExceptionRes(parsedOutput, context);
1235
1190
  default:
1236
1191
  const parsedBody = parsedOutput.body;
1237
- (0, smithy_client_1.throwDefaultError)({
1192
+ return throwDefaultError({
1238
1193
  output,
1239
1194
  parsedBody,
1240
- exceptionCtor: EMRContainersServiceException_1.EMRContainersServiceException,
1241
1195
  errorCode,
1242
1196
  });
1243
1197
  }
1244
1198
  };
1245
- const map = smithy_client_1.map;
1199
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(EMRContainersServiceException_1.EMRContainersServiceException);
1246
1200
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1247
- const contents = map({});
1201
+ const contents = (0, smithy_client_1.map)({});
1248
1202
  const data = parsedOutput.body;
1249
- if (data.message != null) {
1250
- contents.message = (0, smithy_client_1.expectString)(data.message);
1251
- }
1203
+ const doc = (0, smithy_client_1.take)(data, {
1204
+ message: smithy_client_1.expectString,
1205
+ });
1206
+ Object.assign(contents, doc);
1252
1207
  const exception = new models_0_1.InternalServerException({
1253
1208
  $metadata: deserializeMetadata(parsedOutput),
1254
1209
  ...contents,
@@ -1256,11 +1211,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1256
1211
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1257
1212
  };
1258
1213
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1259
- const contents = map({});
1214
+ const contents = (0, smithy_client_1.map)({});
1260
1215
  const data = parsedOutput.body;
1261
- if (data.message != null) {
1262
- contents.message = (0, smithy_client_1.expectString)(data.message);
1263
- }
1216
+ const doc = (0, smithy_client_1.take)(data, {
1217
+ message: smithy_client_1.expectString,
1218
+ });
1219
+ Object.assign(contents, doc);
1264
1220
  const exception = new models_0_1.ResourceNotFoundException({
1265
1221
  $metadata: deserializeMetadata(parsedOutput),
1266
1222
  ...contents,
@@ -1268,29 +1224,24 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1268
1224
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1269
1225
  };
1270
1226
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1271
- const contents = map({});
1227
+ const contents = (0, smithy_client_1.map)({});
1272
1228
  const data = parsedOutput.body;
1273
- if (data.message != null) {
1274
- contents.message = (0, smithy_client_1.expectString)(data.message);
1275
- }
1229
+ const doc = (0, smithy_client_1.take)(data, {
1230
+ message: smithy_client_1.expectString,
1231
+ });
1232
+ Object.assign(contents, doc);
1276
1233
  const exception = new models_0_1.ValidationException({
1277
1234
  $metadata: deserializeMetadata(parsedOutput),
1278
1235
  ...contents,
1279
1236
  });
1280
1237
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1281
1238
  };
1282
- const se_CloudWatchMonitoringConfiguration = (input, context) => {
1283
- return {
1284
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
1285
- ...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
1286
- };
1287
- };
1288
1239
  const se_Configuration = (input, context) => {
1289
- return {
1290
- ...(input.classification != null && { classification: input.classification }),
1291
- ...(input.configurations != null && { configurations: se_ConfigurationList(input.configurations, context) }),
1292
- ...(input.properties != null && { properties: se_SensitivePropertiesMap(input.properties, context) }),
1293
- };
1240
+ return (0, smithy_client_1.take)(input, {
1241
+ classification: [],
1242
+ configurations: (_) => se_ConfigurationList(_, context),
1243
+ properties: smithy_client_1._json,
1244
+ });
1294
1245
  };
1295
1246
  const se_ConfigurationList = (input, context) => {
1296
1247
  return input
@@ -1300,494 +1251,160 @@ const se_ConfigurationList = (input, context) => {
1300
1251
  });
1301
1252
  };
1302
1253
  const se_ConfigurationOverrides = (input, context) => {
1303
- return {
1304
- ...(input.applicationConfiguration != null && {
1305
- applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
1306
- }),
1307
- ...(input.monitoringConfiguration != null && {
1308
- monitoringConfiguration: se_MonitoringConfiguration(input.monitoringConfiguration, context),
1309
- }),
1310
- };
1311
- };
1312
- const se_ContainerInfo = (input, context) => {
1313
- return models_0_1.ContainerInfo.visit(input, {
1314
- eksInfo: (value) => ({ eksInfo: se_EksInfo(value, context) }),
1315
- _: (name, value) => ({ name: value }),
1316
- });
1317
- };
1318
- const se_ContainerProvider = (input, context) => {
1319
- return {
1320
- ...(input.id != null && { id: input.id }),
1321
- ...(input.info != null && { info: se_ContainerInfo(input.info, context) }),
1322
- ...(input.type != null && { type: input.type }),
1323
- };
1324
- };
1325
- const se_EksInfo = (input, context) => {
1326
- return {
1327
- ...(input.namespace != null && { namespace: input.namespace }),
1328
- };
1329
- };
1330
- const se_EntryPointArguments = (input, context) => {
1331
- return input
1332
- .filter((e) => e != null)
1333
- .map((entry) => {
1334
- return entry;
1254
+ return (0, smithy_client_1.take)(input, {
1255
+ applicationConfiguration: (_) => se_ConfigurationList(_, context),
1256
+ monitoringConfiguration: smithy_client_1._json,
1335
1257
  });
1336
1258
  };
1337
- const se_JobDriver = (input, context) => {
1338
- return {
1339
- ...(input.sparkSqlJobDriver != null && {
1340
- sparkSqlJobDriver: se_SparkSqlJobDriver(input.sparkSqlJobDriver, context),
1341
- }),
1342
- ...(input.sparkSubmitJobDriver != null && {
1343
- sparkSubmitJobDriver: se_SparkSubmitJobDriver(input.sparkSubmitJobDriver, context),
1344
- }),
1345
- };
1346
- };
1347
1259
  const se_JobTemplateData = (input, context) => {
1348
- return {
1349
- ...(input.configurationOverrides != null && {
1350
- configurationOverrides: se_ParametricConfigurationOverrides(input.configurationOverrides, context),
1351
- }),
1352
- ...(input.executionRoleArn != null && { executionRoleArn: input.executionRoleArn }),
1353
- ...(input.jobDriver != null && { jobDriver: se_JobDriver(input.jobDriver, context) }),
1354
- ...(input.jobTags != null && { jobTags: se_TagMap(input.jobTags, context) }),
1355
- ...(input.parameterConfiguration != null && {
1356
- parameterConfiguration: se_TemplateParameterConfigurationMap(input.parameterConfiguration, context),
1357
- }),
1358
- ...(input.releaseLabel != null && { releaseLabel: input.releaseLabel }),
1359
- };
1360
- };
1361
- const se_MonitoringConfiguration = (input, context) => {
1362
- return {
1363
- ...(input.cloudWatchMonitoringConfiguration != null && {
1364
- cloudWatchMonitoringConfiguration: se_CloudWatchMonitoringConfiguration(input.cloudWatchMonitoringConfiguration, context),
1365
- }),
1366
- ...(input.persistentAppUI != null && { persistentAppUI: input.persistentAppUI }),
1367
- ...(input.s3MonitoringConfiguration != null && {
1368
- s3MonitoringConfiguration: se_S3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
1369
- }),
1370
- };
1371
- };
1372
- const se_ParametricCloudWatchMonitoringConfiguration = (input, context) => {
1373
- return {
1374
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
1375
- ...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
1376
- };
1260
+ return (0, smithy_client_1.take)(input, {
1261
+ configurationOverrides: (_) => se_ParametricConfigurationOverrides(_, context),
1262
+ executionRoleArn: [],
1263
+ jobDriver: smithy_client_1._json,
1264
+ jobTags: smithy_client_1._json,
1265
+ parameterConfiguration: smithy_client_1._json,
1266
+ releaseLabel: [],
1267
+ });
1377
1268
  };
1378
1269
  const se_ParametricConfigurationOverrides = (input, context) => {
1379
- return {
1380
- ...(input.applicationConfiguration != null && {
1381
- applicationConfiguration: se_ConfigurationList(input.applicationConfiguration, context),
1382
- }),
1383
- ...(input.monitoringConfiguration != null && {
1384
- monitoringConfiguration: se_ParametricMonitoringConfiguration(input.monitoringConfiguration, context),
1385
- }),
1386
- };
1387
- };
1388
- const se_ParametricMonitoringConfiguration = (input, context) => {
1389
- return {
1390
- ...(input.cloudWatchMonitoringConfiguration != null && {
1391
- cloudWatchMonitoringConfiguration: se_ParametricCloudWatchMonitoringConfiguration(input.cloudWatchMonitoringConfiguration, context),
1392
- }),
1393
- ...(input.persistentAppUI != null && { persistentAppUI: input.persistentAppUI }),
1394
- ...(input.s3MonitoringConfiguration != null && {
1395
- s3MonitoringConfiguration: se_ParametricS3MonitoringConfiguration(input.s3MonitoringConfiguration, context),
1396
- }),
1397
- };
1398
- };
1399
- const se_ParametricS3MonitoringConfiguration = (input, context) => {
1400
- return {
1401
- ...(input.logUri != null && { logUri: input.logUri }),
1402
- };
1403
- };
1404
- const se_RetryPolicyConfiguration = (input, context) => {
1405
- return {
1406
- ...(input.maxAttempts != null && { maxAttempts: input.maxAttempts }),
1407
- };
1408
- };
1409
- const se_S3MonitoringConfiguration = (input, context) => {
1410
- return {
1411
- ...(input.logUri != null && { logUri: input.logUri }),
1412
- };
1413
- };
1414
- const se_SensitivePropertiesMap = (input, context) => {
1415
- return Object.entries(input).reduce((acc, [key, value]) => {
1416
- if (value === null) {
1417
- return acc;
1418
- }
1419
- acc[key] = value;
1420
- return acc;
1421
- }, {});
1422
- };
1423
- const se_SparkSqlJobDriver = (input, context) => {
1424
- return {
1425
- ...(input.entryPoint != null && { entryPoint: input.entryPoint }),
1426
- ...(input.sparkSqlParameters != null && { sparkSqlParameters: input.sparkSqlParameters }),
1427
- };
1428
- };
1429
- const se_SparkSubmitJobDriver = (input, context) => {
1430
- return {
1431
- ...(input.entryPoint != null && { entryPoint: input.entryPoint }),
1432
- ...(input.entryPointArguments != null && {
1433
- entryPointArguments: se_EntryPointArguments(input.entryPointArguments, context),
1434
- }),
1435
- ...(input.sparkSubmitParameters != null && { sparkSubmitParameters: input.sparkSubmitParameters }),
1436
- };
1437
- };
1438
- const se_TagMap = (input, context) => {
1439
- return Object.entries(input).reduce((acc, [key, value]) => {
1440
- if (value === null) {
1441
- return acc;
1442
- }
1443
- acc[key] = value;
1444
- return acc;
1445
- }, {});
1446
- };
1447
- const se_TemplateParameterConfiguration = (input, context) => {
1448
- return {
1449
- ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1450
- ...(input.type != null && { type: input.type }),
1451
- };
1452
- };
1453
- const se_TemplateParameterConfigurationMap = (input, context) => {
1454
- return Object.entries(input).reduce((acc, [key, value]) => {
1455
- if (value === null) {
1456
- return acc;
1457
- }
1458
- acc[key] = se_TemplateParameterConfiguration(value, context);
1459
- return acc;
1460
- }, {});
1461
- };
1462
- const se_TemplateParameterInputMap = (input, context) => {
1463
- return Object.entries(input).reduce((acc, [key, value]) => {
1464
- if (value === null) {
1465
- return acc;
1466
- }
1467
- acc[key] = value;
1468
- return acc;
1469
- }, {});
1470
- };
1471
- const de_Certificate = (output, context) => {
1472
- return {
1473
- certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
1474
- certificateData: (0, smithy_client_1.expectString)(output.certificateData),
1475
- };
1476
- };
1477
- const de_CloudWatchMonitoringConfiguration = (output, context) => {
1478
- return {
1479
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
1480
- logStreamNamePrefix: (0, smithy_client_1.expectString)(output.logStreamNamePrefix),
1481
- };
1270
+ return (0, smithy_client_1.take)(input, {
1271
+ applicationConfiguration: (_) => se_ConfigurationList(_, context),
1272
+ monitoringConfiguration: smithy_client_1._json,
1273
+ });
1482
1274
  };
1483
1275
  const de_Configuration = (output, context) => {
1484
- return {
1485
- classification: (0, smithy_client_1.expectString)(output.classification),
1486
- configurations: output.configurations != null ? de_ConfigurationList(output.configurations, context) : undefined,
1487
- properties: output.properties != null ? de_SensitivePropertiesMap(output.properties, context) : undefined,
1488
- };
1276
+ return (0, smithy_client_1.take)(output, {
1277
+ classification: smithy_client_1.expectString,
1278
+ configurations: (_) => de_ConfigurationList(_, context),
1279
+ properties: smithy_client_1._json,
1280
+ });
1489
1281
  };
1490
1282
  const de_ConfigurationList = (output, context) => {
1491
1283
  const retVal = (output || [])
1492
1284
  .filter((e) => e != null)
1493
1285
  .map((entry) => {
1494
- if (entry === null) {
1495
- return null;
1496
- }
1497
1286
  return de_Configuration(entry, context);
1498
1287
  });
1499
1288
  return retVal;
1500
1289
  };
1501
1290
  const de_ConfigurationOverrides = (output, context) => {
1502
- return {
1503
- applicationConfiguration: output.applicationConfiguration != null
1504
- ? de_ConfigurationList(output.applicationConfiguration, context)
1505
- : undefined,
1506
- monitoringConfiguration: output.monitoringConfiguration != null
1507
- ? de_MonitoringConfiguration(output.monitoringConfiguration, context)
1508
- : undefined,
1509
- };
1510
- };
1511
- const de_ContainerInfo = (output, context) => {
1512
- if (output.eksInfo != null) {
1513
- return {
1514
- eksInfo: de_EksInfo(output.eksInfo, context),
1515
- };
1516
- }
1517
- return { $unknown: Object.entries(output)[0] };
1518
- };
1519
- const de_ContainerProvider = (output, context) => {
1520
- return {
1521
- id: (0, smithy_client_1.expectString)(output.id),
1522
- info: output.info != null ? de_ContainerInfo((0, smithy_client_1.expectUnion)(output.info), context) : undefined,
1523
- type: (0, smithy_client_1.expectString)(output.type),
1524
- };
1525
- };
1526
- const de_EksInfo = (output, context) => {
1527
- return {
1528
- namespace: (0, smithy_client_1.expectString)(output.namespace),
1529
- };
1291
+ return (0, smithy_client_1.take)(output, {
1292
+ applicationConfiguration: (_) => de_ConfigurationList(_, context),
1293
+ monitoringConfiguration: smithy_client_1._json,
1294
+ });
1530
1295
  };
1531
1296
  const de_Endpoint = (output, context) => {
1532
- return {
1533
- arn: (0, smithy_client_1.expectString)(output.arn),
1534
- certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
1535
- certificateAuthority: output.certificateAuthority != null ? de_Certificate(output.certificateAuthority, context) : undefined,
1536
- configurationOverrides: output.configurationOverrides != null
1537
- ? de_ConfigurationOverrides(output.configurationOverrides, context)
1538
- : undefined,
1539
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1540
- executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
1541
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
1542
- id: (0, smithy_client_1.expectString)(output.id),
1543
- name: (0, smithy_client_1.expectString)(output.name),
1544
- releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1545
- securityGroup: (0, smithy_client_1.expectString)(output.securityGroup),
1546
- serverUrl: (0, smithy_client_1.expectString)(output.serverUrl),
1547
- state: (0, smithy_client_1.expectString)(output.state),
1548
- stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1549
- subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
1550
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1551
- type: (0, smithy_client_1.expectString)(output.type),
1552
- virtualClusterId: (0, smithy_client_1.expectString)(output.virtualClusterId),
1553
- };
1297
+ return (0, smithy_client_1.take)(output, {
1298
+ arn: smithy_client_1.expectString,
1299
+ certificateArn: smithy_client_1.expectString,
1300
+ certificateAuthority: smithy_client_1._json,
1301
+ configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
1302
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1303
+ executionRoleArn: smithy_client_1.expectString,
1304
+ failureReason: smithy_client_1.expectString,
1305
+ id: smithy_client_1.expectString,
1306
+ name: smithy_client_1.expectString,
1307
+ releaseLabel: smithy_client_1.expectString,
1308
+ securityGroup: smithy_client_1.expectString,
1309
+ serverUrl: smithy_client_1.expectString,
1310
+ state: smithy_client_1.expectString,
1311
+ stateDetails: smithy_client_1.expectString,
1312
+ subnetIds: smithy_client_1._json,
1313
+ tags: smithy_client_1._json,
1314
+ type: smithy_client_1.expectString,
1315
+ virtualClusterId: smithy_client_1.expectString,
1316
+ });
1554
1317
  };
1555
1318
  const de_Endpoints = (output, context) => {
1556
1319
  const retVal = (output || [])
1557
1320
  .filter((e) => e != null)
1558
1321
  .map((entry) => {
1559
- if (entry === null) {
1560
- return null;
1561
- }
1562
1322
  return de_Endpoint(entry, context);
1563
1323
  });
1564
1324
  return retVal;
1565
1325
  };
1566
- const de_EntryPointArguments = (output, context) => {
1567
- const retVal = (output || [])
1568
- .filter((e) => e != null)
1569
- .map((entry) => {
1570
- if (entry === null) {
1571
- return null;
1572
- }
1573
- return (0, smithy_client_1.expectString)(entry);
1574
- });
1575
- return retVal;
1576
- };
1577
- const de_JobDriver = (output, context) => {
1578
- return {
1579
- sparkSqlJobDriver: output.sparkSqlJobDriver != null ? de_SparkSqlJobDriver(output.sparkSqlJobDriver, context) : undefined,
1580
- sparkSubmitJobDriver: output.sparkSubmitJobDriver != null ? de_SparkSubmitJobDriver(output.sparkSubmitJobDriver, context) : undefined,
1581
- };
1582
- };
1583
1326
  const de_JobRun = (output, context) => {
1584
- return {
1585
- arn: (0, smithy_client_1.expectString)(output.arn),
1586
- clientToken: (0, smithy_client_1.expectString)(output.clientToken),
1587
- configurationOverrides: output.configurationOverrides != null
1588
- ? de_ConfigurationOverrides(output.configurationOverrides, context)
1589
- : undefined,
1590
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1591
- createdBy: (0, smithy_client_1.expectString)(output.createdBy),
1592
- executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
1593
- failureReason: (0, smithy_client_1.expectString)(output.failureReason),
1594
- finishedAt: output.finishedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.finishedAt)) : undefined,
1595
- id: (0, smithy_client_1.expectString)(output.id),
1596
- jobDriver: output.jobDriver != null ? de_JobDriver(output.jobDriver, context) : undefined,
1597
- name: (0, smithy_client_1.expectString)(output.name),
1598
- releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1599
- retryPolicyConfiguration: output.retryPolicyConfiguration != null
1600
- ? de_RetryPolicyConfiguration(output.retryPolicyConfiguration, context)
1601
- : undefined,
1602
- retryPolicyExecution: output.retryPolicyExecution != null ? de_RetryPolicyExecution(output.retryPolicyExecution, context) : undefined,
1603
- state: (0, smithy_client_1.expectString)(output.state),
1604
- stateDetails: (0, smithy_client_1.expectString)(output.stateDetails),
1605
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1606
- virtualClusterId: (0, smithy_client_1.expectString)(output.virtualClusterId),
1607
- };
1327
+ return (0, smithy_client_1.take)(output, {
1328
+ arn: smithy_client_1.expectString,
1329
+ clientToken: smithy_client_1.expectString,
1330
+ configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
1331
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1332
+ createdBy: smithy_client_1.expectString,
1333
+ executionRoleArn: smithy_client_1.expectString,
1334
+ failureReason: smithy_client_1.expectString,
1335
+ finishedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1336
+ id: smithy_client_1.expectString,
1337
+ jobDriver: smithy_client_1._json,
1338
+ name: smithy_client_1.expectString,
1339
+ releaseLabel: smithy_client_1.expectString,
1340
+ retryPolicyConfiguration: smithy_client_1._json,
1341
+ retryPolicyExecution: smithy_client_1._json,
1342
+ state: smithy_client_1.expectString,
1343
+ stateDetails: smithy_client_1.expectString,
1344
+ tags: smithy_client_1._json,
1345
+ virtualClusterId: smithy_client_1.expectString,
1346
+ });
1608
1347
  };
1609
1348
  const de_JobRuns = (output, context) => {
1610
1349
  const retVal = (output || [])
1611
1350
  .filter((e) => e != null)
1612
1351
  .map((entry) => {
1613
- if (entry === null) {
1614
- return null;
1615
- }
1616
1352
  return de_JobRun(entry, context);
1617
1353
  });
1618
1354
  return retVal;
1619
1355
  };
1620
1356
  const de_JobTemplate = (output, context) => {
1621
- return {
1622
- arn: (0, smithy_client_1.expectString)(output.arn),
1623
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1624
- createdBy: (0, smithy_client_1.expectString)(output.createdBy),
1625
- decryptionError: (0, smithy_client_1.expectString)(output.decryptionError),
1626
- id: (0, smithy_client_1.expectString)(output.id),
1627
- jobTemplateData: output.jobTemplateData != null ? de_JobTemplateData(output.jobTemplateData, context) : undefined,
1628
- kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
1629
- name: (0, smithy_client_1.expectString)(output.name),
1630
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1631
- };
1357
+ return (0, smithy_client_1.take)(output, {
1358
+ arn: smithy_client_1.expectString,
1359
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1360
+ createdBy: smithy_client_1.expectString,
1361
+ decryptionError: smithy_client_1.expectString,
1362
+ id: smithy_client_1.expectString,
1363
+ jobTemplateData: (_) => de_JobTemplateData(_, context),
1364
+ kmsKeyArn: smithy_client_1.expectString,
1365
+ name: smithy_client_1.expectString,
1366
+ tags: smithy_client_1._json,
1367
+ });
1632
1368
  };
1633
1369
  const de_JobTemplateData = (output, context) => {
1634
- return {
1635
- configurationOverrides: output.configurationOverrides != null
1636
- ? de_ParametricConfigurationOverrides(output.configurationOverrides, context)
1637
- : undefined,
1638
- executionRoleArn: (0, smithy_client_1.expectString)(output.executionRoleArn),
1639
- jobDriver: output.jobDriver != null ? de_JobDriver(output.jobDriver, context) : undefined,
1640
- jobTags: output.jobTags != null ? de_TagMap(output.jobTags, context) : undefined,
1641
- parameterConfiguration: output.parameterConfiguration != null
1642
- ? de_TemplateParameterConfigurationMap(output.parameterConfiguration, context)
1643
- : undefined,
1644
- releaseLabel: (0, smithy_client_1.expectString)(output.releaseLabel),
1645
- };
1370
+ return (0, smithy_client_1.take)(output, {
1371
+ configurationOverrides: (_) => de_ParametricConfigurationOverrides(_, context),
1372
+ executionRoleArn: smithy_client_1.expectString,
1373
+ jobDriver: smithy_client_1._json,
1374
+ jobTags: smithy_client_1._json,
1375
+ parameterConfiguration: smithy_client_1._json,
1376
+ releaseLabel: smithy_client_1.expectString,
1377
+ });
1646
1378
  };
1647
1379
  const de_JobTemplates = (output, context) => {
1648
1380
  const retVal = (output || [])
1649
1381
  .filter((e) => e != null)
1650
1382
  .map((entry) => {
1651
- if (entry === null) {
1652
- return null;
1653
- }
1654
1383
  return de_JobTemplate(entry, context);
1655
1384
  });
1656
1385
  return retVal;
1657
1386
  };
1658
- const de_MonitoringConfiguration = (output, context) => {
1659
- return {
1660
- cloudWatchMonitoringConfiguration: output.cloudWatchMonitoringConfiguration != null
1661
- ? de_CloudWatchMonitoringConfiguration(output.cloudWatchMonitoringConfiguration, context)
1662
- : undefined,
1663
- persistentAppUI: (0, smithy_client_1.expectString)(output.persistentAppUI),
1664
- s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
1665
- ? de_S3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
1666
- : undefined,
1667
- };
1668
- };
1669
- const de_ParametricCloudWatchMonitoringConfiguration = (output, context) => {
1670
- return {
1671
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
1672
- logStreamNamePrefix: (0, smithy_client_1.expectString)(output.logStreamNamePrefix),
1673
- };
1674
- };
1675
1387
  const de_ParametricConfigurationOverrides = (output, context) => {
1676
- return {
1677
- applicationConfiguration: output.applicationConfiguration != null
1678
- ? de_ConfigurationList(output.applicationConfiguration, context)
1679
- : undefined,
1680
- monitoringConfiguration: output.monitoringConfiguration != null
1681
- ? de_ParametricMonitoringConfiguration(output.monitoringConfiguration, context)
1682
- : undefined,
1683
- };
1684
- };
1685
- const de_ParametricMonitoringConfiguration = (output, context) => {
1686
- return {
1687
- cloudWatchMonitoringConfiguration: output.cloudWatchMonitoringConfiguration != null
1688
- ? de_ParametricCloudWatchMonitoringConfiguration(output.cloudWatchMonitoringConfiguration, context)
1689
- : undefined,
1690
- persistentAppUI: (0, smithy_client_1.expectString)(output.persistentAppUI),
1691
- s3MonitoringConfiguration: output.s3MonitoringConfiguration != null
1692
- ? de_ParametricS3MonitoringConfiguration(output.s3MonitoringConfiguration, context)
1693
- : undefined,
1694
- };
1695
- };
1696
- const de_ParametricS3MonitoringConfiguration = (output, context) => {
1697
- return {
1698
- logUri: (0, smithy_client_1.expectString)(output.logUri),
1699
- };
1700
- };
1701
- const de_RetryPolicyConfiguration = (output, context) => {
1702
- return {
1703
- maxAttempts: (0, smithy_client_1.expectInt32)(output.maxAttempts),
1704
- };
1705
- };
1706
- const de_RetryPolicyExecution = (output, context) => {
1707
- return {
1708
- currentAttemptCount: (0, smithy_client_1.expectInt32)(output.currentAttemptCount),
1709
- };
1710
- };
1711
- const de_S3MonitoringConfiguration = (output, context) => {
1712
- return {
1713
- logUri: (0, smithy_client_1.expectString)(output.logUri),
1714
- };
1715
- };
1716
- const de_SensitivePropertiesMap = (output, context) => {
1717
- return Object.entries(output).reduce((acc, [key, value]) => {
1718
- if (value === null) {
1719
- return acc;
1720
- }
1721
- acc[key] = (0, smithy_client_1.expectString)(value);
1722
- return acc;
1723
- }, {});
1724
- };
1725
- const de_SparkSqlJobDriver = (output, context) => {
1726
- return {
1727
- entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
1728
- sparkSqlParameters: (0, smithy_client_1.expectString)(output.sparkSqlParameters),
1729
- };
1730
- };
1731
- const de_SparkSubmitJobDriver = (output, context) => {
1732
- return {
1733
- entryPoint: (0, smithy_client_1.expectString)(output.entryPoint),
1734
- entryPointArguments: output.entryPointArguments != null ? de_EntryPointArguments(output.entryPointArguments, context) : undefined,
1735
- sparkSubmitParameters: (0, smithy_client_1.expectString)(output.sparkSubmitParameters),
1736
- };
1737
- };
1738
- const de_SubnetIds = (output, context) => {
1739
- const retVal = (output || [])
1740
- .filter((e) => e != null)
1741
- .map((entry) => {
1742
- if (entry === null) {
1743
- return null;
1744
- }
1745
- return (0, smithy_client_1.expectString)(entry);
1388
+ return (0, smithy_client_1.take)(output, {
1389
+ applicationConfiguration: (_) => de_ConfigurationList(_, context),
1390
+ monitoringConfiguration: smithy_client_1._json,
1746
1391
  });
1747
- return retVal;
1748
- };
1749
- const de_TagMap = (output, context) => {
1750
- return Object.entries(output).reduce((acc, [key, value]) => {
1751
- if (value === null) {
1752
- return acc;
1753
- }
1754
- acc[key] = (0, smithy_client_1.expectString)(value);
1755
- return acc;
1756
- }, {});
1757
- };
1758
- const de_TemplateParameterConfiguration = (output, context) => {
1759
- return {
1760
- defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
1761
- type: (0, smithy_client_1.expectString)(output.type),
1762
- };
1763
- };
1764
- const de_TemplateParameterConfigurationMap = (output, context) => {
1765
- return Object.entries(output).reduce((acc, [key, value]) => {
1766
- if (value === null) {
1767
- return acc;
1768
- }
1769
- acc[key] = de_TemplateParameterConfiguration(value, context);
1770
- return acc;
1771
- }, {});
1772
1392
  };
1773
1393
  const de_VirtualCluster = (output, context) => {
1774
- return {
1775
- arn: (0, smithy_client_1.expectString)(output.arn),
1776
- containerProvider: output.containerProvider != null ? de_ContainerProvider(output.containerProvider, context) : undefined,
1777
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1778
- id: (0, smithy_client_1.expectString)(output.id),
1779
- name: (0, smithy_client_1.expectString)(output.name),
1780
- state: (0, smithy_client_1.expectString)(output.state),
1781
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
1782
- };
1394
+ return (0, smithy_client_1.take)(output, {
1395
+ arn: smithy_client_1.expectString,
1396
+ containerProvider: smithy_client_1._json,
1397
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1398
+ id: smithy_client_1.expectString,
1399
+ name: smithy_client_1.expectString,
1400
+ state: smithy_client_1.expectString,
1401
+ tags: smithy_client_1._json,
1402
+ });
1783
1403
  };
1784
1404
  const de_VirtualClusters = (output, context) => {
1785
1405
  const retVal = (output || [])
1786
1406
  .filter((e) => e != null)
1787
1407
  .map((entry) => {
1788
- if (entry === null) {
1789
- return null;
1790
- }
1791
1408
  return de_VirtualCluster(entry, context);
1792
1409
  });
1793
1410
  return retVal;