@aws-sdk/client-groundstation 3.504.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -927,7 +927,7 @@ var se_UpdateMissionProfileCommand = /* @__PURE__ */ __name(async (input, contex
927
927
  }, "se_UpdateMissionProfileCommand");
928
928
  var de_CancelContactCommand = /* @__PURE__ */ __name(async (output, context) => {
929
929
  if (output.statusCode !== 200 && output.statusCode >= 300) {
930
- return de_CancelContactCommandError(output, context);
930
+ return de_CommandError(output, context);
931
931
  }
932
932
  const contents = (0, import_smithy_client.map)({
933
933
  $metadata: deserializeMetadata(output)
@@ -939,34 +939,9 @@ var de_CancelContactCommand = /* @__PURE__ */ __name(async (output, context) =>
939
939
  Object.assign(contents, doc);
940
940
  return contents;
941
941
  }, "de_CancelContactCommand");
942
- var de_CancelContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
943
- const parsedOutput = {
944
- ...output,
945
- body: await parseErrorBody(output.body, context)
946
- };
947
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
948
- switch (errorCode) {
949
- case "DependencyException":
950
- case "com.amazonaws.groundstation#DependencyException":
951
- throw await de_DependencyExceptionRes(parsedOutput, context);
952
- case "InvalidParameterException":
953
- case "com.amazonaws.groundstation#InvalidParameterException":
954
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
955
- case "ResourceNotFoundException":
956
- case "com.amazonaws.groundstation#ResourceNotFoundException":
957
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
958
- default:
959
- const parsedBody = parsedOutput.body;
960
- return throwDefaultError({
961
- output,
962
- parsedBody,
963
- errorCode
964
- });
965
- }
966
- }, "de_CancelContactCommandError");
967
942
  var de_CreateConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
968
943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
969
- return de_CreateConfigCommandError(output, context);
944
+ return de_CommandError(output, context);
970
945
  }
971
946
  const contents = (0, import_smithy_client.map)({
972
947
  $metadata: deserializeMetadata(output)
@@ -980,37 +955,9 @@ var de_CreateConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
980
955
  Object.assign(contents, doc);
981
956
  return contents;
982
957
  }, "de_CreateConfigCommand");
983
- var de_CreateConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
984
- const parsedOutput = {
985
- ...output,
986
- body: await parseErrorBody(output.body, context)
987
- };
988
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
989
- switch (errorCode) {
990
- case "DependencyException":
991
- case "com.amazonaws.groundstation#DependencyException":
992
- throw await de_DependencyExceptionRes(parsedOutput, context);
993
- case "InvalidParameterException":
994
- case "com.amazonaws.groundstation#InvalidParameterException":
995
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
996
- case "ResourceLimitExceededException":
997
- case "com.amazonaws.groundstation#ResourceLimitExceededException":
998
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
999
- case "ResourceNotFoundException":
1000
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1001
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1002
- default:
1003
- const parsedBody = parsedOutput.body;
1004
- return throwDefaultError({
1005
- output,
1006
- parsedBody,
1007
- errorCode
1008
- });
1009
- }
1010
- }, "de_CreateConfigCommandError");
1011
958
  var de_CreateDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1012
959
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1013
- return de_CreateDataflowEndpointGroupCommandError(output, context);
960
+ return de_CommandError(output, context);
1014
961
  }
1015
962
  const contents = (0, import_smithy_client.map)({
1016
963
  $metadata: deserializeMetadata(output)
@@ -1022,34 +969,9 @@ var de_CreateDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output
1022
969
  Object.assign(contents, doc);
1023
970
  return contents;
1024
971
  }, "de_CreateDataflowEndpointGroupCommand");
1025
- var de_CreateDataflowEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1026
- const parsedOutput = {
1027
- ...output,
1028
- body: await parseErrorBody(output.body, context)
1029
- };
1030
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1031
- switch (errorCode) {
1032
- case "DependencyException":
1033
- case "com.amazonaws.groundstation#DependencyException":
1034
- throw await de_DependencyExceptionRes(parsedOutput, context);
1035
- case "InvalidParameterException":
1036
- case "com.amazonaws.groundstation#InvalidParameterException":
1037
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1038
- case "ResourceNotFoundException":
1039
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1040
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1041
- default:
1042
- const parsedBody = parsedOutput.body;
1043
- return throwDefaultError({
1044
- output,
1045
- parsedBody,
1046
- errorCode
1047
- });
1048
- }
1049
- }, "de_CreateDataflowEndpointGroupCommandError");
1050
972
  var de_CreateEphemerisCommand = /* @__PURE__ */ __name(async (output, context) => {
1051
973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1052
- return de_CreateEphemerisCommandError(output, context);
974
+ return de_CommandError(output, context);
1053
975
  }
1054
976
  const contents = (0, import_smithy_client.map)({
1055
977
  $metadata: deserializeMetadata(output)
@@ -1061,34 +983,9 @@ var de_CreateEphemerisCommand = /* @__PURE__ */ __name(async (output, context) =
1061
983
  Object.assign(contents, doc);
1062
984
  return contents;
1063
985
  }, "de_CreateEphemerisCommand");
1064
- var de_CreateEphemerisCommandError = /* @__PURE__ */ __name(async (output, context) => {
1065
- const parsedOutput = {
1066
- ...output,
1067
- body: await parseErrorBody(output.body, context)
1068
- };
1069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1070
- switch (errorCode) {
1071
- case "DependencyException":
1072
- case "com.amazonaws.groundstation#DependencyException":
1073
- throw await de_DependencyExceptionRes(parsedOutput, context);
1074
- case "InvalidParameterException":
1075
- case "com.amazonaws.groundstation#InvalidParameterException":
1076
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1077
- case "ResourceNotFoundException":
1078
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1079
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1080
- default:
1081
- const parsedBody = parsedOutput.body;
1082
- return throwDefaultError({
1083
- output,
1084
- parsedBody,
1085
- errorCode
1086
- });
1087
- }
1088
- }, "de_CreateEphemerisCommandError");
1089
986
  var de_CreateMissionProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1090
987
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1091
- return de_CreateMissionProfileCommandError(output, context);
988
+ return de_CommandError(output, context);
1092
989
  }
1093
990
  const contents = (0, import_smithy_client.map)({
1094
991
  $metadata: deserializeMetadata(output)
@@ -1100,34 +997,9 @@ var de_CreateMissionProfileCommand = /* @__PURE__ */ __name(async (output, conte
1100
997
  Object.assign(contents, doc);
1101
998
  return contents;
1102
999
  }, "de_CreateMissionProfileCommand");
1103
- var de_CreateMissionProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1104
- const parsedOutput = {
1105
- ...output,
1106
- body: await parseErrorBody(output.body, context)
1107
- };
1108
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1109
- switch (errorCode) {
1110
- case "DependencyException":
1111
- case "com.amazonaws.groundstation#DependencyException":
1112
- throw await de_DependencyExceptionRes(parsedOutput, context);
1113
- case "InvalidParameterException":
1114
- case "com.amazonaws.groundstation#InvalidParameterException":
1115
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1116
- case "ResourceNotFoundException":
1117
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1118
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1119
- default:
1120
- const parsedBody = parsedOutput.body;
1121
- return throwDefaultError({
1122
- output,
1123
- parsedBody,
1124
- errorCode
1125
- });
1126
- }
1127
- }, "de_CreateMissionProfileCommandError");
1128
1000
  var de_DeleteConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1129
1001
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
- return de_DeleteConfigCommandError(output, context);
1002
+ return de_CommandError(output, context);
1131
1003
  }
