@aws-sdk/client-groundstation 3.504.0 → 3.509.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.
@@ -441,7 +441,7 @@ export const se_UpdateMissionProfileCommand = async (input, context) => {
441
441
  };
442
442
  export const de_CancelContactCommand = async (output, context) => {
443
443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
444
- return de_CancelContactCommandError(output, context);
444
+ return de_CommandError(output, context);
445
445
  }
446
446
  const contents = map({
447
447
  $metadata: deserializeMetadata(output),
@@ -453,34 +453,9 @@ export const de_CancelContactCommand = async (output, context) => {
453
453
  Object.assign(contents, doc);
454
454
  return contents;
455
455
  };
456
- const de_CancelContactCommandError = async (output, context) => {
457
- const parsedOutput = {
458
- ...output,
459
- body: await parseErrorBody(output.body, context),
460
- };
461
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
462
- switch (errorCode) {
463
- case "DependencyException":
464
- case "com.amazonaws.groundstation#DependencyException":
465
- throw await de_DependencyExceptionRes(parsedOutput, context);
466
- case "InvalidParameterException":
467
- case "com.amazonaws.groundstation#InvalidParameterException":
468
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
469
- case "ResourceNotFoundException":
470
- case "com.amazonaws.groundstation#ResourceNotFoundException":
471
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
472
- default:
473
- const parsedBody = parsedOutput.body;
474
- return throwDefaultError({
475
- output,
476
- parsedBody,
477
- errorCode,
478
- });
479
- }
480
- };
481
456
  export const de_CreateConfigCommand = async (output, context) => {
482
457
  if (output.statusCode !== 200 && output.statusCode >= 300) {
483
- return de_CreateConfigCommandError(output, context);
458
+ return de_CommandError(output, context);
484
459
  }
485
460
  const contents = map({
486
461
  $metadata: deserializeMetadata(output),
@@ -494,37 +469,9 @@ export const de_CreateConfigCommand = async (output, context) => {
494
469
  Object.assign(contents, doc);
495
470
  return contents;
496
471
  };
497
- const de_CreateConfigCommandError = async (output, context) => {
498
- const parsedOutput = {
499
- ...output,
500
- body: await parseErrorBody(output.body, context),
501
- };
502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
- switch (errorCode) {
504
- case "DependencyException":
505
- case "com.amazonaws.groundstation#DependencyException":
506
- throw await de_DependencyExceptionRes(parsedOutput, context);
507
- case "InvalidParameterException":
508
- case "com.amazonaws.groundstation#InvalidParameterException":
509
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
510
- case "ResourceLimitExceededException":
511
- case "com.amazonaws.groundstation#ResourceLimitExceededException":
512
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
513
- case "ResourceNotFoundException":
514
- case "com.amazonaws.groundstation#ResourceNotFoundException":
515
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
516
- default:
517
- const parsedBody = parsedOutput.body;
518
- return throwDefaultError({
519
- output,
520
- parsedBody,
521
- errorCode,
522
- });
523
- }
524
- };
525
472
  export const de_CreateDataflowEndpointGroupCommand = async (output, context) => {
526
473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
527
- return de_CreateDataflowEndpointGroupCommandError(output, context);
474
+ return de_CommandError(output, context);
528
475
  }
529
476
  const contents = map({
530
477
  $metadata: deserializeMetadata(output),
@@ -536,34 +483,9 @@ export const de_CreateDataflowEndpointGroupCommand = async (output, context) =>
536
483
  Object.assign(contents, doc);
537
484
  return contents;
538
485
  };
539
- const de_CreateDataflowEndpointGroupCommandError = async (output, context) => {
540
- const parsedOutput = {
541
- ...output,
542
- body: await parseErrorBody(output.body, context),
543
- };
544
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
545
- switch (errorCode) {
546
- case "DependencyException":
547
- case "com.amazonaws.groundstation#DependencyException":
548
- throw await de_DependencyExceptionRes(parsedOutput, context);
549
- case "InvalidParameterException":
550
- case "com.amazonaws.groundstation#InvalidParameterException":
551
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
552
- case "ResourceNotFoundException":
553
- case "com.amazonaws.groundstation#ResourceNotFoundException":
554
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
555
- default:
556
- const parsedBody = parsedOutput.body;
557
- return throwDefaultError({
558
- output,
559
- parsedBody,
560
- errorCode,
561
- });
562
- }
563
- };
564
486
  export const de_CreateEphemerisCommand = async (output, context) => {
565
487
  if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return de_CreateEphemerisCommandError(output, context);
488
+ return de_CommandError(output, context);
567
489
  }
568
490
  const contents = map({
569
491
  $metadata: deserializeMetadata(output),
@@ -575,34 +497,9 @@ export const de_CreateEphemerisCommand = async (output, context) => {
575
497
  Object.assign(contents, doc);
576
498
  return contents;
577
499
  };
578
- const de_CreateEphemerisCommandError = async (output, context) => {
579
- const parsedOutput = {
580
- ...output,
581
- body: await parseErrorBody(output.body, context),
582
- };
583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
584
- switch (errorCode) {
585
- case "DependencyException":
586
- case "com.amazonaws.groundstation#DependencyException":
587
- throw await de_DependencyExceptionRes(parsedOutput, context);
588
- case "InvalidParameterException":
589
- case "com.amazonaws.groundstation#InvalidParameterException":
590
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
591
- case "ResourceNotFoundException":
592
- case "com.amazonaws.groundstation#ResourceNotFoundException":
593
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
594
- default:
595
- const parsedBody = parsedOutput.body;
596
- return throwDefaultError({
597
- output,
598
- parsedBody,
599
- errorCode,
600
- });
601
- }
602
- };
603
500
  export const de_CreateMissionProfileCommand = async (output, context) => {
604
501
  if (output.statusCode !== 200 && output.statusCode >= 300) {
605
- return de_CreateMissionProfileCommandError(output, context);
502
+ return de_CommandError(output, context);
606
503
  }
607
504
  const contents = map({
608
505
  $metadata: deserializeMetadata(output),
@@ -614,34 +511,9 @@ export const de_CreateMissionProfileCommand = async (output, context) => {
614
511
  Object.assign(contents, doc);
615
512
  return contents;
616
513
  };
617
- const de_CreateMissionProfileCommandError = async (output, context) => {
618
- const parsedOutput = {
619
- ...output,
620
- body: await parseErrorBody(output.body, context),
621
- };
622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
623
- switch (errorCode) {
624
- case "DependencyException":
625
- case "com.amazonaws.groundstation#DependencyException":
626
- throw await de_DependencyExceptionRes(parsedOutput, context);
627
- case "InvalidParameterException":
628
- case "com.amazonaws.groundstation#InvalidParameterException":
629
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
630
- case "ResourceNotFoundException":
631
- case "com.amazonaws.groundstation#ResourceNotFoundException":
632
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
633
- default:
634
- const parsedBody = parsedOutput.body;
635
- return throwDefaultError({
636
- output,
637
- parsedBody,
638
- errorCode,
639
- });
640
- }
641
- };
642
514
  export const de_DeleteConfigCommand = async (output, context) => {
643
515
  if (output.statusCode !== 200 && output.statusCode >= 300) {
644
- return de_DeleteConfigCommandError(output, context);
516
+ return de_CommandError(output, context);
645
517
  }
646
518
  const contents = map({
647
519
  $metadata: deserializeMetadata(output),
@@ -655,34 +527,9 @@ export const de_DeleteConfigCommand = async (output, context) => {
655
527
  Object.assign(contents, doc);
656
528
  return contents;
657
529
  };
658
- const de_DeleteConfigCommandError = async (output, context) => {
659
- const parsedOutput = {
660
- ...output,
661
- body: await parseErrorBody(output.body, context),
662
- };
663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
664
- switch (errorCode) {
665
- case "DependencyException":
666
- case "com.amazonaws.groundstation#DependencyException":
667
- throw await de_DependencyExceptionRes(parsedOutput, context);
668
- case "InvalidParameterException":
669
- case "com.amazonaws.groundstation#InvalidParameterException":
670
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
671
- case "ResourceNotFoundException":
672
- case "com.amazonaws.groundstation#ResourceNotFoundException":
673
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
674
- default:
675
- const parsedBody = parsedOutput.body;
676
- return throwDefaultError({
677
- output,
678
- parsedBody,
679
- errorCode,
680
- });
681
- }
682
- };
683
530
  export const de_DeleteDataflowEndpointGroupCommand = async (output, context) => {
684
531
  if (output.statusCode !== 200 && output.statusCode >= 300) {
685
- return de_DeleteDataflowEndpointGroupCommandError(output, context);
532
+ return de_CommandError(output, context);
686
533
  }
687
534
  const contents = map({
688
535
  $metadata: deserializeMetadata(output),
@@ -694,34 +541,9 @@ export const de_DeleteDataflowEndpointGroupCommand = async (output, context) =>
694
541
  Object.assign(contents, doc);
695
542
  return contents;
696
543
  };
697
- const de_DeleteDataflowEndpointGroupCommandError = async (output, context) => {
698
- const parsedOutput = {
699
- ...output,
700
- body: await parseErrorBody(output.body, context),
701
- };
702
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
703
- switch (errorCode) {
704
- case "DependencyException":
705
- case "com.amazonaws.groundstation#DependencyException":
706
- throw await de_DependencyExceptionRes(parsedOutput, context);
707
- case "InvalidParameterException":
708
- case "com.amazonaws.groundstation#InvalidParameterException":
709
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
710
- case "ResourceNotFoundException":
711
- case "com.amazonaws.groundstation#ResourceNotFoundException":
712
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
713
- default:
714
- const parsedBody = parsedOutput.body;
715
- return throwDefaultError({
716
- output,
717
- parsedBody,
718
- errorCode,
719
- });
720
- }
721
- };
722
544
  export const de_DeleteEphemerisCommand = async (output, context) => {
723
545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
724
- return de_DeleteEphemerisCommandError(output, context);
546
+ return de_CommandError(output, context);
725
547
  }
726
548
  const contents = map({
727
549
  $metadata: deserializeMetadata(output),
@@ -733,34 +555,9 @@ export const de_DeleteEphemerisCommand = async (output, context) => {
733
555
  Object.assign(contents, doc);
734
556
  return contents;
735
557
  };
736
- const de_DeleteEphemerisCommandError = async (output, context) => {
737
- const parsedOutput = {
738
- ...output,
739
- body: await parseErrorBody(output.body, context),
740
- };
741
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
742
- switch (errorCode) {
743
- case "DependencyException":
744
- case "com.amazonaws.groundstation#DependencyException":
745
- throw await de_DependencyExceptionRes(parsedOutput, context);
746
- case "InvalidParameterException":
747
- case "com.amazonaws.groundstation#InvalidParameterException":
748
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
749
- case "ResourceNotFoundException":
750
- case "com.amazonaws.groundstation#ResourceNotFoundException":
751
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
752
- default:
753
- const parsedBody = parsedOutput.body;
754
- return throwDefaultError({
755
- output,
756
- parsedBody,
757
- errorCode,
758
- });
759
- }
760
- };
761
558
  export const de_DeleteMissionProfileCommand = async (output, context) => {
762
559
  if (output.statusCode !== 200 && output.statusCode >= 300) {
763
- return de_DeleteMissionProfileCommandError(output, context);
560
+ return de_CommandError(output, context);
764
561
  }
765
562
  const contents = map({
766
563
  $metadata: deserializeMetadata(output),
@@ -772,34 +569,9 @@ export const de_DeleteMissionProfileCommand = async (output, context) => {
772
569
  Object.assign(contents, doc);
773
570
  return contents;
774
571
  };
775
- const de_DeleteMissionProfileCommandError = async (output, context) => {
776
- const parsedOutput = {
777
- ...output,
778
- body: await parseErrorBody(output.body, context),
779
- };
780
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
781
- switch (errorCode) {
782
- case "DependencyException":
783
- case "com.amazonaws.groundstation#DependencyException":
784
- throw await de_DependencyExceptionRes(parsedOutput, context);
785
- case "InvalidParameterException":
786
- case "com.amazonaws.groundstation#InvalidParameterException":
787
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
788
- case "ResourceNotFoundException":
789
- case "com.amazonaws.groundstation#ResourceNotFoundException":
790
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
791
- default:
792
- const parsedBody = parsedOutput.body;
793
- return throwDefaultError({
794
- output,
795
- parsedBody,
796
- errorCode,
797
- });
798
- }
799
- };
800
572
  export const de_DescribeContactCommand = async (output, context) => {
801
573
  if (output.statusCode !== 200 && output.statusCode >= 300) {
802
- return de_DescribeContactCommandError(output, context);
574
+ return de_CommandError(output, context);
803
575
  }
804
576
  const contents = map({
805
577
  $metadata: deserializeMetadata(output),
@@ -824,34 +596,9 @@ export const de_DescribeContactCommand = async (output, context) => {
824
596
  Object.assign(contents, doc);
825
597
  return contents;
826
598
  };
827
- const de_DescribeContactCommandError = async (output, context) => {
828
- const parsedOutput = {
829
- ...output,
830
- body: await parseErrorBody(output.body, context),
831
- };
832
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
833
- switch (errorCode) {
834
- case "DependencyException":
835
- case "com.amazonaws.groundstation#DependencyException":
836
- throw await de_DependencyExceptionRes(parsedOutput, context);
837
- case "InvalidParameterException":
838
- case "com.amazonaws.groundstation#InvalidParameterException":
839
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
840
- case "ResourceNotFoundException":
841
- case "com.amazonaws.groundstation#ResourceNotFoundException":
842
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
843
- default:
844
- const parsedBody = parsedOutput.body;
845
- return throwDefaultError({
846
- output,
847
- parsedBody,
848
- errorCode,
849
- });
850
- }
851
- };
852
599
  export const de_DescribeEphemerisCommand = async (output, context) => {
853
600
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_DescribeEphemerisCommandError(output, context);
601
+ return de_CommandError(output, context);
855
602
  }
856
603
  const contents = map({
857
604
  $metadata: deserializeMetadata(output),
@@ -872,34 +619,9 @@ export const de_DescribeEphemerisCommand = async (output, context) => {
872
619
  Object.assign(contents, doc);
873
620
  return contents;
874
621
  };
875
- const de_DescribeEphemerisCommandError = async (output, context) => {
876
- const parsedOutput = {
877
- ...output,
878
- body: await parseErrorBody(output.body, context),
879
- };
880
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
881
- switch (errorCode) {
882
- case "DependencyException":
883
- case "com.amazonaws.groundstation#DependencyException":
884
- throw await de_DependencyExceptionRes(parsedOutput, context);
885
- case "InvalidParameterException":
886
- case "com.amazonaws.groundstation#InvalidParameterException":
887
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
888
- case "ResourceNotFoundException":
889
- case "com.amazonaws.groundstation#ResourceNotFoundException":
890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
891
- default:
892
- const parsedBody = parsedOutput.body;
893
- return throwDefaultError({
894
- output,
895
- parsedBody,
896
- errorCode,
897
- });
898
- }
899
- };
900
622
  export const de_GetAgentConfigurationCommand = async (output, context) => {
901
623
  if (output.statusCode !== 200 && output.statusCode >= 300) {
902
- return de_GetAgentConfigurationCommandError(output, context);
624
+ return de_CommandError(output, context);
903
625
  }
904
626
  const contents = map({
905
627
  $metadata: deserializeMetadata(output),
@@ -912,34 +634,9 @@ export const de_GetAgentConfigurationCommand = async (output, context) => {
912
634
  Object.assign(contents, doc);
913
635
  return contents;
914
636
  };
915
- const de_GetAgentConfigurationCommandError = async (output, context) => {
916
- const parsedOutput = {
917
- ...output,
918
- body: await parseErrorBody(output.body, context),
919
- };
920
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
921
- switch (errorCode) {
922
- case "DependencyException":
923
- case "com.amazonaws.groundstation#DependencyException":
924
- throw await de_DependencyExceptionRes(parsedOutput, context);
925
- case "InvalidParameterException":
926
- case "com.amazonaws.groundstation#InvalidParameterException":
927
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
928
- case "ResourceNotFoundException":
929
- case "com.amazonaws.groundstation#ResourceNotFoundException":
930
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
931
- default:
932
- const parsedBody = parsedOutput.body;
933
- return throwDefaultError({
934
- output,
935
- parsedBody,
936
- errorCode,
937
- });
938
- }
939
- };
940
637
  export const de_GetConfigCommand = async (output, context) => {
941
638
  if (output.statusCode !== 200 && output.statusCode >= 300) {
942
- return de_GetConfigCommandError(output, context);
639
+ return de_CommandError(output, context);
943
640
  }
944
641
  const contents = map({
945
642
  $metadata: deserializeMetadata(output),
@@ -956,34 +653,9 @@ export const de_GetConfigCommand = async (output, context) => {
956
653
  Object.assign(contents, doc);
957
654
  return contents;
958
655
  };
959
- const de_GetConfigCommandError = async (output, context) => {
960
- const parsedOutput = {
961
- ...output,
962
- body: await parseErrorBody(output.body, context),
963
- };
964
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
965
- switch (errorCode) {
966
- case "DependencyException":
967
- case "com.amazonaws.groundstation#DependencyException":
968
- throw await de_DependencyExceptionRes(parsedOutput, context);
969
- case "InvalidParameterException":
970
- case "com.amazonaws.groundstation#InvalidParameterException":
971
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
972
- case "ResourceNotFoundException":
973
- case "com.amazonaws.groundstation#ResourceNotFoundException":
974
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
975
- default:
976
- const parsedBody = parsedOutput.body;
977
- return throwDefaultError({
978
- output,
979
- parsedBody,
980
- errorCode,
981
- });
982
- }
983
- };
984
656
  export const de_GetDataflowEndpointGroupCommand = async (output, context) => {
985
657
  if (output.statusCode !== 200 && output.statusCode >= 300) {
986
- return de_GetDataflowEndpointGroupCommandError(output, context);
658
+ return de_CommandError(output, context);
987
659
  }
988
660
  const contents = map({
989
661
  $metadata: deserializeMetadata(output),
@@ -1000,34 +672,9 @@ export const de_GetDataflowEndpointGroupCommand = async (output, context) => {
1000
672
  Object.assign(contents, doc);
1001
673
  return contents;
1002
674
  };
1003
- const de_GetDataflowEndpointGroupCommandError = async (output, context) => {
1004
- const parsedOutput = {
1005
- ...output,
1006
- body: await parseErrorBody(output.body, context),
1007
- };
1008
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1009
- switch (errorCode) {
1010
- case "DependencyException":
1011
- case "com.amazonaws.groundstation#DependencyException":
1012
- throw await de_DependencyExceptionRes(parsedOutput, context);
1013
- case "InvalidParameterException":
1014
- case "com.amazonaws.groundstation#InvalidParameterException":
1015
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1016
- case "ResourceNotFoundException":
1017
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1018
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1019
- default:
1020
- const parsedBody = parsedOutput.body;
1021
- return throwDefaultError({
1022
- output,
1023
- parsedBody,
1024
- errorCode,
1025
- });
1026
- }
1027
- };
1028
675
  export const de_GetMinuteUsageCommand = async (output, context) => {
1029
676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1030
- return de_GetMinuteUsageCommandError(output, context);
677
+ return de_CommandError(output, context);
1031
678
  }
1032
679
  const contents = map({
1033
680
  $metadata: deserializeMetadata(output),
@@ -1043,34 +690,9 @@ export const de_GetMinuteUsageCommand = async (output, context) => {
1043
690
  Object.assign(contents, doc);
1044
691
  return contents;
1045
692
  };
1046
- const de_GetMinuteUsageCommandError = async (output, context) => {
1047
- const parsedOutput = {
1048
- ...output,
1049
- body: await parseErrorBody(output.body, context),
1050
- };
1051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1052
- switch (errorCode) {
1053
- case "DependencyException":
1054
- case "com.amazonaws.groundstation#DependencyException":
1055
- throw await de_DependencyExceptionRes(parsedOutput, context);
1056
- case "InvalidParameterException":
1057
- case "com.amazonaws.groundstation#InvalidParameterException":
1058
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1059
- case "ResourceNotFoundException":
1060
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1061
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1062
- default:
1063
- const parsedBody = parsedOutput.body;
1064
- return throwDefaultError({
1065
- output,
1066
- parsedBody,
1067
- errorCode,
1068
- });
1069
- }
1070
- };
1071
693
  export const de_GetMissionProfileCommand = async (output, context) => {
1072
694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
- return de_GetMissionProfileCommandError(output, context);
695
+ return de_CommandError(output, context);
1074
696
  }
1075
697
  const contents = map({
1076
698
  $metadata: deserializeMetadata(output),
@@ -1093,34 +715,9 @@ export const de_GetMissionProfileCommand = async (output, context) => {
1093
715
  Object.assign(contents, doc);
1094
716
  return contents;
1095
717
  };
1096
- const de_GetMissionProfileCommandError = async (output, context) => {
1097
- const parsedOutput = {
1098
- ...output,
1099
- body: await parseErrorBody(output.body, context),
1100
- };
1101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1102
- switch (errorCode) {
1103
- case "DependencyException":
1104
- case "com.amazonaws.groundstation#DependencyException":
1105
- throw await de_DependencyExceptionRes(parsedOutput, context);
1106
- case "InvalidParameterException":
1107
- case "com.amazonaws.groundstation#InvalidParameterException":
1108
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1109
- case "ResourceNotFoundException":
1110
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1111
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1112
- default:
1113
- const parsedBody = parsedOutput.body;
1114
- return throwDefaultError({
1115
- output,
1116
- parsedBody,
1117
- errorCode,
1118
- });
1119
- }
1120
- };
1121
718
  export const de_GetSatelliteCommand = async (output, context) => {
1122
719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1123
- return de_GetSatelliteCommandError(output, context);
720
+ return de_CommandError(output, context);
1124
721
  }
1125
722
  const contents = map({
1126
723
  $metadata: deserializeMetadata(output),
@@ -1136,34 +733,9 @@ export const de_GetSatelliteCommand = async (output, context) => {
1136
733
  Object.assign(contents, doc);
1137
734
  return contents;
1138
735
  };
1139
- const de_GetSatelliteCommandError = async (output, context) => {
1140
- const parsedOutput = {
1141
- ...output,
1142
- body: await parseErrorBody(output.body, context),
1143
- };
1144
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1145
- switch (errorCode) {
1146
- case "DependencyException":
1147
- case "com.amazonaws.groundstation#DependencyException":
1148
- throw await de_DependencyExceptionRes(parsedOutput, context);
1149
- case "InvalidParameterException":
1150
- case "com.amazonaws.groundstation#InvalidParameterException":
1151
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1152
- case "ResourceNotFoundException":
1153
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1154
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1155
- default:
1156
- const parsedBody = parsedOutput.body;
1157
- return throwDefaultError({
1158
- output,
1159
- parsedBody,
1160
- errorCode,
1161
- });
1162
- }
1163
- };
1164
736
  export const de_ListConfigsCommand = async (output, context) => {
1165
737
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
- return de_ListConfigsCommandError(output, context);
738
+ return de_CommandError(output, context);
1167
739
  }
1168
740
  const contents = map({
1169
741
  $metadata: deserializeMetadata(output),
@@ -1176,34 +748,9 @@ export const de_ListConfigsCommand = async (output, context) => {
1176
748
  Object.assign(contents, doc);
1177
749
  return contents;
1178
750
  };
1179
- const de_ListConfigsCommandError = async (output, context) => {
1180
- const parsedOutput = {
1181
- ...output,
1182
- body: await parseErrorBody(output.body, context),
1183
- };
1184
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1185
- switch (errorCode) {
1186
- case "DependencyException":
1187
- case "com.amazonaws.groundstation#DependencyException":
1188
- throw await de_DependencyExceptionRes(parsedOutput, context);
1189
- case "InvalidParameterException":
1190
- case "com.amazonaws.groundstation#InvalidParameterException":
1191
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1192
- case "ResourceNotFoundException":
1193
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1194
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1195
- default:
1196
- const parsedBody = parsedOutput.body;
1197
- return throwDefaultError({
1198
- output,
1199
- parsedBody,
1200
- errorCode,
1201
- });
1202
- }
1203
- };
1204
751
  export const de_ListContactsCommand = async (output, context) => {
1205
752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1206
- return de_ListContactsCommandError(output, context);
753
+ return de_CommandError(output, context);
1207
754
  }
1208
755
  const contents = map({
1209
756
  $metadata: deserializeMetadata(output),
@@ -1216,34 +763,9 @@ export const de_ListContactsCommand = async (output, context) => {
1216
763
  Object.assign(contents, doc);
1217
764
  return contents;
1218
765
  };
1219
- const de_ListContactsCommandError = async (output, context) => {
1220
- const parsedOutput = {
1221
- ...output,
1222
- body: await parseErrorBody(output.body, context),
1223
- };
1224
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1225
- switch (errorCode) {
1226
- case "DependencyException":
1227
- case "com.amazonaws.groundstation#DependencyException":
1228
- throw await de_DependencyExceptionRes(parsedOutput, context);
1229
- case "InvalidParameterException":
1230
- case "com.amazonaws.groundstation#InvalidParameterException":
1231
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1232
- case "ResourceNotFoundException":
1233
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1234
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1235
- default:
1236
- const parsedBody = parsedOutput.body;
1237
- return throwDefaultError({
1238
- output,
1239
- parsedBody,
1240
- errorCode,
1241
- });
1242
- }
1243
- };
1244
766
  export const de_ListDataflowEndpointGroupsCommand = async (output, context) => {
1245
767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1246
- return de_ListDataflowEndpointGroupsCommandError(output, context);
768
+ return de_CommandError(output, context);
1247
769
  }
1248
770
  const contents = map({
1249
771
  $metadata: deserializeMetadata(output),
@@ -1256,34 +778,9 @@ export const de_ListDataflowEndpointGroupsCommand = async (output, context) => {
1256
778
  Object.assign(contents, doc);
1257
779
  return contents;
1258
780
  };
1259
- const de_ListDataflowEndpointGroupsCommandError = async (output, context) => {
1260
- const parsedOutput = {
1261
- ...output,
1262
- body: await parseErrorBody(output.body, context),
1263
- };
1264
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1265
- switch (errorCode) {
1266
- case "DependencyException":
1267
- case "com.amazonaws.groundstation#DependencyException":
1268
- throw await de_DependencyExceptionRes(parsedOutput, context);
1269
- case "InvalidParameterException":
1270
- case "com.amazonaws.groundstation#InvalidParameterException":
1271
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1272
- case "ResourceNotFoundException":
1273
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1274
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1275
- default:
1276
- const parsedBody = parsedOutput.body;
1277
- return throwDefaultError({
1278
- output,
1279
- parsedBody,
1280
- errorCode,
1281
- });
1282
- }
1283
- };
1284
781
  export const de_ListEphemeridesCommand = async (output, context) => {
1285
782
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
- return de_ListEphemeridesCommandError(output, context);
783
+ return de_CommandError(output, context);
1287
784
  }
1288
785
  const contents = map({
1289
786
  $metadata: deserializeMetadata(output),
@@ -1295,75 +792,25 @@ export const de_ListEphemeridesCommand = async (output, context) => {
1295
792
  });
1296
793
  Object.assign(contents, doc);
1297
794
  return contents;
1298
- };
1299
- const de_ListEphemeridesCommandError = async (output, context) => {
1300
- const parsedOutput = {
1301
- ...output,
1302
- body: await parseErrorBody(output.body, context),
1303
- };
1304
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1305
- switch (errorCode) {
1306
- case "DependencyException":
1307
- case "com.amazonaws.groundstation#DependencyException":
1308
- throw await de_DependencyExceptionRes(parsedOutput, context);
1309
- case "InvalidParameterException":
1310
- case "com.amazonaws.groundstation#InvalidParameterException":
1311
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1312
- case "ResourceNotFoundException":
1313
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1314
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1315
- default:
1316
- const parsedBody = parsedOutput.body;
1317
- return throwDefaultError({
1318
- output,
1319
- parsedBody,
1320
- errorCode,
1321
- });
1322
- }
1323
- };
1324
- export const de_ListGroundStationsCommand = async (output, context) => {
1325
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1326
- return de_ListGroundStationsCommandError(output, context);
1327
- }
1328
- const contents = map({
1329
- $metadata: deserializeMetadata(output),
1330
- });
1331
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1332
- const doc = take(data, {
1333
- groundStationList: _json,
1334
- nextToken: __expectString,
1335
- });
1336
- Object.assign(contents, doc);
1337
- return contents;
1338
- };
1339
- const de_ListGroundStationsCommandError = async (output, context) => {
1340
- const parsedOutput = {
1341
- ...output,
1342
- body: await parseErrorBody(output.body, context),
1343
- };
1344
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1345
- switch (errorCode) {
1346
- case "DependencyException":
1347
- case "com.amazonaws.groundstation#DependencyException":
1348
- throw await de_DependencyExceptionRes(parsedOutput, context);
1349
- case "InvalidParameterException":
1350
- case "com.amazonaws.groundstation#InvalidParameterException":
1351
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1352
- case "ResourceNotFoundException":
1353
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1354
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1355
- default:
1356
- const parsedBody = parsedOutput.body;
1357
- return throwDefaultError({
1358
- output,
1359
- parsedBody,
1360
- errorCode,
1361
- });
795
+ };
796
+ export const de_ListGroundStationsCommand = async (output, context) => {
797
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
798
+ return de_CommandError(output, context);
1362
799
  }
800
+ const contents = map({
801
+ $metadata: deserializeMetadata(output),
802
+ });
803
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
804
+ const doc = take(data, {
805
+ groundStationList: _json,
806
+ nextToken: __expectString,
807
+ });
808
+ Object.assign(contents, doc);
809
+ return contents;
1363
810
  };
1364
811
  export const de_ListMissionProfilesCommand = async (output, context) => {
1365
812
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1366
- return de_ListMissionProfilesCommandError(output, context);
813
+ return de_CommandError(output, context);
1367
814
  }
1368
815
  const contents = map({
1369
816
  $metadata: deserializeMetadata(output),
@@ -1376,34 +823,9 @@ export const de_ListMissionProfilesCommand = async (output, context) => {
1376
823
  Object.assign(contents, doc);
1377
824
  return contents;
1378
825
  };
1379
- const de_ListMissionProfilesCommandError = async (output, context) => {
1380
- const parsedOutput = {
1381
- ...output,
1382
- body: await parseErrorBody(output.body, context),
1383
- };
1384
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1385
- switch (errorCode) {
1386
- case "DependencyException":
1387
- case "com.amazonaws.groundstation#DependencyException":
1388
- throw await de_DependencyExceptionRes(parsedOutput, context);
1389
- case "InvalidParameterException":
1390
- case "com.amazonaws.groundstation#InvalidParameterException":
1391
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1392
- case "ResourceNotFoundException":
1393
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1394
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1395
- default:
1396
- const parsedBody = parsedOutput.body;
1397
- return throwDefaultError({
1398
- output,
1399
- parsedBody,
1400
- errorCode,
1401
- });
1402
- }
1403
- };
1404
826
  export const de_ListSatellitesCommand = async (output, context) => {
1405
827
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1406
- return de_ListSatellitesCommandError(output, context);
828
+ return de_CommandError(output, context);
1407
829
  }
1408
830
  const contents = map({
1409
831
  $metadata: deserializeMetadata(output),
@@ -1416,34 +838,9 @@ export const de_ListSatellitesCommand = async (output, context) => {
1416
838
  Object.assign(contents, doc);
1417
839
  return contents;
1418
840
  };
1419
- const de_ListSatellitesCommandError = async (output, context) => {
1420
- const parsedOutput = {
1421
- ...output,
1422
- body: await parseErrorBody(output.body, context),
1423
- };
1424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1425
- switch (errorCode) {
1426
- case "DependencyException":
1427
- case "com.amazonaws.groundstation#DependencyException":
1428
- throw await de_DependencyExceptionRes(parsedOutput, context);
1429
- case "InvalidParameterException":
1430
- case "com.amazonaws.groundstation#InvalidParameterException":
1431
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1432
- case "ResourceNotFoundException":
1433
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1434
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1435
- default:
1436
- const parsedBody = parsedOutput.body;
1437
- return throwDefaultError({
1438
- output,
1439
- parsedBody,
1440
- errorCode,
1441
- });
1442
- }
1443
- };
1444
841
  export const de_ListTagsForResourceCommand = async (output, context) => {
1445
842
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1446
- return de_ListTagsForResourceCommandError(output, context);
843
+ return de_CommandError(output, context);
1447
844
  }
1448
845
  const contents = map({
1449
846
  $metadata: deserializeMetadata(output),
@@ -1455,34 +852,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1455
852
  Object.assign(contents, doc);
1456
853
  return contents;
1457
854
  };
1458
- const de_ListTagsForResourceCommandError = async (output, context) => {
1459
- const parsedOutput = {
1460
- ...output,
1461
- body: await parseErrorBody(output.body, context),
1462
- };
1463
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1464
- switch (errorCode) {
1465
- case "DependencyException":
1466
- case "com.amazonaws.groundstation#DependencyException":
1467
- throw await de_DependencyExceptionRes(parsedOutput, context);
1468
- case "InvalidParameterException":
1469
- case "com.amazonaws.groundstation#InvalidParameterException":
1470
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1471
- case "ResourceNotFoundException":
1472
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1473
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1474
- default:
1475
- const parsedBody = parsedOutput.body;
1476
- return throwDefaultError({
1477
- output,
1478
- parsedBody,
1479
- errorCode,
1480
- });
1481
- }
1482
- };
1483
855
  export const de_RegisterAgentCommand = async (output, context) => {
1484
856
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1485
- return de_RegisterAgentCommandError(output, context);
857
+ return de_CommandError(output, context);
1486
858
  }
1487
859
  const contents = map({
1488
860
  $metadata: deserializeMetadata(output),
@@ -1494,34 +866,9 @@ export const de_RegisterAgentCommand = async (output, context) => {
1494
866
  Object.assign(contents, doc);
1495
867
  return contents;
1496
868
  };
1497
- const de_RegisterAgentCommandError = async (output, context) => {
1498
- const parsedOutput = {
1499
- ...output,
1500
- body: await parseErrorBody(output.body, context),
1501
- };
1502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1503
- switch (errorCode) {
1504
- case "DependencyException":
1505
- case "com.amazonaws.groundstation#DependencyException":
1506
- throw await de_DependencyExceptionRes(parsedOutput, context);
1507
- case "InvalidParameterException":
1508
- case "com.amazonaws.groundstation#InvalidParameterException":
1509
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1510
- case "ResourceNotFoundException":
1511
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1512
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1513
- default:
1514
- const parsedBody = parsedOutput.body;
1515
- return throwDefaultError({
1516
- output,
1517
- parsedBody,
1518
- errorCode,
1519
- });
1520
- }
1521
- };
1522
869
  export const de_ReserveContactCommand = async (output, context) => {
1523
870
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1524
- return de_ReserveContactCommandError(output, context);
871
+ return de_CommandError(output, context);
1525
872
  }
1526
873
  const contents = map({
1527
874
  $metadata: deserializeMetadata(output),
@@ -1533,34 +880,9 @@ export const de_ReserveContactCommand = async (output, context) => {
1533
880
  Object.assign(contents, doc);
1534
881
  return contents;
1535
882
  };
1536
- const de_ReserveContactCommandError = async (output, context) => {
1537
- const parsedOutput = {
1538
- ...output,
1539
- body: await parseErrorBody(output.body, context),
1540
- };
1541
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1542
- switch (errorCode) {
1543
- case "DependencyException":
1544
- case "com.amazonaws.groundstation#DependencyException":
1545
- throw await de_DependencyExceptionRes(parsedOutput, context);
1546
- case "InvalidParameterException":
1547
- case "com.amazonaws.groundstation#InvalidParameterException":
1548
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1549
- case "ResourceNotFoundException":
1550
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1551
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1552
- default:
1553
- const parsedBody = parsedOutput.body;
1554
- return throwDefaultError({
1555
- output,
1556
- parsedBody,
1557
- errorCode,
1558
- });
1559
- }
1560
- };
1561
883
  export const de_TagResourceCommand = async (output, context) => {
1562
884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1563
- return de_TagResourceCommandError(output, context);
885
+ return de_CommandError(output, context);
1564
886
  }
1565
887
  const contents = map({
1566
888
  $metadata: deserializeMetadata(output),
@@ -1568,34 +890,9 @@ export const de_TagResourceCommand = async (output, context) => {
1568
890
  await collectBody(output.body, context);
1569
891
  return contents;
1570
892
  };
1571
- const de_TagResourceCommandError = async (output, context) => {
1572
- const parsedOutput = {
1573
- ...output,
1574
- body: await parseErrorBody(output.body, context),
1575
- };
1576
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1577
- switch (errorCode) {
1578
- case "DependencyException":
1579
- case "com.amazonaws.groundstation#DependencyException":
1580
- throw await de_DependencyExceptionRes(parsedOutput, context);
1581
- case "InvalidParameterException":
1582
- case "com.amazonaws.groundstation#InvalidParameterException":
1583
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1584
- case "ResourceNotFoundException":
1585
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1586
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1587
- default:
1588
- const parsedBody = parsedOutput.body;
1589
- return throwDefaultError({
1590
- output,
1591
- parsedBody,
1592
- errorCode,
1593
- });
1594
- }
1595
- };
1596
893
  export const de_UntagResourceCommand = async (output, context) => {
1597
894
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1598
- return de_UntagResourceCommandError(output, context);
895
+ return de_CommandError(output, context);
1599
896
  }
1600
897
  const contents = map({
1601
898
  $metadata: deserializeMetadata(output),
@@ -1603,34 +900,9 @@ export const de_UntagResourceCommand = async (output, context) => {
1603
900
  await collectBody(output.body, context);
1604
901
  return contents;
1605
902
  };
1606
- const de_UntagResourceCommandError = async (output, context) => {
1607
- const parsedOutput = {
1608
- ...output,
1609
- body: await parseErrorBody(output.body, context),
1610
- };
1611
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1612
- switch (errorCode) {
1613
- case "DependencyException":
1614
- case "com.amazonaws.groundstation#DependencyException":
1615
- throw await de_DependencyExceptionRes(parsedOutput, context);
1616
- case "InvalidParameterException":
1617
- case "com.amazonaws.groundstation#InvalidParameterException":
1618
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1619
- case "ResourceNotFoundException":
1620
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1621
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1622
- default:
1623
- const parsedBody = parsedOutput.body;
1624
- return throwDefaultError({
1625
- output,
1626
- parsedBody,
1627
- errorCode,
1628
- });
1629
- }
1630
- };
1631
903
  export const de_UpdateAgentStatusCommand = async (output, context) => {
1632
904
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1633
- return de_UpdateAgentStatusCommandError(output, context);
905
+ return de_CommandError(output, context);
1634
906
  }
1635
907
  const contents = map({
1636
908
  $metadata: deserializeMetadata(output),
@@ -1642,34 +914,9 @@ export const de_UpdateAgentStatusCommand = async (output, context) => {
1642
914
  Object.assign(contents, doc);
1643
915
  return contents;
1644
916
  };
1645
- const de_UpdateAgentStatusCommandError = async (output, context) => {
1646
- const parsedOutput = {
1647
- ...output,
1648
- body: await parseErrorBody(output.body, context),
1649
- };
1650
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1651
- switch (errorCode) {
1652
- case "DependencyException":
1653
- case "com.amazonaws.groundstation#DependencyException":
1654
- throw await de_DependencyExceptionRes(parsedOutput, context);
1655
- case "InvalidParameterException":
1656
- case "com.amazonaws.groundstation#InvalidParameterException":
1657
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1658
- case "ResourceNotFoundException":
1659
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1660
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1661
- default:
1662
- const parsedBody = parsedOutput.body;
1663
- return throwDefaultError({
1664
- output,
1665
- parsedBody,
1666
- errorCode,
1667
- });
1668
- }
1669
- };
1670
917
  export const de_UpdateConfigCommand = async (output, context) => {
1671
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1672
- return de_UpdateConfigCommandError(output, context);
919
+ return de_CommandError(output, context);
1673
920
  }
1674
921
  const contents = map({
1675
922
  $metadata: deserializeMetadata(output),
@@ -1683,34 +930,9 @@ export const de_UpdateConfigCommand = async (output, context) => {
1683
930
  Object.assign(contents, doc);
1684
931
  return contents;
1685
932
  };
1686
- const de_UpdateConfigCommandError = async (output, context) => {
1687
- const parsedOutput = {
1688
- ...output,
1689
- body: await parseErrorBody(output.body, context),
1690
- };
1691
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1692
- switch (errorCode) {
1693
- case "DependencyException":
1694
- case "com.amazonaws.groundstation#DependencyException":
1695
- throw await de_DependencyExceptionRes(parsedOutput, context);
1696
- case "InvalidParameterException":
1697
- case "com.amazonaws.groundstation#InvalidParameterException":
1698
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1699
- case "ResourceNotFoundException":
1700
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1701
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1702
- default:
1703
- const parsedBody = parsedOutput.body;
1704
- return throwDefaultError({
1705
- output,
1706
- parsedBody,
1707
- errorCode,
1708
- });
1709
- }
1710
- };
1711
933
  export const de_UpdateEphemerisCommand = async (output, context) => {
1712
934
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1713
- return de_UpdateEphemerisCommandError(output, context);
935
+ return de_CommandError(output, context);
1714
936
  }
1715
937
  const contents = map({
1716
938
  $metadata: deserializeMetadata(output),
@@ -1722,34 +944,9 @@ export const de_UpdateEphemerisCommand = async (output, context) => {
1722
944
  Object.assign(contents, doc);
1723
945
  return contents;
1724
946
  };
1725
- const de_UpdateEphemerisCommandError = async (output, context) => {
1726
- const parsedOutput = {
1727
- ...output,
1728
- body: await parseErrorBody(output.body, context),
1729
- };
1730
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1731
- switch (errorCode) {
1732
- case "DependencyException":
1733
- case "com.amazonaws.groundstation#DependencyException":
1734
- throw await de_DependencyExceptionRes(parsedOutput, context);
1735
- case "InvalidParameterException":
1736
- case "com.amazonaws.groundstation#InvalidParameterException":
1737
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1738
- case "ResourceNotFoundException":
1739
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1740
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1741
- default:
1742
- const parsedBody = parsedOutput.body;
1743
- return throwDefaultError({
1744
- output,
1745
- parsedBody,
1746
- errorCode,
1747
- });
1748
- }
1749
- };
1750
947
  export const de_UpdateMissionProfileCommand = async (output, context) => {
1751
948
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1752
- return de_UpdateMissionProfileCommandError(output, context);
949
+ return de_CommandError(output, context);
1753
950
  }
1754
951
  const contents = map({
1755
952
  $metadata: deserializeMetadata(output),
@@ -1761,7 +958,7 @@ export const de_UpdateMissionProfileCommand = async (output, context) => {
1761
958
  Object.assign(contents, doc);
1762
959
  return contents;
1763
960
  };
1764
- const de_UpdateMissionProfileCommandError = async (output, context) => {
961
+ const de_CommandError = async (output, context) => {
1765
962
  const parsedOutput = {
1766
963
  ...output,
1767
964
  body: await parseErrorBody(output.body, context),
@@ -1777,6 +974,9 @@ const de_UpdateMissionProfileCommandError = async (output, context) => {
1777
974
  case "ResourceNotFoundException":
1778
975
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1779
976
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
977
+ case "ResourceLimitExceededException":
978
+ case "com.amazonaws.groundstation#ResourceLimitExceededException":
979
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1780
980
  default:
1781
981
  const parsedBody = parsedOutput.body;
1782
982
  return throwDefaultError({