@aws-sdk/client-groundstation 3.52.0 → 3.53.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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1UpdateMissionProfileCommand = exports.deserializeAws_restJson1UpdateConfigCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1ReserveContactCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSatellitesCommand = exports.deserializeAws_restJson1ListMissionProfilesCommand = exports.deserializeAws_restJson1ListGroundStationsCommand = exports.deserializeAws_restJson1ListDataflowEndpointGroupsCommand = exports.deserializeAws_restJson1ListContactsCommand = exports.deserializeAws_restJson1ListConfigsCommand = exports.deserializeAws_restJson1GetSatelliteCommand = exports.deserializeAws_restJson1GetMissionProfileCommand = exports.deserializeAws_restJson1GetMinuteUsageCommand = exports.deserializeAws_restJson1GetDataflowEndpointGroupCommand = exports.deserializeAws_restJson1GetConfigCommand = exports.deserializeAws_restJson1DescribeContactCommand = exports.deserializeAws_restJson1DeleteMissionProfileCommand = exports.deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = exports.deserializeAws_restJson1DeleteConfigCommand = exports.deserializeAws_restJson1CreateMissionProfileCommand = exports.deserializeAws_restJson1CreateDataflowEndpointGroupCommand = exports.deserializeAws_restJson1CreateConfigCommand = exports.deserializeAws_restJson1CancelContactCommand = exports.serializeAws_restJson1UpdateMissionProfileCommand = exports.serializeAws_restJson1UpdateConfigCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1ReserveContactCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSatellitesCommand = exports.serializeAws_restJson1ListMissionProfilesCommand = exports.serializeAws_restJson1ListGroundStationsCommand = exports.serializeAws_restJson1ListDataflowEndpointGroupsCommand = exports.serializeAws_restJson1ListContactsCommand = exports.serializeAws_restJson1ListConfigsCommand = exports.serializeAws_restJson1GetSatelliteCommand = exports.serializeAws_restJson1GetMissionProfileCommand = exports.serializeAws_restJson1GetMinuteUsageCommand = exports.serializeAws_restJson1GetDataflowEndpointGroupCommand = exports.serializeAws_restJson1GetConfigCommand = exports.serializeAws_restJson1DescribeContactCommand = exports.serializeAws_restJson1DeleteMissionProfileCommand = exports.serializeAws_restJson1DeleteDataflowEndpointGroupCommand = exports.serializeAws_restJson1DeleteConfigCommand = exports.serializeAws_restJson1CreateMissionProfileCommand = exports.serializeAws_restJson1CreateDataflowEndpointGroupCommand = exports.serializeAws_restJson1CreateConfigCommand = exports.serializeAws_restJson1CancelContactCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const GroundStationServiceException_1 = require("../models/GroundStationServiceException");
6
7
  const models_0_1 = require("../models/models_0");
7
8
  const serializeAws_restJson1CancelContactCommand = async (input, context) => {
8
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -748,43 +749,22 @@ const deserializeAws_restJson1CancelContactCommandError = async (output, context
748
749
  switch (errorCode) {
749
750
  case "DependencyException":
750
751
  case "com.amazonaws.groundstation#DependencyException":
751
- response = {
752
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
753
- name: errorCode,
754
- $metadata: deserializeMetadata(output),
755
- };
756
- break;
752
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
757
753
  case "InvalidParameterException":
758
754
  case "com.amazonaws.groundstation#InvalidParameterException":
759
- response = {
760
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
761
- name: errorCode,
762
- $metadata: deserializeMetadata(output),
763
- };
764
- break;
755
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
765
756
  case "ResourceNotFoundException":
766
757
  case "com.amazonaws.groundstation#ResourceNotFoundException":
767
- response = {
768
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
769
- name: errorCode,
770
- $metadata: deserializeMetadata(output),
771
- };
772
- break;
758
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
773
759
  default:
774
760
  const parsedBody = parsedOutput.body;
775
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
776
- response = {
777
- ...parsedBody,
778
- name: `${errorCode}`,
779
- message: parsedBody.message || parsedBody.Message || errorCode,
761
+ response = new GroundStationServiceException_1.GroundStationServiceException({
762
+ name: parsedBody.code || parsedBody.Code || errorCode,
780
763
  $fault: "client",
781
764
  $metadata: deserializeMetadata(output),
782
- };
765
+ });
766
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
783
767
  }
784
- const message = response.message || response.Message || errorCode;
785
- response.message = message;
786
- delete response.Message;
787
- return Promise.reject(Object.assign(new Error(message), response));
788
768
  };
789
769
  const deserializeAws_restJson1CreateConfigCommand = async (output, context) => {
790
770
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -820,51 +800,25 @@ const deserializeAws_restJson1CreateConfigCommandError = async (output, context)
820
800
  switch (errorCode) {
821
801
  case "DependencyException":
822
802
  case "com.amazonaws.groundstation#DependencyException":
823
- response = {
824
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
825
- name: errorCode,
826
- $metadata: deserializeMetadata(output),
827
- };
828
- break;
803
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
829
804
  case "InvalidParameterException":
830
805
  case "com.amazonaws.groundstation#InvalidParameterException":
831
- response = {
832
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
833
- name: errorCode,
834
- $metadata: deserializeMetadata(output),
835
- };
836
- break;
806
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
837
807
  case "ResourceLimitExceededException":
838
808
  case "com.amazonaws.groundstation#ResourceLimitExceededException":
839
- response = {
840
- ...(await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context)),
841
- name: errorCode,
842
- $metadata: deserializeMetadata(output),
843
- };
844
- break;
809
+ throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
845
810
  case "ResourceNotFoundException":
846
811
  case "com.amazonaws.groundstation#ResourceNotFoundException":
847
- response = {
848
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
849
- name: errorCode,
850
- $metadata: deserializeMetadata(output),
851
- };
852
- break;
812
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
853
813
  default:
854
814
  const parsedBody = parsedOutput.body;
855
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
856
- response = {
857
- ...parsedBody,
858
- name: `${errorCode}`,
859
- message: parsedBody.message || parsedBody.Message || errorCode,
815
+ response = new GroundStationServiceException_1.GroundStationServiceException({
816
+ name: parsedBody.code || parsedBody.Code || errorCode,
860
817
  $fault: "client",
861
818
  $metadata: deserializeMetadata(output),
862
- };
819
+ });
820
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
863
821
  }
864
- const message = response.message || response.Message || errorCode;
865
- response.message = message;
866
- delete response.Message;
867
- return Promise.reject(Object.assign(new Error(message), response));
868
822
  };
869
823
  const deserializeAws_restJson1CreateDataflowEndpointGroupCommand = async (output, context) => {
870
824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -892,43 +846,22 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
892
846
  switch (errorCode) {
893
847
  case "DependencyException":
894
848
  case "com.amazonaws.groundstation#DependencyException":
895
- response = {
896
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
897
- name: errorCode,
898
- $metadata: deserializeMetadata(output),
899
- };
900
- break;
849
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
901
850
  case "InvalidParameterException":
902
851
  case "com.amazonaws.groundstation#InvalidParameterException":
903
- response = {
904
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
905
- name: errorCode,
906
- $metadata: deserializeMetadata(output),
907
- };
908
- break;
852
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
909
853
  case "ResourceNotFoundException":
910
854
  case "com.amazonaws.groundstation#ResourceNotFoundException":
911
- response = {
912
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
913
- name: errorCode,
914
- $metadata: deserializeMetadata(output),
915
- };
916
- break;
855
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
917
856
  default:
918
857
  const parsedBody = parsedOutput.body;
919
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
920
- response = {
921
- ...parsedBody,
922
- name: `${errorCode}`,
923
- message: parsedBody.message || parsedBody.Message || errorCode,
858
+ response = new GroundStationServiceException_1.GroundStationServiceException({
859
+ name: parsedBody.code || parsedBody.Code || errorCode,
924
860
  $fault: "client",
925
861
  $metadata: deserializeMetadata(output),
926
- };
862
+ });
863
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
927
864
  }
928
- const message = response.message || response.Message || errorCode;
929
- response.message = message;
930
- delete response.Message;
931
- return Promise.reject(Object.assign(new Error(message), response));
932
865
  };