1132
1004
  const contents = (0, import_smithy_client.map)({
1133
1005
  $metadata: deserializeMetadata(output)
@@ -1141,34 +1013,9 @@ var de_DeleteConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1141
1013
  Object.assign(contents, doc);
1142
1014
  return contents;
1143
1015
  }, "de_DeleteConfigCommand");
1144
- var de_DeleteConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1145
- const parsedOutput = {
1146
- ...output,
1147
- body: await parseErrorBody(output.body, context)
1148
- };
1149
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
- switch (errorCode) {
1151
- case "DependencyException":
1152
- case "com.amazonaws.groundstation#DependencyException":
1153
- throw await de_DependencyExceptionRes(parsedOutput, context);
1154
- case "InvalidParameterException":
1155
- case "com.amazonaws.groundstation#InvalidParameterException":
1156
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1157
- case "ResourceNotFoundException":
1158
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1159
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1160
- default:
1161
- const parsedBody = parsedOutput.body;
1162
- return throwDefaultError({
1163
- output,
1164
- parsedBody,
1165
- errorCode
1166
- });
1167
- }
1168
- }, "de_DeleteConfigCommandError");
1169
1016
  var de_DeleteDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1170
1017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1171
- return de_DeleteDataflowEndpointGroupCommandError(output, context);
1018
+ return de_CommandError(output, context);
1172
1019
  }
1173
1020
  const contents = (0, import_smithy_client.map)({
1174
1021
  $metadata: deserializeMetadata(output)
@@ -1180,34 +1027,9 @@ var de_DeleteDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output
1180
1027
  Object.assign(contents, doc);
1181
1028
  return contents;
1182
1029
  }, "de_DeleteDataflowEndpointGroupCommand");
