@aws-sdk/client-groundstation 3.118.1 → 3.128.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.
@@ -39,11 +39,9 @@ const serializeAws_restJson1CreateConfigCommand = async (input, context) => {
39
39
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/config";
40
40
  let body;
41
41
  body = JSON.stringify({
42
- ...(input.configData !== undefined &&
43
- input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
44
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
45
- ...(input.tags !== undefined &&
46
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
42
+ ...(input.configData != null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
43
+ ...(input.name != null && { name: input.name }),
44
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
47
45
  });
48
46
  return new protocol_http_1.HttpRequest({
49
47
  protocol,
@@ -64,12 +62,10 @@ const serializeAws_restJson1CreateDataflowEndpointGroupCommand = async (input, c
64
62
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dataflowEndpointGroup";
65
63
  let body;
66
64
  body = JSON.stringify({
67
- ...(input.endpointDetails !== undefined &&
68
- input.endpointDetails !== null && {
65
+ ...(input.endpointDetails != null && {
69
66
  endpointDetails: serializeAws_restJson1EndpointDetailsList(input.endpointDetails, context),
70
67
  }),
71
- ...(input.tags !== undefined &&
72
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
68
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
73
69
  });
74
70
  return new protocol_http_1.HttpRequest({
75
71
  protocol,
@@ -90,27 +86,21 @@ const serializeAws_restJson1CreateMissionProfileCommand = async (input, context)
90
86
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/missionprofile";
91
87
  let body;
92
88
  body = JSON.stringify({
93
- ...(input.contactPostPassDurationSeconds !== undefined &&
94
- input.contactPostPassDurationSeconds !== null && {
89
+ ...(input.contactPostPassDurationSeconds != null && {
95
90
  contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
96
91
  }),
97
- ...(input.contactPrePassDurationSeconds !== undefined &&
98
- input.contactPrePassDurationSeconds !== null && {
92
+ ...(input.contactPrePassDurationSeconds != null && {
99
93
  contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
100
94
  }),
101
- ...(input.dataflowEdges !== undefined &&
102
- input.dataflowEdges !== null && {
95
+ ...(input.dataflowEdges != null && {
103
96
  dataflowEdges: serializeAws_restJson1DataflowEdgeList(input.dataflowEdges, context),
104
97
  }),
105
- ...(input.minimumViableContactDurationSeconds !== undefined &&
106
- input.minimumViableContactDurationSeconds !== null && {
98
+ ...(input.minimumViableContactDurationSeconds != null && {
107
99
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
108
100
  }),
109
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
110
- ...(input.tags !== undefined &&
111
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
112
- ...(input.trackingConfigArn !== undefined &&
113
- input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn }),
101
+ ...(input.name != null && { name: input.name }),
102
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
103
+ ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
114
104
  });
115
105
  return new protocol_http_1.HttpRequest({
116
106
  protocol,
@@ -309,8 +299,8 @@ const serializeAws_restJson1GetMinuteUsageCommand = async (input, context) => {
309
299
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/minute-usage";
310
300
  let body;
311
301
  body = JSON.stringify({
312
- ...(input.month !== undefined && input.month !== null && { month: input.month }),
313
- ...(input.year !== undefined && input.year !== null && { year: input.year }),
302
+ ...(input.month != null && { month: input.month }),
303
+ ...(input.year != null && { year: input.year }),
314
304
  });
315
305
  return new protocol_http_1.HttpRequest({
316
306
  protocol,
@@ -404,18 +394,14 @@ const serializeAws_restJson1ListContactsCommand = async (input, context) => {
404
394
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contacts";
405
395
  let body;
406
396
  body = JSON.stringify({
407
- ...(input.endTime !== undefined &&
408
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
409
- ...(input.groundStation !== undefined && input.groundStation !== null && { groundStation: input.groundStation }),
410
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
411
- ...(input.missionProfileArn !== undefined &&
412
- input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn }),
413
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
414
- ...(input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn }),
415
- ...(input.startTime !== undefined &&
416
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
417
- ...(input.statusList !== undefined &&
418
- input.statusList !== null && { statusList: serializeAws_restJson1StatusList(input.statusList, context) }),
397
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
398
+ ...(input.groundStation != null && { groundStation: input.groundStation }),
399
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
400
+ ...(input.missionProfileArn != null && { missionProfileArn: input.missionProfileArn }),
401
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
402
+ ...(input.satelliteArn != null && { satelliteArn: input.satelliteArn }),
403
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
404
+ ...(input.statusList != null && { statusList: serializeAws_restJson1StatusList(input.statusList, context) }),
419
405
  });
420
406
  return new protocol_http_1.HttpRequest({
421
407
  protocol,
@@ -547,16 +533,12 @@ const serializeAws_restJson1ReserveContactCommand = async (input, context) => {
547
533
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/contact";
548
534
  let body;
549
535
  body = JSON.stringify({
550
- ...(input.endTime !== undefined &&
551
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
552
- ...(input.groundStation !== undefined && input.groundStation !== null && { groundStation: input.groundStation }),
553
- ...(input.missionProfileArn !== undefined &&
554
- input.missionProfileArn !== null && { missionProfileArn: input.missionProfileArn }),
555
- ...(input.satelliteArn !== undefined && input.satelliteArn !== null && { satelliteArn: input.satelliteArn }),
556
- ...(input.startTime !== undefined &&
557
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
558
- ...(input.tags !== undefined &&
559
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
536
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
537
+ ...(input.groundStation != null && { groundStation: input.groundStation }),
538
+ ...(input.missionProfileArn != null && { missionProfileArn: input.missionProfileArn }),
539
+ ...(input.satelliteArn != null && { satelliteArn: input.satelliteArn }),
540
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
541
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
560
542
  });
561
543
  return new protocol_http_1.HttpRequest({
562
544
  protocol,
@@ -587,8 +569,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
587
569
  }
588
570
  let body;
589
571
  body = JSON.stringify({
590
- ...(input.tags !== undefined &&
591
- input.tags !== null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
572
+ ...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
592
573
  });
593
574
  return new protocol_http_1.HttpRequest({
594
575
  protocol,
@@ -659,9 +640,8 @@ const serializeAws_restJson1UpdateConfigCommand = async (input, context) => {
659
640
  }
660
641
  let body;
661
642
  body = JSON.stringify({
662
- ...(input.configData !== undefined &&
663
- input.configData !== null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
664
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
643
+ ...(input.configData != null && { configData: serializeAws_restJson1ConfigTypeData(input.configData, context) }),
644
+ ...(input.name != null && { name: input.name }),
665
645
  });
666
646
  return new protocol_http_1.HttpRequest({
667
647
  protocol,
@@ -692,25 +672,20 @@ const serializeAws_restJson1UpdateMissionProfileCommand = async (input, context)
692
672
  }
693
673
  let body;
694
674
  body = JSON.stringify({
695
- ...(input.contactPostPassDurationSeconds !== undefined &&
696
- input.contactPostPassDurationSeconds !== null && {
675
+ ...(input.contactPostPassDurationSeconds != null && {
697
676
  contactPostPassDurationSeconds: input.contactPostPassDurationSeconds,
698
677
  }),
699
- ...(input.contactPrePassDurationSeconds !== undefined &&
700
- input.contactPrePassDurationSeconds !== null && {
678
+ ...(input.contactPrePassDurationSeconds != null && {
701
679
  contactPrePassDurationSeconds: input.contactPrePassDurationSeconds,
702
680
  }),
703
- ...(input.dataflowEdges !== undefined &&
704
- input.dataflowEdges !== null && {
681
+ ...(input.dataflowEdges != null && {
705
682
  dataflowEdges: serializeAws_restJson1DataflowEdgeList(input.dataflowEdges, context),
706
683
  }),
707
- ...(input.minimumViableContactDurationSeconds !== undefined &&
708
- input.minimumViableContactDurationSeconds !== null && {
684
+ ...(input.minimumViableContactDurationSeconds != null && {
709
685
  minimumViableContactDurationSeconds: input.minimumViableContactDurationSeconds,
710
686
  }),
711
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
712
- ...(input.trackingConfigArn !== undefined &&
713
- input.trackingConfigArn !== null && { trackingConfigArn: input.trackingConfigArn }),
687
+ ...(input.name != null && { name: input.name }),
688
+ ...(input.trackingConfigArn != null && { trackingConfigArn: input.trackingConfigArn }),
714
689
  });
715
690
  return new protocol_http_1.HttpRequest({
716
691
  protocol,
@@ -744,8 +719,7 @@ const deserializeAws_restJson1CancelContactCommandError = async (output, context
744
719
  body: await parseBody(output.body, context),
745
720
  };
746
721
  let response;
747
- let errorCode = "UnknownError";
748
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
722
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
749
723
  switch (errorCode) {
750
724
  case "DependencyException":
751
725
  case "com.amazonaws.groundstation#DependencyException":
@@ -758,10 +732,12 @@ const deserializeAws_restJson1CancelContactCommandError = async (output, context
758
732
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
759
733
  default:
760
734
  const parsedBody = parsedOutput.body;
735
+ const $metadata = deserializeMetadata(output);
736
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
761
737
  response = new GroundStationServiceException_1.GroundStationServiceException({
762
- name: parsedBody.code || parsedBody.Code || errorCode,
738
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
763
739
  $fault: "client",
764
- $metadata: deserializeMetadata(output),
740
+ $metadata,
765
741
  });
766
742
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
767
743
  }
@@ -795,8 +771,7 @@ const deserializeAws_restJson1CreateConfigCommandError = async (output, context)
795
771
  body: await parseBody(output.body, context),
796
772
  };
797
773
  let response;
798
- let errorCode = "UnknownError";
799
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
774
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
800
775
  switch (errorCode) {
801
776
  case "DependencyException":
802
777
  case "com.amazonaws.groundstation#DependencyException":
@@ -812,10 +787,12 @@ const deserializeAws_restJson1CreateConfigCommandError = async (output, context)
812
787
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
813
788
  default:
814
789
  const parsedBody = parsedOutput.body;
790
+ const $metadata = deserializeMetadata(output);
791
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
815
792
  response = new GroundStationServiceException_1.GroundStationServiceException({
816
- name: parsedBody.code || parsedBody.Code || errorCode,
793
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
817
794
  $fault: "client",
818
- $metadata: deserializeMetadata(output),
795
+ $metadata,
819
796
  });
820
797
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
821
798
  }
@@ -841,8 +818,7 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
841
818
  body: await parseBody(output.body, context),
842
819
  };
843
820
  let response;
844
- let errorCode = "UnknownError";
845
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
821
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
846
822
  switch (errorCode) {
847
823
  case "DependencyException":
848
824
  case "com.amazonaws.groundstation#DependencyException":
@@ -855,10 +831,12 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
855
831
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
856
832
  default:
857
833
  const parsedBody = parsedOutput.body;
834
+ const $metadata = deserializeMetadata(output);
835
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
858
836
  response = new GroundStationServiceException_1.GroundStationServiceException({
859
- name: parsedBody.code || parsedBody.Code || errorCode,
837
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
860
838
  $fault: "client",
861
- $metadata: deserializeMetadata(output),
839
+ $metadata,
862
840
  });
863
841
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
864
842
  }
@@ -884,8 +862,7 @@ const deserializeAws_restJson1CreateMissionProfileCommandError = async (output,
884
862
  body: await parseBody(output.body, context),
885
863
  };
886
864
  let response;
887
- let errorCode = "UnknownError";
888
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
889
866
  switch (errorCode) {
890
867
  case "DependencyException":
891
868
  case "com.amazonaws.groundstation#DependencyException":
@@ -898,10 +875,12 @@ const deserializeAws_restJson1CreateMissionProfileCommandError = async (output,
898
875
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
899
876
  default:
900
877
  const parsedBody = parsedOutput.body;
878
+ const $metadata = deserializeMetadata(output);
879
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
901
880
  response = new GroundStationServiceException_1.GroundStationServiceException({
902
- name: parsedBody.code || parsedBody.Code || errorCode,
881
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
903
882
  $fault: "client",
904
- $metadata: deserializeMetadata(output),
883
+ $metadata,
905
884
  });
906
885
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
907
886
  }
@@ -935,8 +914,7 @@ const deserializeAws_restJson1DeleteConfigCommandError = async (output, context)
935
914
  body: await parseBody(output.body, context),
936
915
  };
937
916
  let response;
938
- let errorCode = "UnknownError";
939
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
917
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
940
918
  switch (errorCode) {
941
919
  case "DependencyException":
942
920
  case "com.amazonaws.groundstation#DependencyException":
@@ -949,10 +927,12 @@ const deserializeAws_restJson1DeleteConfigCommandError = async (output, context)
949
927
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
950
928
  default:
951
929
  const parsedBody = parsedOutput.body;
930
+ const $metadata = deserializeMetadata(output);
931
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
952
932
  response = new GroundStationServiceException_1.GroundStationServiceException({
953
- name: parsedBody.code || parsedBody.Code || errorCode,
933
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
954
934
  $fault: "client",
955
- $metadata: deserializeMetadata(output),
935
+ $metadata,
956
936
  });
957
937
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
958
938
  }
@@ -978,8 +958,7 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
978
958
  body: await parseBody(output.body, context),
979
959
  };
980
960
  let response;
981
- let errorCode = "UnknownError";
982
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
961
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
983
962
  switch (errorCode) {
984
963
  case "DependencyException":
985
964
  case "com.amazonaws.groundstation#DependencyException":
@@ -992,10 +971,12 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
992
971
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
993
972
  default:
994
973
  const parsedBody = parsedOutput.body;
974
+ const $metadata = deserializeMetadata(output);
975
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
995
976
  response = new GroundStationServiceException_1.GroundStationServiceException({
996
- name: parsedBody.code || parsedBody.Code || errorCode,
977
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
997
978
  $fault: "client",
998
- $metadata: deserializeMetadata(output),
979
+ $metadata,
999
980
  });
1000
981
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1001
982
  }
@@ -1021,8 +1002,7 @@ const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output,
1021
1002
  body: await parseBody(output.body, context),
1022
1003
  };
1023
1004
  let response;
1024
- let errorCode = "UnknownError";
1025
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1005
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1026
1006
  switch (errorCode) {
1027
1007
  case "DependencyException":
1028
1008
  case "com.amazonaws.groundstation#DependencyException":
@@ -1035,10 +1015,12 @@ const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output,
1035
1015
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1036
1016
  default:
1037
1017
  const parsedBody = parsedOutput.body;
1018
+ const $metadata = deserializeMetadata(output);
1019
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1038
1020
  response = new GroundStationServiceException_1.GroundStationServiceException({
1039
- name: parsedBody.code || parsedBody.Code || errorCode,
1021
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1040
1022
  $fault: "client",
1041
- $metadata: deserializeMetadata(output),
1023
+ $metadata,
1042
1024
  });
1043
1025
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1044
1026
  }
@@ -1116,8 +1098,7 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
1116
1098
  body: await parseBody(output.body, context),
1117
1099
  };
1118
1100
  let response;
1119
- let errorCode = "UnknownError";
1120
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1101
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1121
1102
  switch (errorCode) {
1122
1103
  case "DependencyException":
1123
1104
  case "com.amazonaws.groundstation#DependencyException":
@@ -1130,10 +1111,12 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
1130
1111
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1131
1112
  default:
1132
1113
  const parsedBody = parsedOutput.body;
1114
+ const $metadata = deserializeMetadata(output);
1115
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1133
1116
  response = new GroundStationServiceException_1.GroundStationServiceException({
1134
- name: parsedBody.code || parsedBody.Code || errorCode,
1117
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1135
1118
  $fault: "client",
1136
- $metadata: deserializeMetadata(output),
1119
+ $metadata,
1137
1120
  });
1138
1121
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1139
1122
  }
@@ -1179,8 +1162,7 @@ const deserializeAws_restJson1GetConfigCommandError = async (output, context) =>
1179
1162
  body: await parseBody(output.body, context),
1180
1163
  };
1181
1164
  let response;
1182
- let errorCode = "UnknownError";
1183
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1184
1166
  switch (errorCode) {
1185
1167
  case "DependencyException":
1186
1168
  case "com.amazonaws.groundstation#DependencyException":
@@ -1193,10 +1175,12 @@ const deserializeAws_restJson1GetConfigCommandError = async (output, context) =>
1193
1175
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1194
1176
  default:
1195
1177
  const parsedBody = parsedOutput.body;
1178
+ const $metadata = deserializeMetadata(output);
1179
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1196
1180
  response = new GroundStationServiceException_1.GroundStationServiceException({
1197
- name: parsedBody.code || parsedBody.Code || errorCode,
1181
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1198
1182
  $fault: "client",
1199
- $metadata: deserializeMetadata(output),
1183
+ $metadata,
1200
1184
  });
1201
1185
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1202
1186
  }
@@ -1234,8 +1218,7 @@ const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (outp
1234
1218
  body: await parseBody(output.body, context),
1235
1219
  };
1236
1220
  let response;
1237
- let errorCode = "UnknownError";
1238
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1221
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1239
1222
  switch (errorCode) {
1240
1223
  case "DependencyException":
1241
1224
  case "com.amazonaws.groundstation#DependencyException":
@@ -1248,10 +1231,12 @@ const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (outp
1248
1231
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1249
1232
  default:
1250
1233
  const parsedBody = parsedOutput.body;
1234
+ const $metadata = deserializeMetadata(output);
1235
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1251
1236
  response = new GroundStationServiceException_1.GroundStationServiceException({
1252
- name: parsedBody.code || parsedBody.Code || errorCode,
1237
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1253
1238
  $fault: "client",
1254
- $metadata: deserializeMetadata(output),
1239
+ $metadata,
1255
1240
  });
1256
1241
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1257
1242
  }
@@ -1293,8 +1278,7 @@ const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, contex
1293
1278
  body: await parseBody(output.body, context),
1294
1279
  };
1295
1280
  let response;
1296
- let errorCode = "UnknownError";
1297
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1298
1282
  switch (errorCode) {
1299
1283
  case "DependencyException":
1300
1284
  case "com.amazonaws.groundstation#DependencyException":
@@ -1307,10 +1291,12 @@ const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, contex
1307
1291
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1308
1292
  default:
1309
1293
  const parsedBody = parsedOutput.body;
1294
+ const $metadata = deserializeMetadata(output);
1295
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1310
1296
  response = new GroundStationServiceException_1.GroundStationServiceException({
1311
- name: parsedBody.code || parsedBody.Code || errorCode,
1297
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1312
1298
  $fault: "client",
1313
- $metadata: deserializeMetadata(output),
1299
+ $metadata,
1314
1300
  });
1315
1301
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1316
1302
  }
@@ -1372,8 +1358,7 @@ const deserializeAws_restJson1GetMissionProfileCommandError = async (output, con
1372
1358
  body: await parseBody(output.body, context),
1373
1359
  };
1374
1360
  let response;
1375
- let errorCode = "UnknownError";
1376
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1361
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1377
1362
  switch (errorCode) {
1378
1363
  case "DependencyException":
1379
1364
  case "com.amazonaws.groundstation#DependencyException":
@@ -1386,10 +1371,12 @@ const deserializeAws_restJson1GetMissionProfileCommandError = async (output, con
1386
1371
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1387
1372
  default:
1388
1373
  const parsedBody = parsedOutput.body;
1374
+ const $metadata = deserializeMetadata(output);
1375
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1389
1376
  response = new GroundStationServiceException_1.GroundStationServiceException({
1390
- name: parsedBody.code || parsedBody.Code || errorCode,
1377
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1391
1378
  $fault: "client",
1392
- $metadata: deserializeMetadata(output),
1379
+ $metadata,
1393
1380
  });
1394
1381
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1395
1382
  }
@@ -1427,8 +1414,7 @@ const deserializeAws_restJson1GetSatelliteCommandError = async (output, context)
1427
1414
  body: await parseBody(output.body, context),
1428
1415
  };
1429
1416
  let response;
1430
- let errorCode = "UnknownError";
1431
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1432
1418
  switch (errorCode) {
1433
1419
  case "DependencyException":
1434
1420
  case "com.amazonaws.groundstation#DependencyException":
@@ -1441,10 +1427,12 @@ const deserializeAws_restJson1GetSatelliteCommandError = async (output, context)
1441
1427
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1442
1428
  default:
1443
1429
  const parsedBody = parsedOutput.body;
1430
+ const $metadata = deserializeMetadata(output);
1431
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1444
1432
  response = new GroundStationServiceException_1.GroundStationServiceException({
1445
- name: parsedBody.code || parsedBody.Code || errorCode,
1433
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1446
1434
  $fault: "client",
1447
- $metadata: deserializeMetadata(output),
1435
+ $metadata,
1448
1436
  });
1449
1437
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1450
1438
  }
@@ -1474,8 +1462,7 @@ const deserializeAws_restJson1ListConfigsCommandError = async (output, context)
1474
1462
  body: await parseBody(output.body, context),
1475
1463
  };
1476
1464
  let response;
1477
- let errorCode = "UnknownError";
1478
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1465
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1479
1466
  switch (errorCode) {
1480
1467
  case "DependencyException":
1481
1468
  case "com.amazonaws.groundstation#DependencyException":
@@ -1488,10 +1475,12 @@ const deserializeAws_restJson1ListConfigsCommandError = async (output, context)
1488
1475
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1489
1476
  default:
1490
1477
  const parsedBody = parsedOutput.body;
1478
+ const $metadata = deserializeMetadata(output);
1479
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1491
1480
  response = new GroundStationServiceException_1.GroundStationServiceException({
1492
- name: parsedBody.code || parsedBody.Code || errorCode,
1481
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1493
1482
  $fault: "client",
1494
- $metadata: deserializeMetadata(output),
1483
+ $metadata,
1495
1484
  });
1496
1485
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1497
1486
  }
@@ -1521,8 +1510,7 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
1521
1510
  body: await parseBody(output.body, context),
1522
1511
  };
1523
1512
  let response;
1524
- let errorCode = "UnknownError";
1525
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1513
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1526
1514
  switch (errorCode) {
1527
1515
  case "DependencyException":
1528
1516
  case "com.amazonaws.groundstation#DependencyException":
@@ -1535,10 +1523,12 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
1535
1523
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1536
1524
  default:
1537
1525
  const parsedBody = parsedOutput.body;
1526
+ const $metadata = deserializeMetadata(output);
1527
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1538
1528
  response = new GroundStationServiceException_1.GroundStationServiceException({
1539
- name: parsedBody.code || parsedBody.Code || errorCode,
1529
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1540
1530
  $fault: "client",
1541
- $metadata: deserializeMetadata(output),
1531
+ $metadata,
1542
1532
  });
1543
1533
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1544
1534
  }
@@ -1568,8 +1558,7 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
1568
1558
  body: await parseBody(output.body, context),
1569
1559
  };
1570
1560
  let response;
1571
- let errorCode = "UnknownError";
1572
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1561
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1573
1562
  switch (errorCode) {
1574
1563
  case "DependencyException":
1575
1564
  case "com.amazonaws.groundstation#DependencyException":
@@ -1582,10 +1571,12 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
1582
1571
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1583
1572
  default:
1584
1573
  const parsedBody = parsedOutput.body;
1574
+ const $metadata = deserializeMetadata(output);
1575
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1585
1576
  response = new GroundStationServiceException_1.GroundStationServiceException({
1586
- name: parsedBody.code || parsedBody.Code || errorCode,
1577
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1587
1578
  $fault: "client",
1588
- $metadata: deserializeMetadata(output),
1579
+ $metadata,
1589
1580
  });
1590
1581
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1591
1582
  }
@@ -1615,8 +1606,7 @@ const deserializeAws_restJson1ListGroundStationsCommandError = async (output, co
1615
1606
  body: await parseBody(output.body, context),
1616
1607
  };
1617
1608
  let response;
1618
- let errorCode = "UnknownError";
1619
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1609
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1620
1610
  switch (errorCode) {
1621
1611
  case "DependencyException":
1622
1612
  case "com.amazonaws.groundstation#DependencyException":
@@ -1629,10 +1619,12 @@ const deserializeAws_restJson1ListGroundStationsCommandError = async (output, co
1629
1619
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1630
1620
  default:
1631
1621
  const parsedBody = parsedOutput.body;
1622
+ const $metadata = deserializeMetadata(output);
1623
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1632
1624
  response = new GroundStationServiceException_1.GroundStationServiceException({
1633
- name: parsedBody.code || parsedBody.Code || errorCode,
1625
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1634
1626
  $fault: "client",
1635
- $metadata: deserializeMetadata(output),
1627
+ $metadata,
1636
1628
  });
1637
1629
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1638
1630
  }
@@ -1662,8 +1654,7 @@ const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, c
1662
1654
  body: await parseBody(output.body, context),
1663
1655
  };
1664
1656
  let response;
1665
- let errorCode = "UnknownError";
1666
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1657
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1667
1658
  switch (errorCode) {
1668
1659
  case "DependencyException":
1669
1660
  case "com.amazonaws.groundstation#DependencyException":
@@ -1676,10 +1667,12 @@ const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, c
1676
1667
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1677
1668
  default:
1678
1669
  const parsedBody = parsedOutput.body;
1670
+ const $metadata = deserializeMetadata(output);
1671
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1679
1672
  response = new GroundStationServiceException_1.GroundStationServiceException({
1680
- name: parsedBody.code || parsedBody.Code || errorCode,
1673
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1681
1674
  $fault: "client",
1682
- $metadata: deserializeMetadata(output),
1675
+ $metadata,
1683
1676
  });
1684
1677
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1685
1678
  }
@@ -1709,8 +1702,7 @@ const deserializeAws_restJson1ListSatellitesCommandError = async (output, contex
1709
1702
  body: await parseBody(output.body, context),
1710
1703
  };
1711
1704
  let response;
1712
- let errorCode = "UnknownError";
1713
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1705
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1714
1706
  switch (errorCode) {
1715
1707
  case "DependencyException":
1716
1708
  case "com.amazonaws.groundstation#DependencyException":
@@ -1723,10 +1715,12 @@ const deserializeAws_restJson1ListSatellitesCommandError = async (output, contex
1723
1715
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1724
1716
  default:
1725
1717
  const parsedBody = parsedOutput.body;
1718
+ const $metadata = deserializeMetadata(output);
1719
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1726
1720
  response = new GroundStationServiceException_1.GroundStationServiceException({
1727
- name: parsedBody.code || parsedBody.Code || errorCode,
1721
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1728
1722
  $fault: "client",
1729
- $metadata: deserializeMetadata(output),
1723
+ $metadata,
1730
1724
  });
1731
1725
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1732
1726
  }
@@ -1752,8 +1746,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1752
1746
  body: await parseBody(output.body, context),
1753
1747
  };
1754
1748
  let response;
1755
- let errorCode = "UnknownError";
1756
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1749
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1757
1750
  switch (errorCode) {
1758
1751
  case "DependencyException":
1759
1752
  case "com.amazonaws.groundstation#DependencyException":
@@ -1766,10 +1759,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
1766
1759
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1767
1760
  default:
1768
1761
  const parsedBody = parsedOutput.body;
1762
+ const $metadata = deserializeMetadata(output);
1763
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1769
1764
  response = new GroundStationServiceException_1.GroundStationServiceException({
1770
- name: parsedBody.code || parsedBody.Code || errorCode,
1765
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1771
1766
  $fault: "client",
1772
- $metadata: deserializeMetadata(output),
1767
+ $metadata,
1773
1768
  });
1774
1769
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1775
1770
  }
@@ -1795,8 +1790,7 @@ const deserializeAws_restJson1ReserveContactCommandError = async (output, contex
1795
1790
  body: await parseBody(output.body, context),
1796
1791
  };
1797
1792
  let response;
1798
- let errorCode = "UnknownError";
1799
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1793
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1800
1794
  switch (errorCode) {
1801
1795
  case "DependencyException":
1802
1796
  case "com.amazonaws.groundstation#DependencyException":
@@ -1809,10 +1803,12 @@ const deserializeAws_restJson1ReserveContactCommandError = async (output, contex
1809
1803
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1810
1804
  default:
1811
1805
  const parsedBody = parsedOutput.body;
1806
+ const $metadata = deserializeMetadata(output);
1807
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1812
1808
  response = new GroundStationServiceException_1.GroundStationServiceException({
1813
- name: parsedBody.code || parsedBody.Code || errorCode,
1809
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1814
1810
  $fault: "client",
1815
- $metadata: deserializeMetadata(output),
1811
+ $metadata,
1816
1812
  });
1817
1813
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1818
1814
  }
@@ -1834,8 +1830,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1834
1830
  body: await parseBody(output.body, context),
1835
1831
  };
1836
1832
  let response;
1837
- let errorCode = "UnknownError";
1838
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1833
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1839
1834
  switch (errorCode) {
1840
1835
  case "DependencyException":
1841
1836
  case "com.amazonaws.groundstation#DependencyException":
@@ -1848,10 +1843,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
1848
1843
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1849
1844
  default:
1850
1845
  const parsedBody = parsedOutput.body;
1846
+ const $metadata = deserializeMetadata(output);
1847
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1851
1848
  response = new GroundStationServiceException_1.GroundStationServiceException({
1852
- name: parsedBody.code || parsedBody.Code || errorCode,
1849
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1853
1850
  $fault: "client",
1854
- $metadata: deserializeMetadata(output),
1851
+ $metadata,
1855
1852
  });
1856
1853
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1857
1854
  }
@@ -1873,8 +1870,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1873
1870
  body: await parseBody(output.body, context),
1874
1871
  };
1875
1872
  let response;
1876
- let errorCode = "UnknownError";
1877
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1873
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
1874
  switch (errorCode) {
1879
1875
  case "DependencyException":
1880
1876
  case "com.amazonaws.groundstation#DependencyException":
@@ -1887,10 +1883,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
1887
1883
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1888
1884
  default:
1889
1885
  const parsedBody = parsedOutput.body;
1886
+ const $metadata = deserializeMetadata(output);
1887
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1890
1888
  response = new GroundStationServiceException_1.GroundStationServiceException({
1891
- name: parsedBody.code || parsedBody.Code || errorCode,
1889
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1892
1890
  $fault: "client",
1893
- $metadata: deserializeMetadata(output),
1891
+ $metadata,
1894
1892
  });
1895
1893
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1896
1894
  }
@@ -1924,8 +1922,7 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
1924
1922
  body: await parseBody(output.body, context),
1925
1923
  };
1926
1924
  let response;
1927
- let errorCode = "UnknownError";
1928
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1925
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1929
1926
  switch (errorCode) {
1930
1927
  case "DependencyException":
1931
1928
  case "com.amazonaws.groundstation#DependencyException":
@@ -1938,10 +1935,12 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
1938
1935
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1939
1936
  default:
1940
1937
  const parsedBody = parsedOutput.body;
1938
+ const $metadata = deserializeMetadata(output);
1939
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1941
1940
  response = new GroundStationServiceException_1.GroundStationServiceException({
1942
- name: parsedBody.code || parsedBody.Code || errorCode,
1941
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1943
1942
  $fault: "client",
1944
- $metadata: deserializeMetadata(output),
1943
+ $metadata,
1945
1944
  });
1946
1945
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1947
1946
  }
@@ -1967,8 +1966,7 @@ const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output,
1967
1966
  body: await parseBody(output.body, context),
1968
1967
  };
1969
1968
  let response;
1970
- let errorCode = "UnknownError";
1971
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1969
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1972
1970
  switch (errorCode) {
1973
1971
  case "DependencyException":
1974
1972
  case "com.amazonaws.groundstation#DependencyException":
@@ -1981,10 +1979,12 @@ const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output,
1981
1979
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1982
1980
  default:
1983
1981
  const parsedBody = parsedOutput.body;
1982
+ const $metadata = deserializeMetadata(output);
1983
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1984
1984
  response = new GroundStationServiceException_1.GroundStationServiceException({
1985
- name: parsedBody.code || parsedBody.Code || errorCode,
1985
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1986
1986
  $fault: "client",
1987
- $metadata: deserializeMetadata(output),
1987
+ $metadata,
1988
1988
  });
1989
1989
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1990
1990
  }
@@ -2048,36 +2048,31 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
2048
2048
  };
2049
2049
  const serializeAws_restJson1AntennaDownlinkConfig = (input, context) => {
2050
2050
  return {
2051
- ...(input.spectrumConfig !== undefined &&
2052
- input.spectrumConfig !== null && {
2051
+ ...(input.spectrumConfig != null && {
2053
2052
  spectrumConfig: serializeAws_restJson1SpectrumConfig(input.spectrumConfig, context),
2054
2053
  }),
2055
2054
  };
2056
2055
  };
2057
2056
  const serializeAws_restJson1AntennaDownlinkDemodDecodeConfig = (input, context) => {
2058
2057
  return {
2059
- ...(input.decodeConfig !== undefined &&
2060
- input.decodeConfig !== null && { decodeConfig: serializeAws_restJson1DecodeConfig(input.decodeConfig, context) }),
2061
- ...(input.demodulationConfig !== undefined &&
2062
- input.demodulationConfig !== null && {
2058
+ ...(input.decodeConfig != null && {
2059
+ decodeConfig: serializeAws_restJson1DecodeConfig(input.decodeConfig, context),
2060
+ }),
2061
+ ...(input.demodulationConfig != null && {
2063
2062
  demodulationConfig: serializeAws_restJson1DemodulationConfig(input.demodulationConfig, context),
2064
2063
  }),
2065
- ...(input.spectrumConfig !== undefined &&
2066
- input.spectrumConfig !== null && {
2064
+ ...(input.spectrumConfig != null && {
2067
2065
  spectrumConfig: serializeAws_restJson1SpectrumConfig(input.spectrumConfig, context),
2068
2066
  }),
2069
2067
  };
2070
2068
  };
2071
2069
  const serializeAws_restJson1AntennaUplinkConfig = (input, context) => {
2072
2070
  return {
2073
- ...(input.spectrumConfig !== undefined &&
2074
- input.spectrumConfig !== null && {
2071
+ ...(input.spectrumConfig != null && {
2075
2072
  spectrumConfig: serializeAws_restJson1UplinkSpectrumConfig(input.spectrumConfig, context),
2076
2073
  }),
2077
- ...(input.targetEirp !== undefined &&
2078
- input.targetEirp !== null && { targetEirp: serializeAws_restJson1Eirp(input.targetEirp, context) }),
2079
- ...(input.transmitDisabled !== undefined &&
2080
- input.transmitDisabled !== null && { transmitDisabled: input.transmitDisabled }),
2074
+ ...(input.targetEirp != null && { targetEirp: serializeAws_restJson1Eirp(input.targetEirp, context) }),
2075
+ ...(input.transmitDisabled != null && { transmitDisabled: input.transmitDisabled }),
2081
2076
  };
2082
2077
  };
2083
2078
  const serializeAws_restJson1ConfigTypeData = (input, context) => {
@@ -2122,45 +2117,38 @@ const serializeAws_restJson1DataflowEdgeList = (input, context) => {
2122
2117
  };
2123
2118
  const serializeAws_restJson1DataflowEndpoint = (input, context) => {
2124
2119
  return {
2125
- ...(input.address !== undefined &&
2126
- input.address !== null && { address: serializeAws_restJson1SocketAddress(input.address, context) }),
2127
- ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
2128
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2129
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
2120
+ ...(input.address != null && { address: serializeAws_restJson1SocketAddress(input.address, context) }),
2121
+ ...(input.mtu != null && { mtu: input.mtu }),
2122
+ ...(input.name != null && { name: input.name }),
2123
+ ...(input.status != null && { status: input.status }),
2130
2124
  };
2131
2125
  };
2132
2126
  const serializeAws_restJson1DataflowEndpointConfig = (input, context) => {
2133
2127
  return {
2134
- ...(input.dataflowEndpointName !== undefined &&
2135
- input.dataflowEndpointName !== null && { dataflowEndpointName: input.dataflowEndpointName }),
2136
- ...(input.dataflowEndpointRegion !== undefined &&
2137
- input.dataflowEndpointRegion !== null && { dataflowEndpointRegion: input.dataflowEndpointRegion }),
2128
+ ...(input.dataflowEndpointName != null && { dataflowEndpointName: input.dataflowEndpointName }),
2129
+ ...(input.dataflowEndpointRegion != null && { dataflowEndpointRegion: input.dataflowEndpointRegion }),
2138
2130
  };
2139
2131
  };
2140
2132
  const serializeAws_restJson1DecodeConfig = (input, context) => {
2141
2133
  return {
2142
- ...(input.unvalidatedJSON !== undefined &&
2143
- input.unvalidatedJSON !== null && { unvalidatedJSON: input.unvalidatedJSON }),
2134
+ ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2144
2135
  };
2145
2136
  };
2146
2137
  const serializeAws_restJson1DemodulationConfig = (input, context) => {
2147
2138
  return {
2148
- ...(input.unvalidatedJSON !== undefined &&
2149
- input.unvalidatedJSON !== null && { unvalidatedJSON: input.unvalidatedJSON }),
2139
+ ...(input.unvalidatedJSON != null && { unvalidatedJSON: input.unvalidatedJSON }),
2150
2140
  };
2151
2141
  };
2152
2142
  const serializeAws_restJson1Eirp = (input, context) => {
2153
2143
  return {
2154
- ...(input.units !== undefined && input.units !== null && { units: input.units }),
2155
- ...(input.value !== undefined && input.value !== null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2144
+ ...(input.units != null && { units: input.units }),
2145
+ ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2156
2146
  };
2157
2147
  };
2158
2148
  const serializeAws_restJson1EndpointDetails = (input, context) => {
2159
2149
  return {
2160
- ...(input.endpoint !== undefined &&
2161
- input.endpoint !== null && { endpoint: serializeAws_restJson1DataflowEndpoint(input.endpoint, context) }),
2162
- ...(input.securityDetails !== undefined &&
2163
- input.securityDetails !== null && {
2150
+ ...(input.endpoint != null && { endpoint: serializeAws_restJson1DataflowEndpoint(input.endpoint, context) }),
2151
+ ...(input.securityDetails != null && {
2164
2152
  securityDetails: serializeAws_restJson1SecurityDetails(input.securityDetails, context),
2165
2153
  }),
2166
2154
  };
@@ -2177,32 +2165,30 @@ const serializeAws_restJson1EndpointDetailsList = (input, context) => {
2177
2165
  };
2178
2166
  const serializeAws_restJson1Frequency = (input, context) => {
2179
2167
  return {
2180
- ...(input.units !== undefined && input.units !== null && { units: input.units }),
2181
- ...(input.value !== undefined && input.value !== null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2168
+ ...(input.units != null && { units: input.units }),
2169
+ ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2182
2170
  };
2183
2171
  };
2184
2172
  const serializeAws_restJson1FrequencyBandwidth = (input, context) => {
2185
2173
  return {
2186
- ...(input.units !== undefined && input.units !== null && { units: input.units }),
2187
- ...(input.value !== undefined && input.value !== null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2174
+ ...(input.units != null && { units: input.units }),
2175
+ ...(input.value != null && { value: (0, smithy_client_1.serializeFloat)(input.value) }),
2188
2176
  };
2189
2177
  };
2190
2178
  const serializeAws_restJson1S3RecordingConfig = (input, context) => {
2191
2179
  return {
2192
- ...(input.bucketArn !== undefined && input.bucketArn !== null && { bucketArn: input.bucketArn }),
2193
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
2194
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2180
+ ...(input.bucketArn != null && { bucketArn: input.bucketArn }),
2181
+ ...(input.prefix != null && { prefix: input.prefix }),
2182
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2195
2183
  };
2196
2184
  };
2197
2185
  const serializeAws_restJson1SecurityDetails = (input, context) => {
2198
2186
  return {
2199
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2200
- ...(input.securityGroupIds !== undefined &&
2201
- input.securityGroupIds !== null && {
2187
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
2188
+ ...(input.securityGroupIds != null && {
2202
2189
  securityGroupIds: serializeAws_restJson1SecurityGroupIdList(input.securityGroupIds, context),
2203
2190
  }),
2204
- ...(input.subnetIds !== undefined &&
2205
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetList(input.subnetIds, context) }),
2191
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetList(input.subnetIds, context) }),
2206
2192
  };
2207
2193
  };
2208
2194
  const serializeAws_restJson1SecurityGroupIdList = (input, context) => {
@@ -2217,19 +2203,17 @@ const serializeAws_restJson1SecurityGroupIdList = (input, context) => {
2217
2203
  };
2218
2204
  const serializeAws_restJson1SocketAddress = (input, context) => {
2219
2205
  return {
2220
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
2221
- ...(input.port !== undefined && input.port !== null && { port: input.port }),
2206
+ ...(input.name != null && { name: input.name }),
2207
+ ...(input.port != null && { port: input.port }),
2222
2208
  };
2223
2209
  };
2224
2210
  const serializeAws_restJson1SpectrumConfig = (input, context) => {
2225
2211
  return {
2226
- ...(input.bandwidth !== undefined &&
2227
- input.bandwidth !== null && { bandwidth: serializeAws_restJson1FrequencyBandwidth(input.bandwidth, context) }),
2228
- ...(input.centerFrequency !== undefined &&
2229
- input.centerFrequency !== null && {
2212
+ ...(input.bandwidth != null && { bandwidth: serializeAws_restJson1FrequencyBandwidth(input.bandwidth, context) }),
2213
+ ...(input.centerFrequency != null && {
2230
2214
  centerFrequency: serializeAws_restJson1Frequency(input.centerFrequency, context),
2231
2215
  }),
2232
- ...(input.polarization !== undefined && input.polarization !== null && { polarization: input.polarization }),
2216
+ ...(input.polarization != null && { polarization: input.polarization }),
2233
2217
  };
2234
2218
  };
2235
2219
  const serializeAws_restJson1StatusList = (input, context) => {
@@ -2265,23 +2249,21 @@ const serializeAws_restJson1TagsMap = (input, context) => {
2265
2249
  };
2266
2250
  const serializeAws_restJson1TrackingConfig = (input, context) => {
2267
2251
  return {
2268
- ...(input.autotrack !== undefined && input.autotrack !== null && { autotrack: input.autotrack }),
2252
+ ...(input.autotrack != null && { autotrack: input.autotrack }),
2269
2253
  };
2270
2254
  };
2271
2255
  const serializeAws_restJson1UplinkEchoConfig = (input, context) => {
2272
2256
  return {
2273
- ...(input.antennaUplinkConfigArn !== undefined &&
2274
- input.antennaUplinkConfigArn !== null && { antennaUplinkConfigArn: input.antennaUplinkConfigArn }),
2275
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
2257
+ ...(input.antennaUplinkConfigArn != null && { antennaUplinkConfigArn: input.antennaUplinkConfigArn }),
2258
+ ...(input.enabled != null && { enabled: input.enabled }),
2276
2259
  };
2277
2260
  };
2278
2261
  const serializeAws_restJson1UplinkSpectrumConfig = (input, context) => {
2279
2262
  return {
2280
- ...(input.centerFrequency !== undefined &&
2281
- input.centerFrequency !== null && {
2263
+ ...(input.centerFrequency != null && {
2282
2264
  centerFrequency: serializeAws_restJson1Frequency(input.centerFrequency, context),
2283
2265
  }),
2284
- ...(input.polarization !== undefined && input.polarization !== null && { polarization: input.polarization }),
2266
+ ...(input.polarization != null && { polarization: input.polarization }),
2285
2267
  };
2286
2268
  };
2287
2269
  const deserializeAws_restJson1AntennaDemodDecodeDetails = (output, context) => {
@@ -2291,32 +2273,28 @@ const deserializeAws_restJson1AntennaDemodDecodeDetails = (output, context) => {
2291
2273
  };
2292
2274
  const deserializeAws_restJson1AntennaDownlinkConfig = (output, context) => {
2293
2275
  return {
2294
- spectrumConfig: output.spectrumConfig !== undefined && output.spectrumConfig !== null
2276
+ spectrumConfig: output.spectrumConfig != null
2295
2277
  ? deserializeAws_restJson1SpectrumConfig(output.spectrumConfig, context)
2296
2278
  : undefined,
2297
2279
  };
2298
2280
  };
2299
2281
  const deserializeAws_restJson1AntennaDownlinkDemodDecodeConfig = (output, context) => {
2300
2282
  return {
2301
- decodeConfig: output.decodeConfig !== undefined && output.decodeConfig !== null
2302
- ? deserializeAws_restJson1DecodeConfig(output.decodeConfig, context)
2303
- : undefined,
2304
- demodulationConfig: output.demodulationConfig !== undefined && output.demodulationConfig !== null
2283
+ decodeConfig: output.decodeConfig != null ? deserializeAws_restJson1DecodeConfig(output.decodeConfig, context) : undefined,
2284
+ demodulationConfig: output.demodulationConfig != null
2305
2285
  ? deserializeAws_restJson1DemodulationConfig(output.demodulationConfig, context)
2306
2286
  : undefined,
2307
- spectrumConfig: output.spectrumConfig !== undefined && output.spectrumConfig !== null
2287
+ spectrumConfig: output.spectrumConfig != null
2308
2288
  ? deserializeAws_restJson1SpectrumConfig(output.spectrumConfig, context)
2309
2289
  : undefined,
2310
2290
  };
2311
2291
  };
2312
2292
  const deserializeAws_restJson1AntennaUplinkConfig = (output, context) => {
2313
2293
  return {
2314
- spectrumConfig: output.spectrumConfig !== undefined && output.spectrumConfig !== null
2294
+ spectrumConfig: output.spectrumConfig != null
2315
2295
  ? deserializeAws_restJson1UplinkSpectrumConfig(output.spectrumConfig, context)
2316
2296
  : undefined,
2317
- targetEirp: output.targetEirp !== undefined && output.targetEirp !== null
2318
- ? deserializeAws_restJson1Eirp(output.targetEirp, context)
2319
- : undefined,
2297
+ targetEirp: output.targetEirp != null ? deserializeAws_restJson1Eirp(output.targetEirp, context) : undefined,
2320
2298
  transmitDisabled: (0, smithy_client_1.expectBoolean)(output.transmitDisabled),
2321
2299
  };
2322
2300
  };
@@ -2399,29 +2377,21 @@ const deserializeAws_restJson1ContactData = (output, context) => {
2399
2377
  return {
2400
2378
  contactId: (0, smithy_client_1.expectString)(output.contactId),
2401
2379
  contactStatus: (0, smithy_client_1.expectString)(output.contactStatus),
2402
- endTime: output.endTime !== undefined && output.endTime !== null
2403
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
2404
- : undefined,
2380
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
2405
2381
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
2406
2382
  groundStation: (0, smithy_client_1.expectString)(output.groundStation),
2407
- maximumElevation: output.maximumElevation !== undefined && output.maximumElevation !== null
2408
- ? deserializeAws_restJson1Elevation(output.maximumElevation, context)
2409
- : undefined,
2383
+ maximumElevation: output.maximumElevation != null ? deserializeAws_restJson1Elevation(output.maximumElevation, context) : undefined,
2410
2384
  missionProfileArn: (0, smithy_client_1.expectString)(output.missionProfileArn),
2411
- postPassEndTime: output.postPassEndTime !== undefined && output.postPassEndTime !== null
2385
+ postPassEndTime: output.postPassEndTime != null
2412
2386
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.postPassEndTime)))
2413
2387
  : undefined,
2414
- prePassStartTime: output.prePassStartTime !== undefined && output.prePassStartTime !== null
2388
+ prePassStartTime: output.prePassStartTime != null
2415
2389
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.prePassStartTime)))
2416
2390
  : undefined,
2417
2391
  region: (0, smithy_client_1.expectString)(output.region),
2418
2392
  satelliteArn: (0, smithy_client_1.expectString)(output.satelliteArn),
2419
- startTime: output.startTime !== undefined && output.startTime !== null
2420
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
2421
- : undefined,
2422
- tags: output.tags !== undefined && output.tags !== null
2423
- ? deserializeAws_restJson1TagsMap(output.tags, context)
2424
- : undefined,
2393
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
2394
+ tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
2425
2395
  };
2426
2396
  };
2427
2397
  const deserializeAws_restJson1ContactList = (output, context) => {
@@ -2437,13 +2407,9 @@ const deserializeAws_restJson1ContactList = (output, context) => {
2437
2407
  };
2438
2408
  const deserializeAws_restJson1DataflowDetail = (output, context) => {
2439
2409
  return {
2440
- destination: output.destination !== undefined && output.destination !== null
2441
- ? deserializeAws_restJson1Destination(output.destination, context)
2442
- : undefined,
2410
+ destination: output.destination != null ? deserializeAws_restJson1Destination(output.destination, context) : undefined,
2443
2411
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
2444
- source: output.source !== undefined && output.source !== null
2445
- ? deserializeAws_restJson1Source(output.source, context)
2446
- : undefined,
2412
+ source: output.source != null ? deserializeAws_restJson1Source(output.source, context) : undefined,
2447
2413
  };
2448
2414
  };
2449
2415
  const deserializeAws_restJson1DataflowEdge = (output, context) => {
@@ -2470,9 +2436,7 @@ const deserializeAws_restJson1DataflowEdgeList = (output, context) => {
2470
2436
  };
2471
2437
  const deserializeAws_restJson1DataflowEndpoint = (output, context) => {
2472
2438
  return {
2473
- address: output.address !== undefined && output.address !== null
2474
- ? deserializeAws_restJson1SocketAddress(output.address, context)
2475
- : undefined,
2439
+ address: output.address != null ? deserializeAws_restJson1SocketAddress(output.address, context) : undefined,
2476
2440
  mtu: (0, smithy_client_1.expectInt32)(output.mtu),
2477
2441
  name: (0, smithy_client_1.expectString)(output.name),
2478
2442
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2524,7 +2488,7 @@ const deserializeAws_restJson1DemodulationConfig = (output, context) => {
2524
2488
  };
2525
2489
  const deserializeAws_restJson1Destination = (output, context) => {
2526
2490
  return {
2527
- configDetails: output.configDetails !== undefined && output.configDetails !== null
2491
+ configDetails: output.configDetails != null
2528
2492
  ? deserializeAws_restJson1ConfigDetails((0, smithy_client_1.expectUnion)(output.configDetails), context)
2529
2493
  : undefined,
2530
2494
  configId: (0, smithy_client_1.expectString)(output.configId),
@@ -2546,10 +2510,8 @@ const deserializeAws_restJson1Elevation = (output, context) => {
2546
2510
  };
2547
2511
  const deserializeAws_restJson1EndpointDetails = (output, context) => {
2548
2512
  return {
2549
- endpoint: output.endpoint !== undefined && output.endpoint !== null
2550
- ? deserializeAws_restJson1DataflowEndpoint(output.endpoint, context)
2551
- : undefined,
2552
- securityDetails: output.securityDetails !== undefined && output.securityDetails !== null
2513
+ endpoint: output.endpoint != null ? deserializeAws_restJson1DataflowEndpoint(output.endpoint, context) : undefined,
2514
+ securityDetails: output.securityDetails != null
2553
2515
  ? deserializeAws_restJson1SecurityDetails(output.securityDetails, context)
2554
2516
  : undefined,
2555
2517
  };
@@ -2651,7 +2613,7 @@ const deserializeAws_restJson1SatelliteList = (output, context) => {
2651
2613
  };
2652
2614
  const deserializeAws_restJson1SatelliteListItem = (output, context) => {
2653
2615
  return {
2654
- groundStations: output.groundStations !== undefined && output.groundStations !== null
2616
+ groundStations: output.groundStations != null
2655
2617
  ? deserializeAws_restJson1GroundStationIdList(output.groundStations, context)
2656
2618
  : undefined,
2657
2619
  noradSatelliteID: (0, smithy_client_1.expectInt32)(output.noradSatelliteID),
@@ -2662,12 +2624,10 @@ const deserializeAws_restJson1SatelliteListItem = (output, context) => {
2662
2624
  const deserializeAws_restJson1SecurityDetails = (output, context) => {
2663
2625
  return {
2664
2626
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2665
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
2627
+ securityGroupIds: output.securityGroupIds != null
2666
2628
  ? deserializeAws_restJson1SecurityGroupIdList(output.securityGroupIds, context)
2667
2629
  : undefined,
2668
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
2669
- ? deserializeAws_restJson1SubnetList(output.subnetIds, context)
2670
- : undefined,
2630
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetList(output.subnetIds, context) : undefined,
2671
2631
  };
2672
2632
  };
2673
2633
  const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
@@ -2689,7 +2649,7 @@ const deserializeAws_restJson1SocketAddress = (output, context) => {
2689
2649
  };
2690
2650
  const deserializeAws_restJson1Source = (output, context) => {
2691
2651
  return {
2692
- configDetails: output.configDetails !== undefined && output.configDetails !== null
2652
+ configDetails: output.configDetails != null
2693
2653
  ? deserializeAws_restJson1ConfigDetails((0, smithy_client_1.expectUnion)(output.configDetails), context)
2694
2654
  : undefined,
2695
2655
  configId: (0, smithy_client_1.expectString)(output.configId),
@@ -2699,12 +2659,8 @@ const deserializeAws_restJson1Source = (output, context) => {
2699
2659
  };
2700
2660
  const deserializeAws_restJson1SpectrumConfig = (output, context) => {
2701
2661
  return {
2702
- bandwidth: output.bandwidth !== undefined && output.bandwidth !== null
2703
- ? deserializeAws_restJson1FrequencyBandwidth(output.bandwidth, context)
2704
- : undefined,
2705
- centerFrequency: output.centerFrequency !== undefined && output.centerFrequency !== null
2706
- ? deserializeAws_restJson1Frequency(output.centerFrequency, context)
2707
- : undefined,
2662
+ bandwidth: output.bandwidth != null ? deserializeAws_restJson1FrequencyBandwidth(output.bandwidth, context) : undefined,
2663
+ centerFrequency: output.centerFrequency != null ? deserializeAws_restJson1Frequency(output.centerFrequency, context) : undefined,
2708
2664
  polarization: (0, smithy_client_1.expectString)(output.polarization),
2709
2665
  };
2710
2666
  };
@@ -2743,9 +2699,7 @@ const deserializeAws_restJson1UplinkEchoConfig = (output, context) => {
2743
2699
  };
2744
2700
  const deserializeAws_restJson1UplinkSpectrumConfig = (output, context) => {
2745
2701
  return {
2746
- centerFrequency: output.centerFrequency !== undefined && output.centerFrequency !== null
2747
- ? deserializeAws_restJson1Frequency(output.centerFrequency, context)
2748
- : undefined,
2702
+ centerFrequency: output.centerFrequency != null ? deserializeAws_restJson1Frequency(output.centerFrequency, context) : undefined,
2749
2703
  polarization: (0, smithy_client_1.expectString)(output.polarization),
2750
2704
  };
2751
2705
  };
@@ -2798,5 +2752,4 @@ const loadRestJsonErrorCode = (output, data) => {
2798
2752
  if (data["__type"] !== undefined) {
2799
2753
  return sanitizeErrorCode(data["__type"]);
2800
2754
  }
2801
- return "";
2802
2755
  };