@aws-sdk/client-groundstation 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,11 +30,11 @@ const se_CreateConfigCommand = async (input, context) => {
30
30
  };
31
31
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
32
32
  let body;
33
- body = JSON.stringify({
34
- ...(input.configData != null && { configData: se_ConfigTypeData(input.configData, context) }),
35
- ...(input.name != null && { name: input.name }),
36
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
37
- });
33
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
34
+ configData: (_) => se_ConfigTypeData(_, context),
35
+ name: [],
36
+ tags: (_) => (0, smithy_client_1._json)(_),
37
+ }));
38
38
  return new protocol_http_1.HttpRequest({
39
39
  protocol,
40
40
  hostname,
@@ -53,16 +53,12 @@ const se_CreateDataflowEndpointGroupCommand = async (input, context) => {
53
53
  };
54
54
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
55
55
  let body;
56
- body = JSON.stringify({
57
- ...(input.contactPostPassDurationSeconds != null && {
58
- contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
59
- }),
60
- ...(input.contactPrePassDurationSeconds != null && {
61
- contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
62
- }),
63
- ...(input.endpointDetails != null && { endpointDetails: se_EndpointDetailsList(input.endpointDetails, context) }),
64
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
65
- });
56
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
57
+ contactPostPassDurationSeconds: [],
58
+ contactPrePassDurationSeconds: [],
59
+ endpointDetails: (_) => (0, smithy_client_1._json)(_),
60
+ tags: (_) => (0, smithy_client_1._json)(_),
61
+ }));
66
62
  return new protocol_http_1.HttpRequest({
67
63
  protocol,
68
64
  hostname,
@@ -81,16 +77,16 @@ const se_CreateEphemerisCommand = async (input, context) => {
81
77
  };
82
78
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris";
83
79
  let body;
84
- body = JSON.stringify({
85
- ...(input.enabled != null && { enabled: input.enabled }),
86
- ...(input.ephemeris != null && { ephemeris: se_EphemerisData(input.ephemeris, context) }),
87
- ...(input.expirationTime != null && { expirationTime: Math.round(input.expirationTime.getTime() / 1000) }),
88
- ...(input.kmsKeyArn != null && { kmsKeyArn: input.kmsKeyArn }),
89
- ...(input.name != null && { name: input.name }),
90
- ...(input.priority != null && { priority: input.priority }),
91
- ...(input.satelliteId != null && { satelliteId: input.satelliteId }),
92
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
93
- });
80
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
81
+ enabled: [],
82
+ ephemeris: (_) => se_EphemerisData(_, context),
83
+ expirationTime: (_) => Math.round(_.getTime() / 1000),
84
+ kmsKeyArn: [],
85
+ name: [],
86
+ priority: [],
87
+ satelliteId: [],
88
+ tags: (_) => (0, smithy_client_1._json)(_),
89
+ }));
94
90
  return new protocol_http_1.HttpRequest({
95
91
  protocol,
96
92
  hostname,
@@ -109,23 +105,17 @@ const se_CreateMissionProfileCommand = async (input, context) => {
109
105
  };
110
106
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
111
107
  let body;
112
- body = JSON.stringify({
113
- ...(input.contactPostPassDurationSeconds != null && {
114
- contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
115
- }),
116
- ...(input.contactPrePassDurationSeconds != null && {
117
- contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
118
- }),
119
- ...(input.dataflowEdges != null && { dataflowEdges: se_DataflowEdgeList(input.dataflowEdges, context) }),
120
- ...(input.minimumViableContactDurationSeconds != null && {
121
- minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
122
- }),
123
- ...(input.name != null && { name: input.name }),
124
- ...(input.streamsKmsKey != null && { streamsKmsKey: se_KmsKey(input.streamsKmsKey, context) }),
125
- ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
126
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
127
- ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
128
- });
108
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
109
+ contactPostPassDurationSeconds: [],
110
+ contactPrePassDurationSeconds: [],
111
+ dataflowEdges: (_) => (0, smithy_client_1._json)(_),
112
+ minimumViableContactDurationSeconds: [],
113
+ name: [],
114
+ streamsKmsKey: (_) => (0, smithy_client_1._json)(_),
115
+ streamsKmsRole: [],
116
+ tags: (_) => (0, smithy_client_1._json)(_),
117
+ trackingConfigArn: [],
118
+ }));
129
119
  return new protocol_http_1.HttpRequest({
130
120
  protocol,
131
121
  hostname,
@@ -301,10 +291,10 @@ const se_GetMinuteUsageCommand = async (input, context) => {
301
291
  };
302
292
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/minute-usage";
303
293
  let body;
304
- body = JSON.stringify({
305
- ...(input.month != null && { month: input.month }),
306
- ...(input.year != null && { year: input.year }),
307
- });
294
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
295
+ month: [],
296
+ year: [],
297
+ }));
308
298
  return new protocol_http_1.HttpRequest({
309
299
  protocol,
310
300
  hostname,
@@ -354,7 +344,7 @@ const se_ListConfigsCommand = async (input, context) => {
354
344
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
355
345
  const headers = {};
356
346
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/config";
357
- const query = map({
347
+ const query = (0, smithy_client_1.map)({
358
348
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
359
349
  nextToken: [, input.nextToken],
360
350
  });
@@ -378,16 +368,16 @@ const se_ListContactsCommand = async (input, context) => {
378
368
  };
379
369
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contacts";
380
370
  let body;
381
- body = JSON.stringify({
382
- ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
383
- ...(input.groundStation != null && { groundStation: input.groundStation }),
384
- ...(input.maxResults != null && { maxResults: input.maxResults }),
385
- ...(input.missionProfileArn != null && { missionProfileArn: input.missionProfileArn }),
386
- ...(input.nextToken != null && { nextToken: input.nextToken }),
387
- ...(input.satelliteArn != null && { satelliteArn: input.satelliteArn }),
388
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
389
- ...(input.statusList != null && { statusList: se_StatusList(input.statusList, context) }),
390
- });
371
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
372
+ endTime: (_) => Math.round(_.getTime() / 1000),
373
+ groundStation: [],
374
+ maxResults: [],
375
+ missionProfileArn: [],
376
+ nextToken: [],
377
+ satelliteArn: [],
378
+ startTime: (_) => Math.round(_.getTime() / 1000),
379
+ statusList: (_) => (0, smithy_client_1._json)(_),
380
+ }));
391
381
  return new protocol_http_1.HttpRequest({
392
382
  protocol,
393
383
  hostname,
@@ -403,7 +393,7 @@ const se_ListDataflowEndpointGroupsCommand = async (input, context) => {
403
393
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
404
394
  const headers = {};
405
395
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
406
- const query = map({
396
+ const query = (0, smithy_client_1.map)({
407
397
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
408
398
  nextToken: [, input.nextToken],
409
399
  });
@@ -426,17 +416,17 @@ const se_ListEphemeridesCommand = async (input, context) => {
426
416
  "content-type": "application/json",
427
417
  };
428
418
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemerides";
429
- const query = map({
419
+ const query = (0, smithy_client_1.map)({
430
420
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
431
421
  nextToken: [, input.nextToken],
432
422
  });
433
423
  let body;
434
- body = JSON.stringify({
435
- ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
436
- ...(input.satelliteId != null && { satelliteId: input.satelliteId }),
437
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
438
- ...(input.statusList != null && { statusList: se_EphemerisStatusList(input.statusList, context) }),
439
- });
424
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
425
+ endTime: (_) => Math.round(_.getTime() / 1000),
426
+ satelliteId: [],
427
+ startTime: (_) => Math.round(_.getTime() / 1000),
428
+ statusList: (_) => (0, smithy_client_1._json)(_),
429
+ }));
440
430
  return new protocol_http_1.HttpRequest({
441
431
  protocol,
442
432
  hostname,
@@ -453,7 +443,7 @@ const se_ListGroundStationsCommand = async (input, context) => {
453
443
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
454
444
  const headers = {};
455
445
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/groundstation";
456
- const query = map({
446
+ const query = (0, smithy_client_1.map)({
457
447
  satelliteId: [, input.satelliteId],
458
448
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
459
449
  nextToken: [, input.nextToken],
@@ -475,7 +465,7 @@ const se_ListMissionProfilesCommand = async (input, context) => {
475
465
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
476
466
  const headers = {};
477
467
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
478
- const query = map({
468
+ const query = (0, smithy_client_1.map)({
479
469
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
480
470
  nextToken: [, input.nextToken],
481
471
  });
@@ -496,7 +486,7 @@ const se_ListSatellitesCommand = async (input, context) => {
496
486
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
497
487
  const headers = {};
498
488
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/satellite";
499
- const query = map({
489
+ const query = (0, smithy_client_1.map)({
500
490
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
501
491
  nextToken: [, input.nextToken],
502
492
  });
@@ -537,10 +527,10 @@ const se_RegisterAgentCommand = async (input, context) => {
537
527
  };
538
528
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent";
539
529
  let body;
540
- body = JSON.stringify({
541
- ...(input.agentDetails != null && { agentDetails: se_AgentDetails(input.agentDetails, context) }),
542
- ...(input.discoveryData != null && { discoveryData: se_DiscoveryData(input.discoveryData, context) }),
543
- });
530
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
531
+ agentDetails: (_) => (0, smithy_client_1._json)(_),
532
+ discoveryData: (_) => (0, smithy_client_1._json)(_),
533
+ }));
544
534
  return new protocol_http_1.HttpRequest({
545
535
  protocol,
546
536
  hostname,
@@ -559,14 +549,14 @@ const se_ReserveContactCommand = async (input, context) => {
559
549
  };
560
550
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/contact";
561
551
  let body;
562
- body = JSON.stringify({
563
- ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
564
- ...(input.groundStation != null && { groundStation: input.groundStation }),
565
- ...(input.missionProfileArn != null && { missionProfileArn: input.missionProfileArn }),
566
- ...(input.satelliteArn != null && { satelliteArn: input.satelliteArn }),
567
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
568
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
569
- });
552
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
553
+ endTime: (_) => Math.round(_.getTime() / 1000),
554
+ groundStation: [],
555
+ missionProfileArn: [],
556
+ satelliteArn: [],
557
+ startTime: (_) => Math.round(_.getTime() / 1000),
558
+ tags: (_) => (0, smithy_client_1._json)(_),
559
+ }));
570
560
  return new protocol_http_1.HttpRequest({
571
561
  protocol,
572
562
  hostname,
@@ -586,9 +576,9 @@ const se_TagResourceCommand = async (input, context) => {
586
576
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
587
577
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
588
578
  let body;
589
- body = JSON.stringify({
590
- ...(input.tags != null && { tags: se_TagsMap(input.tags, context) }),
591
- });
579
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
580
+ tags: (_) => (0, smithy_client_1._json)(_),
581
+ }));
592
582
  return new protocol_http_1.HttpRequest({
593
583
  protocol,
594
584
  hostname,
@@ -605,7 +595,7 @@ const se_UntagResourceCommand = async (input, context) => {
605
595
  const headers = {};
606
596
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
607
597
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
608
- const query = map({
598
+ const query = (0, smithy_client_1.map)({
609
599
  tagKeys: [
610
600
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
611
601
  () => (input.tagKeys || []).map((_entry) => _entry),
@@ -632,13 +622,11 @@ const se_UpdateAgentStatusCommand = async (input, context) => {
632
622
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/agent/{agentId}";
633
623
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "agentId", () => input.agentId, "{agentId}", false);
634
624
  let body;
635
- body = JSON.stringify({
636
- ...(input.aggregateStatus != null && { aggregateStatus: se_AggregateStatus(input.aggregateStatus, context) }),
637
- ...(input.componentStatuses != null && {
638
- componentStatuses: se_ComponentStatusList(input.componentStatuses, context),
639
- }),
640
- ...(input.taskId != null && { taskId: input.taskId }),
641
- });
625
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
626
+ aggregateStatus: (_) => (0, smithy_client_1._json)(_),
627
+ componentStatuses: (_) => (0, smithy_client_1._json)(_),
628
+ taskId: [],
629
+ }));
642
630
  return new protocol_http_1.HttpRequest({
643
631
  protocol,
644
632
  hostname,
@@ -659,10 +647,10 @@ const se_UpdateConfigCommand = async (input, context) => {
659
647
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configId", () => input.configId, "{configId}", false);
660
648
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "configType", () => input.configType, "{configType}", false);
661
649
  let body;
662
- body = JSON.stringify({
663
- ...(input.configData != null && { configData: se_ConfigTypeData(input.configData, context) }),
664
- ...(input.name != null && { name: input.name }),
665
- });
650
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
651
+ configData: (_) => se_ConfigTypeData(_, context),
652
+ name: [],
653
+ }));
666
654
  return new protocol_http_1.HttpRequest({
667
655
  protocol,
668
656
  hostname,
@@ -682,11 +670,11 @@ const se_UpdateEphemerisCommand = async (input, context) => {
682
670
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ephemeris/{ephemerisId}";
683
671
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ephemerisId", () => input.ephemerisId, "{ephemerisId}", false);
684
672
  let body;
685
- body = JSON.stringify({
686
- ...(input.enabled != null && { enabled: input.enabled }),
687
- ...(input.name != null && { name: input.name }),
688
- ...(input.priority != null && { priority: input.priority }),
689
- });
673
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
674
+ enabled: [],
675
+ name: [],
676
+ priority: [],
677
+ }));
690
678
  return new protocol_http_1.HttpRequest({
691
679
  protocol,
692
680
  hostname,
@@ -706,22 +694,16 @@ const se_UpdateMissionProfileCommand = async (input, context) => {
706
694
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile/{missionProfileId}";
707
695
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "missionProfileId", () => input.missionProfileId, "{missionProfileId}", false);
708
696
  let body;
709
- body = JSON.stringify({
710
- ...(input.contactPostPassDurationSeconds != null && {
711
- contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
712
- }),
713
- ...(input.contactPrePassDurationSeconds != null && {
714
- contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
715
- }),
716
- ...(input.dataflowEdges != null && { dataflowEdges: se_DataflowEdgeList(input.dataflowEdges, context) }),
717
- ...(input.minimumViableContactDurationSeconds != null && {
718
- minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
719
- }),
720
- ...(input.name != null && { name: input.name }),
721
- ...(input.streamsKmsKey != null && { streamsKmsKey: se_KmsKey(input.streamsKmsKey, context) }),
722
- ...(input.streamsKmsRole != null && { streamsKmsRole: input.streamsKmsRole }),
723
- ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
724
- });
697
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
698
+ contactPostPassDurationSeconds: [],
699
+ contactPrePassDurationSeconds: [],
700
+ dataflowEdges: (_) => (0, smithy_client_1._json)(_),
701
+ minimumViableContactDurationSeconds: [],
702
+ name: [],
703
+ streamsKmsKey: (_) => (0, smithy_client_1._json)(_),
704
+ streamsKmsRole: [],
705
+ trackingConfigArn: [],
706
+ }));
725
707
  return new protocol_http_1.HttpRequest({
726
708
  protocol,
727
709
  hostname,
@@ -737,13 +719,14 @@ const de_CancelContactCommand = async (output, context) => {
737
719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
738
720
  return de_CancelContactCommandError(output, context);
739
721
  }
740
- const contents = map({
722
+ const contents = (0, smithy_client_1.map)({
741
723
  $metadata: deserializeMetadata(output),
742
724
  });
743
725
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
744
- if (data.contactId != null) {
745
- contents.contactId = (0, smithy_client_1.expectString)(data.contactId);
746
- }
726
+ const doc = (0, smithy_client_1.take)(data, {
727
+ contactId: smithy_client_1.expectString,
728
+ });
729
+ Object.assign(contents, doc);
747
730
  return contents;
748
731
  };
749
732
  exports.de_CancelContactCommand = de_CancelContactCommand;
@@ -765,10 +748,9 @@ const de_CancelContactCommandError = async (output, context) => {
765
748
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
766
749
  default:
767
750
  const parsedBody = parsedOutput.body;
768
- (0, smithy_client_1.throwDefaultError)({
751
+ return throwDefaultError({
769
752
  output,
770
753
  parsedBody,
771
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
772
754
  errorCode,
773
755
  });
774
756
  }
@@ -777,19 +759,16 @@ const de_CreateConfigCommand = async (output, context) => {
777
759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
778
760
  return de_CreateConfigCommandError(output, context);
779
761
  }
780
- const contents = map({
762
+ const contents = (0, smithy_client_1.map)({
781
763
  $metadata: deserializeMetadata(output),
782
764
  });
783
765
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
784
- if (data.configArn != null) {
785
- contents.configArn = (0, smithy_client_1.expectString)(data.configArn);
786
- }
787
- if (data.configId != null) {
788
- contents.configId = (0, smithy_client_1.expectString)(data.configId);
789
- }
790
- if (data.configType != null) {
791
- contents.configType = (0, smithy_client_1.expectString)(data.configType);
792
- }
766
+ const doc = (0, smithy_client_1.take)(data, {
767
+ configArn: smithy_client_1.expectString,
768
+ configId: smithy_client_1.expectString,
769
+ configType: smithy_client_1.expectString,
770
+ });
771
+ Object.assign(contents, doc);
793
772
  return contents;
794
773
  };
795
774
  exports.de_CreateConfigCommand = de_CreateConfigCommand;
@@ -814,10 +793,9 @@ const de_CreateConfigCommandError = async (output, context) => {
814
793
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
815
794
  default:
816
795
  const parsedBody = parsedOutput.body;
817
- (0, smithy_client_1.throwDefaultError)({
796
+ return throwDefaultError({
818
797
  output,
819
798
  parsedBody,
820
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
821
799
  errorCode,
822
800
  });
823
801
  }
@@ -826,13 +804,14 @@ const de_CreateDataflowEndpointGroupCommand = async (output, context) => {
826
804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
827
805
  return de_CreateDataflowEndpointGroupCommandError(output, context);
828
806
  }
829
- const contents = map({
807
+ const contents = (0, smithy_client_1.map)({
830
808
  $metadata: deserializeMetadata(output),
831
809
  });
832
810
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
833
- if (data.dataflowEndpointGroupId != null) {
834
- contents.dataflowEndpointGroupId = (0, smithy_client_1.expectString)(data.dataflowEndpointGroupId);
835
- }
811
+ const doc = (0, smithy_client_1.take)(data, {
812
+ dataflowEndpointGroupId: smithy_client_1.expectString,
813
+ });
814
+ Object.assign(contents, doc);
836
815
  return contents;
837
816
  };
838
817
  exports.de_CreateDataflowEndpointGroupCommand = de_CreateDataflowEndpointGroupCommand;
@@ -854,10 +833,9 @@ const de_CreateDataflowEndpointGroupCommandError = async (output, context) => {
854
833
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
855
834
  default:
856
835
  const parsedBody = parsedOutput.body;
857
- (0, smithy_client_1.throwDefaultError)({
836
+ return throwDefaultError({
858
837
  output,
859
838
  parsedBody,
860
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
861
839
  errorCode,
862
840
  });
863
841
  }
@@ -866,13 +844,14 @@ const de_CreateEphemerisCommand = async (output, context) => {
866
844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
867
845
  return de_CreateEphemerisCommandError(output, context);
868
846
  }
869
- const contents = map({
847
+ const contents = (0, smithy_client_1.map)({
870
848
  $metadata: deserializeMetadata(output),
871
849
  });
872
850
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
873
- if (data.ephemerisId != null) {
874
- contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
875
- }
851
+ const doc = (0, smithy_client_1.take)(data, {
852
+ ephemerisId: smithy_client_1.expectString,
853
+ });
854
+ Object.assign(contents, doc);
876
855
  return contents;
877
856
  };
878
857
  exports.de_CreateEphemerisCommand = de_CreateEphemerisCommand;
@@ -894,10 +873,9 @@ const de_CreateEphemerisCommandError = async (output, context) => {
894
873
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
895
874
  default:
896
875
  const parsedBody = parsedOutput.body;
897
- (0, smithy_client_1.throwDefaultError)({
876
+ return throwDefaultError({
898
877
  output,
899
878
  parsedBody,
900
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
901
879
  errorCode,
902
880
  });
903
881
  }
@@ -906,13 +884,14 @@ const de_CreateMissionProfileCommand = async (output, context) => {
906
884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
907
885
  return de_CreateMissionProfileCommandError(output, context);
908
886
  }
909
- const contents = map({
887
+ const contents = (0, smithy_client_1.map)({
910
888
  $metadata: deserializeMetadata(output),
911
889
  });
912
890
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
913
- if (data.missionProfileId != null) {
914
- contents.missionProfileId = (0, smithy_client_1.expectString)(data.missionProfileId);
915
- }
891
+ const doc = (0, smithy_client_1.take)(data, {
892
+ missionProfileId: smithy_client_1.expectString,
893
+ });
894
+ Object.assign(contents, doc);
916
895
  return contents;
917
896
  };
918
897
  exports.de_CreateMissionProfileCommand = de_CreateMissionProfileCommand;
@@ -934,10 +913,9 @@ const de_CreateMissionProfileCommandError = async (output, context) => {
934
913
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
935
914
  default:
936
915
  const parsedBody = parsedOutput.body;
937
- (0, smithy_client_1.throwDefaultError)({
916
+ return throwDefaultError({
938
917
  output,
939
918
  parsedBody,
940
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
941
919
  errorCode,
942
920
  });
943
921
  }
@@ -946,19 +924,16 @@ const de_DeleteConfigCommand = async (output, context) => {
946
924
  if (output.statusCode !== 200 && output.statusCode >= 300) {
947
925
  return de_DeleteConfigCommandError(output, context);
948
926
  }
949
- const contents = map({
927
+ const contents = (0, smithy_client_1.map)({
950
928
  $metadata: deserializeMetadata(output),
951
929
  });
952
930
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
953
- if (data.configArn != null) {
954
- contents.configArn = (0, smithy_client_1.expectString)(data.configArn);
955
- }
956
- if (data.configId != null) {
957
- contents.configId = (0, smithy_client_1.expectString)(data.configId);
958
- }
959
- if (data.configType != null) {
960
- contents.configType = (0, smithy_client_1.expectString)(data.configType);
961
- }
931
+ const doc = (0, smithy_client_1.take)(data, {
932
+ configArn: smithy_client_1.expectString,
933
+ configId: smithy_client_1.expectString,
934
+ configType: smithy_client_1.expectString,
935
+ });
936
+ Object.assign(contents, doc);
962
937
  return contents;
963
938
  };
964
939
  exports.de_DeleteConfigCommand = de_DeleteConfigCommand;
@@ -980,10 +955,9 @@ const de_DeleteConfigCommandError = async (output, context) => {
980
955
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
981
956
  default:
982
957
  const parsedBody = parsedOutput.body;
983
- (0, smithy_client_1.throwDefaultError)({
958
+ return throwDefaultError({
984
959
  output,
985
960
  parsedBody,
986
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
987
961
  errorCode,
988
962
  });
989
963
  }
@@ -992,13 +966,14 @@ const de_DeleteDataflowEndpointGroupCommand = async (output, context) => {
992
966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
993
967
  return de_DeleteDataflowEndpointGroupCommandError(output, context);
994
968
  }
995
- const contents = map({
969
+ const contents = (0, smithy_client_1.map)({
996
970
  $metadata: deserializeMetadata(output),
997
971
  });
998
972
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
999
- if (data.dataflowEndpointGroupId != null) {
1000
- contents.dataflowEndpointGroupId = (0, smithy_client_1.expectString)(data.dataflowEndpointGroupId);
1001
- }
973
+ const doc = (0, smithy_client_1.take)(data, {
974
+ dataflowEndpointGroupId: smithy_client_1.expectString,
975
+ });
976
+ Object.assign(contents, doc);
1002
977
  return contents;
1003
978
  };
1004
979
  exports.de_DeleteDataflowEndpointGroupCommand = de_DeleteDataflowEndpointGroupCommand;
@@ -1020,10 +995,9 @@ const de_DeleteDataflowEndpointGroupCommandError = async (output, context) => {
1020
995
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1021
996
  default:
1022
997
  const parsedBody = parsedOutput.body;
1023
- (0, smithy_client_1.throwDefaultError)({
998
+ return throwDefaultError({
1024
999
  output,
1025
1000
  parsedBody,
1026
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1027
1001
  errorCode,
1028
1002
  });
1029
1003
  }
@@ -1032,13 +1006,14 @@ const de_DeleteEphemerisCommand = async (output, context) => {
1032
1006
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1033
1007
  return de_DeleteEphemerisCommandError(output, context);
1034
1008
  }
1035
- const contents = map({
1009
+ const contents = (0, smithy_client_1.map)({
1036
1010
  $metadata: deserializeMetadata(output),
1037
1011
  });
1038
1012
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1039
- if (data.ephemerisId != null) {
1040
- contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
1041
- }
1013
+ const doc = (0, smithy_client_1.take)(data, {
1014
+ ephemerisId: smithy_client_1.expectString,
1015
+ });
1016
+ Object.assign(contents, doc);
1042
1017
  return contents;
1043
1018
  };
1044
1019
  exports.de_DeleteEphemerisCommand = de_DeleteEphemerisCommand;
@@ -1060,10 +1035,9 @@ const de_DeleteEphemerisCommandError = async (output, context) => {
1060
1035
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1061
1036
  default:
1062
1037
  const parsedBody = parsedOutput.body;
1063
- (0, smithy_client_1.throwDefaultError)({
1038
+ return throwDefaultError({
1064
1039
  output,
1065
1040
  parsedBody,
1066
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1067
1041
  errorCode,
1068
1042
  });
1069
1043
  }
@@ -1072,13 +1046,14 @@ const de_DeleteMissionProfileCommand = async (output, context) => {
1072
1046
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
1047
  return de_DeleteMissionProfileCommandError(output, context);
1074
1048
  }
1075
- const contents = map({
1049
+ const contents = (0, smithy_client_1.map)({
1076
1050
  $metadata: deserializeMetadata(output),
1077
1051
  });
1078
1052
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1079
- if (data.missionProfileId != null) {
1080
- contents.missionProfileId = (0, smithy_client_1.expectString)(data.missionProfileId);
1081
- }
1053
+ const doc = (0, smithy_client_1.take)(data, {
1054
+ missionProfileId: smithy_client_1.expectString,
1055
+ });
1056
+ Object.assign(contents, doc);
1082
1057
  return contents;
1083
1058
  };
1084
1059
  exports.de_DeleteMissionProfileCommand = de_DeleteMissionProfileCommand;
@@ -1100,10 +1075,9 @@ const de_DeleteMissionProfileCommandError = async (output, context) => {
1100
1075
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1101
1076
  default:
1102
1077
  const parsedBody = parsedOutput.body;
1103
- (0, smithy_client_1.throwDefaultError)({
1078
+ return throwDefaultError({
1104
1079
  output,
1105
1080
  parsedBody,
1106
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1107
1081
  errorCode,
1108
1082
  });
1109
1083
  }
@@ -1112,52 +1086,27 @@ const de_DescribeContactCommand = async (output, context) => {
1112
1086
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1113
1087
  return de_DescribeContactCommandError(output, context);
1114
1088
  }
1115
- const contents = map({
1089
+ const contents = (0, smithy_client_1.map)({
1116
1090
  $metadata: deserializeMetadata(output),
1117
1091
  });
1118
1092
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1119
- if (data.contactId != null) {
1120
- contents.contactId = (0, smithy_client_1.expectString)(data.contactId);
1121
- }
1122
- if (data.contactStatus != null) {
1123
- contents.contactStatus = (0, smithy_client_1.expectString)(data.contactStatus);
1124
- }
1125
- if (data.dataflowList != null) {
1126
- contents.dataflowList = de_DataflowList(data.dataflowList, context);
1127
- }
1128
- if (data.endTime != null) {
1129
- contents.endTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.endTime)));
1130
- }
1131
- if (data.errorMessage != null) {
1132
- contents.errorMessage = (0, smithy_client_1.expectString)(data.errorMessage);
1133
- }
1134
- if (data.groundStation != null) {
1135
- contents.groundStation = (0, smithy_client_1.expectString)(data.groundStation);
1136
- }
1137
- if (data.maximumElevation != null) {
1138
- contents.maximumElevation = de_Elevation(data.maximumElevation, context);
1139
- }
1140
- if (data.missionProfileArn != null) {
1141
- contents.missionProfileArn = (0, smithy_client_1.expectString)(data.missionProfileArn);
1142
- }
1143
- if (data.postPassEndTime != null) {
1144
- contents.postPassEndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.postPassEndTime)));
1145
- }
1146
- if (data.prePassStartTime != null) {
1147
- contents.prePassStartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.prePassStartTime)));
1148
- }
1149
- if (data.region != null) {
1150
- contents.region = (0, smithy_client_1.expectString)(data.region);
1151
- }
1152
- if (data.satelliteArn != null) {
1153
- contents.satelliteArn = (0, smithy_client_1.expectString)(data.satelliteArn);
1154
- }
1155
- if (data.startTime != null) {
1156
- contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.startTime)));
1157
- }
1158
- if (data.tags != null) {
1159
- contents.tags = de_TagsMap(data.tags, context);
1160
- }
1093
+ const doc = (0, smithy_client_1.take)(data, {
1094
+ contactId: smithy_client_1.expectString,
1095
+ contactStatus: smithy_client_1.expectString,
1096
+ dataflowList: smithy_client_1._json,
1097
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1098
+ errorMessage: smithy_client_1.expectString,
1099
+ groundStation: smithy_client_1.expectString,
1100
+ maximumElevation: (_) => de_Elevation(_, context),
1101
+ missionProfileArn: smithy_client_1.expectString,
1102
+ postPassEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1103
+ prePassStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1104
+ region: smithy_client_1.expectString,
1105
+ satelliteArn: smithy_client_1.expectString,
1106
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1107
+ tags: smithy_client_1._json,
1108
+ });
1109
+ Object.assign(contents, doc);
1161
1110
  return contents;
1162
1111
  };
1163
1112
  exports.de_DescribeContactCommand = de_DescribeContactCommand;
@@ -1179,10 +1128,9 @@ const de_DescribeContactCommandError = async (output, context) => {
1179
1128
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1180
1129
  default:
1181
1130
  const parsedBody = parsedOutput.body;
1182
- (0, smithy_client_1.throwDefaultError)({
1131
+ return throwDefaultError({
1183
1132
  output,
1184
1133
  parsedBody,
1185
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1186
1134
  errorCode,
1187
1135
  });
1188
1136
  }
@@ -1191,40 +1139,23 @@ const de_DescribeEphemerisCommand = async (output, context) => {
1191
1139
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1192
1140
  return de_DescribeEphemerisCommandError(output, context);
1193
1141
  }
1194
- const contents = map({
1142
+ const contents = (0, smithy_client_1.map)({
1195
1143
  $metadata: deserializeMetadata(output),
1196
1144
  });
1197
1145
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1198
- if (data.creationTime != null) {
1199
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
1200
- }
1201
- if (data.enabled != null) {
1202
- contents.enabled = (0, smithy_client_1.expectBoolean)(data.enabled);
1203
- }
1204
- if (data.ephemerisId != null) {
1205
- contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
1206
- }
1207
- if (data.invalidReason != null) {
1208
- contents.invalidReason = (0, smithy_client_1.expectString)(data.invalidReason);
1209
- }
1210
- if (data.name != null) {
1211
- contents.name = (0, smithy_client_1.expectString)(data.name);
1212
- }
1213
- if (data.priority != null) {
1214
- contents.priority = (0, smithy_client_1.expectInt32)(data.priority);
1215
- }
1216
- if (data.satelliteId != null) {
1217
- contents.satelliteId = (0, smithy_client_1.expectString)(data.satelliteId);
1218
- }
1219
- if (data.status != null) {
1220
- contents.status = (0, smithy_client_1.expectString)(data.status);
1221
- }
1222
- if (data.suppliedData != null) {
1223
- contents.suppliedData = de_EphemerisTypeDescription((0, smithy_client_1.expectUnion)(data.suppliedData), context);
1224
- }
1225
- if (data.tags != null) {
1226
- contents.tags = de_TagsMap(data.tags, context);
1227
- }
1146
+ const doc = (0, smithy_client_1.take)(data, {
1147
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1148
+ enabled: smithy_client_1.expectBoolean,
1149
+ ephemerisId: smithy_client_1.expectString,
1150
+ invalidReason: smithy_client_1.expectString,
1151
+ name: smithy_client_1.expectString,
1152
+ priority: smithy_client_1.expectInt32,
1153
+ satelliteId: smithy_client_1.expectString,
1154
+ status: smithy_client_1.expectString,
1155
+ suppliedData: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1156
+ tags: smithy_client_1._json,
1157
+ });
1158
+ Object.assign(contents, doc);
1228
1159
  return contents;
1229
1160
  };
1230
1161
  exports.de_DescribeEphemerisCommand = de_DescribeEphemerisCommand;
@@ -1246,10 +1177,9 @@ const de_DescribeEphemerisCommandError = async (output, context) => {
1246
1177
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1247
1178
  default:
1248
1179
  const parsedBody = parsedOutput.body;
1249
- (0, smithy_client_1.throwDefaultError)({
1180
+ return throwDefaultError({
1250
1181
  output,
1251
1182
  parsedBody,
1252
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1253
1183
  errorCode,
1254
1184
  });
1255
1185
  }
@@ -1258,16 +1188,15 @@ const de_GetAgentConfigurationCommand = async (output, context) => {
1258
1188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1259
1189
  return de_GetAgentConfigurationCommandError(output, context);
1260
1190
  }
1261
- const contents = map({
1191
+ const contents = (0, smithy_client_1.map)({
1262
1192
  $metadata: deserializeMetadata(output),
1263
1193
  });
1264
1194
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1265
- if (data.agentId != null) {
1266
- contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
1267
- }
1268
- if (data.taskingDocument != null) {
1269
- contents.taskingDocument = (0, smithy_client_1.expectString)(data.taskingDocument);
1270
- }
1195
+ const doc = (0, smithy_client_1.take)(data, {
1196
+ agentId: smithy_client_1.expectString,
1197
+ taskingDocument: smithy_client_1.expectString,
1198
+ });
1199
+ Object.assign(contents, doc);
1271
1200
  return contents;
1272
1201
  };
1273
1202
  exports.de_GetAgentConfigurationCommand = de_GetAgentConfigurationCommand;
@@ -1289,10 +1218,9 @@ const de_GetAgentConfigurationCommandError = async (output, context) => {
1289
1218
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1290
1219
  default:
1291
1220
  const parsedBody = parsedOutput.body;
1292
- (0, smithy_client_1.throwDefaultError)({
1221
+ return throwDefaultError({
1293
1222
  output,
1294
1223
  parsedBody,
1295
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1296
1224
  errorCode,
1297
1225
  });
1298
1226
  }
@@ -1301,28 +1229,19 @@ const de_GetConfigCommand = async (output, context) => {
1301
1229
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1302
1230
  return de_GetConfigCommandError(output, context);
1303
1231
  }
1304
- const contents = map({
1232
+ const contents = (0, smithy_client_1.map)({
1305
1233
  $metadata: deserializeMetadata(output),
1306
1234
  });
1307
1235
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1308
- if (data.configArn != null) {
1309
- contents.configArn = (0, smithy_client_1.expectString)(data.configArn);
1310
- }
1311
- if (data.configData != null) {
1312
- contents.configData = de_ConfigTypeData((0, smithy_client_1.expectUnion)(data.configData), context);
1313
- }
1314
- if (data.configId != null) {
1315
- contents.configId = (0, smithy_client_1.expectString)(data.configId);
1316
- }
1317
- if (data.configType != null) {
1318
- contents.configType = (0, smithy_client_1.expectString)(data.configType);
1319
- }
1320
- if (data.name != null) {
1321
- contents.name = (0, smithy_client_1.expectString)(data.name);
1322
- }
1323
- if (data.tags != null) {
1324
- contents.tags = de_TagsMap(data.tags, context);
1325
- }
1236
+ const doc = (0, smithy_client_1.take)(data, {
1237
+ configArn: smithy_client_1.expectString,
1238
+ configData: (_) => de_ConfigTypeData((0, smithy_client_1.expectUnion)(_), context),
1239
+ configId: smithy_client_1.expectString,
1240
+ configType: smithy_client_1.expectString,
1241
+ name: smithy_client_1.expectString,
1242
+ tags: smithy_client_1._json,
1243
+ });
1244
+ Object.assign(contents, doc);
1326
1245
  return contents;
1327
1246
  };
1328
1247
  exports.de_GetConfigCommand = de_GetConfigCommand;
@@ -1344,10 +1263,9 @@ const de_GetConfigCommandError = async (output, context) => {
1344
1263
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1345
1264
  default:
1346
1265
  const parsedBody = parsedOutput.body;
1347
- (0, smithy_client_1.throwDefaultError)({
1266
+ return throwDefaultError({
1348
1267
  output,
1349
1268
  parsedBody,
1350
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1351
1269
  errorCode,
1352
1270
  });
1353
1271
  }
@@ -1356,28 +1274,19 @@ const de_GetDataflowEndpointGroupCommand = async (output, context) => {
1356
1274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1357
1275
  return de_GetDataflowEndpointGroupCommandError(output, context);
1358
1276
  }
1359
- const contents = map({
1277
+ const contents = (0, smithy_client_1.map)({
1360
1278
  $metadata: deserializeMetadata(output),
1361
1279
  });
1362
1280
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1363
- if (data.contactPostPassDurationSeconds != null) {
1364
- contents.contactPostPassDurationSeconds = (0, smithy_client_1.expectInt32)(data.contactPostPassDurationSeconds);
1365
- }
1366
- if (data.contactPrePassDurationSeconds != null) {
1367
- contents.contactPrePassDurationSeconds = (0, smithy_client_1.expectInt32)(data.contactPrePassDurationSeconds);
1368
- }
1369
- if (data.dataflowEndpointGroupArn != null) {
1370
- contents.dataflowEndpointGroupArn = (0, smithy_client_1.expectString)(data.dataflowEndpointGroupArn);
1371
- }
1372
- if (data.dataflowEndpointGroupId != null) {
1373
- contents.dataflowEndpointGroupId = (0, smithy_client_1.expectString)(data.dataflowEndpointGroupId);
1374
- }
1375
- if (data.endpointsDetails != null) {
1376
- contents.endpointsDetails = de_EndpointDetailsList(data.endpointsDetails, context);
1377
- }
1378
- if (data.tags != null) {
1379
- contents.tags = de_TagsMap(data.tags, context);
1380
- }
1281
+ const doc = (0, smithy_client_1.take)(data, {
1282
+ contactPostPassDurationSeconds: smithy_client_1.expectInt32,
1283
+ contactPrePassDurationSeconds: smithy_client_1.expectInt32,
1284
+ dataflowEndpointGroupArn: smithy_client_1.expectString,
1285
+ dataflowEndpointGroupId: smithy_client_1.expectString,
1286
+ endpointsDetails: smithy_client_1._json,
1287
+ tags: smithy_client_1._json,
1288
+ });
1289
+ Object.assign(contents, doc);
1381
1290
  return contents;
1382
1291
  };
1383
1292
  exports.de_GetDataflowEndpointGroupCommand = de_GetDataflowEndpointGroupCommand;
@@ -1399,10 +1308,9 @@ const de_GetDataflowEndpointGroupCommandError = async (output, context) => {
1399
1308
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1400
1309
  default:
1401
1310
  const parsedBody = parsedOutput.body;
1402
- (0, smithy_client_1.throwDefaultError)({
1311
+ return throwDefaultError({
1403
1312
  output,
1404
1313
  parsedBody,
1405
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1406
1314
  errorCode,
1407
1315
  });
1408
1316
  }
@@ -1411,25 +1319,18 @@ const de_GetMinuteUsageCommand = async (output, context) => {
1411
1319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1412
1320
  return de_GetMinuteUsageCommandError(output, context);
1413
1321
  }
1414
- const contents = map({
1322
+ const contents = (0, smithy_client_1.map)({
1415
1323
  $metadata: deserializeMetadata(output),
1416
1324
  });
1417
1325
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1418
- if (data.estimatedMinutesRemaining != null) {
1419
- contents.estimatedMinutesRemaining = (0, smithy_client_1.expectInt32)(data.estimatedMinutesRemaining);
1420
- }
1421
- if (data.isReservedMinutesCustomer != null) {
1422
- contents.isReservedMinutesCustomer = (0, smithy_client_1.expectBoolean)(data.isReservedMinutesCustomer);
1423
- }
1424
- if (data.totalReservedMinuteAllocation != null) {
1425
- contents.totalReservedMinuteAllocation = (0, smithy_client_1.expectInt32)(data.totalReservedMinuteAllocation);
1426
- }
1427
- if (data.totalScheduledMinutes != null) {
1428
- contents.totalScheduledMinutes = (0, smithy_client_1.expectInt32)(data.totalScheduledMinutes);
1429
- }
1430
- if (data.upcomingMinutesScheduled != null) {
1431
- contents.upcomingMinutesScheduled = (0, smithy_client_1.expectInt32)(data.upcomingMinutesScheduled);
1432
- }
1326
+ const doc = (0, smithy_client_1.take)(data, {
1327
+ estimatedMinutesRemaining: smithy_client_1.expectInt32,
1328
+ isReservedMinutesCustomer: smithy_client_1.expectBoolean,
1329
+ totalReservedMinuteAllocation: smithy_client_1.expectInt32,
1330
+ totalScheduledMinutes: smithy_client_1.expectInt32,
1331
+ upcomingMinutesScheduled: smithy_client_1.expectInt32,
1332
+ });
1333
+ Object.assign(contents, doc);
1433
1334
  return contents;
1434
1335
  };
1435
1336
  exports.de_GetMinuteUsageCommand = de_GetMinuteUsageCommand;
@@ -1451,10 +1352,9 @@ const de_GetMinuteUsageCommandError = async (output, context) => {
1451
1352
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1452
1353
  default:
1453
1354
  const parsedBody = parsedOutput.body;
1454
- (0, smithy_client_1.throwDefaultError)({
1355
+ return throwDefaultError({
1455
1356
  output,
1456
1357
  parsedBody,
1457
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1458
1358
  errorCode,
1459
1359
  });
1460
1360
  }
@@ -1463,46 +1363,25 @@ const de_GetMissionProfileCommand = async (output, context) => {
1463
1363
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1464
1364
  return de_GetMissionProfileCommandError(output, context);
1465
1365
  }
1466
- const contents = map({
1366
+ const contents = (0, smithy_client_1.map)({
1467
1367
  $metadata: deserializeMetadata(output),
1468
1368
  });
1469
1369
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1470
- if (data.contactPostPassDurationSeconds != null) {
1471
- contents.contactPostPassDurationSeconds = (0, smithy_client_1.expectInt32)(data.contactPostPassDurationSeconds);
1472
- }
1473
- if (data.contactPrePassDurationSeconds != null) {
1474
- contents.contactPrePassDurationSeconds = (0, smithy_client_1.expectInt32)(data.contactPrePassDurationSeconds);
1475
- }
1476
- if (data.dataflowEdges != null) {
1477
- contents.dataflowEdges = de_DataflowEdgeList(data.dataflowEdges, context);
1478
- }
1479
- if (data.minimumViableContactDurationSeconds != null) {
1480
- contents.minimumViableContactDurationSeconds = (0, smithy_client_1.expectInt32)(data.minimumViableContactDurationSeconds);
1481
- }
1482
- if (data.missionProfileArn != null) {
1483
- contents.missionProfileArn = (0, smithy_client_1.expectString)(data.missionProfileArn);
1484
- }
1485
- if (data.missionProfileId != null) {
1486
- contents.missionProfileId = (0, smithy_client_1.expectString)(data.missionProfileId);
1487
- }
1488
- if (data.name != null) {
1489
- contents.name = (0, smithy_client_1.expectString)(data.name);
1490
- }
1491
- if (data.region != null) {
1492
- contents.region = (0, smithy_client_1.expectString)(data.region);
1493
- }
1494
- if (data.streamsKmsKey != null) {
1495
- contents.streamsKmsKey = de_KmsKey((0, smithy_client_1.expectUnion)(data.streamsKmsKey), context);
1496
- }
1497
- if (data.streamsKmsRole != null) {
1498
- contents.streamsKmsRole = (0, smithy_client_1.expectString)(data.streamsKmsRole);
1499
- }
1500
- if (data.tags != null) {
1501
- contents.tags = de_TagsMap(data.tags, context);
1502
- }
1503
- if (data.trackingConfigArn != null) {
1504
- contents.trackingConfigArn = (0, smithy_client_1.expectString)(data.trackingConfigArn);
1505
- }
1370
+ const doc = (0, smithy_client_1.take)(data, {
1371
+ contactPostPassDurationSeconds: smithy_client_1.expectInt32,
1372
+ contactPrePassDurationSeconds: smithy_client_1.expectInt32,
1373
+ dataflowEdges: smithy_client_1._json,
1374
+ minimumViableContactDurationSeconds: smithy_client_1.expectInt32,
1375
+ missionProfileArn: smithy_client_1.expectString,
1376
+ missionProfileId: smithy_client_1.expectString,
1377
+ name: smithy_client_1.expectString,
1378
+ region: smithy_client_1.expectString,
1379
+ streamsKmsKey: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1380
+ streamsKmsRole: smithy_client_1.expectString,
1381
+ tags: smithy_client_1._json,
1382
+ trackingConfigArn: smithy_client_1.expectString,
1383
+ });
1384
+ Object.assign(contents, doc);
1506
1385
  return contents;
1507
1386
  };
1508
1387
  exports.de_GetMissionProfileCommand = de_GetMissionProfileCommand;
@@ -1524,10 +1403,9 @@ const de_GetMissionProfileCommandError = async (output, context) => {
1524
1403
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1525
1404
  default:
1526
1405
  const parsedBody = parsedOutput.body;
1527
- (0, smithy_client_1.throwDefaultError)({
1406
+ return throwDefaultError({
1528
1407
  output,
1529
1408
  parsedBody,
1530
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1531
1409
  errorCode,
1532
1410
  });
1533
1411
  }
@@ -1536,25 +1414,18 @@ const de_GetSatelliteCommand = async (output, context) => {
1536
1414
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1537
1415
  return de_GetSatelliteCommandError(output, context);
1538
1416
  }
1539
- const contents = map({
1417
+ const contents = (0, smithy_client_1.map)({
1540
1418
  $metadata: deserializeMetadata(output),
1541
1419
  });
1542
1420
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1543
- if (data.currentEphemeris != null) {
1544
- contents.currentEphemeris = de_EphemerisMetaData(data.currentEphemeris, context);
1545
- }
1546
- if (data.groundStations != null) {
1547
- contents.groundStations = de_GroundStationIdList(data.groundStations, context);
1548
- }
1549
- if (data.noradSatelliteID != null) {
1550
- contents.noradSatelliteID = (0, smithy_client_1.expectInt32)(data.noradSatelliteID);
1551
- }
1552
- if (data.satelliteArn != null) {
1553
- contents.satelliteArn = (0, smithy_client_1.expectString)(data.satelliteArn);
1554
- }
1555
- if (data.satelliteId != null) {
1556
- contents.satelliteId = (0, smithy_client_1.expectString)(data.satelliteId);
1557
- }
1421
+ const doc = (0, smithy_client_1.take)(data, {
1422
+ currentEphemeris: (_) => de_EphemerisMetaData(_, context),
1423
+ groundStations: smithy_client_1._json,
1424
+ noradSatelliteID: smithy_client_1.expectInt32,
1425
+ satelliteArn: smithy_client_1.expectString,
1426
+ satelliteId: smithy_client_1.expectString,
1427
+ });
1428
+ Object.assign(contents, doc);
1558
1429
  return contents;
1559
1430
  };
1560
1431
  exports.de_GetSatelliteCommand = de_GetSatelliteCommand;
@@ -1576,10 +1447,9 @@ const de_GetSatelliteCommandError = async (output, context) => {
1576
1447
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1577
1448
  default:
1578
1449
  const parsedBody = parsedOutput.body;
1579
- (0, smithy_client_1.throwDefaultError)({
1450
+ return throwDefaultError({
1580
1451
  output,
1581
1452
  parsedBody,
1582
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1583
1453
  errorCode,
1584
1454
  });
1585
1455
  }
@@ -1588,16 +1458,15 @@ const de_ListConfigsCommand = async (output, context) => {
1588
1458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1589
1459
  return de_ListConfigsCommandError(output, context);
1590
1460
  }
1591
- const contents = map({
1461
+ const contents = (0, smithy_client_1.map)({
1592
1462
  $metadata: deserializeMetadata(output),
1593
1463
  });
1594
1464
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1595
- if (data.configList != null) {
1596
- contents.configList = de_ConfigList(data.configList, context);
1597
- }
1598
- if (data.nextToken != null) {
1599
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1600
- }
1465
+ const doc = (0, smithy_client_1.take)(data, {
1466
+ configList: smithy_client_1._json,
1467
+ nextToken: smithy_client_1.expectString,
1468
+ });
1469
+ Object.assign(contents, doc);
1601
1470
  return contents;
1602
1471
  };
1603
1472
  exports.de_ListConfigsCommand = de_ListConfigsCommand;
@@ -1619,10 +1488,9 @@ const de_ListConfigsCommandError = async (output, context) => {
1619
1488
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1620
1489
  default:
1621
1490
  const parsedBody = parsedOutput.body;
1622
- (0, smithy_client_1.throwDefaultError)({
1491
+ return throwDefaultError({
1623
1492
  output,
1624
1493
  parsedBody,
1625
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1626
1494
  errorCode,
1627
1495
  });
1628
1496
  }
@@ -1631,16 +1499,15 @@ const de_ListContactsCommand = async (output, context) => {
1631
1499
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1632
1500
  return de_ListContactsCommandError(output, context);
1633
1501
  }
1634
- const contents = map({
1502
+ const contents = (0, smithy_client_1.map)({
1635
1503
  $metadata: deserializeMetadata(output),
1636
1504
  });
1637
1505
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1638
- if (data.contactList != null) {
1639
- contents.contactList = de_ContactList(data.contactList, context);
1640
- }
1641
- if (data.nextToken != null) {
1642
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1643
- }
1506
+ const doc = (0, smithy_client_1.take)(data, {
1507
+ contactList: (_) => de_ContactList(_, context),
1508
+ nextToken: smithy_client_1.expectString,
1509
+ });
1510
+ Object.assign(contents, doc);
1644
1511
  return contents;
1645
1512
  };
1646
1513
  exports.de_ListContactsCommand = de_ListContactsCommand;
@@ -1662,10 +1529,9 @@ const de_ListContactsCommandError = async (output, context) => {
1662
1529
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1663
1530
  default:
1664
1531
  const parsedBody = parsedOutput.body;
1665
- (0, smithy_client_1.throwDefaultError)({
1532
+ return throwDefaultError({
1666
1533
  output,
1667
1534
  parsedBody,
1668
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1669
1535
  errorCode,
1670
1536
  });
1671
1537
  }
@@ -1674,16 +1540,15 @@ const de_ListDataflowEndpointGroupsCommand = async (output, context) => {
1674
1540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1675
1541
  return de_ListDataflowEndpointGroupsCommandError(output, context);
1676
1542
  }
1677
- const contents = map({
1543
+ const contents = (0, smithy_client_1.map)({
1678
1544
  $metadata: deserializeMetadata(output),
1679
1545
  });
1680
1546
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1681
- if (data.dataflowEndpointGroupList != null) {
1682
- contents.dataflowEndpointGroupList = de_DataflowEndpointGroupList(data.dataflowEndpointGroupList, context);
1683
- }
1684
- if (data.nextToken != null) {
1685
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1686
- }
1547
+ const doc = (0, smithy_client_1.take)(data, {
1548
+ dataflowEndpointGroupList: smithy_client_1._json,
1549
+ nextToken: smithy_client_1.expectString,
1550
+ });
1551
+ Object.assign(contents, doc);
1687
1552
  return contents;
1688
1553
  };
1689
1554
  exports.de_ListDataflowEndpointGroupsCommand = de_ListDataflowEndpointGroupsCommand;
@@ -1705,10 +1570,9 @@ const de_ListDataflowEndpointGroupsCommandError = async (output, context) => {
1705
1570
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1706
1571
  default:
1707
1572
  const parsedBody = parsedOutput.body;
1708
- (0, smithy_client_1.throwDefaultError)({
1573
+ return throwDefaultError({
1709
1574
  output,
1710
1575
  parsedBody,
1711
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1712
1576
  errorCode,
1713
1577
  });
1714
1578
  }
@@ -1717,16 +1581,15 @@ const de_ListEphemeridesCommand = async (output, context) => {
1717
1581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1718
1582
  return de_ListEphemeridesCommandError(output, context);
1719
1583
  }
1720
- const contents = map({
1584
+ const contents = (0, smithy_client_1.map)({
1721
1585
  $metadata: deserializeMetadata(output),
1722
1586
  });
1723
1587
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1724
- if (data.ephemerides != null) {
1725
- contents.ephemerides = de_EphemeridesList(data.ephemerides, context);
1726
- }
1727
- if (data.nextToken != null) {
1728
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1729
- }
1588
+ const doc = (0, smithy_client_1.take)(data, {
1589
+ ephemerides: (_) => de_EphemeridesList(_, context),
1590
+ nextToken: smithy_client_1.expectString,
1591
+ });
1592
+ Object.assign(contents, doc);
1730
1593
  return contents;
1731
1594
  };
1732
1595
  exports.de_ListEphemeridesCommand = de_ListEphemeridesCommand;
@@ -1748,10 +1611,9 @@ const de_ListEphemeridesCommandError = async (output, context) => {
1748
1611
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1749
1612
  default:
1750
1613
  const parsedBody = parsedOutput.body;
1751
- (0, smithy_client_1.throwDefaultError)({
1614
+ return throwDefaultError({
1752
1615
  output,
1753
1616
  parsedBody,
1754
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1755
1617
  errorCode,
1756
1618
  });
1757
1619
  }
@@ -1760,16 +1622,15 @@ const de_ListGroundStationsCommand = async (output, context) => {
1760
1622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1761
1623
  return de_ListGroundStationsCommandError(output, context);
1762
1624
  }
1763
- const contents = map({
1625
+ const contents = (0, smithy_client_1.map)({
1764
1626
  $metadata: deserializeMetadata(output),
1765
1627
  });
1766
1628
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1767
- if (data.groundStationList != null) {
1768
- contents.groundStationList = de_GroundStationList(data.groundStationList, context);
1769
- }
1770
- if (data.nextToken != null) {
1771
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1772
- }
1629
+ const doc = (0, smithy_client_1.take)(data, {
1630
+ groundStationList: smithy_client_1._json,
1631
+ nextToken: smithy_client_1.expectString,
1632
+ });
1633
+ Object.assign(contents, doc);
1773
1634
  return contents;
1774
1635
  };
1775
1636
  exports.de_ListGroundStationsCommand = de_ListGroundStationsCommand;
@@ -1791,10 +1652,9 @@ const de_ListGroundStationsCommandError = async (output, context) => {
1791
1652
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1792
1653
  default:
1793
1654
  const parsedBody = parsedOutput.body;
1794
- (0, smithy_client_1.throwDefaultError)({
1655
+ return throwDefaultError({
1795
1656
  output,
1796
1657
  parsedBody,
1797
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1798
1658
  errorCode,
1799
1659
  });
1800
1660
  }
@@ -1803,16 +1663,15 @@ const de_ListMissionProfilesCommand = async (output, context) => {
1803
1663
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1804
1664
  return de_ListMissionProfilesCommandError(output, context);
1805
1665
  }
1806
- const contents = map({
1666
+ const contents = (0, smithy_client_1.map)({
1807
1667
  $metadata: deserializeMetadata(output),
1808
1668
  });
1809
1669
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1810
- if (data.missionProfileList != null) {
1811
- contents.missionProfileList = de_MissionProfileList(data.missionProfileList, context);
1812
- }
1813
- if (data.nextToken != null) {
1814
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1815
- }
1670
+ const doc = (0, smithy_client_1.take)(data, {
1671
+ missionProfileList: smithy_client_1._json,
1672
+ nextToken: smithy_client_1.expectString,
1673
+ });
1674
+ Object.assign(contents, doc);
1816
1675
  return contents;
1817
1676
  };
1818
1677
  exports.de_ListMissionProfilesCommand = de_ListMissionProfilesCommand;
@@ -1834,10 +1693,9 @@ const de_ListMissionProfilesCommandError = async (output, context) => {
1834
1693
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1835
1694
  default:
1836
1695
  const parsedBody = parsedOutput.body;
1837
- (0, smithy_client_1.throwDefaultError)({
1696
+ return throwDefaultError({
1838
1697
  output,
1839
1698
  parsedBody,
1840
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1841
1699
  errorCode,
1842
1700
  });
1843
1701
  }
@@ -1846,16 +1704,15 @@ const de_ListSatellitesCommand = async (output, context) => {
1846
1704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1847
1705
  return de_ListSatellitesCommandError(output, context);
1848
1706
  }
1849
- const contents = map({
1707
+ const contents = (0, smithy_client_1.map)({
1850
1708
  $metadata: deserializeMetadata(output),
1851
1709
  });
1852
1710
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1853
- if (data.nextToken != null) {
1854
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
1855
- }
1856
- if (data.satellites != null) {
1857
- contents.satellites = de_SatelliteList(data.satellites, context);
1858
- }
1711
+ const doc = (0, smithy_client_1.take)(data, {
1712
+ nextToken: smithy_client_1.expectString,
1713
+ satellites: (_) => de_SatelliteList(_, context),
1714
+ });
1715
+ Object.assign(contents, doc);
1859
1716
  return contents;
1860
1717
  };
1861
1718
  exports.de_ListSatellitesCommand = de_ListSatellitesCommand;
@@ -1877,10 +1734,9 @@ const de_ListSatellitesCommandError = async (output, context) => {
1877
1734
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1878
1735
  default:
1879
1736
  const parsedBody = parsedOutput.body;
1880
- (0, smithy_client_1.throwDefaultError)({
1737
+ return throwDefaultError({
1881
1738
  output,
1882
1739
  parsedBody,
1883
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1884
1740
  errorCode,
1885
1741
  });
1886
1742
  }
@@ -1889,13 +1745,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1889
1745
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1890
1746
  return de_ListTagsForResourceCommandError(output, context);
1891
1747
  }
1892
- const contents = map({
1748
+ const contents = (0, smithy_client_1.map)({
1893
1749
  $metadata: deserializeMetadata(output),
1894
1750
  });
1895
1751
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1896
- if (data.tags != null) {
1897
- contents.tags = de_TagsMap(data.tags, context);
1898
- }
1752
+ const doc = (0, smithy_client_1.take)(data, {
1753
+ tags: smithy_client_1._json,
1754
+ });
1755
+ Object.assign(contents, doc);
1899
1756
  return contents;
1900
1757
  };
1901
1758
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -1917,10 +1774,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1917
1774
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1918
1775
  default:
1919
1776
  const parsedBody = parsedOutput.body;
1920
- (0, smithy_client_1.throwDefaultError)({
1777
+ return throwDefaultError({
1921
1778
  output,
1922
1779
  parsedBody,
1923
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1924
1780
  errorCode,
1925
1781
  });
1926
1782
  }
@@ -1929,13 +1785,14 @@ const de_RegisterAgentCommand = async (output, context) => {
1929
1785
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1930
1786
  return de_RegisterAgentCommandError(output, context);
1931
1787
  }
1932
- const contents = map({
1788
+ const contents = (0, smithy_client_1.map)({
1933
1789
  $metadata: deserializeMetadata(output),
1934
1790
  });
1935
1791
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1936
- if (data.agentId != null) {
1937
- contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
1938
- }
1792
+ const doc = (0, smithy_client_1.take)(data, {
1793
+ agentId: smithy_client_1.expectString,
1794
+ });
1795
+ Object.assign(contents, doc);
1939
1796
  return contents;
1940
1797
  };
1941
1798
  exports.de_RegisterAgentCommand = de_RegisterAgentCommand;
@@ -1957,10 +1814,9 @@ const de_RegisterAgentCommandError = async (output, context) => {
1957
1814
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1958
1815
  default:
1959
1816
  const parsedBody = parsedOutput.body;
1960
- (0, smithy_client_1.throwDefaultError)({
1817
+ return throwDefaultError({
1961
1818
  output,
1962
1819
  parsedBody,
1963
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
1964
1820
  errorCode,
1965
1821
  });
1966
1822
  }
@@ -1969,13 +1825,14 @@ const de_ReserveContactCommand = async (output, context) => {
1969
1825
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1970
1826
  return de_ReserveContactCommandError(output, context);
1971
1827
  }
1972
- const contents = map({
1828
+ const contents = (0, smithy_client_1.map)({
1973
1829
  $metadata: deserializeMetadata(output),
1974
1830
  });
1975
1831
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1976
- if (data.contactId != null) {
1977
- contents.contactId = (0, smithy_client_1.expectString)(data.contactId);
1978
- }
1832
+ const doc = (0, smithy_client_1.take)(data, {
1833
+ contactId: smithy_client_1.expectString,
1834
+ });
1835
+ Object.assign(contents, doc);
1979
1836
  return contents;
1980
1837
  };
1981
1838
  exports.de_ReserveContactCommand = de_ReserveContactCommand;
@@ -1997,10 +1854,9 @@ const de_ReserveContactCommandError = async (output, context) => {
1997
1854
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1998
1855
  default:
1999
1856
  const parsedBody = parsedOutput.body;
2000
- (0, smithy_client_1.throwDefaultError)({
1857
+ return throwDefaultError({
2001
1858
  output,
2002
1859
  parsedBody,
2003
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2004
1860
  errorCode,
2005
1861
  });
2006
1862
  }
@@ -2009,7 +1865,7 @@ const de_TagResourceCommand = async (output, context) => {
2009
1865
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2010
1866
  return de_TagResourceCommandError(output, context);
2011
1867
  }
2012
- const contents = map({
1868
+ const contents = (0, smithy_client_1.map)({
2013
1869
  $metadata: deserializeMetadata(output),
2014
1870
  });
2015
1871
  await collectBody(output.body, context);
@@ -2034,10 +1890,9 @@ const de_TagResourceCommandError = async (output, context) => {
2034
1890
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2035
1891
  default:
2036
1892
  const parsedBody = parsedOutput.body;
2037
- (0, smithy_client_1.throwDefaultError)({
1893
+ return throwDefaultError({
2038
1894
  output,
2039
1895
  parsedBody,
2040
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2041
1896
  errorCode,
2042
1897
  });
2043
1898
  }
@@ -2046,7 +1901,7 @@ const de_UntagResourceCommand = async (output, context) => {
2046
1901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2047
1902
  return de_UntagResourceCommandError(output, context);
2048
1903
  }
2049
- const contents = map({
1904
+ const contents = (0, smithy_client_1.map)({
2050
1905
  $metadata: deserializeMetadata(output),
2051
1906
  });
2052
1907
  await collectBody(output.body, context);
@@ -2071,10 +1926,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2071
1926
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2072
1927
  default:
2073
1928
  const parsedBody = parsedOutput.body;
2074
- (0, smithy_client_1.throwDefaultError)({
1929
+ return throwDefaultError({
2075
1930
  output,
2076
1931
  parsedBody,
2077
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2078
1932
  errorCode,
2079
1933
  });
2080
1934
  }
@@ -2083,13 +1937,14 @@ const de_UpdateAgentStatusCommand = async (output, context) => {
2083
1937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2084
1938
  return de_UpdateAgentStatusCommandError(output, context);
2085
1939
  }
2086
- const contents = map({
1940
+ const contents = (0, smithy_client_1.map)({
2087
1941
  $metadata: deserializeMetadata(output),
2088
1942
  });
2089
1943
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2090
- if (data.agentId != null) {
2091
- contents.agentId = (0, smithy_client_1.expectString)(data.agentId);
2092
- }
1944
+ const doc = (0, smithy_client_1.take)(data, {
1945
+ agentId: smithy_client_1.expectString,
1946
+ });
1947
+ Object.assign(contents, doc);
2093
1948
  return contents;
2094
1949
  };
2095
1950
  exports.de_UpdateAgentStatusCommand = de_UpdateAgentStatusCommand;
@@ -2111,10 +1966,9 @@ const de_UpdateAgentStatusCommandError = async (output, context) => {
2111
1966
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2112
1967
  default:
2113
1968
  const parsedBody = parsedOutput.body;
2114
- (0, smithy_client_1.throwDefaultError)({
1969
+ return throwDefaultError({
2115
1970
  output,
2116
1971
  parsedBody,
2117
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2118
1972
  errorCode,
2119
1973
  });
2120
1974
  }
@@ -2123,19 +1977,16 @@ const de_UpdateConfigCommand = async (output, context) => {
2123
1977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2124
1978
  return de_UpdateConfigCommandError(output, context);
2125
1979
  }
2126
- const contents = map({
1980
+ const contents = (0, smithy_client_1.map)({
2127
1981
  $metadata: deserializeMetadata(output),
2128
1982
  });
2129
1983
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2130
- if (data.configArn != null) {
2131
- contents.configArn = (0, smithy_client_1.expectString)(data.configArn);
2132
- }
2133
- if (data.configId != null) {
2134
- contents.configId = (0, smithy_client_1.expectString)(data.configId);
2135
- }
2136
- if (data.configType != null) {
2137
- contents.configType = (0, smithy_client_1.expectString)(data.configType);
2138
- }
1984
+ const doc = (0, smithy_client_1.take)(data, {
1985
+ configArn: smithy_client_1.expectString,
1986
+ configId: smithy_client_1.expectString,
1987
+ configType: smithy_client_1.expectString,
1988
+ });
1989
+ Object.assign(contents, doc);
2139
1990
  return contents;
2140
1991
  };
2141
1992
  exports.de_UpdateConfigCommand = de_UpdateConfigCommand;
@@ -2157,10 +2008,9 @@ const de_UpdateConfigCommandError = async (output, context) => {
2157
2008
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2158
2009
  default:
2159
2010
  const parsedBody = parsedOutput.body;
2160
- (0, smithy_client_1.throwDefaultError)({
2011
+ return throwDefaultError({
2161
2012
  output,
2162
2013
  parsedBody,
2163
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2164
2014
  errorCode,
2165
2015
  });
2166
2016
  }
@@ -2169,13 +2019,14 @@ const de_UpdateEphemerisCommand = async (output, context) => {
2169
2019
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2170
2020
  return de_UpdateEphemerisCommandError(output, context);
2171
2021
  }
2172
- const contents = map({
2022
+ const contents = (0, smithy_client_1.map)({
2173
2023
  $metadata: deserializeMetadata(output),
2174
2024
  });
2175
2025
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2176
- if (data.ephemerisId != null) {
2177
- contents.ephemerisId = (0, smithy_client_1.expectString)(data.ephemerisId);
2178
- }
2026
+ const doc = (0, smithy_client_1.take)(data, {
2027
+ ephemerisId: smithy_client_1.expectString,
2028
+ });
2029
+ Object.assign(contents, doc);
2179
2030
  return contents;
2180
2031
  };
2181
2032
  exports.de_UpdateEphemerisCommand = de_UpdateEphemerisCommand;
@@ -2197,10 +2048,9 @@ const de_UpdateEphemerisCommandError = async (output, context) => {
2197
2048
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2198
2049
  default:
2199
2050
  const parsedBody = parsedOutput.body;
2200
- (0, smithy_client_1.throwDefaultError)({
2051
+ return throwDefaultError({
2201
2052
  output,
2202
2053
  parsedBody,
2203
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2204
2054
  errorCode,
2205
2055
  });
2206
2056
  }
@@ -2209,13 +2059,14 @@ const de_UpdateMissionProfileCommand = async (output, context) => {
2209
2059
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2210
2060
  return de_UpdateMissionProfileCommandError(output, context);
2211
2061
  }
2212
- const contents = map({
2062
+ const contents = (0, smithy_client_1.map)({
2213
2063
  $metadata: deserializeMetadata(output),
2214
2064
  });
2215
2065
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2216
- if (data.missionProfileId != null) {
2217
- contents.missionProfileId = (0, smithy_client_1.expectString)(data.missionProfileId);
2218
- }
2066
+ const doc = (0, smithy_client_1.take)(data, {
2067
+ missionProfileId: smithy_client_1.expectString,
2068
+ });
2069
+ Object.assign(contents, doc);
2219
2070
  return contents;
2220
2071
  };
2221
2072
  exports.de_UpdateMissionProfileCommand = de_UpdateMissionProfileCommand;
@@ -2237,24 +2088,22 @@ const de_UpdateMissionProfileCommandError = async (output, context) => {
2237
2088
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2238
2089
  default:
2239
2090
  const parsedBody = parsedOutput.body;
2240
- (0, smithy_client_1.throwDefaultError)({
2091
+ return throwDefaultError({
2241
2092
  output,
2242
2093
  parsedBody,
2243
- exceptionCtor: GroundStationServiceException_1.GroundStationServiceException,
2244
2094
  errorCode,
2245
2095
  });
2246
2096
  }
2247
2097
  };
2248
- const map = smithy_client_1.map;
2098
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(GroundStationServiceException_1.GroundStationServiceException);
2249
2099
  const de_DependencyExceptionRes = async (parsedOutput, context) => {
2250
- const contents = map({});
2100
+ const contents = (0, smithy_client_1.map)({});
2251
2101
  const data = parsedOutput.body;
2252
- if (data.message != null) {
2253
- contents.message = (0, smithy_client_1.expectString)(data.message);
2254
- }
2255
- if (data.parameterName != null) {
2256
- contents.parameterName = (0, smithy_client_1.expectString)(data.parameterName);
2257
- }
2102
+ const doc = (0, smithy_client_1.take)(data, {
2103
+ message: smithy_client_1.expectString,
2104
+ parameterName: smithy_client_1.expectString,
2105
+ });
2106
+ Object.assign(contents, doc);
2258
2107
  const exception = new models_0_1.DependencyException({
2259
2108
  $metadata: deserializeMetadata(parsedOutput),
2260
2109
  ...contents,
@@ -2262,14 +2111,13 @@ const de_DependencyExceptionRes = async (parsedOutput, context) => {
2262
2111
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2263
2112
  };
2264
2113
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2265
- const contents = map({});
2114
+ const contents = (0, smithy_client_1.map)({});
2266
2115
  const data = parsedOutput.body;
2267
- if (data.message != null) {
2268
- contents.message = (0, smithy_client_1.expectString)(data.message);
2269
- }
2270
- if (data.parameterName != null) {
2271
- contents.parameterName = (0, smithy_client_1.expectString)(data.parameterName);
2272
- }
2116
+ const doc = (0, smithy_client_1.take)(data, {
2117
+ message: smithy_client_1.expectString,
2118
+ parameterName: smithy_client_1.expectString,
2119
+ });
2120
+ Object.assign(contents, doc);
2273
2121
  const exception = new models_0_1.InvalidParameterException({
2274
2122
  $metadata: deserializeMetadata(parsedOutput),
2275
2123
  ...contents,
@@ -2277,14 +2125,13 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2277
2125
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2278
2126
  };
2279
2127
  const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
2280
- const contents = map({});
2128
+ const contents = (0, smithy_client_1.map)({});
2281
2129
  const data = parsedOutput.body;
2282
- if (data.message != null) {
2283
- contents.message = (0, smithy_client_1.expectString)(data.message);
2284
- }
2285
- if (data.parameterName != null) {
2286
- contents.parameterName = (0, smithy_client_1.expectString)(data.parameterName);
2287
- }
2130
+ const doc = (0, smithy_client_1.take)(data, {
2131
+ message: smithy_client_1.expectString,
2132
+ parameterName: smithy_client_1.expectString,
2133
+ });
2134
+ Object.assign(contents, doc);
2288
2135
  const exception = new models_0_1.ResourceLimitExceededException({
2289
2136
  $metadata: deserializeMetadata(parsedOutput),
2290
2137
  ...contents,
@@ -2292,115 +2139,35 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
2292
2139
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2293
2140
  };
2294
2141
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2295
- const contents = map({});
2142
+ const contents = (0, smithy_client_1.map)({});
2296
2143
  const data = parsedOutput.body;
2297
- if (data.message != null) {
2298
- contents.message = (0, smithy_client_1.expectString)(data.message);
2299
- }
2144
+ const doc = (0, smithy_client_1.take)(data, {
2145
+ message: smithy_client_1.expectString,
2146
+ });
2147
+ Object.assign(contents, doc);
2300
2148
  const exception = new models_0_1.ResourceNotFoundException({
2301
2149
  $metadata: deserializeMetadata(parsedOutput),
2302
2150
  ...contents,
2303
2151
  });
2304
2152
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2305
2153
  };
2306
- const se_AgentCpuCoresList = (input, context) => {
2307
- return input
2308
- .filter((e) => e != null)
2309
- .map((entry) => {
2310
- return entry;
2311
- });
2312
- };
2313
- const se_AgentDetails = (input, context) => {
2314
- return {
2315
- ...(input.agentCpuCores != null && { agentCpuCores: se_AgentCpuCoresList(input.agentCpuCores, context) }),
2316
- ...(input.agentVersion != null && { agentVersion: input.agentVersion }),
2317
- ...(input.componentVersions != null && {
2318
- componentVersions: se_ComponentVersionList(input.componentVersions, context),
2319
- }),
2320
- ...(input.instanceId != null && { instanceId: input.instanceId }),
2321
- ...(input.instanceType != null && { instanceType: input.instanceType }),
2322
- ...(input.reservedCpuCores != null && { reservedCpuCores: se_AgentCpuCoresList(input.reservedCpuCores, context) }),
2323
- };
2324
- };
2325
- const se_AggregateStatus = (input, context) => {
2326
- return {
2327
- ...(input.signatureMap != null && { signatureMap: se_SignatureMap(input.signatureMap, context) }),
2328
- ...(input.status != null && { status: input.status }),
2329
- };
2330
- };
2331
2154
  const se_AntennaDownlinkConfig = (input, context) => {
2332
- return {
2333
- ...(input.spectrumConfig != null && { spectrumConfig: se_SpectrumConfig(input.spectrumConfig, context) }),
2334
- };
2335
- };
2336
- const se_AntennaDownlinkDemodDecodeConfig = (input, context) => {
2337
- return {
2338
- ...(input.decodeConfig != null && { decodeConfig: se_DecodeConfig(input.decodeConfig, context) }),
2339
- ...(input.demodulationConfig != null && {
2340
- demodulationConfig: se_DemodulationConfig(input.demodulationConfig, context),
2341
- }),
2342
- ...(input.spectrumConfig != null && { spectrumConfig: se_SpectrumConfig(input.spectrumConfig, context) }),
2343
- };
2344
- };
2345
- const se_AntennaUplinkConfig = (input, context) => {
2346
- return {
2347
- ...(input.spectrumConfig != null && { spectrumConfig: se_UplinkSpectrumConfig(input.spectrumConfig, context) }),
2348
- ...(input.targetEirp != null && { targetEirp: se_Eirp(input.targetEirp, context) }),
2349
- ...(input.transmitDisabled != null && { transmitDisabled: input.transmitDisabled }),
2350
- };
2351
- };
2352
- const se_AwsGroundStationAgentEndpoint = (input, context) => {
2353
- return {
2354
- ...(input.agentStatus != null && { agentStatus: input.agentStatus }),
2355
- ...(input.auditResults != null && { auditResults: input.auditResults }),
2356
- ...(input.egressAddress != null && { egressAddress: se_ConnectionDetails(input.egressAddress, context) }),
2357
- ...(input.ingressAddress != null && { ingressAddress: se_RangedConnectionDetails(input.ingressAddress, context) }),
2358
- ...(input.name != null && { name: input.name }),
2359
- };
2360
- };
2361
- const se_CapabilityArnList = (input, context) => {
2362
- return input
2363
- .filter((e) => e != null)
2364
- .map((entry) => {
2365
- return entry;
2155
+ return (0, smithy_client_1.take)(input, {
2156
+ spectrumConfig: (_) => se_SpectrumConfig(_, context),
2366
2157
  });
2367
2158
  };
2368
- const se_CapabilityHealthReasonList = (input, context) => {
2369
- return input
2370
- .filter((e) => e != null)
2371
- .map((entry) => {
2372
- return entry;
2373
- });
2374
- };
2375
- const se_ComponentStatusData = (input, context) => {
2376
- return {
2377
- ...(input.bytesReceived != null && { bytesReceived: input.bytesReceived }),
2378
- ...(input.bytesSent != null && { bytesSent: input.bytesSent }),
2379
- ...(input.capabilityArn != null && { capabilityArn: input.capabilityArn }),
2380
- ...(input.componentType != null && { componentType: input.componentType }),
2381
- ...(input.dataflowId != null && { dataflowId: input.dataflowId }),
2382
- ...(input.packetsDropped != null && { packetsDropped: input.packetsDropped }),
2383
- ...(input.status != null && { status: input.status }),
2384
- };
2385
- };
2386
- const se_ComponentStatusList = (input, context) => {
2387
- return input
2388
- .filter((e) => e != null)
2389
- .map((entry) => {
2390
- return se_ComponentStatusData(entry, context);
2159
+ const se_AntennaDownlinkDemodDecodeConfig = (input, context) => {
2160
+ return (0, smithy_client_1.take)(input, {
2161
+ decodeConfig: smithy_client_1._json,
2162
+ demodulationConfig: smithy_client_1._json,
2163
+ spectrumConfig: (_) => se_SpectrumConfig(_, context),
2391
2164
  });
2392
2165
  };
2393
- const se_ComponentVersion = (input, context) => {
2394
- return {
2395
- ...(input.componentType != null && { componentType: input.componentType }),
2396
- ...(input.versions != null && { versions: se_VersionStringList(input.versions, context) }),
2397
- };
2398
- };
2399
- const se_ComponentVersionList = (input, context) => {
2400
- return input
2401
- .filter((e) => e != null)
2402
- .map((entry) => {
2403
- return se_ComponentVersion(entry, context);
2166
+ const se_AntennaUplinkConfig = (input, context) => {
2167
+ return (0, smithy_client_1.take)(input, {
2168
+ spectrumConfig: (_) => se_UplinkSpectrumConfig(_, context),
2169
+ targetEirp: (_) => se_Eirp(_, context),
2170
+ transmitDisabled: [],
2404
2171
  });
2405
2172
  };
2406
2173
  const se_ConfigTypeData = (input, context) => {
@@ -2410,241 +2177,57 @@ const se_ConfigTypeData = (input, context) => {
2410
2177
  antennaDownlinkDemodDecodeConfig: se_AntennaDownlinkDemodDecodeConfig(value, context),
2411
2178
  }),
2412
2179
  antennaUplinkConfig: (value) => ({ antennaUplinkConfig: se_AntennaUplinkConfig(value, context) }),
2413
- dataflowEndpointConfig: (value) => ({ dataflowEndpointConfig: se_DataflowEndpointConfig(value, context) }),
2414
- s3RecordingConfig: (value) => ({ s3RecordingConfig: se_S3RecordingConfig(value, context) }),
2415
- trackingConfig: (value) => ({ trackingConfig: se_TrackingConfig(value, context) }),
2416
- uplinkEchoConfig: (value) => ({ uplinkEchoConfig: se_UplinkEchoConfig(value, context) }),
2180
+ dataflowEndpointConfig: (value) => ({ dataflowEndpointConfig: (0, smithy_client_1._json)(value) }),
2181
+ s3RecordingConfig: (value) => ({ s3RecordingConfig: (0, smithy_client_1._json)(value) }),
2182
+ trackingConfig: (value) => ({ trackingConfig: (0, smithy_client_1._json)(value) }),
2183
+ uplinkEchoConfig: (value) => ({ uplinkEchoConfig: (0, smithy_client_1._json)(value) }),
2417
2184
  _: (name, value) => ({ name: value }),
2418
2185
  });
2419
2186
  };
2420
- const se_ConnectionDetails = (input, context) => {
2421
- return {
2422
- ...(input.mtu != null && { mtu: input.mtu }),
2423
- ...(input.socketAddress != null && { socketAddress: se_SocketAddress(input.socketAddress, context) }),
2424
- };
2425
- };
2426
- const se_DataflowEdge = (input, context) => {
2427
- return input
2428
- .filter((e) => e != null)
2429
- .map((entry) => {
2430
- return entry;
2431
- });
2432
- };
2433
- const se_DataflowEdgeList = (input, context) => {
2434
- return input
2435
- .filter((e) => e != null)
2436
- .map((entry) => {
2437
- return se_DataflowEdge(entry, context);
2438
- });
2439
- };
2440
- const se_DataflowEndpoint = (input, context) => {
2441
- return {
2442
- ...(input.address != null && { address: se_SocketAddress(input.address, context) }),
2443
- ...(input.mtu != null && { mtu: input.mtu }),
2444
- ...(input.name != null && { name: input.name }),
2445
- ...(input.status != null && { status: input.status }),
2446
- };
2447
- };
2448
- const se_DataflowEndpointConfig = (input, context) => {
2449
- return {
2450
- ...(input.dataflowEndpointName != null && { dataflowEndpointName: input.dataflowEndpointName }),
2451
- ...(input.dataflowEndpointRegion != null && { dataflowEndpointRegion: input.dataflowEndpointRegion }),
2452
- };
2453
- };
2454
- const se_DecodeConfig = (input, context) => {
2455
- return {
2456
- ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2457
- };
2458
- };
2459
- const se_DemodulationConfig = (input, context) => {
2460
- return {
2461
- ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2462
- };
2463
- };
2464
- const se_DiscoveryData = (input, context) => {
2465
- return {
2466
- ...(input.capabilityArns != null && { capabilityArns: se_CapabilityArnList(input.capabilityArns, context) }),
2467
- ...(input.privateIpAddresses != null && {
2468
- privateIpAddresses: se_IpAddressList(input.privateIpAddresses, context),
2469
- }),
2470
- ...(input.publicIpAddresses != null && { publicIpAddresses: se_IpAddressList(input.publicIpAddresses, context) }),
2471
- };
2472
- };
2473
2187
  const se_Eirp = (input, context) => {
2474
- return {
2475
- ...(input.units != null && { units: input.units }),
2476
- ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2477
- };
2478
- };
2479
- const se_EndpointDetails = (input, context) => {
2480
- return {
2481
- ...(input.awsGroundStationAgentEndpoint != null && {
2482
- awsGroundStationAgentEndpoint: se_AwsGroundStationAgentEndpoint(input.awsGroundStationAgentEndpoint, context),
2483
- }),
2484
- ...(input.endpoint != null && { endpoint: se_DataflowEndpoint(input.endpoint, context) }),
2485
- ...(input.healthReasons != null && { healthReasons: se_CapabilityHealthReasonList(input.healthReasons, context) }),
2486
- ...(input.healthStatus != null && { healthStatus: input.healthStatus }),
2487
- ...(input.securityDetails != null && { securityDetails: se_SecurityDetails(input.securityDetails, context) }),
2488
- };
2489
- };
2490
- const se_EndpointDetailsList = (input, context) => {
2491
- return input
2492
- .filter((e) => e != null)
2493
- .map((entry) => {
2494
- return se_EndpointDetails(entry, context);
2188
+ return (0, smithy_client_1.take)(input, {
2189
+ units: [],
2190
+ value: smithy_client_1.serializeFloat,
2495
2191
  });
2496
2192
  };
2497
2193
  const se_EphemerisData = (input, context) => {
2498
2194
  return models_0_1.EphemerisData.visit(input, {
2499
- oem: (value) => ({ oem: se_OEMEphemeris(value, context) }),
2195
+ oem: (value) => ({ oem: (0, smithy_client_1._json)(value) }),
2500
2196
  tle: (value) => ({ tle: se_TLEEphemeris(value, context) }),
2501
2197
  _: (name, value) => ({ name: value }),
2502
2198
  });
2503
2199
  };
2504
- const se_EphemerisStatusList = (input, context) => {
2505
- return input
2506
- .filter((e) => e != null)
2507
- .map((entry) => {
2508
- return entry;
2509
- });
2510
- };
2511
2200
  const se_Frequency = (input, context) => {
2512
- return {
2513
- ...(input.units != null && { units: input.units }),
2514
- ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2515
- };
2516
- };
2517
- const se_FrequencyBandwidth = (input, context) => {
2518
- return {
2519
- ...(input.units != null && { units: input.units }),
2520
- ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2521
- };
2522
- };
2523
- const se_IntegerRange = (input, context) => {
2524
- return {
2525
- ...(input.maximum != null && { maximum: input.maximum }),
2526
- ...(input.minimum != null && { minimum: input.minimum }),
2527
- };
2528
- };
2529
- const se_IpAddressList = (input, context) => {
2530
- return input
2531
- .filter((e) => e != null)
2532
- .map((entry) => {
2533
- return entry;
2201
+ return (0, smithy_client_1.take)(input, {
2202
+ units: [],
2203
+ value: smithy_client_1.serializeFloat,
2534
2204
  });
2535
2205
  };
2536
- const se_KmsKey = (input, context) => {
2537
- return models_0_1.KmsKey.visit(input, {
2538
- kmsAliasArn: (value) => ({ kmsAliasArn: value }),
2539
- kmsKeyArn: (value) => ({ kmsKeyArn: value }),
2540
- _: (name, value) => ({ name: value }),
2541
- });
2542
- };
2543
- const se_OEMEphemeris = (input, context) => {
2544
- return {
2545
- ...(input.oemData != null && { oemData: input.oemData }),
2546
- ...(input.s3Object != null && { s3Object: se_S3Object(input.s3Object, context) }),
2547
- };
2548
- };
2549
- const se_RangedConnectionDetails = (input, context) => {
2550
- return {
2551
- ...(input.mtu != null && { mtu: input.mtu }),
2552
- ...(input.socketAddress != null && { socketAddress: se_RangedSocketAddress(input.socketAddress, context) }),
2553
- };
2554
- };
2555
- const se_RangedSocketAddress = (input, context) => {
2556
- return {
2557
- ...(input.name != null && { name: input.name }),
2558
- ...(input.portRange != null && { portRange: se_IntegerRange(input.portRange, context) }),
2559
- };
2560
- };
2561
- const se_S3Object = (input, context) => {
2562
- return {
2563
- ...(input.bucket != null && { bucket: input.bucket }),
2564
- ...(input.key != null && { key: input.key }),
2565
- ...(input.version != null && { version: input.version }),
2566
- };
2567
- };
2568
- const se_S3RecordingConfig = (input, context) => {
2569
- return {
2570
- ...(input.bucketArn != null && { bucketArn: input.bucketArn }),
2571
- ...(input.prefix != null && { prefix: input.prefix }),
2572
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2573
- };
2574
- };
2575
- const se_SecurityDetails = (input, context) => {
2576
- return {
2577
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2578
- ...(input.securityGroupIds != null && {
2579
- securityGroupIds: se_SecurityGroupIdList(input.securityGroupIds, context),
2580
- }),
2581
- ...(input.subnetIds != null && { subnetIds: se_SubnetList(input.subnetIds, context) }),
2582
- };
2583
- };
2584
- const se_SecurityGroupIdList = (input, context) => {
2585
- return input
2586
- .filter((e) => e != null)
2587
- .map((entry) => {
2588
- return entry;
2206
+ const se_FrequencyBandwidth = (input, context) => {
2207
+ return (0, smithy_client_1.take)(input, {
2208
+ units: [],
2209
+ value: smithy_client_1.serializeFloat,
2589
2210
  });
2590
2211
  };
2591
- const se_SignatureMap = (input, context) => {
2592
- return Object.entries(input).reduce((acc, [key, value]) => {
2593
- if (value === null) {
2594
- return acc;
2595
- }
2596
- acc[key] = value;
2597
- return acc;
2598
- }, {});
2599
- };
2600
- const se_SocketAddress = (input, context) => {
2601
- return {
2602
- ...(input.name != null && { name: input.name }),
2603
- ...(input.port != null && { port: input.port }),
2604
- };
2605
- };
2606
2212
  const se_SpectrumConfig = (input, context) => {
2607
- return {
2608
- ...(input.bandwidth != null && { bandwidth: se_FrequencyBandwidth(input.bandwidth, context) }),
2609
- ...(input.centerFrequency != null && { centerFrequency: se_Frequency(input.centerFrequency, context) }),
2610
- ...(input.polarization != null && { polarization: input.polarization }),
2611
- };
2612
- };
2613
- const se_StatusList = (input, context) => {
2614
- return input
2615
- .filter((e) => e != null)
2616
- .map((entry) => {
2617
- return entry;
2618
- });
2619
- };
2620
- const se_SubnetList = (input, context) => {
2621
- return input
2622
- .filter((e) => e != null)
2623
- .map((entry) => {
2624
- return entry;
2213
+ return (0, smithy_client_1.take)(input, {
2214
+ bandwidth: (_) => se_FrequencyBandwidth(_, context),
2215
+ centerFrequency: (_) => se_Frequency(_, context),
2216
+ polarization: [],
2625
2217
  });
2626
2218
  };
2627
- const se_TagsMap = (input, context) => {
2628
- return Object.entries(input).reduce((acc, [key, value]) => {
2629
- if (value === null) {
2630
- return acc;
2631
- }
2632
- acc[key] = value;
2633
- return acc;
2634
- }, {});
2635
- };
2636
2219
  const se_TimeRange = (input, context) => {
2637
- return {
2638
- ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
2639
- ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
2640
- };
2220
+ return (0, smithy_client_1.take)(input, {
2221
+ endTime: (_) => Math.round(_.getTime() / 1000),
2222
+ startTime: (_) => Math.round(_.getTime() / 1000),
2223
+ });
2641
2224
  };
2642
2225
  const se_TLEData = (input, context) => {
2643
- return {
2644
- ...(input.tleLine1 != null && { tleLine1: input.tleLine1 }),
2645
- ...(input.tleLine2 != null && { tleLine2: input.tleLine2 }),
2646
- ...(input.validTimeRange != null && { validTimeRange: se_TimeRange(input.validTimeRange, context) }),
2647
- };
2226
+ return (0, smithy_client_1.take)(input, {
2227
+ tleLine1: [],
2228
+ tleLine2: [],
2229
+ validTimeRange: (_) => se_TimeRange(_, context),
2230
+ });
2648
2231
  };
2649
2232
  const se_TLEDataList = (input, context) => {
2650
2233
  return input
@@ -2654,115 +2237,35 @@ const se_TLEDataList = (input, context) => {
2654
2237
  });
2655
2238
  };
2656
2239
  const se_TLEEphemeris = (input, context) => {
2657
- return {
2658
- ...(input.s3Object != null && { s3Object: se_S3Object(input.s3Object, context) }),
2659
- ...(input.tleData != null && { tleData: se_TLEDataList(input.tleData, context) }),
2660
- };
2661
- };
2662
- const se_TrackingConfig = (input, context) => {
2663
- return {
2664
- ...(input.autotrack != null && { autotrack: input.autotrack }),
2665
- };
2666
- };
2667
- const se_UplinkEchoConfig = (input, context) => {
2668
- return {
2669
- ...(input.antennaUplinkConfigArn != null && { antennaUplinkConfigArn: input.antennaUplinkConfigArn }),
2670
- ...(input.enabled != null && { enabled: input.enabled }),
2671
- };
2240
+ return (0, smithy_client_1.take)(input, {
2241
+ s3Object: smithy_client_1._json,
2242
+ tleData: (_) => se_TLEDataList(_, context),
2243
+ });
2672
2244
  };
2673
2245
  const se_UplinkSpectrumConfig = (input, context) => {
2674
- return {
2675
- ...(input.centerFrequency != null && { centerFrequency: se_Frequency(input.centerFrequency, context) }),
2676
- ...(input.polarization != null && { polarization: input.polarization }),
2677
- };
2678
- };
2679
- const se_VersionStringList = (input, context) => {
2680
- return input
2681
- .filter((e) => e != null)
2682
- .map((entry) => {
2683
- return entry;
2246
+ return (0, smithy_client_1.take)(input, {
2247
+ centerFrequency: (_) => se_Frequency(_, context),
2248
+ polarization: [],
2684
2249
  });
2685
2250
  };
2686
- const de_AntennaDemodDecodeDetails = (output, context) => {
2687
- return {
2688
- outputNode: (0, smithy_client_1.expectString)(output.outputNode),
2689
- };
2690
- };
2691
2251
  const de_AntennaDownlinkConfig = (output, context) => {
2692
- return {
2693
- spectrumConfig: output.spectrumConfig != null ? de_SpectrumConfig(output.spectrumConfig, context) : undefined,
2694
- };
2252
+ return (0, smithy_client_1.take)(output, {
2253
+ spectrumConfig: (_) => de_SpectrumConfig(_, context),
2254
+ });
2695
2255
  };
2696
2256
  const de_AntennaDownlinkDemodDecodeConfig = (output, context) => {
2697
- return {
2698
- decodeConfig: output.decodeConfig != null ? de_DecodeConfig(output.decodeConfig, context) : undefined,
2699
- demodulationConfig: output.demodulationConfig != null ? de_DemodulationConfig(output.demodulationConfig, context) : undefined,
2700
- spectrumConfig: output.spectrumConfig != null ? de_SpectrumConfig(output.spectrumConfig, context) : undefined,
2701
- };
2702
- };
2703
- const de_AntennaUplinkConfig = (output, context) => {
2704
- return {
2705
- spectrumConfig: output.spectrumConfig != null ? de_UplinkSpectrumConfig(output.spectrumConfig, context) : undefined,
2706
- targetEirp: output.targetEirp != null ? de_Eirp(output.targetEirp, context) : undefined,
2707
- transmitDisabled: (0, smithy_client_1.expectBoolean)(output.transmitDisabled),
2708
- };
2709
- };
2710
- const de_AwsGroundStationAgentEndpoint = (output, context) => {
2711
- return {
2712
- agentStatus: (0, smithy_client_1.expectString)(output.agentStatus),
2713
- auditResults: (0, smithy_client_1.expectString)(output.auditResults),
2714
- egressAddress: output.egressAddress != null ? de_ConnectionDetails(output.egressAddress, context) : undefined,
2715
- ingressAddress: output.ingressAddress != null ? de_RangedConnectionDetails(output.ingressAddress, context) : undefined,
2716
- name: (0, smithy_client_1.expectString)(output.name),
2717
- };
2718
- };
2719
- const de_CapabilityHealthReasonList = (output, context) => {
2720
- const retVal = (output || [])
2721
- .filter((e) => e != null)
2722
- .map((entry) => {
2723
- if (entry === null) {
2724
- return null;
2725
- }
2726
- return (0, smithy_client_1.expectString)(entry);
2257
+ return (0, smithy_client_1.take)(output, {
2258
+ decodeConfig: smithy_client_1._json,
2259
+ demodulationConfig: smithy_client_1._json,
2260
+ spectrumConfig: (_) => de_SpectrumConfig(_, context),
2727
2261
  });
2728
- return retVal;
2729
2262
  };
2730
- const de_ConfigDetails = (output, context) => {
2731
- if (output.antennaDemodDecodeDetails != null) {
2732
- return {
2733
- antennaDemodDecodeDetails: de_AntennaDemodDecodeDetails(output.antennaDemodDecodeDetails, context),
2734
- };
2735
- }
2736
- if (output.endpointDetails != null) {
2737
- return {
2738
- endpointDetails: de_EndpointDetails(output.endpointDetails, context),
2739
- };
2740
- }
2741
- if (output.s3RecordingDetails != null) {
2742
- return {
2743
- s3RecordingDetails: de_S3RecordingDetails(output.s3RecordingDetails, context),
2744
- };
2745
- }
2746
- return { $unknown: Object.entries(output)[0] };
2747
- };
2748
- const de_ConfigList = (output, context) => {
2749
- const retVal = (output || [])
2750
- .filter((e) => e != null)
2751
- .map((entry) => {
2752
- if (entry === null) {
2753
- return null;
2754
- }
2755
- return de_ConfigListItem(entry, context);
2263
+ const de_AntennaUplinkConfig = (output, context) => {
2264
+ return (0, smithy_client_1.take)(output, {
2265
+ spectrumConfig: (_) => de_UplinkSpectrumConfig(_, context),
2266
+ targetEirp: (_) => de_Eirp(_, context),
2267
+ transmitDisabled: smithy_client_1.expectBoolean,
2756
2268
  });
2757
- return retVal;
2758
- };
2759
- const de_ConfigListItem = (output, context) => {
2760
- return {
2761
- configArn: (0, smithy_client_1.expectString)(output.configArn),
2762
- configId: (0, smithy_client_1.expectString)(output.configId),
2763
- configType: (0, smithy_client_1.expectString)(output.configType),
2764
- name: (0, smithy_client_1.expectString)(output.name),
2765
- };
2766
2269
  };
2767
2270
  const de_ConfigTypeData = (output, context) => {
2768
2271
  if (output.antennaDownlinkConfig != null) {
@@ -2782,440 +2285,131 @@ const de_ConfigTypeData = (output, context) => {
2782
2285
  }
2783
2286
  if (output.dataflowEndpointConfig != null) {
2784
2287
  return {
2785
- dataflowEndpointConfig: de_DataflowEndpointConfig(output.dataflowEndpointConfig, context),
2288
+ dataflowEndpointConfig: (0, smithy_client_1._json)(output.dataflowEndpointConfig),
2786
2289
  };
2787
2290
  }
2788
2291
  if (output.s3RecordingConfig != null) {
2789
2292
  return {
2790
- s3RecordingConfig: de_S3RecordingConfig(output.s3RecordingConfig, context),
2293
+ s3RecordingConfig: (0, smithy_client_1._json)(output.s3RecordingConfig),
2791
2294
  };
2792
2295
  }
2793
2296
  if (output.trackingConfig != null) {
2794
2297
  return {
2795
- trackingConfig: de_TrackingConfig(output.trackingConfig, context),
2298
+ trackingConfig: (0, smithy_client_1._json)(output.trackingConfig),
2796
2299
  };
2797
2300
  }
2798
2301
  if (output.uplinkEchoConfig != null) {
2799
2302
  return {
2800
- uplinkEchoConfig: de_UplinkEchoConfig(output.uplinkEchoConfig, context),
2303
+ uplinkEchoConfig: (0, smithy_client_1._json)(output.uplinkEchoConfig),
2801
2304
  };
2802
2305
  }
2803
2306
  return { $unknown: Object.entries(output)[0] };
2804
2307
  };
2805
- const de_ConnectionDetails = (output, context) => {
2806
- return {
2807
- mtu: (0, smithy_client_1.expectInt32)(output.mtu),
2808
- socketAddress: output.socketAddress != null ? de_SocketAddress(output.socketAddress, context) : undefined,
2809
- };
2810
- };
2811
2308
  const de_ContactData = (output, context) => {
2812
- return {
2813
- contactId: (0, smithy_client_1.expectString)(output.contactId),
2814
- contactStatus: (0, smithy_client_1.expectString)(output.contactStatus),
2815
- endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
2816
- errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
2817
- groundStation: (0, smithy_client_1.expectString)(output.groundStation),
2818
- maximumElevation: output.maximumElevation != null ? de_Elevation(output.maximumElevation, context) : undefined,
2819
- missionProfileArn: (0, smithy_client_1.expectString)(output.missionProfileArn),
2820
- postPassEndTime: output.postPassEndTime != null
2821
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postPassEndTime)))
2822
- : undefined,
2823
- prePassStartTime: output.prePassStartTime != null
2824
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.prePassStartTime)))
2825
- : undefined,
2826
- region: (0, smithy_client_1.expectString)(output.region),
2827
- satelliteArn: (0, smithy_client_1.expectString)(output.satelliteArn),
2828
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2829
- tags: output.tags != null ? de_TagsMap(output.tags, context) : undefined,
2830
- };
2309
+ return (0, smithy_client_1.take)(output, {
2310
+ contactId: smithy_client_1.expectString,
2311
+ contactStatus: smithy_client_1.expectString,
2312
+ endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2313
+ errorMessage: smithy_client_1.expectString,
2314
+ groundStation: smithy_client_1.expectString,
2315
+ maximumElevation: (_) => de_Elevation(_, context),
2316
+ missionProfileArn: smithy_client_1.expectString,
2317
+ postPassEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2318
+ prePassStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2319
+ region: smithy_client_1.expectString,
2320
+ satelliteArn: smithy_client_1.expectString,
2321
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2322
+ tags: smithy_client_1._json,
2323
+ });
2831
2324
  };
2832
2325
  const de_ContactList = (output, context) => {
2833
2326
  const retVal = (output || [])
2834
2327
  .filter((e) => e != null)
2835
2328
  .map((entry) => {
2836
- if (entry === null) {
2837
- return null;
2838
- }
2839
2329
  return de_ContactData(entry, context);
2840
2330
  });
2841
2331
  return retVal;
2842
2332
  };
2843
- const de_DataflowDetail = (output, context) => {
2844
- return {
2845
- destination: output.destination != null ? de_Destination(output.destination, context) : undefined,
2846
- errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
2847
- source: output.source != null ? de_Source(output.source, context) : undefined,
2848
- };
2849
- };
2850
- const de_DataflowEdge = (output, context) => {
2851
- const retVal = (output || [])
2852
- .filter((e) => e != null)
2853
- .map((entry) => {
2854
- if (entry === null) {
2855
- return null;
2856
- }
2857
- return (0, smithy_client_1.expectString)(entry);
2858
- });
2859
- return retVal;
2860
- };
2861
- const de_DataflowEdgeList = (output, context) => {
2862
- const retVal = (output || [])
2863
- .filter((e) => e != null)
2864
- .map((entry) => {
2865
- if (entry === null) {
2866
- return null;
2867
- }
2868
- return de_DataflowEdge(entry, context);
2869
- });
2870
- return retVal;
2871
- };
2872
- const de_DataflowEndpoint = (output, context) => {
2873
- return {
2874
- address: output.address != null ? de_SocketAddress(output.address, context) : undefined,
2875
- mtu: (0, smithy_client_1.expectInt32)(output.mtu),
2876
- name: (0, smithy_client_1.expectString)(output.name),
2877
- status: (0, smithy_client_1.expectString)(output.status),
2878
- };
2879
- };
2880
- const de_DataflowEndpointConfig = (output, context) => {
2881
- return {
2882
- dataflowEndpointName: (0, smithy_client_1.expectString)(output.dataflowEndpointName),
2883
- dataflowEndpointRegion: (0, smithy_client_1.expectString)(output.dataflowEndpointRegion),
2884
- };
2885
- };
2886
- const de_DataflowEndpointGroupList = (output, context) => {
2887
- const retVal = (output || [])
2888
- .filter((e) => e != null)
2889
- .map((entry) => {
2890
- if (entry === null) {
2891
- return null;
2892
- }
2893
- return de_DataflowEndpointListItem(entry, context);
2894
- });
2895
- return retVal;
2896
- };
2897
- const de_DataflowEndpointListItem = (output, context) => {
2898
- return {
2899
- dataflowEndpointGroupArn: (0, smithy_client_1.expectString)(output.dataflowEndpointGroupArn),
2900
- dataflowEndpointGroupId: (0, smithy_client_1.expectString)(output.dataflowEndpointGroupId),
2901
- };
2902
- };
2903
- const de_DataflowList = (output, context) => {
2904
- const retVal = (output || [])
2905
- .filter((e) => e != null)
2906
- .map((entry) => {
2907
- if (entry === null) {
2908
- return null;
2909
- }
2910
- return de_DataflowDetail(entry, context);
2911
- });
2912
- return retVal;
2913
- };
2914
- const de_DecodeConfig = (output, context) => {
2915
- return {
2916
- unvalidatedJSON: (0, smithy_client_1.expectString)(output.unvalidatedJSON),
2917
- };
2918
- };
2919
- const de_DemodulationConfig = (output, context) => {
2920
- return {
2921
- unvalidatedJSON: (0, smithy_client_1.expectString)(output.unvalidatedJSON),
2922
- };
2923
- };
2924
- const de_Destination = (output, context) => {
2925
- return {
2926
- configDetails: output.configDetails != null ? de_ConfigDetails((0, smithy_client_1.expectUnion)(output.configDetails), context) : undefined,
2927
- configId: (0, smithy_client_1.expectString)(output.configId),
2928
- configType: (0, smithy_client_1.expectString)(output.configType),
2929
- dataflowDestinationRegion: (0, smithy_client_1.expectString)(output.dataflowDestinationRegion),
2930
- };
2931
- };
2932
2333
  const de_Eirp = (output, context) => {
2933
- return {
2934
- units: (0, smithy_client_1.expectString)(output.units),
2935
- value: (0, smithy_client_1.limitedParseDouble)(output.value),
2936
- };
2334
+ return (0, smithy_client_1.take)(output, {
2335
+ units: smithy_client_1.expectString,
2336
+ value: smithy_client_1.limitedParseDouble,
2337
+ });
2937
2338
  };
2938
2339
  const de_Elevation = (output, context) => {
2939
- return {
2940
- unit: (0, smithy_client_1.expectString)(output.unit),
2941
- value: (0, smithy_client_1.limitedParseDouble)(output.value),
2942
- };
2943
- };
2944
- const de_EndpointDetails = (output, context) => {
2945
- return {
2946
- awsGroundStationAgentEndpoint: output.awsGroundStationAgentEndpoint != null
2947
- ? de_AwsGroundStationAgentEndpoint(output.awsGroundStationAgentEndpoint, context)
2948
- : undefined,
2949
- endpoint: output.endpoint != null ? de_DataflowEndpoint(output.endpoint, context) : undefined,
2950
- healthReasons: output.healthReasons != null ? de_CapabilityHealthReasonList(output.healthReasons, context) : undefined,
2951
- healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
2952
- securityDetails: output.securityDetails != null ? de_SecurityDetails(output.securityDetails, context) : undefined,
2953
- };
2954
- };
2955
- const de_EndpointDetailsList = (output, context) => {
2956
- const retVal = (output || [])
2957
- .filter((e) => e != null)
2958
- .map((entry) => {
2959
- if (entry === null) {
2960
- return null;
2961
- }
2962
- return de_EndpointDetails(entry, context);
2340
+ return (0, smithy_client_1.take)(output, {
2341
+ unit: smithy_client_1.expectString,
2342
+ value: smithy_client_1.limitedParseDouble,
2963
2343
  });
2964
- return retVal;
2965
2344
  };
2966
2345
  const de_EphemeridesList = (output, context) => {
2967
2346
  const retVal = (output || [])
2968
2347
  .filter((e) => e != null)
2969
2348
  .map((entry) => {
2970
- if (entry === null) {
2971
- return null;
2972
- }
2973
2349
  return de_EphemerisItem(entry, context);
2974
2350
  });
2975
2351
  return retVal;
2976
2352
  };
2977
- const de_EphemerisDescription = (output, context) => {
2978
- return {
2979
- ephemerisData: (0, smithy_client_1.expectString)(output.ephemerisData),
2980
- sourceS3Object: output.sourceS3Object != null ? de_S3Object(output.sourceS3Object, context) : undefined,
2981
- };
2982
- };
2983
2353
  const de_EphemerisItem = (output, context) => {
2984
- return {
2985
- creationTime: output.creationTime != null
2986
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2987
- : undefined,
2988
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
2989
- ephemerisId: (0, smithy_client_1.expectString)(output.ephemerisId),
2990
- name: (0, smithy_client_1.expectString)(output.name),
2991
- priority: (0, smithy_client_1.expectInt32)(output.priority),
2992
- sourceS3Object: output.sourceS3Object != null ? de_S3Object(output.sourceS3Object, context) : undefined,
2993
- status: (0, smithy_client_1.expectString)(output.status),
2994
- };
2354
+ return (0, smithy_client_1.take)(output, {
2355
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2356
+ enabled: smithy_client_1.expectBoolean,
2357
+ ephemerisId: smithy_client_1.expectString,
2358
+ name: smithy_client_1.expectString,
2359
+ priority: smithy_client_1.expectInt32,
2360
+ sourceS3Object: smithy_client_1._json,
2361
+ status: smithy_client_1.expectString,
2362
+ });
2995
2363
  };
2996
2364
  const de_EphemerisMetaData = (output, context) => {
2997
- return {
2998
- ephemerisId: (0, smithy_client_1.expectString)(output.ephemerisId),
2999
- epoch: output.epoch != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.epoch))) : undefined,
3000
- name: (0, smithy_client_1.expectString)(output.name),
3001
- source: (0, smithy_client_1.expectString)(output.source),
3002
- };
3003
- };
3004
- const de_EphemerisTypeDescription = (output, context) => {
3005
- if (output.oem != null) {
3006
- return {
3007
- oem: de_EphemerisDescription(output.oem, context),
3008
- };
3009
- }
3010
- if (output.tle != null) {
3011
- return {
3012
- tle: de_EphemerisDescription(output.tle, context),
3013
- };
3014
- }
3015
- return { $unknown: Object.entries(output)[0] };
3016
- };
3017
- const de_Frequency = (output, context) => {
3018
- return {
3019
- units: (0, smithy_client_1.expectString)(output.units),
3020
- value: (0, smithy_client_1.limitedParseDouble)(output.value),
3021
- };
3022
- };
3023
- const de_FrequencyBandwidth = (output, context) => {
3024
- return {
3025
- units: (0, smithy_client_1.expectString)(output.units),
3026
- value: (0, smithy_client_1.limitedParseDouble)(output.value),
3027
- };
3028
- };
3029
- const de_GroundStationData = (output, context) => {
3030
- return {
3031
- groundStationId: (0, smithy_client_1.expectString)(output.groundStationId),
3032
- groundStationName: (0, smithy_client_1.expectString)(output.groundStationName),
3033
- region: (0, smithy_client_1.expectString)(output.region),
3034
- };
3035
- };
3036
- const de_GroundStationIdList = (output, context) => {
3037
- const retVal = (output || [])
3038
- .filter((e) => e != null)
3039
- .map((entry) => {
3040
- if (entry === null) {
3041
- return null;
3042
- }
3043
- return (0, smithy_client_1.expectString)(entry);
2365
+ return (0, smithy_client_1.take)(output, {
2366
+ ephemerisId: smithy_client_1.expectString,
2367
+ epoch: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2368
+ name: smithy_client_1.expectString,
2369
+ source: smithy_client_1.expectString,
3044
2370
  });
3045
- return retVal;
3046
2371
  };
3047
- const de_GroundStationList = (output, context) => {
3048
- const retVal = (output || [])
3049
- .filter((e) => e != null)
3050
- .map((entry) => {
3051
- if (entry === null) {
3052
- return null;
3053
- }
3054
- return de_GroundStationData(entry, context);
2372
+ const de_Frequency = (output, context) => {
2373
+ return (0, smithy_client_1.take)(output, {
2374
+ units: smithy_client_1.expectString,
2375
+ value: smithy_client_1.limitedParseDouble,
3055
2376
  });
3056
- return retVal;
3057
- };
3058
- const de_IntegerRange = (output, context) => {
3059
- return {
3060
- maximum: (0, smithy_client_1.expectInt32)(output.maximum),
3061
- minimum: (0, smithy_client_1.expectInt32)(output.minimum),
3062
- };
3063
2377
  };
3064
- const de_KmsKey = (output, context) => {
3065
- if ((0, smithy_client_1.expectString)(output.kmsAliasArn) !== undefined) {
3066
- return { kmsAliasArn: (0, smithy_client_1.expectString)(output.kmsAliasArn) };
3067
- }
3068
- if ((0, smithy_client_1.expectString)(output.kmsKeyArn) !== undefined) {
3069
- return { kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn) };
3070
- }
3071
- return { $unknown: Object.entries(output)[0] };
3072
- };
3073
- const de_MissionProfileList = (output, context) => {
3074
- const retVal = (output || [])
3075
- .filter((e) => e != null)
3076
- .map((entry) => {
3077
- if (entry === null) {
3078
- return null;
3079
- }
3080
- return de_MissionProfileListItem(entry, context);
2378
+ const de_FrequencyBandwidth = (output, context) => {
2379
+ return (0, smithy_client_1.take)(output, {
2380
+ units: smithy_client_1.expectString,
2381
+ value: smithy_client_1.limitedParseDouble,
3081
2382
  });
3082
- return retVal;
3083
- };
3084
- const de_MissionProfileListItem = (output, context) => {
3085
- return {
3086
- missionProfileArn: (0, smithy_client_1.expectString)(output.missionProfileArn),
3087
- missionProfileId: (0, smithy_client_1.expectString)(output.missionProfileId),
3088
- name: (0, smithy_client_1.expectString)(output.name),
3089
- region: (0, smithy_client_1.expectString)(output.region),
3090
- };
3091
- };
3092
- const de_RangedConnectionDetails = (output, context) => {
3093
- return {
3094
- mtu: (0, smithy_client_1.expectInt32)(output.mtu),
3095
- socketAddress: output.socketAddress != null ? de_RangedSocketAddress(output.socketAddress, context) : undefined,
3096
- };
3097
- };
3098
- const de_RangedSocketAddress = (output, context) => {
3099
- return {
3100
- name: (0, smithy_client_1.expectString)(output.name),
3101
- portRange: output.portRange != null ? de_IntegerRange(output.portRange, context) : undefined,
3102
- };
3103
- };
3104
- const de_S3Object = (output, context) => {
3105
- return {
3106
- bucket: (0, smithy_client_1.expectString)(output.bucket),
3107
- key: (0, smithy_client_1.expectString)(output.key),
3108
- version: (0, smithy_client_1.expectString)(output.version),
3109
- };
3110
- };
3111
- const de_S3RecordingConfig = (output, context) => {
3112
- return {
3113
- bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
3114
- prefix: (0, smithy_client_1.expectString)(output.prefix),
3115
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3116
- };
3117
- };
3118
- const de_S3RecordingDetails = (output, context) => {
3119
- return {
3120
- bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
3121
- keyTemplate: (0, smithy_client_1.expectString)(output.keyTemplate),
3122
- };
3123
2383
  };
3124
2384
  const de_SatelliteList = (output, context) => {
3125
2385
  const retVal = (output || [])
3126
2386
  .filter((e) => e != null)
3127
2387
  .map((entry) => {
3128
- if (entry === null) {
3129
- return null;
3130
- }
3131
2388
  return de_SatelliteListItem(entry, context);
3132
2389
  });
3133
2390
  return retVal;
3134
2391
  };
3135
2392
  const de_SatelliteListItem = (output, context) => {
3136
- return {
3137
- currentEphemeris: output.currentEphemeris != null ? de_EphemerisMetaData(output.currentEphemeris, context) : undefined,
3138
- groundStations: output.groundStations != null ? de_GroundStationIdList(output.groundStations, context) : undefined,
3139
- noradSatelliteID: (0, smithy_client_1.expectInt32)(output.noradSatelliteID),
3140
- satelliteArn: (0, smithy_client_1.expectString)(output.satelliteArn),
3141
- satelliteId: (0, smithy_client_1.expectString)(output.satelliteId),
3142
- };
3143
- };
3144
- const de_SecurityDetails = (output, context) => {
3145
- return {
3146
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3147
- securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIdList(output.securityGroupIds, context) : undefined,
3148
- subnetIds: output.subnetIds != null ? de_SubnetList(output.subnetIds, context) : undefined,
3149
- };
3150
- };
3151
- const de_SecurityGroupIdList = (output, context) => {
3152
- const retVal = (output || [])
3153
- .filter((e) => e != null)
3154
- .map((entry) => {
3155
- if (entry === null) {
3156
- return null;
3157
- }
3158
- return (0, smithy_client_1.expectString)(entry);
2393
+ return (0, smithy_client_1.take)(output, {
2394
+ currentEphemeris: (_) => de_EphemerisMetaData(_, context),
2395
+ groundStations: smithy_client_1._json,
2396
+ noradSatelliteID: smithy_client_1.expectInt32,
2397
+ satelliteArn: smithy_client_1.expectString,
2398
+ satelliteId: smithy_client_1.expectString,
3159
2399
  });
3160
- return retVal;
3161
- };
3162
- const de_SocketAddress = (output, context) => {
3163
- return {
3164
- name: (0, smithy_client_1.expectString)(output.name),
3165
- port: (0, smithy_client_1.expectInt32)(output.port),
3166
- };
3167
- };
3168
- const de_Source = (output, context) => {
3169
- return {
3170
- configDetails: output.configDetails != null ? de_ConfigDetails((0, smithy_client_1.expectUnion)(output.configDetails), context) : undefined,
3171
- configId: (0, smithy_client_1.expectString)(output.configId),
3172
- configType: (0, smithy_client_1.expectString)(output.configType),
3173
- dataflowSourceRegion: (0, smithy_client_1.expectString)(output.dataflowSourceRegion),
3174
- };
3175
2400
  };
3176
2401
  const de_SpectrumConfig = (output, context) => {
3177
- return {
3178
- bandwidth: output.bandwidth != null ? de_FrequencyBandwidth(output.bandwidth, context) : undefined,
3179
- centerFrequency: output.centerFrequency != null ? de_Frequency(output.centerFrequency, context) : undefined,
3180
- polarization: (0, smithy_client_1.expectString)(output.polarization),
3181
- };
3182
- };
3183
- const de_SubnetList = (output, context) => {
3184
- const retVal = (output || [])
3185
- .filter((e) => e != null)
3186
- .map((entry) => {
3187
- if (entry === null) {
3188
- return null;
3189
- }
3190
- return (0, smithy_client_1.expectString)(entry);
2402
+ return (0, smithy_client_1.take)(output, {
2403
+ bandwidth: (_) => de_FrequencyBandwidth(_, context),
2404
+ centerFrequency: (_) => de_Frequency(_, context),
2405
+ polarization: smithy_client_1.expectString,
3191
2406
  });
3192
- return retVal;
3193
- };
3194
- const de_TagsMap = (output, context) => {
3195
- return Object.entries(output).reduce((acc, [key, value]) => {
3196
- if (value === null) {
3197
- return acc;
3198
- }
3199
- acc[key] = (0, smithy_client_1.expectString)(value);
3200
- return acc;
3201
- }, {});
3202
- };
3203
- const de_TrackingConfig = (output, context) => {
3204
- return {
3205
- autotrack: (0, smithy_client_1.expectString)(output.autotrack),
3206
- };
3207
- };
3208
- const de_UplinkEchoConfig = (output, context) => {
3209
- return {
3210
- antennaUplinkConfigArn: (0, smithy_client_1.expectString)(output.antennaUplinkConfigArn),
3211
- enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
3212
- };
3213
2407
  };
3214
2408
  const de_UplinkSpectrumConfig = (output, context) => {
3215
- return {
3216
- centerFrequency: output.centerFrequency != null ? de_Frequency(output.centerFrequency, context) : undefined,
3217
- polarization: (0, smithy_client_1.expectString)(output.polarization),
3218
- };
2409
+ return (0, smithy_client_1.take)(output, {
2410
+ centerFrequency: (_) => de_Frequency(_, context),
2411
+ polarization: smithy_client_1.expectString,
2412
+ });
3219
2413
  };
3220
2414
  const deserializeMetadata = (output) => ({
3221
2415
  httpStatusCode: output.statusCode,