933
866
  const deserializeAws_restJson1CreateMissionProfileCommand = async (output, context) => {
934
867
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -956,43 +889,22 @@ const deserializeAws_restJson1CreateMissionProfileCommandError = async (output,
956
889
  switch (errorCode) {
957
890
  case "DependencyException":
958
891
  case "com.amazonaws.groundstation#DependencyException":
959
- response = {
960
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
961
- name: errorCode,
962
- $metadata: deserializeMetadata(output),
963
- };
964
- break;
892
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
965
893
  case "InvalidParameterException":
966
894
  case "com.amazonaws.groundstation#InvalidParameterException":
967
- response = {
968
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
969
- name: errorCode,
970
- $metadata: deserializeMetadata(output),
971
- };
972
- break;
895
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
973
896
  case "ResourceNotFoundException":
974
897
  case "com.amazonaws.groundstation#ResourceNotFoundException":
975
- response = {
976
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
977
- name: errorCode,
978
- $metadata: deserializeMetadata(output),
979
- };
980
- break;
898
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
981
899
  default:
982
900
  const parsedBody = parsedOutput.body;
983
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
984
- response = {
985
- ...parsedBody,
986
- name: `${errorCode}`,
987
- message: parsedBody.message || parsedBody.Message || errorCode,
901
+ response = new GroundStationServiceException_1.GroundStationServiceException({
902
+ name: parsedBody.code || parsedBody.Code || errorCode,
988
903
  $fault: "client",
989
904
  $metadata: deserializeMetadata(output),
990
- };
905
+ });
906
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
991
907
  }
992
- const message = response.message || response.Message || errorCode;
993
- response.message = message;
994
- delete response.Message;
995
- return Promise.reject(Object.assign(new Error(message), response));
996
908
  };
997
909
  const deserializeAws_restJson1DeleteConfigCommand = async (output, context) => {
998
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1028,43 +940,22 @@ const deserializeAws_restJson1DeleteConfigCommandError = async (output, context)
1028
940
  switch (errorCode) {
1029
941
  case "DependencyException":
1030
942
  case "com.amazonaws.groundstation#DependencyException":
1031
- response = {
1032
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1033
- name: errorCode,
1034
- $metadata: deserializeMetadata(output),
1035
- };
1036
- break;
943
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1037
944
  case "InvalidParameterException":
1038
945
  case "com.amazonaws.groundstation#InvalidParameterException":
1039
- response = {
1040
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1041
- name: errorCode,
1042
- $metadata: deserializeMetadata(output),
1043
- };
1044
- break;
946
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1045
947
  case "ResourceNotFoundException":
1046
948
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1047
- response = {
1048
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1049
- name: errorCode,
1050
- $metadata: deserializeMetadata(output),
1051
- };
1052
- break;
949
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1053
950
  default:
1054
951
  const parsedBody = parsedOutput.body;
1055
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1056
- response = {
1057
- ...parsedBody,
1058
- name: `${errorCode}`,
1059
- message: parsedBody.message || parsedBody.Message || errorCode,
952
+ response = new GroundStationServiceException_1.GroundStationServiceException({
953
+ name: parsedBody.code || parsedBody.Code || errorCode,
1060
954
  $fault: "client",
1061
955
  $metadata: deserializeMetadata(output),
1062
- };
956
+ });
957
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1063
958
  }
1064
- const message = response.message || response.Message || errorCode;
1065
- response.message = message;
1066
- delete response.Message;
1067
- return Promise.reject(Object.assign(new Error(message), response));
1068
959
  };
1069
960
  const deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = async (output, context) => {
1070
961
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1092,43 +983,22 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
1092
983
  switch (errorCode) {
1093
984
  case "DependencyException":
1094
985
  case "com.amazonaws.groundstation#DependencyException":
1095
- response = {
1096
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1097
- name: errorCode,
1098
- $metadata: deserializeMetadata(output),
1099
- };
1100
- break;
986
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1101
987
  case "InvalidParameterException":
1102
988
  case "com.amazonaws.groundstation#InvalidParameterException":
1103
- response = {
1104
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1105
- name: errorCode,
1106
- $metadata: deserializeMetadata(output),
1107
- };
1108
- break;
989
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1109
990
  case "ResourceNotFoundException":
1110
991
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1111
- response = {
1112
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1113
- name: errorCode,
1114
- $metadata: deserializeMetadata(output),
1115
- };
1116
- break;
992
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1117
993
  default:
1118
994
  const parsedBody = parsedOutput.body;
1119
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1120
- response = {
1121
- ...parsedBody,
1122
- name: `${errorCode}`,
1123
- message: parsedBody.message || parsedBody.Message || errorCode,
995
+ response = new GroundStationServiceException_1.GroundStationServiceException({
996
+ name: parsedBody.code || parsedBody.Code || errorCode,
1124
997
  $fault: "client",
1125
998
  $metadata: deserializeMetadata(output),
1126
- };
999
+ });
1000
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1127
1001
  }
1128
- const message = response.message || response.Message || errorCode;
1129
- response.message = message;
1130
- delete response.Message;
1131
- return Promise.reject(Object.assign(new Error(message), response));
1132
1002
  };
1133
1003
  const deserializeAws_restJson1DeleteMissionProfileCommand = async (output, context) => {
1134
1004
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1156,43 +1026,22 @@ const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output,
1156
1026
  switch (errorCode) {
1157
1027
  case "DependencyException":
1158
1028
  case "com.amazonaws.groundstation#DependencyException":
1159
- response = {
1160
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1161
- name: errorCode,
1162
- $metadata: deserializeMetadata(output),
1163
- };
1164
- break;
1029
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1165
1030
  case "InvalidParameterException":
1166
1031
  case "com.amazonaws.groundstation#InvalidParameterException":
1167
- response = {
1168
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1169
- name: errorCode,
1170
- $metadata: deserializeMetadata(output),
1171
- };
1172
- break;
1032
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1173
1033
  case "ResourceNotFoundException":
1174
1034
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1175
- response = {
1176
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1177
- name: errorCode,
1178
- $metadata: deserializeMetadata(output),
1179
- };
1180
- break;
1035
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1181
1036
  default:
1182
1037
  const parsedBody = parsedOutput.body;
1183
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1184
- response = {
1185
- ...parsedBody,
1186
- name: `${errorCode}`,
1187
- message: parsedBody.message || parsedBody.Message || errorCode,
1038
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1039
+ name: parsedBody.code || parsedBody.Code || errorCode,
1188
1040
  $fault: "client",
1189
1041
  $metadata: deserializeMetadata(output),
1190
- };
1042
+ });
1043
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1191
1044
  }
1192
- const message = response.message || response.Message || errorCode;
1193
- response.message = message;
1194
- delete response.Message;
1195
- return Promise.reject(Object.assign(new Error(message), response));
1196
1045
  };