1183
- var de_DeleteDataflowEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1184
- const parsedOutput = {
1185
- ...output,
1186
- body: await parseErrorBody(output.body, context)
1187
- };
1188
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
- switch (errorCode) {
1190
- case "DependencyException":
1191
- case "com.amazonaws.groundstation#DependencyException":
1192
- throw await de_DependencyExceptionRes(parsedOutput, context);
1193
- case "InvalidParameterException":
1194
- case "com.amazonaws.groundstation#InvalidParameterException":
1195
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1196
- case "ResourceNotFoundException":
1197
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1198
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1199
- default:
1200
- const parsedBody = parsedOutput.body;
1201
- return throwDefaultError({
1202
- output,
1203
- parsedBody,
1204
- errorCode
1205
- });
1206
- }
1207
- }, "de_DeleteDataflowEndpointGroupCommandError");
1208
1030
  var de_DeleteEphemerisCommand = /* @__PURE__ */ __name(async (output, context) => {
1209
1031
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
- return de_DeleteEphemerisCommandError(output, context);
1032
+ return de_CommandError(output, context);
1211
1033
  }
1212
1034
  const contents = (0, import_smithy_client.map)({
1213
1035
  $metadata: deserializeMetadata(output)
@@ -1219,34 +1041,9 @@ var de_DeleteEphemerisCommand = /* @__PURE__ */ __name(async (output, context) =
1219
1041
  Object.assign(contents, doc);
1220
1042
  return contents;
1221
1043
  }, "de_DeleteEphemerisCommand");
1222
- var de_DeleteEphemerisCommandError = /* @__PURE__ */ __name(async (output, context) => {
1223
- const parsedOutput = {
1224
- ...output,
1225
- body: await parseErrorBody(output.body, context)
1226
- };
1227
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
- switch (errorCode) {
1229
- case "DependencyException":
1230
- case "com.amazonaws.groundstation#DependencyException":
1231
- throw await de_DependencyExceptionRes(parsedOutput, context);
1232
- case "InvalidParameterException":
1233
- case "com.amazonaws.groundstation#InvalidParameterException":
1234
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1235
- case "ResourceNotFoundException":
1236
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1237
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1238
- default:
1239
- const parsedBody = parsedOutput.body;
1240
- return throwDefaultError({
1241
- output,
1242
- parsedBody,
1243
- errorCode
1244
- });
1245
- }
1246
- }, "de_DeleteEphemerisCommandError");
1247
1044
  var de_DeleteMissionProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1248
1045
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
- return de_DeleteMissionProfileCommandError(output, context);
1046
+ return de_CommandError(output, context);
1250
1047
  }
1251
1048
  const contents = (0, import_smithy_client.map)({
1252
1049
  $metadata: deserializeMetadata(output)
@@ -1258,34 +1055,9 @@ var de_DeleteMissionProfileCommand = /* @__PURE__ */ __name(async (output, conte
1258
1055
  Object.assign(contents, doc);
1259
1056
  return contents;
1260
1057
  }, "de_DeleteMissionProfileCommand");
1261
- var de_DeleteMissionProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1262
- const parsedOutput = {
1263
- ...output,
1264
- body: await parseErrorBody(output.body, context)
1265
- };
1266
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1267
- switch (errorCode) {
1268
- case "DependencyException":
1269
- case "com.amazonaws.groundstation#DependencyException":
1270
- throw await de_DependencyExceptionRes(parsedOutput, context);
1271
- case "InvalidParameterException":
1272
- case "com.amazonaws.groundstation#InvalidParameterException":
1273
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1274
- case "ResourceNotFoundException":
1275
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1276
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1277
- default:
1278
- const parsedBody = parsedOutput.body;
1279
- return throwDefaultError({
1280
- output,
1281
- parsedBody,
1282
- errorCode
1283
- });
1284
- }
1285
- }, "de_DeleteMissionProfileCommandError");
1286
1058
  var de_DescribeContactCommand = /* @__PURE__ */ __name(async (output, context) => {
1287
1059
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1288
- return de_DescribeContactCommandError(output, context);
1060
+ return de_CommandError(output, context);
1289
1061
  }
1290
1062
  const contents = (0, import_smithy_client.map)({
1291
1063
  $metadata: deserializeMetadata(output)
@@ -1310,34 +1082,9 @@ var de_DescribeContactCommand = /* @__PURE__ */ __name(async (output, context) =
1310
1082
  Object.assign(contents, doc);
1311
1083
  return contents;
1312
1084
  }, "de_DescribeContactCommand");
1313
- var de_DescribeContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
1314
- const parsedOutput = {
1315
- ...output,
1316
- body: await parseErrorBody(output.body, context)
1317
- };
1318
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1319
- switch (errorCode) {
1320
- case "DependencyException":
1321
- case "com.amazonaws.groundstation#DependencyException":
1322
- throw await de_DependencyExceptionRes(parsedOutput, context);
1323
- case "InvalidParameterException":
1324
- case "com.amazonaws.groundstation#InvalidParameterException":
1325
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1326
- case "ResourceNotFoundException":
1327
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1328
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1329
- default:
1330
- const parsedBody = parsedOutput.body;
1331
- return throwDefaultError({
1332
- output,
1333
- parsedBody,
1334
- errorCode
1335
- });
1336
- }
1337
- }, "de_DescribeContactCommandError");
1338
1085
  var de_DescribeEphemerisCommand = /* @__PURE__ */ __name(async (output, context) => {
1339
1086
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1340
- return de_DescribeEphemerisCommandError(output, context);
1087
+ return de_CommandError(output, context);
1341
1088
  }
1342
1089
  const contents = (0, import_smithy_client.map)({
1343
1090
  $metadata: deserializeMetadata(output)
@@ -1358,34 +1105,9 @@ var de_DescribeEphemerisCommand = /* @__PURE__ */ __name(async (output, context)
1358
1105
  Object.assign(contents, doc);
1359
1106
  return contents;
1360
1107
  }, "de_DescribeEphemerisCommand");
1361
- var de_DescribeEphemerisCommandError = /* @__PURE__ */ __name(async (output, context) => {
1362
- const parsedOutput = {
1363
- ...output,
1364
- body: await parseErrorBody(output.body, context)
1365
- };
1366
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1367
- switch (errorCode) {
1368
- case "DependencyException":
1369
- case "com.amazonaws.groundstation#DependencyException":
1370
- throw await de_DependencyExceptionRes(parsedOutput, context);
1371
- case "InvalidParameterException":
1372
- case "com.amazonaws.groundstation#InvalidParameterException":
1373
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1374
- case "ResourceNotFoundException":
1375
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1376
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1377
- default:
1378
- const parsedBody = parsedOutput.body;
1379
- return throwDefaultError({
1380
- output,
1381
- parsedBody,
1382
- errorCode
1383
- });
1384
- }
1385
- }, "de_DescribeEphemerisCommandError");
1386
1108
  var de_GetAgentConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1387
1109
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
- return de_GetAgentConfigurationCommandError(output, context);
1110
+ return de_CommandError(output, context);
1389
1111
  }
1390
1112
  const contents = (0, import_smithy_client.map)({
1391
1113
  $metadata: deserializeMetadata(output)
@@ -1398,34 +1120,9 @@ var de_GetAgentConfigurationCommand = /* @__PURE__ */ __name(async (output, cont
1398
1120
  Object.assign(contents, doc);
1399
1121
  return contents;
1400
1122
  }, "de_GetAgentConfigurationCommand");
1401
- var de_GetAgentConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1402
- const parsedOutput = {
1403
- ...output,
1404
- body: await parseErrorBody(output.body, context)
1405
- };
1406
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1407
- switch (errorCode) {
1408
- case "DependencyException":
1409
- case "com.amazonaws.groundstation#DependencyException":
1410
- throw await de_DependencyExceptionRes(parsedOutput, context);
1411
- case "InvalidParameterException":
1412
- case "com.amazonaws.groundstation#InvalidParameterException":
1413
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1414
- case "ResourceNotFoundException":
1415
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1416
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1417
- default:
1418
- const parsedBody = parsedOutput.body;
1419
- return throwDefaultError({
1420
- output,
1421
- parsedBody,
1422
- errorCode
1423
- });
1424
- }
1425
- }, "de_GetAgentConfigurationCommandError");
1426
1123
  var de_GetConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1427
1124
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1428
- return de_GetConfigCommandError(output, context);
1125
+ return de_CommandError(output, context);
1429
1126
  }
1430
1127
  const contents = (0, import_smithy_client.map)({
1431
1128
  $metadata: deserializeMetadata(output)
@@ -1442,34 +1139,9 @@ var de_GetConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
1442
1139
  Object.assign(contents, doc);
1443
1140
  return contents;
1444
1141
  }, "de_GetConfigCommand");
1445
- var de_GetConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
1446
- const parsedOutput = {
1447
- ...output,
1448
- body: await parseErrorBody(output.body, context)
1449
- };
1450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1451
- switch (errorCode) {
1452
- case "DependencyException":
1453
- case "com.amazonaws.groundstation#DependencyException":
1454
- throw await de_DependencyExceptionRes(parsedOutput, context);
1455
- case "InvalidParameterException":
1456
- case "com.amazonaws.groundstation#InvalidParameterException":
1457
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1458
- case "ResourceNotFoundException":
1459
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1460
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1461
- default:
1462
- const parsedBody = parsedOutput.body;
1463
- return throwDefaultError({
1464
- output,
1465
- parsedBody,
1466
- errorCode
1467
- });
1468
- }
1469
- }, "de_GetConfigCommandError");
1470
1142
  var de_GetDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1471
