@aws-sdk/client-rolesanywhere 3.310.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,18 +13,16 @@ const se_CreateProfileCommand = async (input, context) => {
13
13
  };
14
14
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
15
15
  let body;
16
- body = JSON.stringify({
17
- ...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
18
- ...(input.enabled != null && { enabled: input.enabled }),
19
- ...(input.managedPolicyArns != null && {
20
- managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
21
- }),
22
- ...(input.name != null && { name: input.name }),
23
- ...(input.requireInstanceProperties != null && { requireInstanceProperties: input.requireInstanceProperties }),
24
- ...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
25
- ...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
26
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
27
- });
16
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
17
+ durationSeconds: [],
18
+ enabled: [],
19
+ managedPolicyArns: (_) => (0, smithy_client_1._json)(_),
20
+ name: [],
21
+ requireInstanceProperties: [],
22
+ roleArns: (_) => (0, smithy_client_1._json)(_),
23
+ sessionPolicy: [],
24
+ tags: (_) => (0, smithy_client_1._json)(_),
25
+ }));
28
26
  return new protocol_http_1.HttpRequest({
29
27
  protocol,
30
28
  hostname,
@@ -43,12 +41,12 @@ const se_CreateTrustAnchorCommand = async (input, context) => {
43
41
  };
44
42
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
45
43
  let body;
46
- body = JSON.stringify({
47
- ...(input.enabled != null && { enabled: input.enabled }),
48
- ...(input.name != null && { name: input.name }),
49
- ...(input.source != null && { source: se_Source(input.source, context) }),
50
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
51
- });
44
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
45
+ enabled: [],
46
+ name: [],
47
+ source: (_) => (0, smithy_client_1._json)(_),
48
+ tags: (_) => (0, smithy_client_1._json)(_),
49
+ }));
52
50
  return new protocol_http_1.HttpRequest({
53
51
  protocol,
54
52
  hostname,
@@ -288,13 +286,13 @@ const se_ImportCrlCommand = async (input, context) => {
288
286
  };
289
287
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
290
288
  let body;
291
- body = JSON.stringify({
292
- ...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
293
- ...(input.enabled != null && { enabled: input.enabled }),
294
- ...(input.name != null && { name: input.name }),
295
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
296
- ...(input.trustAnchorArn != null && { trustAnchorArn: input.trustAnchorArn }),
297
- });
289
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
290
+ crlData: (_) => context.base64Encoder(_),
291
+ enabled: [],
292
+ name: [],
293
+ tags: (_) => (0, smithy_client_1._json)(_),
294
+ trustAnchorArn: [],
295
+ }));
298
296
  return new protocol_http_1.HttpRequest({
299
297
  protocol,
300
298
  hostname,
@@ -310,7 +308,7 @@ const se_ListCrlsCommand = async (input, context) => {
310
308
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
311
309
  const headers = {};
312
310
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crls";
313
- const query = map({
311
+ const query = (0, smithy_client_1.map)({
314
312
  nextToken: [, input.nextToken],
315
313
  pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
316
314
  });
@@ -331,7 +329,7 @@ const se_ListProfilesCommand = async (input, context) => {
331
329
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
332
330
  const headers = {};
333
331
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profiles";
334
- const query = map({
332
+ const query = (0, smithy_client_1.map)({
335
333
  nextToken: [, input.nextToken],
336
334
  pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
337
335
  });
@@ -352,7 +350,7 @@ const se_ListSubjectsCommand = async (input, context) => {
352
350
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
353
351
  const headers = {};
354
352
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subjects";
355
- const query = map({
353
+ const query = (0, smithy_client_1.map)({
356
354
  nextToken: [, input.nextToken],
357
355
  pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
358
356
  });
@@ -373,7 +371,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
373
371
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
374
372
  const headers = {};
375
373
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTagsForResource";
376
- const query = map({
374
+ const query = (0, smithy_client_1.map)({
377
375
  resourceArn: [, (0, smithy_client_1.expectNonNull)(input.resourceArn, `resourceArn`)],
378
376
  });
379
377
  let body;
@@ -393,7 +391,7 @@ const se_ListTrustAnchorsCommand = async (input, context) => {
393
391
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
394
392
  const headers = {};
395
393
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchors";
396
- const query = map({
394
+ const query = (0, smithy_client_1.map)({
397
395
  nextToken: [, input.nextToken],
398
396
  pageSize: [() => input.pageSize !== void 0, () => input.pageSize.toString()],
399
397
  });
@@ -417,10 +415,10 @@ const se_TagResourceCommand = async (input, context) => {
417
415
  };
418
416
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/TagResource";
419
417
  let body;
420
- body = JSON.stringify({
421
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
422
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
423
- });
418
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
419
+ resourceArn: [],
420
+ tags: (_) => (0, smithy_client_1._json)(_),
421
+ }));
424
422
  return new protocol_http_1.HttpRequest({
425
423
  protocol,
426
424
  hostname,
@@ -439,10 +437,10 @@ const se_UntagResourceCommand = async (input, context) => {
439
437
  };
440
438
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UntagResource";
441
439
  let body;
442
- body = JSON.stringify({
443
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
444
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
445
- });
440
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
441
+ resourceArn: [],
442
+ tagKeys: (_) => (0, smithy_client_1._json)(_),
443
+ }));
446
444
  return new protocol_http_1.HttpRequest({
447
445
  protocol,
448
446
  hostname,
@@ -462,10 +460,10 @@ const se_UpdateCrlCommand = async (input, context) => {
462
460
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/crl/{crlId}";
463
461
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "crlId", () => input.crlId, "{crlId}", false);
464
462
  let body;
465
- body = JSON.stringify({
466
- ...(input.crlData != null && { crlData: context.base64Encoder(input.crlData) }),
467
- ...(input.name != null && { name: input.name }),
468
- });
463
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
464
+ crlData: (_) => context.base64Encoder(_),
465
+ name: [],
466
+ }));
469
467
  return new protocol_http_1.HttpRequest({
470
468
  protocol,
471
469
  hostname,
@@ -485,15 +483,13 @@ const se_UpdateProfileCommand = async (input, context) => {
485
483
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/profile/{profileId}";
486
484
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "profileId", () => input.profileId, "{profileId}", false);
487
485
  let body;
488
- body = JSON.stringify({
489
- ...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
490
- ...(input.managedPolicyArns != null && {
491
- managedPolicyArns: se_ManagedPolicyList(input.managedPolicyArns, context),
492
- }),
493
- ...(input.name != null && { name: input.name }),
494
- ...(input.roleArns != null && { roleArns: se_RoleArnList(input.roleArns, context) }),
495
- ...(input.sessionPolicy != null && { sessionPolicy: input.sessionPolicy }),
496
- });
486
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
487
+ durationSeconds: [],
488
+ managedPolicyArns: (_) => (0, smithy_client_1._json)(_),
489
+ name: [],
490
+ roleArns: (_) => (0, smithy_client_1._json)(_),
491
+ sessionPolicy: [],
492
+ }));
497
493
  return new protocol_http_1.HttpRequest({
498
494
  protocol,
499
495
  hostname,
@@ -513,10 +509,10 @@ const se_UpdateTrustAnchorCommand = async (input, context) => {
513
509
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/trustanchor/{trustAnchorId}";
514
510
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
515
511
  let body;
516
- body = JSON.stringify({
517
- ...(input.name != null && { name: input.name }),
518
- ...(input.source != null && { source: se_Source(input.source, context) }),
519
- });
512
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
513
+ name: [],
514
+ source: (_) => (0, smithy_client_1._json)(_),
515
+ }));
520
516
  return new protocol_http_1.HttpRequest({
521
517
  protocol,
522
518
  hostname,
@@ -532,13 +528,14 @@ const de_CreateProfileCommand = async (output, context) => {
532
528
  if (output.statusCode !== 201 && output.statusCode >= 300) {
533
529
  return de_CreateProfileCommandError(output, context);
534
530
  }
535
- const contents = map({
531
+ const contents = (0, smithy_client_1.map)({
536
532
  $metadata: deserializeMetadata(output),
537
533
  });
538
534
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
539
- if (data.profile != null) {
540
- contents.profile = de_ProfileDetail(data.profile, context);
541
- }
535
+ const doc = (0, smithy_client_1.take)(data, {
536
+ profile: (_) => de_ProfileDetail(_, context),
537
+ });
538
+ Object.assign(contents, doc);
542
539
  return contents;
543
540
  };
544
541
  exports.de_CreateProfileCommand = de_CreateProfileCommand;
@@ -557,10 +554,9 @@ const de_CreateProfileCommandError = async (output, context) => {
557
554
  throw await de_ValidationExceptionRes(parsedOutput, context);
558
555
  default:
559
556
  const parsedBody = parsedOutput.body;
560
- (0, smithy_client_1.throwDefaultError)({
557
+ return throwDefaultError({
561
558
  output,
562
559
  parsedBody,
563
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
564
560
  errorCode,
565
561
  });
566
562
  }
@@ -569,13 +565,14 @@ const de_CreateTrustAnchorCommand = async (output, context) => {
569
565
  if (output.statusCode !== 201 && output.statusCode >= 300) {
570
566
  return de_CreateTrustAnchorCommandError(output, context);
571
567
  }
572
- const contents = map({
568
+ const contents = (0, smithy_client_1.map)({
573
569
  $metadata: deserializeMetadata(output),
574
570
  });
575
571
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
576
- if (data.trustAnchor != null) {
577
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
578
- }
572
+ const doc = (0, smithy_client_1.take)(data, {
573
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
574
+ });
575
+ Object.assign(contents, doc);
579
576
  return contents;
580
577
  };
581
578
  exports.de_CreateTrustAnchorCommand = de_CreateTrustAnchorCommand;
@@ -594,10 +591,9 @@ const de_CreateTrustAnchorCommandError = async (output, context) => {
594
591
  throw await de_ValidationExceptionRes(parsedOutput, context);
595
592
  default:
596
593
  const parsedBody = parsedOutput.body;
597
- (0, smithy_client_1.throwDefaultError)({
594
+ return throwDefaultError({
598
595
  output,
599
596
  parsedBody,
600
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
601
597
  errorCode,
602
598
  });
603
599
  }
@@ -606,13 +602,14 @@ const de_DeleteCrlCommand = async (output, context) => {
606
602
  if (output.statusCode !== 200 && output.statusCode >= 300) {
607
603
  return de_DeleteCrlCommandError(output, context);
608
604
  }
609
- const contents = map({
605
+ const contents = (0, smithy_client_1.map)({
610
606
  $metadata: deserializeMetadata(output),
611
607
  });
612
608
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
613
- if (data.crl != null) {
614
- contents.crl = de_CrlDetail(data.crl, context);
615
- }
609
+ const doc = (0, smithy_client_1.take)(data, {
610
+ crl: (_) => de_CrlDetail(_, context),
611
+ });
612
+ Object.assign(contents, doc);
616
613
  return contents;
617
614
  };
618
615
  exports.de_DeleteCrlCommand = de_DeleteCrlCommand;
@@ -631,10 +628,9 @@ const de_DeleteCrlCommandError = async (output, context) => {
631
628
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
632
629
  default:
633
630
  const parsedBody = parsedOutput.body;
634
- (0, smithy_client_1.throwDefaultError)({
631
+ return throwDefaultError({
635
632
  output,
636
633
  parsedBody,
637
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
638
634
  errorCode,
639
635
  });
640
636
  }
@@ -643,13 +639,14 @@ const de_DeleteProfileCommand = async (output, context) => {
643
639
  if (output.statusCode !== 200 && output.statusCode >= 300) {
644
640
  return de_DeleteProfileCommandError(output, context);
645
641
  }
646
- const contents = map({
642
+ const contents = (0, smithy_client_1.map)({
647
643
  $metadata: deserializeMetadata(output),
648
644
  });
649
645
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
650
- if (data.profile != null) {
651
- contents.profile = de_ProfileDetail(data.profile, context);
652
- }
646
+ const doc = (0, smithy_client_1.take)(data, {
647
+ profile: (_) => de_ProfileDetail(_, context),
648
+ });
649
+ Object.assign(contents, doc);
653
650
  return contents;
654
651
  };
655
652
  exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
@@ -668,10 +665,9 @@ const de_DeleteProfileCommandError = async (output, context) => {
668
665
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
669
666
  default:
670
667
  const parsedBody = parsedOutput.body;
671
- (0, smithy_client_1.throwDefaultError)({
668
+ return throwDefaultError({
672
669
  output,
673
670
  parsedBody,
674
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
675
671
  errorCode,
676
672
  });
677
673
  }
@@ -680,13 +676,14 @@ const de_DeleteTrustAnchorCommand = async (output, context) => {
680
676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
681
677
  return de_DeleteTrustAnchorCommandError(output, context);
682
678
  }
683
- const contents = map({
679
+ const contents = (0, smithy_client_1.map)({
684
680
  $metadata: deserializeMetadata(output),
685
681
  });
686
682
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
687
- if (data.trustAnchor != null) {
688
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
689
- }
683
+ const doc = (0, smithy_client_1.take)(data, {
684
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
685
+ });
686
+ Object.assign(contents, doc);
690
687
  return contents;
691
688
  };
692
689
  exports.de_DeleteTrustAnchorCommand = de_DeleteTrustAnchorCommand;
@@ -705,10 +702,9 @@ const de_DeleteTrustAnchorCommandError = async (output, context) => {
705
702
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
706
703
  default:
707
704
  const parsedBody = parsedOutput.body;
708
- (0, smithy_client_1.throwDefaultError)({
705
+ return throwDefaultError({
709
706
  output,
710
707
  parsedBody,
711
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
712
708
  errorCode,
713
709
  });
714
710
  }
@@ -717,13 +713,14 @@ const de_DisableCrlCommand = async (output, context) => {
717
713
  if (output.statusCode !== 200 && output.statusCode >= 300) {
718
714
  return de_DisableCrlCommandError(output, context);
719
715
  }
720
- const contents = map({
716
+ const contents = (0, smithy_client_1.map)({
721
717
  $metadata: deserializeMetadata(output),
722
718
  });
723
719
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
724
- if (data.crl != null) {
725
- contents.crl = de_CrlDetail(data.crl, context);
726
- }
720
+ const doc = (0, smithy_client_1.take)(data, {
721
+ crl: (_) => de_CrlDetail(_, context),
722
+ });
723
+ Object.assign(contents, doc);
727
724
  return contents;
728
725
  };
729
726
  exports.de_DisableCrlCommand = de_DisableCrlCommand;
@@ -742,10 +739,9 @@ const de_DisableCrlCommandError = async (output, context) => {
742
739
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
743
740
  default:
744
741
  const parsedBody = parsedOutput.body;
745
- (0, smithy_client_1.throwDefaultError)({
742
+ return throwDefaultError({
746
743
  output,
747
744
  parsedBody,
748
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
749
745
  errorCode,
750
746
  });
751
747
  }
@@ -754,13 +750,14 @@ const de_DisableProfileCommand = async (output, context) => {
754
750
  if (output.statusCode !== 200 && output.statusCode >= 300) {
755
751
  return de_DisableProfileCommandError(output, context);
756
752
  }
757
- const contents = map({
753
+ const contents = (0, smithy_client_1.map)({
758
754
  $metadata: deserializeMetadata(output),
759
755
  });
760
756
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
761
- if (data.profile != null) {
762
- contents.profile = de_ProfileDetail(data.profile, context);
763
- }
757
+ const doc = (0, smithy_client_1.take)(data, {
758
+ profile: (_) => de_ProfileDetail(_, context),
759
+ });
760
+ Object.assign(contents, doc);
764
761
  return contents;
765
762
  };
766
763
  exports.de_DisableProfileCommand = de_DisableProfileCommand;
@@ -779,10 +776,9 @@ const de_DisableProfileCommandError = async (output, context) => {
779
776
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
780
777
  default:
781
778
  const parsedBody = parsedOutput.body;
782
- (0, smithy_client_1.throwDefaultError)({
779
+ return throwDefaultError({
783
780
  output,
784
781
  parsedBody,
785
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
786
782
  errorCode,
787
783
  });
788
784
  }
@@ -791,13 +787,14 @@ const de_DisableTrustAnchorCommand = async (output, context) => {
791
787
  if (output.statusCode !== 200 && output.statusCode >= 300) {
792
788
  return de_DisableTrustAnchorCommandError(output, context);
793
789
  }
794
- const contents = map({
790
+ const contents = (0, smithy_client_1.map)({
795
791
  $metadata: deserializeMetadata(output),
796
792
  });
797
793
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
798
- if (data.trustAnchor != null) {
799
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
800
- }
794
+ const doc = (0, smithy_client_1.take)(data, {
795
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
796
+ });
797
+ Object.assign(contents, doc);
801
798
  return contents;
802
799
  };
803
800
  exports.de_DisableTrustAnchorCommand = de_DisableTrustAnchorCommand;
@@ -816,10 +813,9 @@ const de_DisableTrustAnchorCommandError = async (output, context) => {
816
813
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
817
814
  default:
818
815
  const parsedBody = parsedOutput.body;
819
- (0, smithy_client_1.throwDefaultError)({
816
+ return throwDefaultError({
820
817
  output,
821
818
  parsedBody,
822
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
823
819
  errorCode,
824
820
  });
825
821
  }
@@ -828,13 +824,14 @@ const de_EnableCrlCommand = async (output, context) => {
828
824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
829
825
  return de_EnableCrlCommandError(output, context);
830
826
  }
831
- const contents = map({
827
+ const contents = (0, smithy_client_1.map)({
832
828
  $metadata: deserializeMetadata(output),
833
829
  });
834
830
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
835
- if (data.crl != null) {
836
- contents.crl = de_CrlDetail(data.crl, context);
837
- }
831
+ const doc = (0, smithy_client_1.take)(data, {
832
+ crl: (_) => de_CrlDetail(_, context),
833
+ });
834
+ Object.assign(contents, doc);
838
835
  return contents;
839
836
  };
840
837
  exports.de_EnableCrlCommand = de_EnableCrlCommand;
@@ -853,10 +850,9 @@ const de_EnableCrlCommandError = async (output, context) => {
853
850
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
854
851
  default:
855
852
  const parsedBody = parsedOutput.body;
856
- (0, smithy_client_1.throwDefaultError)({
853
+ return throwDefaultError({
857
854
  output,
858
855
  parsedBody,
859
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
860
856
  errorCode,
861
857
  });
862
858
  }
@@ -865,13 +861,14 @@ const de_EnableProfileCommand = async (output, context) => {
865
861
  if (output.statusCode !== 200 && output.statusCode >= 300) {
866
862
  return de_EnableProfileCommandError(output, context);
867
863
  }
868
- const contents = map({
864
+ const contents = (0, smithy_client_1.map)({
869
865
  $metadata: deserializeMetadata(output),
870
866
  });
871
867
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
872
- if (data.profile != null) {
873
- contents.profile = de_ProfileDetail(data.profile, context);
874
- }
868
+ const doc = (0, smithy_client_1.take)(data, {
869
+ profile: (_) => de_ProfileDetail(_, context),
870
+ });
871
+ Object.assign(contents, doc);
875
872
  return contents;
876
873
  };
877
874
  exports.de_EnableProfileCommand = de_EnableProfileCommand;
@@ -890,10 +887,9 @@ const de_EnableProfileCommandError = async (output, context) => {
890
887
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
891
888
  default:
892
889
  const parsedBody = parsedOutput.body;
893
- (0, smithy_client_1.throwDefaultError)({
890
+ return throwDefaultError({
894
891
  output,
895
892
  parsedBody,
896
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
897
893
  errorCode,
898
894
  });
899
895
  }
@@ -902,13 +898,14 @@ const de_EnableTrustAnchorCommand = async (output, context) => {
902
898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
903
899
  return de_EnableTrustAnchorCommandError(output, context);
904
900
  }
905
- const contents = map({
901
+ const contents = (0, smithy_client_1.map)({
906
902
  $metadata: deserializeMetadata(output),
907
903
  });
908
904
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
909
- if (data.trustAnchor != null) {
910
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
911
- }
905
+ const doc = (0, smithy_client_1.take)(data, {
906
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
907
+ });
908
+ Object.assign(contents, doc);
912
909
  return contents;
913
910
  };
914
911
  exports.de_EnableTrustAnchorCommand = de_EnableTrustAnchorCommand;
@@ -927,10 +924,9 @@ const de_EnableTrustAnchorCommandError = async (output, context) => {
927
924
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
928
925
  default:
929
926
  const parsedBody = parsedOutput.body;
930
- (0, smithy_client_1.throwDefaultError)({
927
+ return throwDefaultError({
931
928
  output,
932
929
  parsedBody,
933
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
934
930
  errorCode,
935
931
  });
936
932
  }
@@ -939,13 +935,14 @@ const de_GetCrlCommand = async (output, context) => {
939
935
  if (output.statusCode !== 200 && output.statusCode >= 300) {
940
936
  return de_GetCrlCommandError(output, context);
941
937
  }
942
- const contents = map({
938
+ const contents = (0, smithy_client_1.map)({
943
939
  $metadata: deserializeMetadata(output),
944
940
  });
945
941
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
946
- if (data.crl != null) {
947
- contents.crl = de_CrlDetail(data.crl, context);
948
- }
942
+ const doc = (0, smithy_client_1.take)(data, {
943
+ crl: (_) => de_CrlDetail(_, context),
944
+ });
945
+ Object.assign(contents, doc);
949
946
  return contents;
950
947
  };
951
948
  exports.de_GetCrlCommand = de_GetCrlCommand;
@@ -961,10 +958,9 @@ const de_GetCrlCommandError = async (output, context) => {
961
958
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
962
959
  default:
963
960
  const parsedBody = parsedOutput.body;
964
- (0, smithy_client_1.throwDefaultError)({
961
+ return throwDefaultError({
965
962
  output,
966
963
  parsedBody,
967
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
968
964
  errorCode,
969
965
  });
970
966
  }
@@ -973,13 +969,14 @@ const de_GetProfileCommand = async (output, context) => {
973
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
974
970
  return de_GetProfileCommandError(output, context);
975
971
  }
976
- const contents = map({
972
+ const contents = (0, smithy_client_1.map)({
977
973
  $metadata: deserializeMetadata(output),
978
974
  });
979
975
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
980
- if (data.profile != null) {
981
- contents.profile = de_ProfileDetail(data.profile, context);
982
- }
976
+ const doc = (0, smithy_client_1.take)(data, {
977
+ profile: (_) => de_ProfileDetail(_, context),
978
+ });
979
+ Object.assign(contents, doc);
983
980
  return contents;
984
981
  };
985
982
  exports.de_GetProfileCommand = de_GetProfileCommand;
@@ -998,10 +995,9 @@ const de_GetProfileCommandError = async (output, context) => {
998
995
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
999
996
  default:
1000
997
  const parsedBody = parsedOutput.body;
1001
- (0, smithy_client_1.throwDefaultError)({
998
+ return throwDefaultError({
1002
999
  output,
1003
1000
  parsedBody,
1004
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1005
1001
  errorCode,
1006
1002
  });
1007
1003
  }
@@ -1010,13 +1006,14 @@ const de_GetSubjectCommand = async (output, context) => {
1010
1006
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
1007
  return de_GetSubjectCommandError(output, context);
1012
1008
  }
1013
- const contents = map({
1009
+ const contents = (0, smithy_client_1.map)({
1014
1010
  $metadata: deserializeMetadata(output),
1015
1011
  });
1016
1012
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1017
- if (data.subject != null) {
1018
- contents.subject = de_SubjectDetail(data.subject, context);
1019
- }
1013
+ const doc = (0, smithy_client_1.take)(data, {
1014
+ subject: (_) => de_SubjectDetail(_, context),
1015
+ });
1016
+ Object.assign(contents, doc);
1020
1017
  return contents;
1021
1018
  };
1022
1019
  exports.de_GetSubjectCommand = de_GetSubjectCommand;
@@ -1035,10 +1032,9 @@ const de_GetSubjectCommandError = async (output, context) => {
1035
1032
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1036
1033
  default:
1037
1034
  const parsedBody = parsedOutput.body;
1038
- (0, smithy_client_1.throwDefaultError)({
1035
+ return throwDefaultError({
1039
1036
  output,
1040
1037
  parsedBody,
1041
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1042
1038
  errorCode,
1043
1039
  });
1044
1040
  }
@@ -1047,13 +1043,14 @@ const de_GetTrustAnchorCommand = async (output, context) => {
1047
1043
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1048
1044
  return de_GetTrustAnchorCommandError(output, context);
1049
1045
  }
1050
- const contents = map({
1046
+ const contents = (0, smithy_client_1.map)({
1051
1047
  $metadata: deserializeMetadata(output),
1052
1048
  });
1053
1049
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1054
- if (data.trustAnchor != null) {
1055
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
1056
- }
1050
+ const doc = (0, smithy_client_1.take)(data, {
1051
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
1052
+ });
1053
+ Object.assign(contents, doc);
1057
1054
  return contents;
1058
1055
  };
1059
1056
  exports.de_GetTrustAnchorCommand = de_GetTrustAnchorCommand;
@@ -1075,10 +1072,9 @@ const de_GetTrustAnchorCommandError = async (output, context) => {
1075
1072
  throw await de_ValidationExceptionRes(parsedOutput, context);
1076
1073
  default:
1077
1074
  const parsedBody = parsedOutput.body;
1078
- (0, smithy_client_1.throwDefaultError)({
1075
+ return throwDefaultError({
1079
1076
  output,
1080
1077
  parsedBody,
1081
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1082
1078
  errorCode,
1083
1079
  });
1084
1080
  }
@@ -1087,13 +1083,14 @@ const de_ImportCrlCommand = async (output, context) => {
1087
1083
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1088
1084
  return de_ImportCrlCommandError(output, context);
1089
1085
  }
1090
- const contents = map({
1086
+ const contents = (0, smithy_client_1.map)({
1091
1087
  $metadata: deserializeMetadata(output),
1092
1088
  });
1093
1089
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1094
- if (data.crl != null) {
1095
- contents.crl = de_CrlDetail(data.crl, context);
1096
- }
1090
+ const doc = (0, smithy_client_1.take)(data, {
1091
+ crl: (_) => de_CrlDetail(_, context),
1092
+ });
1093
+ Object.assign(contents, doc);
1097
1094
  return contents;
1098
1095
  };
1099
1096
  exports.de_ImportCrlCommand = de_ImportCrlCommand;
@@ -1112,10 +1109,9 @@ const de_ImportCrlCommandError = async (output, context) => {
1112
1109
  throw await de_ValidationExceptionRes(parsedOutput, context);
1113
1110
  default:
1114
1111
  const parsedBody = parsedOutput.body;
1115
- (0, smithy_client_1.throwDefaultError)({
1112
+ return throwDefaultError({
1116
1113
  output,
1117
1114
  parsedBody,
1118
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1119
1115
  errorCode,
1120
1116
  });
1121
1117
  }
@@ -1124,16 +1120,15 @@ const de_ListCrlsCommand = async (output, context) => {
1124
1120
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1125
1121
  return de_ListCrlsCommandError(output, context);
1126
1122
  }
1127
- const contents = map({
1123
+ const contents = (0, smithy_client_1.map)({
1128
1124
  $metadata: deserializeMetadata(output),
1129
1125
  });
1130
1126
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1131
- if (data.crls != null) {
1132
- contents.crls = de_CrlDetails(data.crls, context);
1133
- }
1134
- if (data.nextToken != null) {
1135
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1136
- }
1127
+ const doc = (0, smithy_client_1.take)(data, {
1128
+ crls: (_) => de_CrlDetails(_, context),
1129
+ nextToken: smithy_client_1.expectString,
1130
+ });
1131
+ Object.assign(contents, doc);
1137
1132
  return contents;
1138
1133
  };
1139
1134
  exports.de_ListCrlsCommand = de_ListCrlsCommand;
@@ -1152,10 +1147,9 @@ const de_ListCrlsCommandError = async (output, context) => {
1152
1147
  throw await de_ValidationExceptionRes(parsedOutput, context);
1153
1148
  default:
1154
1149
  const parsedBody = parsedOutput.body;
1155
- (0, smithy_client_1.throwDefaultError)({
1150
+ return throwDefaultError({
1156
1151
  output,
1157
1152
  parsedBody,
1158
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1159
1153
  errorCode,
1160
1154
  });
1161
1155
  }
@@ -1164,16 +1158,15 @@ const de_ListProfilesCommand = async (output, context) => {
1164
1158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
1159
  return de_ListProfilesCommandError(output, context);
1166
1160
  }
1167
- const contents = map({
1161
+ const contents = (0, smithy_client_1.map)({
1168
1162
  $metadata: deserializeMetadata(output),
1169
1163
  });
1170
1164
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1171
- if (data.nextToken != null) {
1172
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1173
- }
1174
- if (data.profiles != null) {
1175
- contents.profiles = de_ProfileDetails(data.profiles, context);
1176
- }
1165
+ const doc = (0, smithy_client_1.take)(data, {
1166
+ nextToken: smithy_client_1.expectString,
1167
+ profiles: (_) => de_ProfileDetails(_, context),
1168
+ });
1169
+ Object.assign(contents, doc);
1177
1170
  return contents;
1178
1171
  };
1179
1172
  exports.de_ListProfilesCommand = de_ListProfilesCommand;
@@ -1192,10 +1185,9 @@ const de_ListProfilesCommandError = async (output, context) => {
1192
1185
  throw await de_ValidationExceptionRes(parsedOutput, context);
1193
1186
  default:
1194
1187
  const parsedBody = parsedOutput.body;
1195
- (0, smithy_client_1.throwDefaultError)({
1188
+ return throwDefaultError({
1196
1189
  output,
1197
1190
  parsedBody,
1198
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1199
1191
  errorCode,
1200
1192
  });
1201
1193
  }
@@ -1204,16 +1196,15 @@ const de_ListSubjectsCommand = async (output, context) => {
1204
1196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1205
1197
  return de_ListSubjectsCommandError(output, context);
1206
1198
  }
1207
- const contents = map({
1199
+ const contents = (0, smithy_client_1.map)({
1208
1200
  $metadata: deserializeMetadata(output),
1209
1201
  });
1210
1202
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1211
- if (data.nextToken != null) {
1212
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1213
- }
1214
- if (data.subjects != null) {
1215
- contents.subjects = de_SubjectSummaries(data.subjects, context);
1216
- }
1203
+ const doc = (0, smithy_client_1.take)(data, {
1204
+ nextToken: smithy_client_1.expectString,
1205
+ subjects: (_) => de_SubjectSummaries(_, context),
1206
+ });
1207
+ Object.assign(contents, doc);
1217
1208
  return contents;
1218
1209
  };
1219
1210
  exports.de_ListSubjectsCommand = de_ListSubjectsCommand;
@@ -1232,10 +1223,9 @@ const de_ListSubjectsCommandError = async (output, context) => {
1232
1223
  throw await de_ValidationExceptionRes(parsedOutput, context);
1233
1224
  default:
1234
1225
  const parsedBody = parsedOutput.body;
1235
- (0, smithy_client_1.throwDefaultError)({
1226
+ return throwDefaultError({
1236
1227
  output,
1237
1228
  parsedBody,
1238
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1239
1229
  errorCode,
1240
1230
  });
1241
1231
  }
@@ -1244,13 +1234,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1244
1234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1245
1235
  return de_ListTagsForResourceCommandError(output, context);
1246
1236
  }
1247
- const contents = map({
1237
+ const contents = (0, smithy_client_1.map)({
1248
1238
  $metadata: deserializeMetadata(output),
1249
1239
  });
1250
1240
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1251
- if (data.tags != null) {
1252
- contents.tags = de_TagList(data.tags, context);
1253
- }
1241
+ const doc = (0, smithy_client_1.take)(data, {
1242
+ tags: smithy_client_1._json,
1243
+ });
1244
+ Object.assign(contents, doc);
1254
1245
  return contents;
1255
1246
  };
1256
1247
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -1272,10 +1263,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1272
1263
  throw await de_ValidationExceptionRes(parsedOutput, context);
1273
1264
  default:
1274
1265
  const parsedBody = parsedOutput.body;
1275
- (0, smithy_client_1.throwDefaultError)({
1266
+ return throwDefaultError({
1276
1267
  output,
1277
1268
  parsedBody,
1278
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1279
1269
  errorCode,
1280
1270
  });
1281
1271
  }
@@ -1284,16 +1274,15 @@ const de_ListTrustAnchorsCommand = async (output, context) => {
1284
1274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1285
1275
  return de_ListTrustAnchorsCommandError(output, context);
1286
1276
  }
1287
- const contents = map({
1277
+ const contents = (0, smithy_client_1.map)({
1288
1278
  $metadata: deserializeMetadata(output),
1289
1279
  });
1290
1280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1291
- if (data.nextToken != null) {
1292
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1293
- }
1294
- if (data.trustAnchors != null) {
1295
- contents.trustAnchors = de_TrustAnchorDetails(data.trustAnchors, context);
1296
- }
1281
+ const doc = (0, smithy_client_1.take)(data, {
1282
+ nextToken: smithy_client_1.expectString,
1283
+ trustAnchors: (_) => de_TrustAnchorDetails(_, context),
1284
+ });
1285
+ Object.assign(contents, doc);
1297
1286
  return contents;
1298
1287
  };
1299
1288
  exports.de_ListTrustAnchorsCommand = de_ListTrustAnchorsCommand;
@@ -1312,10 +1301,9 @@ const de_ListTrustAnchorsCommandError = async (output, context) => {
1312
1301
  throw await de_ValidationExceptionRes(parsedOutput, context);
1313
1302
  default:
1314
1303
  const parsedBody = parsedOutput.body;
1315
- (0, smithy_client_1.throwDefaultError)({
1304
+ return throwDefaultError({
1316
1305
  output,
1317
1306
  parsedBody,
1318
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1319
1307
  errorCode,
1320
1308
  });
1321
1309
  }
@@ -1324,7 +1312,7 @@ const de_TagResourceCommand = async (output, context) => {
1324
1312
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1325
1313
  return de_TagResourceCommandError(output, context);
1326
1314
  }
1327
- const contents = map({
1315
+ const contents = (0, smithy_client_1.map)({
1328
1316
  $metadata: deserializeMetadata(output),
1329
1317
  });
1330
1318
  await collectBody(output.body, context);
@@ -1352,10 +1340,9 @@ const de_TagResourceCommandError = async (output, context) => {
1352
1340
  throw await de_ValidationExceptionRes(parsedOutput, context);
1353
1341
  default:
1354
1342
  const parsedBody = parsedOutput.body;
1355
- (0, smithy_client_1.throwDefaultError)({
1343
+ return throwDefaultError({
1356
1344
  output,
1357
1345
  parsedBody,
1358
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1359
1346
  errorCode,
1360
1347
  });
1361
1348
  }
@@ -1364,7 +1351,7 @@ const de_UntagResourceCommand = async (output, context) => {
1364
1351
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
1352
  return de_UntagResourceCommandError(output, context);
1366
1353
  }
1367
- const contents = map({
1354
+ const contents = (0, smithy_client_1.map)({
1368
1355
  $metadata: deserializeMetadata(output),
1369
1356
  });
1370
1357
  await collectBody(output.body, context);
@@ -1389,10 +1376,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1389
1376
  throw await de_ValidationExceptionRes(parsedOutput, context);
1390
1377
  default:
1391
1378
  const parsedBody = parsedOutput.body;
1392
- (0, smithy_client_1.throwDefaultError)({
1379
+ return throwDefaultError({
1393
1380
  output,
1394
1381
  parsedBody,
1395
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1396
1382
  errorCode,
1397
1383
  });
1398
1384
  }
@@ -1401,13 +1387,14 @@ const de_UpdateCrlCommand = async (output, context) => {
1401
1387
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1402
1388
  return de_UpdateCrlCommandError(output, context);
1403
1389
  }
1404
- const contents = map({
1390
+ const contents = (0, smithy_client_1.map)({
1405
1391
  $metadata: deserializeMetadata(output),
1406
1392
  });
1407
1393
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1408
- if (data.crl != null) {
1409
- contents.crl = de_CrlDetail(data.crl, context);
1410
- }
1394
+ const doc = (0, smithy_client_1.take)(data, {
1395
+ crl: (_) => de_CrlDetail(_, context),
1396
+ });
1397
+ Object.assign(contents, doc);
1411
1398
  return contents;
1412
1399
  };
1413
1400
  exports.de_UpdateCrlCommand = de_UpdateCrlCommand;
@@ -1429,10 +1416,9 @@ const de_UpdateCrlCommandError = async (output, context) => {
1429
1416
  throw await de_ValidationExceptionRes(parsedOutput, context);
1430
1417
  default:
1431
1418
  const parsedBody = parsedOutput.body;
1432
- (0, smithy_client_1.throwDefaultError)({
1419
+ return throwDefaultError({
1433
1420
  output,
1434
1421
  parsedBody,
1435
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1436
1422
  errorCode,
1437
1423
  });
1438
1424
  }
@@ -1441,13 +1427,14 @@ const de_UpdateProfileCommand = async (output, context) => {
1441
1427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
1428
  return de_UpdateProfileCommandError(output, context);
1443
1429
  }
1444
- const contents = map({
1430
+ const contents = (0, smithy_client_1.map)({
1445
1431
  $metadata: deserializeMetadata(output),
1446
1432
  });
1447
1433
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1448
- if (data.profile != null) {
1449
- contents.profile = de_ProfileDetail(data.profile, context);
1450
- }
1434
+ const doc = (0, smithy_client_1.take)(data, {
1435
+ profile: (_) => de_ProfileDetail(_, context),
1436
+ });
1437
+ Object.assign(contents, doc);
1451
1438
  return contents;
1452
1439
  };
1453
1440
  exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
@@ -1469,10 +1456,9 @@ const de_UpdateProfileCommandError = async (output, context) => {
1469
1456
  throw await de_ValidationExceptionRes(parsedOutput, context);
1470
1457
  default:
1471
1458
  const parsedBody = parsedOutput.body;
1472
- (0, smithy_client_1.throwDefaultError)({
1459
+ return throwDefaultError({
1473
1460
  output,
1474
1461
  parsedBody,
1475
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1476
1462
  errorCode,
1477
1463
  });
1478
1464
  }
@@ -1481,13 +1467,14 @@ const de_UpdateTrustAnchorCommand = async (output, context) => {
1481
1467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1482
1468
  return de_UpdateTrustAnchorCommandError(output, context);
1483
1469
  }
1484
- const contents = map({
1470
+ const contents = (0, smithy_client_1.map)({
1485
1471
  $metadata: deserializeMetadata(output),
1486
1472
  });
1487
1473
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1488
- if (data.trustAnchor != null) {
1489
- contents.trustAnchor = de_TrustAnchorDetail(data.trustAnchor, context);
1490
- }
1474
+ const doc = (0, smithy_client_1.take)(data, {
1475
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context),
1476
+ });
1477
+ Object.assign(contents, doc);
1491
1478
  return contents;
1492
1479
  };
1493
1480
  exports.de_UpdateTrustAnchorCommand = de_UpdateTrustAnchorCommand;
@@ -1509,21 +1496,21 @@ const de_UpdateTrustAnchorCommandError = async (output, context) => {
1509
1496
  throw await de_ValidationExceptionRes(parsedOutput, context);
1510
1497
  default:
1511
1498
  const parsedBody = parsedOutput.body;
1512
- (0, smithy_client_1.throwDefaultError)({
1499
+ return throwDefaultError({
1513
1500
  output,
1514
1501
  parsedBody,
1515
- exceptionCtor: RolesAnywhereServiceException_1.RolesAnywhereServiceException,
1516
1502
  errorCode,
1517
1503
  });
1518
1504
  }
1519
1505
  };
1520
- const map = smithy_client_1.map;
1506
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(RolesAnywhereServiceException_1.RolesAnywhereServiceException);
1521
1507
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1522
- const contents = map({});
1508
+ const contents = (0, smithy_client_1.map)({});
1523
1509
  const data = parsedOutput.body;
1524
- if (data.message != null) {
1525
- contents.message = (0, smithy_client_1.expectString)(data.message);
1526
- }
1510
+ const doc = (0, smithy_client_1.take)(data, {
1511
+ message: smithy_client_1.expectString,
1512
+ });
1513
+ Object.assign(contents, doc);
1527
1514
  const exception = new models_0_1.AccessDeniedException({
1528
1515
  $metadata: deserializeMetadata(parsedOutput),
1529
1516
  ...contents,
@@ -1531,11 +1518,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1531
1518
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1532
1519
  };
1533
1520
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1534
- const contents = map({});
1521
+ const contents = (0, smithy_client_1.map)({});
1535
1522
  const data = parsedOutput.body;
1536
- if (data.message != null) {
1537
- contents.message = (0, smithy_client_1.expectString)(data.message);
1538
- }
1523
+ const doc = (0, smithy_client_1.take)(data, {
1524
+ message: smithy_client_1.expectString,
1525
+ });
1526
+ Object.assign(contents, doc);
1539
1527
  const exception = new models_0_1.ResourceNotFoundException({
1540
1528
  $metadata: deserializeMetadata(parsedOutput),
1541
1529
  ...contents,
@@ -1543,11 +1531,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1543
1531
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1544
1532
  };
1545
1533
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1546
- const contents = map({});
1534
+ const contents = (0, smithy_client_1.map)({});
1547
1535
  const data = parsedOutput.body;
1548
- if (data.message != null) {
1549
- contents.message = (0, smithy_client_1.expectString)(data.message);
1550
- }
1536
+ const doc = (0, smithy_client_1.take)(data, {
1537
+ message: smithy_client_1.expectString,
1538
+ });
1539
+ Object.assign(contents, doc);
1551
1540
  const exception = new models_0_1.TooManyTagsException({
1552
1541
  $metadata: deserializeMetadata(parsedOutput),
1553
1542
  ...contents,
@@ -1555,104 +1544,52 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1555
1544
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1556
1545
  };
1557
1546
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1558
- const contents = map({});
1547
+ const contents = (0, smithy_client_1.map)({});
1559
1548
  const data = parsedOutput.body;
1560
- if (data.message != null) {
1561
- contents.message = (0, smithy_client_1.expectString)(data.message);
1562
- }
1549
+ const doc = (0, smithy_client_1.take)(data, {
1550
+ message: smithy_client_1.expectString,
1551
+ });
1552
+ Object.assign(contents, doc);
1563
1553
  const exception = new models_0_1.ValidationException({
1564
1554
  $metadata: deserializeMetadata(parsedOutput),
1565
1555
  ...contents,
1566
1556
  });
1567
1557
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1568
1558
  };
1569
- const se_ManagedPolicyList = (input, context) => {
1570
- return input
1571
- .filter((e) => e != null)
1572
- .map((entry) => {
1573
- return entry;
1574
- });
1575
- };
1576
- const se_RoleArnList = (input, context) => {
1577
- return input
1578
- .filter((e) => e != null)
1579
- .map((entry) => {
1580
- return entry;
1581
- });
1582
- };
1583
- const se_Source = (input, context) => {
1584
- return {
1585
- ...(input.sourceData != null && { sourceData: se_SourceData(input.sourceData, context) }),
1586
- ...(input.sourceType != null && { sourceType: input.sourceType }),
1587
- };
1588
- };
1589
- const se_SourceData = (input, context) => {
1590
- return models_0_1.SourceData.visit(input, {
1591
- acmPcaArn: (value) => ({ acmPcaArn: value }),
1592
- x509CertificateData: (value) => ({ x509CertificateData: value }),
1593
- _: (name, value) => ({ name: value }),
1594
- });
1595
- };
1596
- const se_Tag = (input, context) => {
1597
- return {
1598
- ...(input.key != null && { key: input.key }),
1599
- ...(input.value != null && { value: input.value }),
1600
- };
1601
- };
1602
- const se_TagKeyList = (input, context) => {
1603
- return input
1604
- .filter((e) => e != null)
1605
- .map((entry) => {
1606
- return entry;
1607
- });
1608
- };
1609
- const se_TagList = (input, context) => {
1610
- return input
1611
- .filter((e) => e != null)
1612
- .map((entry) => {
1613
- return se_Tag(entry, context);
1614
- });
1615
- };
1616
1559
  const de_CredentialSummaries = (output, context) => {
1617
1560
  const retVal = (output || [])
1618
1561
  .filter((e) => e != null)
1619
1562
  .map((entry) => {
1620
- if (entry === null) {
1621
- return null;
1622
- }
1623
1563
  return de_CredentialSummary(entry, context);
1624
1564
  });
1625
1565
  return retVal;
1626
1566
  };
1627
1567
  const de_CredentialSummary = (output, context) => {
1628
- return {
1629
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1630
- failed: (0, smithy_client_1.expectBoolean)(output.failed),
1631
- issuer: (0, smithy_client_1.expectString)(output.issuer),
1632
- seenAt: output.seenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.seenAt)) : undefined,
1633
- serialNumber: (0, smithy_client_1.expectString)(output.serialNumber),
1634
- x509CertificateData: (0, smithy_client_1.expectString)(output.x509CertificateData),
1635
- };
1568
+ return (0, smithy_client_1.take)(output, {
1569
+ enabled: smithy_client_1.expectBoolean,
1570
+ failed: smithy_client_1.expectBoolean,
1571
+ issuer: smithy_client_1.expectString,
1572
+ seenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1573
+ serialNumber: smithy_client_1.expectString,
1574
+ x509CertificateData: smithy_client_1.expectString,
1575
+ });
1636
1576
  };
1637
1577
  const de_CrlDetail = (output, context) => {
1638
- return {
1639
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1640
- crlArn: (0, smithy_client_1.expectString)(output.crlArn),
1641
- crlData: output.crlData != null ? context.base64Decoder(output.crlData) : undefined,
1642
- crlId: (0, smithy_client_1.expectString)(output.crlId),
1643
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1644
- name: (0, smithy_client_1.expectString)(output.name),
1645
- trustAnchorArn: (0, smithy_client_1.expectString)(output.trustAnchorArn),
1646
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
1647
- };
1578
+ return (0, smithy_client_1.take)(output, {
1579
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1580
+ crlArn: smithy_client_1.expectString,
1581
+ crlData: context.base64Decoder,
1582
+ crlId: smithy_client_1.expectString,
1583
+ enabled: smithy_client_1.expectBoolean,
1584
+ name: smithy_client_1.expectString,
1585
+ trustAnchorArn: smithy_client_1.expectString,
1586
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1587
+ });
1648
1588
  };
1649
1589
  const de_CrlDetails = (output, context) => {
1650
1590
  const retVal = (output || [])
1651
1591
  .filter((e) => e != null)
1652
1592
  .map((entry) => {
1653
- if (entry === null) {
1654
- return null;
1655
- }
1656
1593
  return de_CrlDetail(entry, context);
1657
1594
  });
1658
1595
  return retVal;
@@ -1661,163 +1598,88 @@ const de_InstanceProperties = (output, context) => {
1661
1598
  const retVal = (output || [])
1662
1599
  .filter((e) => e != null)
1663
1600
  .map((entry) => {
1664
- if (entry === null) {
1665
- return null;
1666
- }
1667
1601
  return de_InstanceProperty(entry, context);
1668
1602
  });
1669
1603
  return retVal;
1670
1604
  };
1671
1605
  const de_InstanceProperty = (output, context) => {
1672
- return {
1673
- failed: (0, smithy_client_1.expectBoolean)(output.failed),
1674
- properties: output.properties != null ? de_InstancePropertyMap(output.properties, context) : undefined,
1675
- seenAt: output.seenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.seenAt)) : undefined,
1676
- };
1677
- };
1678
- const de_InstancePropertyMap = (output, context) => {
1679
- return Object.entries(output).reduce((acc, [key, value]) => {
1680
- if (value === null) {
1681
- return acc;
1682
- }
1683
- acc[key] = (0, smithy_client_1.expectString)(value);
1684
- return acc;
1685
- }, {});
1686
- };
1687
- const de_ManagedPolicyList = (output, context) => {
1688
- const retVal = (output || [])
1689
- .filter((e) => e != null)
1690
- .map((entry) => {
1691
- if (entry === null) {
1692
- return null;
1693
- }
1694
- return (0, smithy_client_1.expectString)(entry);
1606
+ return (0, smithy_client_1.take)(output, {
1607
+ failed: smithy_client_1.expectBoolean,
1608
+ properties: smithy_client_1._json,
1609
+ seenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1695
1610
  });
1696
- return retVal;
1697
1611
  };
1698
1612
  const de_ProfileDetail = (output, context) => {
1699
- return {
1700
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1701
- createdBy: (0, smithy_client_1.expectString)(output.createdBy),
1702
- durationSeconds: (0, smithy_client_1.expectInt32)(output.durationSeconds),
1703
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1704
- managedPolicyArns: output.managedPolicyArns != null ? de_ManagedPolicyList(output.managedPolicyArns, context) : undefined,
1705
- name: (0, smithy_client_1.expectString)(output.name),
1706
- profileArn: (0, smithy_client_1.expectString)(output.profileArn),
1707
- profileId: (0, smithy_client_1.expectString)(output.profileId),
1708
- requireInstanceProperties: (0, smithy_client_1.expectBoolean)(output.requireInstanceProperties),
1709
- roleArns: output.roleArns != null ? de_RoleArnList(output.roleArns, context) : undefined,
1710
- sessionPolicy: (0, smithy_client_1.expectString)(output.sessionPolicy),
1711
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
1712
- };
1613
+ return (0, smithy_client_1.take)(output, {
1614
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1615
+ createdBy: smithy_client_1.expectString,
1616
+ durationSeconds: smithy_client_1.expectInt32,
1617
+ enabled: smithy_client_1.expectBoolean,
1618
+ managedPolicyArns: smithy_client_1._json,
1619
+ name: smithy_client_1.expectString,
1620
+ profileArn: smithy_client_1.expectString,
1621
+ profileId: smithy_client_1.expectString,
1622
+ requireInstanceProperties: smithy_client_1.expectBoolean,
1623
+ roleArns: smithy_client_1._json,
1624
+ sessionPolicy: smithy_client_1.expectString,
1625
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1626
+ });
1713
1627
  };
1714
1628
  const de_ProfileDetails = (output, context) => {
1715
1629
  const retVal = (output || [])
1716
1630
  .filter((e) => e != null)
1717
1631
  .map((entry) => {
1718
- if (entry === null) {
1719
- return null;
1720
- }
1721
1632
  return de_ProfileDetail(entry, context);
1722
1633
  });
1723
1634
  return retVal;
1724
1635
  };
1725
- const de_RoleArnList = (output, context) => {
1726
- const retVal = (output || [])
1727
- .filter((e) => e != null)
1728
- .map((entry) => {
1729
- if (entry === null) {
1730
- return null;
1731
- }
1732
- return (0, smithy_client_1.expectString)(entry);
1733
- });
1734
- return retVal;
1735
- };
1736
- const de_Source = (output, context) => {
1737
- return {
1738
- sourceData: output.sourceData != null ? de_SourceData((0, smithy_client_1.expectUnion)(output.sourceData), context) : undefined,
1739
- sourceType: (0, smithy_client_1.expectString)(output.sourceType),
1740
- };
1741
- };
1742
- const de_SourceData = (output, context) => {
1743
- if ((0, smithy_client_1.expectString)(output.acmPcaArn) !== undefined) {
1744
- return { acmPcaArn: (0, smithy_client_1.expectString)(output.acmPcaArn) };
1745
- }
1746
- if ((0, smithy_client_1.expectString)(output.x509CertificateData) !== undefined) {
1747
- return { x509CertificateData: (0, smithy_client_1.expectString)(output.x509CertificateData) };
1748
- }
1749
- return { $unknown: Object.entries(output)[0] };
1750
- };
1751
1636
  const de_SubjectDetail = (output, context) => {
1752
- return {
1753
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1754
- credentials: output.credentials != null ? de_CredentialSummaries(output.credentials, context) : undefined,
1755
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1756
- instanceProperties: output.instanceProperties != null ? de_InstanceProperties(output.instanceProperties, context) : undefined,
1757
- lastSeenAt: output.lastSeenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastSeenAt)) : undefined,
1758
- subjectArn: (0, smithy_client_1.expectString)(output.subjectArn),
1759
- subjectId: (0, smithy_client_1.expectString)(output.subjectId),
1760
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
1761
- x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
1762
- };
1637
+ return (0, smithy_client_1.take)(output, {
1638
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1639
+ credentials: (_) => de_CredentialSummaries(_, context),
1640
+ enabled: smithy_client_1.expectBoolean,
1641
+ instanceProperties: (_) => de_InstanceProperties(_, context),
1642
+ lastSeenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1643
+ subjectArn: smithy_client_1.expectString,
1644
+ subjectId: smithy_client_1.expectString,
1645
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1646
+ x509Subject: smithy_client_1.expectString,
1647
+ });
1763
1648
  };
1764
1649
  const de_SubjectSummaries = (output, context) => {
1765
1650
  const retVal = (output || [])
1766
1651
  .filter((e) => e != null)
1767
1652
  .map((entry) => {
1768
- if (entry === null) {
1769
- return null;
1770
- }
1771
1653
  return de_SubjectSummary(entry, context);
1772
1654
  });
1773
1655
  return retVal;
1774
1656
  };
1775
1657
  const de_SubjectSummary = (output, context) => {
1776
- return {
1777
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1778
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1779
- lastSeenAt: output.lastSeenAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.lastSeenAt)) : undefined,
1780
- subjectArn: (0, smithy_client_1.expectString)(output.subjectArn),
1781
- subjectId: (0, smithy_client_1.expectString)(output.subjectId),
1782
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
1783
- x509Subject: (0, smithy_client_1.expectString)(output.x509Subject),
1784
- };
1785
- };
1786
- const de_Tag = (output, context) => {
1787
- return {
1788
- key: (0, smithy_client_1.expectString)(output.key),
1789
- value: (0, smithy_client_1.expectString)(output.value),
1790
- };
1791
- };
1792
- const de_TagList = (output, context) => {
1793
- const retVal = (output || [])
1794
- .filter((e) => e != null)
1795
- .map((entry) => {
1796
- if (entry === null) {
1797
- return null;
1798
- }
1799
- return de_Tag(entry, context);
1658
+ return (0, smithy_client_1.take)(output, {
1659
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1660
+ enabled: smithy_client_1.expectBoolean,
1661
+ lastSeenAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1662
+ subjectArn: smithy_client_1.expectString,
1663
+ subjectId: smithy_client_1.expectString,
1664
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1665
+ x509Subject: smithy_client_1.expectString,
1800
1666
  });
1801
- return retVal;
1802
1667
  };
1803
1668
  const de_TrustAnchorDetail = (output, context) => {
1804
- return {
1805
- createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
1806
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
1807
- name: (0, smithy_client_1.expectString)(output.name),
1808
- source: output.source != null ? de_Source(output.source, context) : undefined,
1809
- trustAnchorArn: (0, smithy_client_1.expectString)(output.trustAnchorArn),
1810
- trustAnchorId: (0, smithy_client_1.expectString)(output.trustAnchorId),
1811
- updatedAt: output.updatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updatedAt)) : undefined,
1812
- };
1669
+ return (0, smithy_client_1.take)(output, {
1670
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1671
+ enabled: smithy_client_1.expectBoolean,
1672
+ name: smithy_client_1.expectString,
1673
+ source: smithy_client_1._json,
1674
+ trustAnchorArn: smithy_client_1.expectString,
1675
+ trustAnchorId: smithy_client_1.expectString,
1676
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1677
+ });
1813
1678
  };
1814
1679
  const de_TrustAnchorDetails = (output, context) => {
1815
1680
  const retVal = (output || [])
1816
1681
  .filter((e) => e != null)
1817
1682
  .map((entry) => {
1818
- if (entry === null) {
1819
- return null;
1820
- }
1821
1683
  return de_TrustAnchorDetail(entry, context);
1822
1684
  });
1823
1685
  return retVal;