1197
1046
  const deserializeAws_restJson1DescribeContactCommand = async (output, context) => {
1198
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1272,43 +1121,22 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
1272
1121
  switch (errorCode) {
1273
1122
  case "DependencyException":
1274
1123
  case "com.amazonaws.groundstation#DependencyException":
1275
- response = {
1276
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1277
- name: errorCode,
1278
- $metadata: deserializeMetadata(output),
1279
- };
1280
- break;
1124
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1281
1125
  case "InvalidParameterException":
1282
1126
  case "com.amazonaws.groundstation#InvalidParameterException":
1283
- response = {
1284
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1285
- name: errorCode,
1286
- $metadata: deserializeMetadata(output),
1287
- };
1288
- break;
1127
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1289
1128
  case "ResourceNotFoundException":
1290
1129
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1291
- response = {
1292
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1293
- name: errorCode,
1294
- $metadata: deserializeMetadata(output),
1295
- };
1296
- break;
1130
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1297
1131
  default:
1298
1132
  const parsedBody = parsedOutput.body;
1299
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1300
- response = {
1301
- ...parsedBody,
1302
- name: `${errorCode}`,
1303
- message: parsedBody.message || parsedBody.Message || errorCode,
1133
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1134
+ name: parsedBody.code || parsedBody.Code || errorCode,
1304
1135
  $fault: "client",
1305
1136
  $metadata: deserializeMetadata(output),
1306
- };
1137
+ });
1138
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1307
1139
  }
1308
- const message = response.message || response.Message || errorCode;
1309
- response.message = message;
1310
- delete response.Message;
1311
- return Promise.reject(Object.assign(new Error(message), response));
1312
1140
  };
1313
1141
  const deserializeAws_restJson1GetConfigCommand = async (output, context) => {
1314
1142
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1356,43 +1184,22 @@ const deserializeAws_restJson1GetConfigCommandError = async (output, context) =>
1356
1184
  switch (errorCode) {
1357
1185
  case "DependencyException":
1358
1186
  case "com.amazonaws.groundstation#DependencyException":
1359
- response = {
1360
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1361
- name: errorCode,
1362
- $metadata: deserializeMetadata(output),
1363
- };
1364
- break;
1187
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1365
1188
  case "InvalidParameterException":
1366
1189
  case "com.amazonaws.groundstation#InvalidParameterException":
1367
- response = {
1368
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1369
- name: errorCode,
1370
- $metadata: deserializeMetadata(output),
1371
- };
1372
- break;
1190
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1373
1191
  case "ResourceNotFoundException":
1374
1192
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1375
- response = {
1376
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1377
- name: errorCode,
1378
- $metadata: deserializeMetadata(output),
1379
- };
1380
- break;
1193
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1381
1194
  default:
1382
1195
  const parsedBody = parsedOutput.body;
1383
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1384
- response = {
1385
- ...parsedBody,
1386
- name: `${errorCode}`,
1387
- message: parsedBody.message || parsedBody.Message || errorCode,
1196
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1197
+ name: parsedBody.code || parsedBody.Code || errorCode,
1388
1198
  $fault: "client",
1389
1199
  $metadata: deserializeMetadata(output),
1390
- };
1200
+ });
1201
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1391
1202
  }
1392
- const message = response.message || response.Message || errorCode;
1393
- response.message = message;
1394
- delete response.Message;
1395
- return Promise.reject(Object.assign(new Error(message), response));
1396
1203
  };
1397
1204
  const deserializeAws_restJson1GetDataflowEndpointGroupCommand = async (output, context) => {
1398
1205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1432,43 +1239,22 @@ const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (outp
1432
1239
  switch (errorCode) {
1433
1240
  case "DependencyException":
1434
1241
  case "com.amazonaws.groundstation#DependencyException":
1435
- response = {
1436
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1437
- name: errorCode,
1438
- $metadata: deserializeMetadata(output),
1439
- };
1440
- break;
1242
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1441
1243
  case "InvalidParameterException":
1442
1244
  case "com.amazonaws.groundstation#InvalidParameterException":
1443
- response = {
1444
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1445
- name: errorCode,
1446
- $metadata: deserializeMetadata(output),
1447
- };
1448
- break;
1245
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1449
1246
  case "ResourceNotFoundException":
1450
1247
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1451
- response = {
1452
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1453
- name: errorCode,
1454
- $metadata: deserializeMetadata(output),
1455
- };
1456
- break;
1248
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1457
1249
  default:
1458
1250
  const parsedBody = parsedOutput.body;
1459
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1460
- response = {
1461
- ...parsedBody,
1462
- name: `${errorCode}`,
1463
- message: parsedBody.message || parsedBody.Message || errorCode,
1251
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1252
+ name: parsedBody.code || parsedBody.Code || errorCode,
1464
1253
  $fault: "client",
1465
1254
  $metadata: deserializeMetadata(output),
1466
- };
1255
+ });
1256
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1467
1257
  }
1468
- const message = response.message || response.Message || errorCode;
1469
- response.message = message;
1470
- delete response.Message;
1471
- return Promise.reject(Object.assign(new Error(message), response));
1472
1258
  };
1473
1259
  const deserializeAws_restJson1GetMinuteUsageCommand = async (output, context) => {
1474
1260
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1512,43 +1298,22 @@ const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, contex
1512
1298
  switch (errorCode) {
1513
1299
  case "DependencyException":
1514
1300
  case "com.amazonaws.groundstation#DependencyException":
1515
- response = {
1516
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1517
- name: errorCode,
1518
- $metadata: deserializeMetadata(output),
1519
- };
1520
- break;
1301
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1521
1302
  case "InvalidParameterException":
1522
1303
  case "com.amazonaws.groundstation#InvalidParameterException":
1523
- response = {
1524
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1525
- name: errorCode,
1526
- $metadata: deserializeMetadata(output),
1527
- };
1528
- break;
1304
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1529
1305
  case "ResourceNotFoundException":
1530
1306
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1531
- response = {
1532
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1533
- name: errorCode,
1534
- $metadata: deserializeMetadata(output),
1535
- };
1536
- break;
1307
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1537
1308
  default:
1538
1309
  const parsedBody = parsedOutput.body;
1539
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1540
- response = {
1541
- ...parsedBody,
1542
- name: `${errorCode}`,
1543
- message: parsedBody.message || parsedBody.Message || errorCode,
1310
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1311
+ name: parsedBody.code || parsedBody.Code || errorCode,
1544
1312
  $fault: "client",
1545
1313
  $metadata: deserializeMetadata(output),
1546
- };
1314
+ });
1315
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1547
1316
  }
1548
- const message = response.message || response.Message || errorCode;
1549
- response.message = message;
1550
- delete response.Message;
1551
- return Promise.reject(Object.assign(new Error(message), response));
1552
1317
  };