1143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
- return de_GetDataflowEndpointGroupCommandError(output, context);
1144
+ return de_CommandError(output, context);
1473
1145
  }
1474
1146
  const contents = (0, import_smithy_client.map)({
1475
1147
  $metadata: deserializeMetadata(output)
@@ -1486,34 +1158,9 @@ var de_GetDataflowEndpointGroupCommand = /* @__PURE__ */ __name(async (output, c
1486
1158
  Object.assign(contents, doc);
1487
1159
  return contents;
1488
1160
  }, "de_GetDataflowEndpointGroupCommand");
1489
- var de_GetDataflowEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1490
- const parsedOutput = {
1491
- ...output,
1492
- body: await parseErrorBody(output.body, context)
1493
- };
1494
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1495
- switch (errorCode) {
1496
- case "DependencyException":
1497
- case "com.amazonaws.groundstation#DependencyException":
1498
- throw await de_DependencyExceptionRes(parsedOutput, context);
1499
- case "InvalidParameterException":
1500
- case "com.amazonaws.groundstation#InvalidParameterException":
1501
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1502
- case "ResourceNotFoundException":
1503
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1504
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1505
- default:
1506
- const parsedBody = parsedOutput.body;
1507
- return throwDefaultError({
1508
- output,
1509
- parsedBody,
1510
- errorCode
1511
- });
1512
- }
1513
- }, "de_GetDataflowEndpointGroupCommandError");
1514
1161
  var de_GetMinuteUsageCommand = /* @__PURE__ */ __name(async (output, context) => {
1515
1162
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1516
- return de_GetMinuteUsageCommandError(output, context);
1163
+ return de_CommandError(output, context);
1517
1164
  }
1518
1165
  const contents = (0, import_smithy_client.map)({
1519
1166
  $metadata: deserializeMetadata(output)
@@ -1529,34 +1176,9 @@ var de_GetMinuteUsageCommand = /* @__PURE__ */ __name(async (output, context) =>
1529
1176
  Object.assign(contents, doc);
1530
1177
  return contents;
1531
1178
  }, "de_GetMinuteUsageCommand");
1532
- var de_GetMinuteUsageCommandError = /* @__PURE__ */ __name(async (output, context) => {
1533
- const parsedOutput = {
1534
- ...output,
1535
- body: await parseErrorBody(output.body, context)
1536
- };
1537
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1538
- switch (errorCode) {
1539
- case "DependencyException":
1540
- case "com.amazonaws.groundstation#DependencyException":
1541
- throw await de_DependencyExceptionRes(parsedOutput, context);
1542
- case "InvalidParameterException":
1543
- case "com.amazonaws.groundstation#InvalidParameterException":
1544
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1545
- case "ResourceNotFoundException":
1546
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1547
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1548
- default:
1549
- const parsedBody = parsedOutput.body;
1550
- return throwDefaultError({
1551
- output,
1552
- parsedBody,
1553
- errorCode
1554
- });
1555
- }
1556
- }, "de_GetMinuteUsageCommandError");
1557
1179
  var de_GetMissionProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1558
1180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1559
- return de_GetMissionProfileCommandError(output, context);
1181
+ return de_CommandError(output, context);
1560
1182
  }
1561
1183
  const contents = (0, import_smithy_client.map)({
1562
1184
  $metadata: deserializeMetadata(output)
@@ -1579,34 +1201,9 @@ var de_GetMissionProfileCommand = /* @__PURE__ */ __name(async (output, context)
1579
1201
  Object.assign(contents, doc);
1580
1202
  return contents;
1581
1203
  }, "de_GetMissionProfileCommand");
1582
- var de_GetMissionProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1583
- const parsedOutput = {
1584
- ...output,
1585
- body: await parseErrorBody(output.body, context)
1586
- };
1587
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1588
- switch (errorCode) {
1589
- case "DependencyException":
1590
- case "com.amazonaws.groundstation#DependencyException":
1591
- throw await de_DependencyExceptionRes(parsedOutput, context);
1592
- case "InvalidParameterException":
1593
- case "com.amazonaws.groundstation#InvalidParameterException":
1594
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1595
- case "ResourceNotFoundException":
1596
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1597
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1598
- default:
1599
- const parsedBody = parsedOutput.body;
1600
- return throwDefaultError({
1601
- output,
1602
- parsedBody,
1603
- errorCode
1604
- });
1605
- }
1606
- }, "de_GetMissionProfileCommandError");
1607
1204
  var de_GetSatelliteCommand = /* @__PURE__ */ __name(async (output, context) => {
1608
1205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1609
- return de_GetSatelliteCommandError(output, context);
1206
+ return de_CommandError(output, context);
1610
1207
  }
1611
1208
  const contents = (0, import_smithy_client.map)({
1612
1209
  $metadata: deserializeMetadata(output)
@@ -1622,34 +1219,9 @@ var de_GetSatelliteCommand = /* @__PURE__ */ __name(async (output, context) => {
1622
1219
  Object.assign(contents, doc);
1623
1220
  return contents;
1624
1221
  }, "de_GetSatelliteCommand");
1625
- var de_GetSatelliteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1626
- const parsedOutput = {
1627
- ...output,
1628
- body: await parseErrorBody(output.body, context)
1629
- };
1630
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1631
- switch (errorCode) {
1632
- case "DependencyException":
1633
- case "com.amazonaws.groundstation#DependencyException":
1634
- throw await de_DependencyExceptionRes(parsedOutput, context);
1635
- case "InvalidParameterException":
1636
- case "com.amazonaws.groundstation#InvalidParameterException":
1637
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1638
- case "ResourceNotFoundException":
1639
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1640
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1641
- default:
1642
- const parsedBody = parsedOutput.body;
1643
- return throwDefaultError({
1644
- output,
1645
- parsedBody,
1646
- errorCode
1647
- });
1648
- }
1649
- }, "de_GetSatelliteCommandError");
1650
1222
  var de_ListConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
1651
1223
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1652
- return de_ListConfigsCommandError(output, context);
1224
+ return de_CommandError(output, context);
1653
1225
  }