1553
1318
  const deserializeAws_restJson1GetMissionProfileCommand = async (output, context) => {
1554
1319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1612,43 +1377,22 @@ const deserializeAws_restJson1GetMissionProfileCommandError = async (output, con
1612
1377
  switch (errorCode) {
1613
1378
  case "DependencyException":
1614
1379
  case "com.amazonaws.groundstation#DependencyException":
1615
- response = {
1616
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1617
- name: errorCode,
1618
- $metadata: deserializeMetadata(output),
1619
- };
1620
- break;
1380
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1621
1381
  case "InvalidParameterException":
1622
1382
  case "com.amazonaws.groundstation#InvalidParameterException":
1623
- response = {
1624
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1625
- name: errorCode,
1626
- $metadata: deserializeMetadata(output),
1627
- };
1628
- break;
1383
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1629
1384
  case "ResourceNotFoundException":
1630
1385
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1631
- response = {
1632
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1633
- name: errorCode,
1634
- $metadata: deserializeMetadata(output),
1635
- };
1636
- break;
1386
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1637
1387
  default:
1638
1388
  const parsedBody = parsedOutput.body;
1639
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1640
- response = {
1641
- ...parsedBody,
1642
- name: `${errorCode}`,
1643
- message: parsedBody.message || parsedBody.Message || errorCode,
1389
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1390
+ name: parsedBody.code || parsedBody.Code || errorCode,
1644
1391
  $fault: "client",
1645
1392
  $metadata: deserializeMetadata(output),
1646
- };
1393
+ });
1394
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1647
1395
  }
1648
- const message = response.message || response.Message || errorCode;
1649
- response.message = message;
1650
- delete response.Message;
1651
- return Promise.reject(Object.assign(new Error(message), response));
1652
1396
  };
1653
1397
  const deserializeAws_restJson1GetSatelliteCommand = async (output, context) => {
1654
1398
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1688,43 +1432,22 @@ const deserializeAws_restJson1GetSatelliteCommandError = async (output, context)
1688
1432
  switch (errorCode) {
1689
1433
  case "DependencyException":
1690
1434
  case "com.amazonaws.groundstation#DependencyException":
1691
- response = {
1692
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1693
- name: errorCode,
1694
- $metadata: deserializeMetadata(output),
1695
- };
1696
- break;
1435
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1697
1436
  case "InvalidParameterException":
1698
1437
  case "com.amazonaws.groundstation#InvalidParameterException":
1699
- response = {
1700
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1701
- name: errorCode,
1702
- $metadata: deserializeMetadata(output),
1703
- };
1704
- break;
1438
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1705
1439
  case "ResourceNotFoundException":
1706
1440
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1707
- response = {
1708
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1709
- name: errorCode,
1710
- $metadata: deserializeMetadata(output),
1711
- };
1712
- break;
1441
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1713
1442
  default:
1714
1443
  const parsedBody = parsedOutput.body;
1715
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1716
- response = {
1717
- ...parsedBody,
1718
- name: `${errorCode}`,
1719
- message: parsedBody.message || parsedBody.Message || errorCode,
1444
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1445
+ name: parsedBody.code || parsedBody.Code || errorCode,
1720
1446
  $fault: "client",
1721
1447
  $metadata: deserializeMetadata(output),
1722
- };
1448
+ });
1449
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1723
1450
  }
1724
- const message = response.message || response.Message || errorCode;
1725
- response.message = message;
1726
- delete response.Message;
1727
- return Promise.reject(Object.assign(new Error(message), response));
1728
1451
  };
1729
1452
  const deserializeAws_restJson1ListConfigsCommand = async (output, context) => {
1730
1453
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1756,43 +1479,22 @@ const deserializeAws_restJson1ListConfigsCommandError = async (output, context)
1756
1479
  switch (errorCode) {
1757
1480
  case "DependencyException":
1758
1481
  case "com.amazonaws.groundstation#DependencyException":
1759
- response = {
1760
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1761
- name: errorCode,
1762
- $metadata: deserializeMetadata(output),
1763
- };
1764
- break;
1482
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1765
1483
  case "InvalidParameterException":
1766
1484
  case "com.amazonaws.groundstation#InvalidParameterException":
1767
- response = {
1768
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1769
- name: errorCode,
1770
- $metadata: deserializeMetadata(output),
1771
- };
1772
- break;
1485
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1773
1486
  case "ResourceNotFoundException":
1774
1487
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1775
- response = {
1776
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1777
- name: errorCode,
1778
- $metadata: deserializeMetadata(output),
1779
- };
1780
- break;
1488
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1781
1489
  default:
1782
1490
  const parsedBody = parsedOutput.body;
1783
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1784
- response = {
1785
- ...parsedBody,
1786
- name: `${errorCode}`,
1787
- message: parsedBody.message || parsedBody.Message || errorCode,
1491
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1492
+ name: parsedBody.code || parsedBody.Code || errorCode,
1788
1493
  $fault: "client",
1789
1494
  $metadata: deserializeMetadata(output),
1790
- };
1495
+ });
1496
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1791
1497
  }
1792
- const message = response.message || response.Message || errorCode;
1793
- response.message = message;
1794
- delete response.Message;
1795
- return Promise.reject(Object.assign(new Error(message), response));
1796
1498
  };
1797
1499
  const deserializeAws_restJson1ListContactsCommand = async (output, context) => {
1798
1500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1824,43 +1526,22 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
1824
1526
  switch (errorCode) {
1825
1527
  case "DependencyException":
1826
1528
  case "com.amazonaws.groundstation#DependencyException":
1827
- response = {
1828
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1829
- name: errorCode,
1830
- $metadata: deserializeMetadata(output),
1831
- };
1832
- break;
1529
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1833
1530
  case "InvalidParameterException":
1834
1531
  case "com.amazonaws.groundstation#InvalidParameterException":
1835
- response = {
1836
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1837
- name: errorCode,
1838
- $metadata: deserializeMetadata(output),
1839
- };
1840
- break;
1532
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1841
1533
  case "ResourceNotFoundException":
1842
1534
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1843
- response = {
1844
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1845
- name: errorCode,
1846
- $metadata: deserializeMetadata(output),
1847
- };
1848
- break;
1535
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1849
1536
  default:
1850
1537
  const parsedBody = parsedOutput.body;
1851
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1852
- response = {
1853
- ...parsedBody,
1854
- name: `${errorCode}`,
1855
- message: parsedBody.message || parsedBody.Message || errorCode,
1538
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1539
+ name: parsedBody.code || parsedBody.Code || errorCode,
1856
1540
  $fault: "client",
1857
1541
  $metadata: deserializeMetadata(output),
1858
- };
1542
+ });
1543
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1859
1544
  }
1860
- const message = response.message || response.Message || errorCode;
1861
- response.message = message;
1862
- delete response.Message;
1863
- return Promise.reject(Object.assign(new Error(message), response));
1864
1545
  };
1865
1546
  const deserializeAws_restJson1ListDataflowEndpointGroupsCommand = async (output, context) => {
1866
1547
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1892,43 +1573,22 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
1892
1573
  switch (errorCode) {
1893
1574
  case "DependencyException":
1894
1575
  case "com.amazonaws.groundstation#DependencyException":
1895
- response = {
1896
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1897
- name: errorCode,
1898
- $metadata: deserializeMetadata(output),
1899
- };
1900
- break;
1576
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1901
1577
  case "InvalidParameterException":
1902
1578
  case "com.amazonaws.groundstation#InvalidParameterException":
1903
- response = {
1904
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1905
- name: errorCode,
1906
- $metadata: deserializeMetadata(output),
1907
- };
1908
- break;
1579
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1909
1580
  case "ResourceNotFoundException":
1910
1581
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1911
- response = {
1912
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1913
- name: errorCode,
1914
- $metadata: deserializeMetadata(output),
1915
- };
1916
- break;
1582
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1917
1583
  default:
1918
1584
  const parsedBody = parsedOutput.body;
1919
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1920
- response = {
1921
- ...parsedBody,
1922
- name: `${errorCode}`,
1923
- message: parsedBody.message || parsedBody.Message || errorCode,
1585
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1586
+ name: parsedBody.code || parsedBody.Code || errorCode,
1924
1587
  $fault: "client",
1925
1588
  $metadata: deserializeMetadata(output),
1926
- };
1589
+ });
1590
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1927
1591
  }