1654
1226
  const contents = (0, import_smithy_client.map)({
1655
1227
  $metadata: deserializeMetadata(output)
@@ -1662,34 +1234,9 @@ var de_ListConfigsCommand = /* @__PURE__ */ __name(async (output, context) => {
1662
1234
  Object.assign(contents, doc);
1663
1235
  return contents;
1664
1236
  }, "de_ListConfigsCommand");
1665
- var de_ListConfigsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1666
- const parsedOutput = {
1667
- ...output,
1668
- body: await parseErrorBody(output.body, context)
1669
- };
1670
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1671
- switch (errorCode) {
1672
- case "DependencyException":
1673
- case "com.amazonaws.groundstation#DependencyException":
1674
- throw await de_DependencyExceptionRes(parsedOutput, context);
1675
- case "InvalidParameterException":
1676
- case "com.amazonaws.groundstation#InvalidParameterException":
1677
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1678
- case "ResourceNotFoundException":
1679
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1680
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1681
- default:
1682
- const parsedBody = parsedOutput.body;
1683
- return throwDefaultError({
1684
- output,
1685
- parsedBody,
1686
- errorCode
1687
- });
1688
- }
1689
- }, "de_ListConfigsCommandError");
1690
1237
  var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
1691
1238
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1692
- return de_ListContactsCommandError(output, context);
1239
+ return de_CommandError(output, context);
1693
1240
  }
1694
1241
  const contents = (0, import_smithy_client.map)({
1695
1242
  $metadata: deserializeMetadata(output)
@@ -1702,34 +1249,9 @@ var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
1702
1249
  Object.assign(contents, doc);
1703
1250
  return contents;
1704
1251
  }, "de_ListContactsCommand");
1705
- var de_ListContactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1706
- const parsedOutput = {
1707
- ...output,
1708
- body: await parseErrorBody(output.body, context)
1709
- };
1710
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1711
- switch (errorCode) {
1712
- case "DependencyException":
1713
- case "com.amazonaws.groundstation#DependencyException":
1714
- throw await de_DependencyExceptionRes(parsedOutput, context);
1715
- case "InvalidParameterException":
1716
- case "com.amazonaws.groundstation#InvalidParameterException":
1717
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1718
- case "ResourceNotFoundException":
1719
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1720
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1721
- default:
1722
- const parsedBody = parsedOutput.body;
1723
- return throwDefaultError({
1724
- output,
1725
- parsedBody,
1726
- errorCode
1727
- });
1728
- }
1729
- }, "de_ListContactsCommandError");
1730
1252
  var de_ListDataflowEndpointGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1731
1253
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1732
- return de_ListDataflowEndpointGroupsCommandError(output, context);
1254
+ return de_CommandError(output, context);
1733
1255
  }
1734
1256
  const contents = (0, import_smithy_client.map)({
1735
1257
  $metadata: deserializeMetadata(output)
@@ -1742,34 +1264,9 @@ var de_ListDataflowEndpointGroupsCommand = /* @__PURE__ */ __name(async (output,
1742
1264
  Object.assign(contents, doc);
1743
1265
  return contents;
1744
1266
  }, "de_ListDataflowEndpointGroupsCommand");
1745
- var de_ListDataflowEndpointGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1746
- const parsedOutput = {
1747
- ...output,
1748
- body: await parseErrorBody(output.body, context)
1749
- };
1750
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1751
- switch (errorCode) {
1752
- case "DependencyException":
1753
- case "com.amazonaws.groundstation#DependencyException":
1754
- throw await de_DependencyExceptionRes(parsedOutput, context);
1755
- case "InvalidParameterException":
1756
- case "com.amazonaws.groundstation#InvalidParameterException":
1757
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1758
- case "ResourceNotFoundException":
1759
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1760
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1761
- default:
1762
- const parsedBody = parsedOutput.body;
1763
- return throwDefaultError({
1764
- output,
1765
- parsedBody,
1766
- errorCode
1767
- });
1768
- }
1769
- }, "de_ListDataflowEndpointGroupsCommandError");
1770
1267
  var de_ListEphemeridesCommand = /* @__PURE__ */ __name(async (output, context) => {
1771
1268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1772
- return de_ListEphemeridesCommandError(output, context);
1269
+ return de_CommandError(output, context);
1773
1270
  }
1774
1271
  const contents = (0, import_smithy_client.map)({
1775
1272
  $metadata: deserializeMetadata(output)
@@ -1782,34 +1279,9 @@ var de_ListEphemeridesCommand = /* @__PURE__ */ __name(async (output, context) =
1782
1279
  Object.assign(contents, doc);
1783
1280
  return contents;
1784
1281
  }, "de_ListEphemeridesCommand");
1785
- var de_ListEphemeridesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1786
- const parsedOutput = {
1787
- ...output,
1788
- body: await parseErrorBody(output.body, context)
1789
- };
1790
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1791
- switch (errorCode) {
1792
- case "DependencyException":
1793
- case "com.amazonaws.groundstation#DependencyException":
1794
- throw await de_DependencyExceptionRes(parsedOutput, context);
1795
- case "InvalidParameterException":
1796
- case "com.amazonaws.groundstation#InvalidParameterException":
1797
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1798
- case "ResourceNotFoundException":
1799
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1800
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1801
- default:
1802
- const parsedBody = parsedOutput.body;
1803
- return throwDefaultError({
1804
- output,
1805
- parsedBody,
1806
- errorCode
1807
- });
1808
- }
1809
- }, "de_ListEphemeridesCommandError");
1810
1282
  var de_ListGroundStationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1811
1283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1812
- return de_ListGroundStationsCommandError(output, context);
1284
+ return de_CommandError(output, context);
1813
1285
  }
1814
1286
  const contents = (0, import_smithy_client.map)({
1815
1287
  $metadata: deserializeMetadata(output)
@@ -1822,34 +1294,9 @@ var de_ListGroundStationsCommand = /* @__PURE__ */ __name(async (output, context
1822
1294
  Object.assign(contents, doc);
1823
1295
  return contents;
1824
1296
  }, "de_ListGroundStationsCommand");
1825
- var de_ListGroundStationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1826
- const parsedOutput = {
1827
- ...output,
1828
- body: await parseErrorBody(output.body, context)
1829
- };
1830
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1831
- switch (errorCode) {
1832
- case "DependencyException":
1833
- case "com.amazonaws.groundstation#DependencyException":
1834
- throw await de_DependencyExceptionRes(parsedOutput, context);
1835
- case "InvalidParameterException":
1836
- case "com.amazonaws.groundstation#InvalidParameterException":
1837
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1838
- case "ResourceNotFoundException":
1839
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1840
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1841
- default:
1842
- const parsedBody = parsedOutput.body;
1843
- return throwDefaultError({
1844
- output,
1845
- parsedBody,
1846
- errorCode
1847
- });
1848
- }
1849
- }, "de_ListGroundStationsCommandError");
1850
1297
  var de_ListMissionProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
1851
1298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1852
- return de_ListMissionProfilesCommandError(output, context);
1299
+ return de_CommandError(output, context);
1853
1300
  }
1854
1301
  const contents = (0, import_smithy_client.map)({
1855
1302
  $metadata: deserializeMetadata(output)
@@ -1862,34 +1309,9 @@ var de_ListMissionProfilesCommand = /* @__PURE__ */ __name(async (output, contex
1862
1309
  Object.assign(contents, doc);
1863
1310
  return contents;
1864
1311
  }, "de_ListMissionProfilesCommand");
1865
- var de_ListMissionProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1866
- const parsedOutput = {
1867
- ...output,
1868
- body: await parseErrorBody(output.body, context)
1869
- };
1870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
- switch (errorCode) {
1872
- case "DependencyException":
1873
- case "com.amazonaws.groundstation#DependencyException":
1874
- throw await de_DependencyExceptionRes(parsedOutput, context);
1875
- case "InvalidParameterException":
1876
- case "com.amazonaws.groundstation#InvalidParameterException":
1877
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1878
- case "ResourceNotFoundException":
1879
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1880
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1881
- default:
1882
- const parsedBody = parsedOutput.body;
1883
- return throwDefaultError({
1884
- output,
1885
- parsedBody,
1886
- errorCode
1887
- });
1888
- }
1889
- }, "de_ListMissionProfilesCommandError");
1890
1312
  var de_ListSatellitesCommand = /* @__PURE__ */ __name(async (output, context) => {
1891
1313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1892
- return de_ListSatellitesCommandError(output, context);
1314
+ return de_CommandError(output, context);
1893
1315
  }
1894
1316
  const contents = (0, import_smithy_client.map)({
1895
1317
  $metadata: deserializeMetadata(output)
@@ -1902,34 +1324,9 @@ var de_ListSatellitesCommand = /* @__PURE__ */ __name(async (output, context) =>
1902
1324
  Object.assign(contents, doc);
1903
1325
  return contents;
1904
1326
  }, "de_ListSatellitesCommand");
1905
- var de_ListSatellitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1906
- const parsedOutput = {
1907
- ...output,
1908
- body: await parseErrorBody(output.body, context)
1909
- };
1910
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1911
- switch (errorCode) {
1912
- case "DependencyException":
1913
- case "com.amazonaws.groundstation#DependencyException":
1914
- throw await de_DependencyExceptionRes(parsedOutput, context);
1915
- case "InvalidParameterException":
1916
- case "com.amazonaws.groundstation#InvalidParameterException":
1917
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1918
- case "ResourceNotFoundException":
1919
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1920
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1921
- default:
1922
- const parsedBody = parsedOutput.body;
1923
- return throwDefaultError({
1924
- output,
1925
- parsedBody,
1926
- errorCode
1927
- });
1928
- }
1929
- }, "de_ListSatellitesCommandError");
1930
1327
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1931
1328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1932
- return de_ListTagsForResourceCommandError(output, context);
1329
+ return de_CommandError(output, context);
1933
1330
  }
1934
1331
  const contents = (0, import_smithy_client.map)({
1935
1332
  $metadata: deserializeMetadata(output)
@@ -1941,34 +1338,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1941
1338
  Object.assign(contents, doc);
1942
1339
  return contents;
1943
1340
  }, "de_ListTagsForResourceCommand");
1944
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1945
- const parsedOutput = {
1946
- ...output,
1947
- body: await parseErrorBody(output.body, context)
1948
- };
1949
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1950
- switch (errorCode) {
1951
- case "DependencyException":
1952
- case "com.amazonaws.groundstation#DependencyException":
1953
- throw await de_DependencyExceptionRes(parsedOutput, context);
1954
- case "InvalidParameterException":
1955
- case "com.amazonaws.groundstation#InvalidParameterException":
1956
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1957
- case "ResourceNotFoundException":
1958
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1959
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1960
- default:
1961
- const parsedBody = parsedOutput.body;
1962
- return throwDefaultError({
1963
- output,
1964
- parsedBody,
1965
- errorCode
1966
- });
1967
- }
1968
- }, "de_ListTagsForResourceCommandError");
1969
1341
  var de_RegisterAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