1928
- const message = response.message || response.Message || errorCode;
1929
- response.message = message;
1930
- delete response.Message;
1931
- return Promise.reject(Object.assign(new Error(message), response));
1932
1592
  };
1933
1593
  const deserializeAws_restJson1ListGroundStationsCommand = async (output, context) => {
1934
1594
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -1960,43 +1620,22 @@ const deserializeAws_restJson1ListGroundStationsCommandError = async (output, co
1960
1620
  switch (errorCode) {
1961
1621
  case "DependencyException":
1962
1622
  case "com.amazonaws.groundstation#DependencyException":
1963
- response = {
1964
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
1965
- name: errorCode,
1966
- $metadata: deserializeMetadata(output),
1967
- };
1968
- break;
1623
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
1969
1624
  case "InvalidParameterException":
1970
1625
  case "com.amazonaws.groundstation#InvalidParameterException":
1971
- response = {
1972
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
1973
- name: errorCode,
1974
- $metadata: deserializeMetadata(output),
1975
- };
1976
- break;
1626
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1977
1627
  case "ResourceNotFoundException":
1978
1628
  case "com.amazonaws.groundstation#ResourceNotFoundException":
1979
- response = {
1980
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
1981
- name: errorCode,
1982
- $metadata: deserializeMetadata(output),
1983
- };
1984
- break;
1629
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1985
1630
  default:
1986
1631
  const parsedBody = parsedOutput.body;
1987
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
1988
- response = {
1989
- ...parsedBody,
1990
- name: `${errorCode}`,
1991
- message: parsedBody.message || parsedBody.Message || errorCode,
1632
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1633
+ name: parsedBody.code || parsedBody.Code || errorCode,
1992
1634
  $fault: "client",
1993
1635
  $metadata: deserializeMetadata(output),
1994
- };
1636
+ });
1637
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1995
1638
  }
1996
- const message = response.message || response.Message || errorCode;
1997
- response.message = message;
1998
- delete response.Message;
1999
- return Promise.reject(Object.assign(new Error(message), response));
2000
1639
  };
2001
1640
  const deserializeAws_restJson1ListMissionProfilesCommand = async (output, context) => {
2002
1641
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2028,43 +1667,22 @@ const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, c
2028
1667
  switch (errorCode) {
2029
1668
  case "DependencyException":
2030
1669
  case "com.amazonaws.groundstation#DependencyException":
2031
- response = {
2032
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2033
- name: errorCode,
2034
- $metadata: deserializeMetadata(output),
2035
- };
2036
- break;
1670
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2037
1671
  case "InvalidParameterException":
2038
1672
  case "com.amazonaws.groundstation#InvalidParameterException":
2039
- response = {
2040
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2041
- name: errorCode,
2042
- $metadata: deserializeMetadata(output),
2043
- };
2044
- break;
1673
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2045
1674
  case "ResourceNotFoundException":
2046
1675
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2047
- response = {
2048
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2049
- name: errorCode,
2050
- $metadata: deserializeMetadata(output),
2051
- };
2052
- break;
1676
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2053
1677
  default:
2054
1678
  const parsedBody = parsedOutput.body;
2055
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2056
- response = {
2057
- ...parsedBody,
2058
- name: `${errorCode}`,
2059
- message: parsedBody.message || parsedBody.Message || errorCode,
1679
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1680
+ name: parsedBody.code || parsedBody.Code || errorCode,
2060
1681
  $fault: "client",
2061
1682
  $metadata: deserializeMetadata(output),
2062
- };
1683
+ });
1684
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2063
1685
  }
2064
- const message = response.message || response.Message || errorCode;
2065
- response.message = message;
2066
- delete response.Message;
2067
- return Promise.reject(Object.assign(new Error(message), response));
2068
1686
  };
2069
1687
  const deserializeAws_restJson1ListSatellitesCommand = async (output, context) => {
2070
1688
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2096,43 +1714,22 @@ const deserializeAws_restJson1ListSatellitesCommandError = async (output, contex
2096
1714
  switch (errorCode) {
2097
1715
  case "DependencyException":
2098
1716
  case "com.amazonaws.groundstation#DependencyException":
2099
- response = {
2100
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2101
- name: errorCode,
2102
- $metadata: deserializeMetadata(output),
2103
- };
2104
- break;
1717
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2105
1718
  case "InvalidParameterException":
2106
1719
  case "com.amazonaws.groundstation#InvalidParameterException":
2107
- response = {
2108
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2109
- name: errorCode,
2110
- $metadata: deserializeMetadata(output),
2111
- };
2112
- break;
1720
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2113
1721
  case "ResourceNotFoundException":
2114
1722
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2115
- response = {
2116
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2117
- name: errorCode,
2118
- $metadata: deserializeMetadata(output),
2119
- };
2120
- break;
1723
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2121
1724
  default:
2122
1725
  const parsedBody = parsedOutput.body;
2123
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2124
- response = {
2125
- ...parsedBody,
2126
- name: `${errorCode}`,
2127
- message: parsedBody.message || parsedBody.Message || errorCode,
1726
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1727
+ name: parsedBody.code || parsedBody.Code || errorCode,
2128
1728
  $fault: "client",
2129
1729
  $metadata: deserializeMetadata(output),
2130
- };
1730
+ });
1731
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2131
1732
  }
2132
- const message = response.message || response.Message || errorCode;
2133
- response.message = message;
2134
- delete response.Message;
2135
- return Promise.reject(Object.assign(new Error(message), response));
2136
1733
  };
2137
1734
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
2138
1735
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2160,43 +1757,22 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2160
1757
  switch (errorCode) {
2161
1758
  case "DependencyException":
2162
1759
  case "com.amazonaws.groundstation#DependencyException":
2163
- response = {
2164
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2165
- name: errorCode,
2166
- $metadata: deserializeMetadata(output),
2167
- };
2168
- break;
1760
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2169
1761
  case "InvalidParameterException":
2170
1762
  case "com.amazonaws.groundstation#InvalidParameterException":
2171
- response = {
2172
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2173
- name: errorCode,
2174
- $metadata: deserializeMetadata(output),
2175
- };
2176
- break;
1763
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2177
1764
  case "ResourceNotFoundException":
2178
1765
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2179
- response = {
2180
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2181
- name: errorCode,
2182
- $metadata: deserializeMetadata(output),
2183
- };
2184
- break;
1766
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2185
1767
  default:
2186
1768
  const parsedBody = parsedOutput.body;
2187
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2188
- response = {
2189
- ...parsedBody,
2190
- name: `${errorCode}`,
2191
- message: parsedBody.message || parsedBody.Message || errorCode,
1769
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1770
+ name: parsedBody.code || parsedBody.Code || errorCode,
2192
1771
  $fault: "client",
2193
1772
  $metadata: deserializeMetadata(output),
2194
- };
1773
+ });
1774
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2195
1775
  }
2196
- const message = response.message || response.Message || errorCode;
2197
- response.message = message;
2198
- delete response.Message;
2199
- return Promise.reject(Object.assign(new Error(message), response));
2200
1776
  };