1970
1342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1971
- return de_RegisterAgentCommandError(output, context);
1343
+ return de_CommandError(output, context);
1972
1344
  }
1973
1345
  const contents = (0, import_smithy_client.map)({
1974
1346
  $metadata: deserializeMetadata(output)
@@ -1980,34 +1352,9 @@ var de_RegisterAgentCommand = /* @__PURE__ */ __name(async (output, context) =>
1980
1352
  Object.assign(contents, doc);
1981
1353
  return contents;
1982
1354
  }, "de_RegisterAgentCommand");
1983
- var de_RegisterAgentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1984
- const parsedOutput = {
1985
- ...output,
1986
- body: await parseErrorBody(output.body, context)
1987
- };
1988
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1989
- switch (errorCode) {
1990
- case "DependencyException":
1991
- case "com.amazonaws.groundstation#DependencyException":
1992
- throw await de_DependencyExceptionRes(parsedOutput, context);
1993
- case "InvalidParameterException":
1994
- case "com.amazonaws.groundstation#InvalidParameterException":
1995
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1996
- case "ResourceNotFoundException":
1997
- case "com.amazonaws.groundstation#ResourceNotFoundException":
1998
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1999
- default:
2000
- const parsedBody = parsedOutput.body;
2001
- return throwDefaultError({
2002
- output,
2003
- parsedBody,
2004
- errorCode
2005
- });
2006
- }
2007
- }, "de_RegisterAgentCommandError");
2008
1355
  var de_ReserveContactCommand = /* @__PURE__ */ __name(async (output, context) => {
2009
1356
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2010
- return de_ReserveContactCommandError(output, context);
1357
+ return de_CommandError(output, context);
2011
1358
  }
2012
1359
  const contents = (0, import_smithy_client.map)({
2013
1360
  $metadata: deserializeMetadata(output)
@@ -2019,34 +1366,9 @@ var de_ReserveContactCommand = /* @__PURE__ */ __name(async (output, context) =>
2019
1366
  Object.assign(contents, doc);
2020
1367
  return contents;
2021
1368
  }, "de_ReserveContactCommand");
2022
- var de_ReserveContactCommandError = /* @__PURE__ */ __name(async (output, context) => {
2023
- const parsedOutput = {
2024
- ...output,
2025
- body: await parseErrorBody(output.body, context)
2026
- };
2027
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2028
- switch (errorCode) {
2029
- case "DependencyException":
2030
- case "com.amazonaws.groundstation#DependencyException":
2031
- throw await de_DependencyExceptionRes(parsedOutput, context);
2032
- case "InvalidParameterException":
2033
- case "com.amazonaws.groundstation#InvalidParameterException":
2034
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2035
- case "ResourceNotFoundException":
2036
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2037
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2038
- default:
2039
- const parsedBody = parsedOutput.body;
2040
- return throwDefaultError({
2041
- output,
2042
- parsedBody,
2043
- errorCode
2044
- });
2045
- }
2046
- }, "de_ReserveContactCommandError");
2047
1369
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2048
1370
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2049
- return de_TagResourceCommandError(output, context);
1371
+ return de_CommandError(output, context);
2050
1372
  }
2051
1373
  const contents = (0, import_smithy_client.map)({
2052
1374
  $metadata: deserializeMetadata(output)
@@ -2054,34 +1376,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2054
1376
  await (0, import_smithy_client.collectBody)(output.body, context);
2055
1377
  return contents;
2056
1378
  }, "de_TagResourceCommand");
2057
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2058
- const parsedOutput = {
2059
- ...output,
2060
- body: await parseErrorBody(output.body, context)
2061
- };
2062
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2063
- switch (errorCode) {
2064
- case "DependencyException":
2065
- case "com.amazonaws.groundstation#DependencyException":
2066
- throw await de_DependencyExceptionRes(parsedOutput, context);
2067
- case "InvalidParameterException":
2068
- case "com.amazonaws.groundstation#InvalidParameterException":
2069
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2070
- case "ResourceNotFoundException":
2071
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2072
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2073
- default:
2074
- const parsedBody = parsedOutput.body;
2075
- return throwDefaultError({
2076
- output,
2077
- parsedBody,
2078
- errorCode
2079
- });
2080
- }
2081
- }, "de_TagResourceCommandError");
2082
1379
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2083
1380
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2084
- return de_UntagResourceCommandError(output, context);
1381
+ return de_CommandError(output, context);
2085
1382
  }
2086
1383
  const contents = (0, import_smithy_client.map)({
2087
1384
  $metadata: deserializeMetadata(output)
@@ -2089,34 +1386,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2089
1386
  await (0, import_smithy_client.collectBody)(output.body, context);
2090
1387
  return contents;
2091
1388
  }, "de_UntagResourceCommand");
2092
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2093
- const parsedOutput = {
2094
- ...output,
2095
- body: await parseErrorBody(output.body, context)
2096
- };
2097
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2098
- switch (errorCode) {
2099
- case "DependencyException":
2100
- case "com.amazonaws.groundstation#DependencyException":
2101
- throw await de_DependencyExceptionRes(parsedOutput, context);
2102
- case "InvalidParameterException":
2103
- case "com.amazonaws.groundstation#InvalidParameterException":
2104
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2105
- case "ResourceNotFoundException":
2106
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2108
- default:
2109
- const parsedBody = parsedOutput.body;
2110
- return throwDefaultError({
2111
- output,
2112
- parsedBody,
2113
- errorCode
2114
- });
2115
- }
2116
- }, "de_UntagResourceCommandError");
2117
1389
  var de_UpdateAgentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2118
1390
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2119
- return de_UpdateAgentStatusCommandError(output, context);
1391
+ return de_CommandError(output, context);
2120
1392
  }
2121
1393
  const contents = (0, import_smithy_client.map)({
2122
1394
  $metadata: deserializeMetadata(output)
@@ -2128,34 +1400,9 @@ var de_UpdateAgentStatusCommand = /* @__PURE__ */ __name(async (output, context)
2128
1400
  Object.assign(contents, doc);
2129
1401
  return contents;
2130
1402
  }, "de_UpdateAgentStatusCommand");
2131
- var de_UpdateAgentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2132
- const parsedOutput = {
2133
- ...output,
2134
- body: await parseErrorBody(output.body, context)
2135
- };
2136
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2137
- switch (errorCode) {
2138
- case "DependencyException":
2139
- case "com.amazonaws.groundstation#DependencyException":
2140
- throw await de_DependencyExceptionRes(parsedOutput, context);
2141
- case "InvalidParameterException":
2142
- case "com.amazonaws.groundstation#InvalidParameterException":
2143
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2144
- case "ResourceNotFoundException":
2145
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2146
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2147
- default:
2148
- const parsedBody = parsedOutput.body;
2149
- return throwDefaultError({
2150
- output,
2151
- parsedBody,
2152
- errorCode
2153
- });
2154
- }
2155
- }, "de_UpdateAgentStatusCommandError");
2156
1403
  var de_UpdateConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
2157
1404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2158
- return de_UpdateConfigCommandError(output, context);
1405
+ return de_CommandError(output, context);
2159
1406
  }
2160
1407
  const contents = (0, import_smithy_client.map)({
2161
1408
  $metadata: deserializeMetadata(output)
@@ -2169,34 +1416,9 @@ var de_UpdateConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
2169
1416
  Object.assign(contents, doc);
2170
1417
  return contents;
2171
1418
  }, "de_UpdateConfigCommand");
2172
- var de_UpdateConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
2173
- const parsedOutput = {
2174
- ...output,
2175
- body: await parseErrorBody(output.body, context)
2176
- };
2177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2178
- switch (errorCode) {
2179
- case "DependencyException":
2180
- case "com.amazonaws.groundstation#DependencyException":
2181
- throw await de_DependencyExceptionRes(parsedOutput, context);
2182
- case "InvalidParameterException":
2183
- case "com.amazonaws.groundstation#InvalidParameterException":
2184
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2185
- case "ResourceNotFoundException":
2186
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2187
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2188
- default:
2189
- const parsedBody = parsedOutput.body;
2190
- return throwDefaultError({
2191
- output,
2192
- parsedBody,
2193
- errorCode
2194
- });
2195
- }
2196
- }, "de_UpdateConfigCommandError");
2197
1419
  var de_UpdateEphemerisCommand = /* @__PURE__ */ __name(async (output, context) => {
2198
1420
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2199
- return de_UpdateEphemerisCommandError(output, context);
1421
+ return de_CommandError(output, context);
2200
1422
  }
2201
1423
  const contents = (0, import_smithy_client.map)({
2202
1424
  $metadata: deserializeMetadata(output)
@@ -2208,34 +1430,9 @@ var de_UpdateEphemerisCommand = /* @__PURE__ */ __name(async (output, context) =
2208
1430
  Object.assign(contents, doc);
2209
1431
  return contents;
2210
1432
  }, "de_UpdateEphemerisCommand");
2211
- var de_UpdateEphemerisCommandError = /* @__PURE__ */ __name(async (output, context) => {
2212
- const parsedOutput = {
2213
- ...output,
2214
- body: await parseErrorBody(output.body, context)
2215
- };
2216
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2217
- switch (errorCode) {
2218
- case "DependencyException":
2219
- case "com.amazonaws.groundstation#DependencyException":
2220
- throw await de_DependencyExceptionRes(parsedOutput, context);
2221
- case "InvalidParameterException":
2222
- case "com.amazonaws.groundstation#InvalidParameterException":
2223
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
2224
- case "ResourceNotFoundException":
2225
- case "com.amazonaws.groundstation#ResourceNotFoundException":
2226
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2227
- default:
2228
- const parsedBody = parsedOutput.body;
2229
- return throwDefaultError({
2230
- output,
2231
- parsedBody,
2232
- errorCode
2233
- });
2234
- }
2235
- }, "de_UpdateEphemerisCommandError");
2236
1433
  var de_UpdateMissionProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
2237
1434
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2238
- return de_UpdateMissionProfileCommandError(output, context);
1435
+ return de_CommandError(output, context);
2239
1436
  }
2240
1437
  const contents = (0, import_smithy_client.map)({
2241
1438
  $metadata: deserializeMetadata(output)
@@ -2247,7 +1444,7 @@ var de_UpdateMissionProfileCommand = /* @__PURE__ */ __name(async (output, conte
2247
1444
  Object.assign(contents, doc);
2248
1445
  return contents;
2249
1446
  }, "de_UpdateMissionProfileCommand");
2250
- var de_UpdateMissionProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1447
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2251
1448
  const parsedOutput = {
2252
1449
  ...output,
2253
1450
  body: await parseErrorBody(output.body, context)
@@ -2263,6 +1460,9 @@ var de_UpdateMissionProfileCommandError = /* @__PURE__ */ __name(async (output,
2263
1460
  case "ResourceNotFoundException":
2264
1461
  case "com.amazonaws.groundstation#ResourceNotFoundException":
2265
1462
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1463
+ case "ResourceLimitExceededException":
1464
+ case "com.amazonaws.groundstation#ResourceLimitExceededException":
1465
+ throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
2266
1466
  default:
2267
1467
  const parsedBody = parsedOutput.body;
2268
1468
  return throwDefaultError({
@@ -2271,7 +1471,7 @@ var de_UpdateMissionProfileCommandError = /* @__PURE__ */ __name(async (output,
2271
1471
  errorCode
2272
1472
  });
2273
1473
  }
2274
- }, "de_UpdateMissionProfileCommandError");
1474
+ }, "de_CommandError");
2275
1475
  var throwDefaultError = (0, import_smithy_client.withBaseException)(GroundStationServiceException);
2276
1476
  var de_DependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2277
1477
  const contents = (0, import_smithy_client.map)({});