2201
1777
  const deserializeAws_restJson1ReserveContactCommand = async (output, context) => {
2202
1778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2224,43 +1800,22 @@ const deserializeAws_restJson1ReserveContactCommandError = async (output, contex
2224
1800
  switch (errorCode) {
2225
1801
  case "DependencyException":
2226
1802
  case "com.amazonaws.groundstation#DependencyException":
2227
- response = {
2228
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2229
- name: errorCode,
2230
- $metadata: deserializeMetadata(output),
2231
- };
2232
- break;
1803
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2233
1804
  case "InvalidParameterException":
2234
1805
  case "com.amazonaws.groundstation#InvalidParameterException":
2235
- response = {
2236
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2237
- name: errorCode,
2238
- $metadata: deserializeMetadata(output),
2239
- };
2240
- break;
1806
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2241
1807
  case "ResourceNotFoundException":
2242
1808
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2243
- response = {
2244
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2245
- name: errorCode,
2246
- $metadata: deserializeMetadata(output),
2247
- };
2248
- break;
1809
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2249
1810
  default:
2250
1811
  const parsedBody = parsedOutput.body;
2251
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2252
- response = {
2253
- ...parsedBody,
2254
- name: `${errorCode}`,
2255
- message: parsedBody.message || parsedBody.Message || errorCode,
1812
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1813
+ name: parsedBody.code || parsedBody.Code || errorCode,
2256
1814
  $fault: "client",
2257
1815
  $metadata: deserializeMetadata(output),
2258
- };
1816
+ });
1817
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2259
1818
  }
2260
- const message = response.message || response.Message || errorCode;
2261
- response.message = message;
2262
- delete response.Message;
2263
- return Promise.reject(Object.assign(new Error(message), response));
2264
1819
  };
2265
1820
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
2266
1821
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2284,43 +1839,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2284
1839
  switch (errorCode) {
2285
1840
  case "DependencyException":
2286
1841
  case "com.amazonaws.groundstation#DependencyException":
2287
- response = {
2288
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2289
- name: errorCode,
2290
- $metadata: deserializeMetadata(output),
2291
- };
2292
- break;
1842
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2293
1843
  case "InvalidParameterException":
2294
1844
  case "com.amazonaws.groundstation#InvalidParameterException":
2295
- response = {
2296
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2297
- name: errorCode,
2298
- $metadata: deserializeMetadata(output),
2299
- };
2300
- break;
1845
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2301
1846
  case "ResourceNotFoundException":
2302
1847
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2303
- response = {
2304
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2305
- name: errorCode,
2306
- $metadata: deserializeMetadata(output),
2307
- };
2308
- break;
1848
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2309
1849
  default:
2310
1850
  const parsedBody = parsedOutput.body;
2311
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2312
- response = {
2313
- ...parsedBody,
2314
- name: `${errorCode}`,
2315
- message: parsedBody.message || parsedBody.Message || errorCode,
1851
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1852
+ name: parsedBody.code || parsedBody.Code || errorCode,
2316
1853
  $fault: "client",
2317
1854
  $metadata: deserializeMetadata(output),
2318
- };
1855
+ });
1856
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2319
1857
  }
2320
- const message = response.message || response.Message || errorCode;
2321
- response.message = message;
2322
- delete response.Message;
2323
- return Promise.reject(Object.assign(new Error(message), response));
2324
1858
  };
2325
1859
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
2326
1860
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2344,43 +1878,22 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2344
1878
  switch (errorCode) {
2345
1879
  case "DependencyException":
2346
1880
  case "com.amazonaws.groundstation#DependencyException":
2347
- response = {
2348
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2349
- name: errorCode,
2350
- $metadata: deserializeMetadata(output),
2351
- };
2352
- break;
1881
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2353
1882
  case "InvalidParameterException":
2354
1883
  case "com.amazonaws.groundstation#InvalidParameterException":
2355
- response = {
2356
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2357
- name: errorCode,
2358
- $metadata: deserializeMetadata(output),
2359
- };
2360
- break;
1884
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2361
1885
  case "ResourceNotFoundException":
2362
1886
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2363
- response = {
2364
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2365
- name: errorCode,
2366
- $metadata: deserializeMetadata(output),
2367
- };
2368
- break;
1887
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2369
1888
  default:
2370
1889
  const parsedBody = parsedOutput.body;
2371
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2372
- response = {
2373
- ...parsedBody,
2374
- name: `${errorCode}`,
2375
- message: parsedBody.message || parsedBody.Message || errorCode,
1890
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1891
+ name: parsedBody.code || parsedBody.Code || errorCode,
2376
1892
  $fault: "client",
2377
1893
  $metadata: deserializeMetadata(output),
2378
- };
1894
+ });
1895
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2379
1896
  }
2380
- const message = response.message || response.Message || errorCode;
2381
- response.message = message;
2382
- delete response.Message;
2383
- return Promise.reject(Object.assign(new Error(message), response));
2384
1897
  };
2385
1898
  const deserializeAws_restJson1UpdateConfigCommand = async (output, context) => {
2386
1899
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2416,43 +1929,22 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
2416
1929
  switch (errorCode) {
2417
1930
  case "DependencyException":
2418
1931
  case "com.amazonaws.groundstation#DependencyException":
2419
- response = {
2420
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2421
- name: errorCode,
2422
- $metadata: deserializeMetadata(output),
2423
- };
2424
- break;
1932
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2425
1933
  case "InvalidParameterException":
2426
1934
  case "com.amazonaws.groundstation#InvalidParameterException":
2427
- response = {
2428
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2429
- name: errorCode,
2430
- $metadata: deserializeMetadata(output),
2431
- };
2432
- break;
1935
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2433
1936
  case "ResourceNotFoundException":
2434
1937
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2435
- response = {
2436
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2437
- name: errorCode,
2438
- $metadata: deserializeMetadata(output),
2439
- };
2440
- break;
1938
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2441
1939
  default:
2442
1940
  const parsedBody = parsedOutput.body;
2443
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2444
- response = {
2445
- ...parsedBody,
2446
- name: `${errorCode}`,
2447
- message: parsedBody.message || parsedBody.Message || errorCode,
1941
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1942
+ name: parsedBody.code || parsedBody.Code || errorCode,
2448
1943
  $fault: "client",
2449
1944
  $metadata: deserializeMetadata(output),
2450
- };
1945
+ });
1946
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2451
1947
  }
2452
- const message = response.message || response.Message || errorCode;
2453
- response.message = message;
2454
- delete response.Message;
2455
- return Promise.reject(Object.assign(new Error(message), response));
2456
1948
  };
2457
1949
  const deserializeAws_restJson1UpdateMissionProfileCommand = async (output, context) => {
2458
1950
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -2480,52 +1972,25 @@ const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output,
2480
1972
  switch (errorCode) {
2481
1973
  case "DependencyException":
2482
1974
  case "com.amazonaws.groundstation#DependencyException":
2483
- response = {
2484
- ...(await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context)),
2485
- name: errorCode,
2486
- $metadata: deserializeMetadata(output),
2487
- };
2488
- break;
1975
+ throw await deserializeAws_restJson1DependencyExceptionResponse(parsedOutput, context);
2489
1976
  case "InvalidParameterException":
2490
1977
  case "com.amazonaws.groundstation#InvalidParameterException":
2491
- response = {
2492
- ...(await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)),
2493
- name: errorCode,
2494
- $metadata: deserializeMetadata(output),
2495
- };
2496
- break;
1978
+ throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
2497
1979
  case "ResourceNotFoundException":
2498
1980
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2499
- response = {
2500
- ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2501
- name: errorCode,
2502
- $metadata: deserializeMetadata(output),
2503
- };
2504
- break;
1981
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2505
1982
  default:
2506
1983
  const parsedBody = parsedOutput.body;
2507
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
2508
- response = {
2509
- ...parsedBody,
2510
- name: `${errorCode}`,
2511
- message: parsedBody.message || parsedBody.Message || errorCode,
1984
+ response = new GroundStationServiceException_1.GroundStationServiceException({
1985
+ name: parsedBody.code || parsedBody.Code || errorCode,
2512
1986
  $fault: "client",
2513
1987
  $metadata: deserializeMetadata(output),
2514
- };
1988
+ });
1989
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
2515
1990
  }
2516
- const message = response.message || response.Message || errorCode;
2517
- response.message = message;
2518
- delete response.Message;
2519
- return Promise.reject(Object.assign(new Error(message), response));
2520
1991
  };
2521
1992
  const deserializeAws_restJson1DependencyExceptionResponse = async (parsedOutput, context) => {
2522
- const contents = {
2523
- name: "DependencyException",
2524
- $fault: "server",
2525
- $metadata: deserializeMetadata(parsedOutput),
2526
- message: undefined,
2527
- parameterName: undefined,
2528
- };
1993
+ const contents = {};
2529
1994
  const data = parsedOutput.body;
2530
1995
  if (data.message !== undefined && data.message !== null) {
2531
1996
  contents.message = smithy_client_1.expectString(data.message);
@@ -2533,16 +1998,14 @@ const deserializeAws_restJson1DependencyExceptionResponse = async (parsedOutput,
2533
1998
  if (data.parameterName !== undefined && data.parameterName !== null) {
2534
1999
  contents.parameterName = smithy_client_1.expectString(data.parameterName);
2535
2000
  }
2536
- return contents;
2001
+ const exception = new models_0_1.DependencyException({
2002
+ $metadata: deserializeMetadata(parsedOutput),
2003
+ ...contents,
2004
+ });
2005
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2537
2006
  };
2538
2007
  const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
2539
- const contents = {
2540
- name: "InvalidParameterException",
2541
- $fault: "client",
2542
- $metadata: deserializeMetadata(parsedOutput),
2543
- message: undefined,
2544
- parameterName: undefined,
2545
- };
2008
+ const contents = {};
2546
2009
  const data = parsedOutput.body;
2547
2010
  if (data.message !== undefined && data.message !== null) {
2548
2011
  contents.message = smithy_client_1.expectString(data.message);
@@ -2550,16 +2013,14 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
2550
2013
  if (data.parameterName !== undefined && data.parameterName !== null) {
2551
2014
  contents.parameterName = smithy_client_1.expectString(data.parameterName);
2552
2015
  }
2553
- return contents;
2016
+ const exception = new models_0_1.InvalidParameterException({
2017
+ $metadata: deserializeMetadata(parsedOutput),
2018
+ ...contents,
2019
+ });
2020
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2554
2021
  };
2555
2022
  const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (parsedOutput, context) => {
2556
- const contents = {
2557
- name: "ResourceLimitExceededException",
2558
- $fault: "client",
2559
- $metadata: deserializeMetadata(parsedOutput),
2560
- message: undefined,
2561
- parameterName: undefined,
2562
- };
2023
+ const contents = {};
2563
2024
  const data = parsedOutput.body;
2564
2025
  if (data.message !== undefined && data.message !== null) {
2565
2026
  contents.message = smithy_client_1.expectString(data.message);
@@ -2567,20 +2028,23 @@ const deserializeAws_restJson1ResourceLimitExceededExceptionResponse = async (pa
2567
2028
  if (data.parameterName !== undefined && data.parameterName !== null) {
2568
2029
  contents.parameterName = smithy_client_1.expectString(data.parameterName);
2569
2030
  }
2570
- return contents;
2031
+ const exception = new models_0_1.ResourceLimitExceededException({
2032
+ $metadata: deserializeMetadata(parsedOutput),
2033
+ ...contents,
2034
+ });
2035
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2571
2036
  };
2572
2037
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2573
- const contents = {
2574
- name: "ResourceNotFoundException",
2575
- $fault: "client",
2576
- $metadata: deserializeMetadata(parsedOutput),
2577
- message: undefined,
2578
- };
2038
+ const contents = {};
2579
2039
  const data = parsedOutput.body;
2580
2040
  if (data.message !== undefined && data.message !== null) {
2581
2041
  contents.message = smithy_client_1.expectString(data.message);
2582
2042
  }
2583
- return contents;
2043
+ const exception = new models_0_1.ResourceNotFoundException({
2044
+ $metadata: deserializeMetadata(parsedOutput),
2045
+ ...contents,
2046
+ });
2047
+ return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2584
2048
  };
2585
2049
  const serializeAws_restJson1AntennaDownlinkConfig = (input, context) => {
2586
2050
  return {
@@ -2875,7 +2339,7 @@ const deserializeAws_restJson1ConfigDetails = (output, context) => {
2875
2339
  return { $unknown: Object.entries(output)[0] };
2876
2340
  };
2877
2341
  const deserializeAws_restJson1ConfigList = (output, context) => {
2878
- return (output || [])
2342
+ const retVal = (output || [])
2879
2343
  .filter((e) => e != null)
2880
2344
  .map((entry) => {
2881
2345
  if (entry === null) {
@@ -2883,6 +2347,7 @@ const deserializeAws_restJson1ConfigList = (output, context) => {
2883
2347
  }
2884
2348
  return deserializeAws_restJson1ConfigListItem(entry, context);
2885
2349
  });
2350
+ return retVal;
2886
2351
  };
2887
2352
  const deserializeAws_restJson1ConfigListItem = (output, context) => {
2888
2353
  return {
@@ -2960,7 +2425,7 @@ const deserializeAws_restJson1ContactData = (output, context) => {
2960
2425
  };
2961
2426
  };
2962
2427
  const deserializeAws_restJson1ContactList = (output, context) => {
2963
- return (output || [])
2428
+ const retVal = (output || [])
2964
2429
  .filter((e) => e != null)
2965
2430
  .map((entry) => {
2966
2431
  if (entry === null) {
@@ -2968,6 +2433,7 @@ const deserializeAws_restJson1ContactList = (output, context) => {
2968
2433
  }
2969
2434
  return deserializeAws_restJson1ContactData(entry, context);
2970
2435
  });
2436
+ return retVal;
2971
2437
  };
2972
2438
  const deserializeAws_restJson1DataflowDetail = (output, context) => {
2973
2439
  return {
@@ -2981,7 +2447,7 @@ const deserializeAws_restJson1DataflowDetail = (output, context) => {
2981
2447
  };
2982
2448
  };
2983
2449
  const deserializeAws_restJson1DataflowEdge = (output, context) => {
2984
- return (output || [])
2450
+ const retVal = (output || [])
2985
2451
  .filter((e) => e != null)
2986
2452
  .map((entry) => {
2987
2453
  if (entry === null) {
@@ -2989,9 +2455,10 @@ const deserializeAws_restJson1DataflowEdge = (output, context) => {
2989
2455
  }
2990
2456
  return smithy_client_1.expectString(entry);
2991
2457
  });
2458
+ return retVal;
2992
2459
  };
2993
2460
  const deserializeAws_restJson1DataflowEdgeList = (output, context) => {
2994
- return (output || [])
2461
+ const retVal = (output || [])
2995
2462
  .filter((e) => e != null)
2996
2463
  .map((entry) => {
2997
2464
  if (entry === null) {
@@ -2999,6 +2466,7 @@ const deserializeAws_restJson1DataflowEdgeList = (output, context) => {
2999
2466
  }
3000
2467
  return deserializeAws_restJson1DataflowEdge(entry, context);
3001
2468
  });
2469
+ return retVal;
3002
2470
  };
3003
2471
  const deserializeAws_restJson1DataflowEndpoint = (output, context) => {
3004
2472
  return {
@@ -3017,7 +2485,7 @@ const deserializeAws_restJson1DataflowEndpointConfig = (output, context) => {
3017
2485
  };
3018
2486
  };
3019
2487
  const deserializeAws_restJson1DataflowEndpointGroupList = (output, context) => {
3020
- return (output || [])
2488
+ const retVal = (output || [])
3021
2489
  .filter((e) => e != null)
3022
2490
  .map((entry) => {
3023
2491
  if (entry === null) {
@@ -3025,6 +2493,7 @@ const deserializeAws_restJson1DataflowEndpointGroupList = (output, context) => {
3025
2493
  }
3026
2494
  return deserializeAws_restJson1DataflowEndpointListItem(entry, context);
3027
2495
  });
2496
+ return retVal;
3028
2497
  };
3029
2498
  const deserializeAws_restJson1DataflowEndpointListItem = (output, context) => {
3030
2499
  return {
@@ -3033,7 +2502,7 @@ const deserializeAws_restJson1DataflowEndpointListItem = (output, context) => {
3033
2502
  };
3034
2503
  };
3035
2504
  const deserializeAws_restJson1DataflowList = (output, context) => {
3036
- return (output || [])
2505
+ const retVal = (output || [])
3037
2506
  .filter((e) => e != null)
3038
2507
  .map((entry) => {
3039
2508
  if (entry === null) {
@@ -3041,6 +2510,7 @@ const deserializeAws_restJson1DataflowList = (output, context) => {
3041
2510
  }
3042
2511
  return deserializeAws_restJson1DataflowDetail(entry, context);
3043
2512
  });
2513
+ return retVal;
3044
2514
  };
3045
2515
  const deserializeAws_restJson1DecodeConfig = (output, context) => {
3046
2516
  return {
@@ -3085,7 +2555,7 @@ const deserializeAws_restJson1EndpointDetails = (output, context) => {
3085
2555
  };
3086
2556
  };
3087
2557
  const deserializeAws_restJson1EndpointDetailsList = (output, context) => {
3088
- return (output || [])
2558
+ const retVal = (output || [])
3089
2559
  .filter((e) => e != null)
3090
2560
  .map((entry) => {
3091
2561
  if (entry === null) {
@@ -3093,6 +2563,7 @@ const deserializeAws_restJson1EndpointDetailsList = (output, context) => {
3093
2563
  }
3094
2564
  return deserializeAws_restJson1EndpointDetails(entry, context);
3095
2565
  });
2566
+ return retVal;
3096
2567
  };
3097
2568
  const deserializeAws_restJson1Frequency = (output, context) => {
3098
2569
  return {
@@ -3114,7 +2585,7 @@ const deserializeAws_restJson1GroundStationData = (output, context) => {
3114
2585
  };
3115
2586
  };
3116
2587
  const deserializeAws_restJson1GroundStationIdList = (output, context) => {
3117
- return (output || [])
2588
+ const retVal = (output || [])
3118
2589
  .filter((e) => e != null)
3119
2590
  .map((entry) => {
3120
2591
  if (entry === null) {
@@ -3122,9 +2593,10 @@ const deserializeAws_restJson1GroundStationIdList = (output, context) => {
3122
2593
  }
3123
2594
  return smithy_client_1.expectString(entry);
3124
2595
  });
2596
+ return retVal;
3125
2597
  };
3126
2598
  const deserializeAws_restJson1GroundStationList = (output, context) => {
3127
- return (output || [])
2599
+ const retVal = (output || [])
3128
2600
  .filter((e) => e != null)
3129
2601
  .map((entry) => {
3130
2602
  if (entry === null) {
@@ -3132,9 +2604,10 @@ const deserializeAws_restJson1GroundStationList = (output, context) => {
3132
2604
  }
3133
2605
  return deserializeAws_restJson1GroundStationData(entry, context);
3134
2606
  });
2607
+ return retVal;
3135
2608
  };
3136
2609
  const deserializeAws_restJson1MissionProfileList = (output, context) => {
3137
- return (output || [])
2610
+ const retVal = (output || [])
3138
2611
  .filter((e) => e != null)
3139
2612
  .map((entry) => {
3140
2613
  if (entry === null) {
@@ -3142,6 +2615,7 @@ const deserializeAws_restJson1MissionProfileList = (output, context) => {
3142
2615
  }
3143
2616
  return deserializeAws_restJson1MissionProfileListItem(entry, context);
3144
2617
  });
2618
+ return retVal;
3145
2619
  };
3146
2620
  const deserializeAws_restJson1MissionProfileListItem = (output, context) => {
3147
2621
  return {
@@ -3165,7 +2639,7 @@ const deserializeAws_restJson1S3RecordingDetails = (output, context) => {
3165
2639
  };
3166
2640
  };
3167
2641
  const deserializeAws_restJson1SatelliteList = (output, context) => {
3168
- return (output || [])
2642
+ const retVal = (output || [])
3169
2643
  .filter((e) => e != null)
3170
2644
  .map((entry) => {
3171
2645
  if (entry === null) {
@@ -3173,6 +2647,7 @@ const deserializeAws_restJson1SatelliteList = (output, context) => {
3173
2647
  }
3174
2648
  return deserializeAws_restJson1SatelliteListItem(entry, context);
3175
2649
  });
2650
+ return retVal;
3176
2651
  };
3177
2652
  const deserializeAws_restJson1SatelliteListItem = (output, context) => {
3178
2653
  return {
@@ -3196,7 +2671,7 @@ const deserializeAws_restJson1SecurityDetails = (output, context) => {
3196
2671
  };
3197
2672
  };
3198
2673
  const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
3199
- return (output || [])
2674
+ const retVal = (output || [])
3200
2675
  .filter((e) => e != null)
3201
2676
  .map((entry) => {
3202
2677
  if (entry === null) {
@@ -3204,6 +2679,7 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
3204
2679
  }
3205
2680
  return smithy_client_1.expectString(entry);
3206
2681
  });
2682
+ return retVal;
3207
2683
  };
3208
2684
  const deserializeAws_restJson1SocketAddress = (output, context) => {
3209
2685
  return {
@@ -3233,7 +2709,7 @@ const deserializeAws_restJson1SpectrumConfig = (output, context) => {
3233
2709
  };
3234
2710
  };
3235
2711
  const deserializeAws_restJson1SubnetList = (output, context) => {
3236
- return (output || [])
2712
+ const retVal = (output || [])
3237
2713
  .filter((e) => e != null)
3238
2714
  .map((entry) => {
3239
2715
  if (entry === null) {
@@ -3241,6 +2717,7 @@ const deserializeAws_restJson1SubnetList = (output, context) => {
3241
2717
  }
3242
2718
  return smithy_client_1.expectString(entry);
3243
2719
  });
2720
+ return retVal;
3244
2721
  };
3245
2722
  const deserializeAws_restJson1TagsMap = (output, context) => {
3246
2723
  return Object.entries(output).reduce((acc, [key, value]) => {