@aws-sdk/client-groundstation 3.112.0 → 3.121.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +125 -101
- package/dist-es/protocols/Aws_restJson1.js +125 -101
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-groundstation
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-groundstation
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-groundstation
|
|
@@ -744,8 +744,7 @@ const deserializeAws_restJson1CancelContactCommandError = async (output, context
|
|
|
744
744
|
body: await parseBody(output.body, context),
|
|
745
745
|
};
|
|
746
746
|
let response;
|
|
747
|
-
|
|
748
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
747
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
749
748
|
switch (errorCode) {
|
|
750
749
|
case "DependencyException":
|
|
751
750
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -758,10 +757,12 @@ const deserializeAws_restJson1CancelContactCommandError = async (output, context
|
|
|
758
757
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
759
758
|
default:
|
|
760
759
|
const parsedBody = parsedOutput.body;
|
|
760
|
+
const $metadata = deserializeMetadata(output);
|
|
761
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
761
762
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
762
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
763
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
763
764
|
$fault: "client",
|
|
764
|
-
$metadata
|
|
765
|
+
$metadata,
|
|
765
766
|
});
|
|
766
767
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
767
768
|
}
|
|
@@ -795,8 +796,7 @@ const deserializeAws_restJson1CreateConfigCommandError = async (output, context)
|
|
|
795
796
|
body: await parseBody(output.body, context),
|
|
796
797
|
};
|
|
797
798
|
let response;
|
|
798
|
-
|
|
799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
800
800
|
switch (errorCode) {
|
|
801
801
|
case "DependencyException":
|
|
802
802
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -812,10 +812,12 @@ const deserializeAws_restJson1CreateConfigCommandError = async (output, context)
|
|
|
812
812
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
813
813
|
default:
|
|
814
814
|
const parsedBody = parsedOutput.body;
|
|
815
|
+
const $metadata = deserializeMetadata(output);
|
|
816
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
815
817
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
818
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
817
819
|
$fault: "client",
|
|
818
|
-
$metadata
|
|
820
|
+
$metadata,
|
|
819
821
|
});
|
|
820
822
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
821
823
|
}
|
|
@@ -841,8 +843,7 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
|
|
|
841
843
|
body: await parseBody(output.body, context),
|
|
842
844
|
};
|
|
843
845
|
let response;
|
|
844
|
-
|
|
845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
847
|
switch (errorCode) {
|
|
847
848
|
case "DependencyException":
|
|
848
849
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -855,10 +856,12 @@ const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (o
|
|
|
855
856
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
856
857
|
default:
|
|
857
858
|
const parsedBody = parsedOutput.body;
|
|
859
|
+
const $metadata = deserializeMetadata(output);
|
|
860
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
858
861
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
859
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
862
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
860
863
|
$fault: "client",
|
|
861
|
-
$metadata
|
|
864
|
+
$metadata,
|
|
862
865
|
});
|
|
863
866
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
864
867
|
}
|
|
@@ -884,8 +887,7 @@ const deserializeAws_restJson1CreateMissionProfileCommandError = async (output,
|
|
|
884
887
|
body: await parseBody(output.body, context),
|
|
885
888
|
};
|
|
886
889
|
let response;
|
|
887
|
-
|
|
888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
891
|
switch (errorCode) {
|
|
890
892
|
case "DependencyException":
|
|
891
893
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -898,10 +900,12 @@ const deserializeAws_restJson1CreateMissionProfileCommandError = async (output,
|
|
|
898
900
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
899
901
|
default:
|
|
900
902
|
const parsedBody = parsedOutput.body;
|
|
903
|
+
const $metadata = deserializeMetadata(output);
|
|
904
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
901
905
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
902
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
906
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
903
907
|
$fault: "client",
|
|
904
|
-
$metadata
|
|
908
|
+
$metadata,
|
|
905
909
|
});
|
|
906
910
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
907
911
|
}
|
|
@@ -935,8 +939,7 @@ const deserializeAws_restJson1DeleteConfigCommandError = async (output, context)
|
|
|
935
939
|
body: await parseBody(output.body, context),
|
|
936
940
|
};
|
|
937
941
|
let response;
|
|
938
|
-
|
|
939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
943
|
switch (errorCode) {
|
|
941
944
|
case "DependencyException":
|
|
942
945
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -949,10 +952,12 @@ const deserializeAws_restJson1DeleteConfigCommandError = async (output, context)
|
|
|
949
952
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
950
953
|
default:
|
|
951
954
|
const parsedBody = parsedOutput.body;
|
|
955
|
+
const $metadata = deserializeMetadata(output);
|
|
956
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
957
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
958
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
959
|
$fault: "client",
|
|
955
|
-
$metadata
|
|
960
|
+
$metadata,
|
|
956
961
|
});
|
|
957
962
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
963
|
}
|
|
@@ -978,8 +983,7 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
|
|
|
978
983
|
body: await parseBody(output.body, context),
|
|
979
984
|
};
|
|
980
985
|
let response;
|
|
981
|
-
|
|
982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
986
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
983
987
|
switch (errorCode) {
|
|
984
988
|
case "DependencyException":
|
|
985
989
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -992,10 +996,12 @@ const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (o
|
|
|
992
996
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
993
997
|
default:
|
|
994
998
|
const parsedBody = parsedOutput.body;
|
|
999
|
+
const $metadata = deserializeMetadata(output);
|
|
1000
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
995
1001
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
996
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1002
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
997
1003
|
$fault: "client",
|
|
998
|
-
$metadata
|
|
1004
|
+
$metadata,
|
|
999
1005
|
});
|
|
1000
1006
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1001
1007
|
}
|
|
@@ -1021,8 +1027,7 @@ const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output,
|
|
|
1021
1027
|
body: await parseBody(output.body, context),
|
|
1022
1028
|
};
|
|
1023
1029
|
let response;
|
|
1024
|
-
|
|
1025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1030
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
1031
|
switch (errorCode) {
|
|
1027
1032
|
case "DependencyException":
|
|
1028
1033
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1035,10 +1040,12 @@ const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output,
|
|
|
1035
1040
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1036
1041
|
default:
|
|
1037
1042
|
const parsedBody = parsedOutput.body;
|
|
1043
|
+
const $metadata = deserializeMetadata(output);
|
|
1044
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1038
1045
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1039
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1046
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1040
1047
|
$fault: "client",
|
|
1041
|
-
$metadata
|
|
1048
|
+
$metadata,
|
|
1042
1049
|
});
|
|
1043
1050
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1044
1051
|
}
|
|
@@ -1116,8 +1123,7 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
|
|
|
1116
1123
|
body: await parseBody(output.body, context),
|
|
1117
1124
|
};
|
|
1118
1125
|
let response;
|
|
1119
|
-
|
|
1120
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
1127
|
switch (errorCode) {
|
|
1122
1128
|
case "DependencyException":
|
|
1123
1129
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1130,10 +1136,12 @@ const deserializeAws_restJson1DescribeContactCommandError = async (output, conte
|
|
|
1130
1136
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1131
1137
|
default:
|
|
1132
1138
|
const parsedBody = parsedOutput.body;
|
|
1139
|
+
const $metadata = deserializeMetadata(output);
|
|
1140
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1133
1141
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1134
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1142
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1135
1143
|
$fault: "client",
|
|
1136
|
-
$metadata
|
|
1144
|
+
$metadata,
|
|
1137
1145
|
});
|
|
1138
1146
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1139
1147
|
}
|
|
@@ -1179,8 +1187,7 @@ const deserializeAws_restJson1GetConfigCommandError = async (output, context) =>
|
|
|
1179
1187
|
body: await parseBody(output.body, context),
|
|
1180
1188
|
};
|
|
1181
1189
|
let response;
|
|
1182
|
-
|
|
1183
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1184
1191
|
switch (errorCode) {
|
|
1185
1192
|
case "DependencyException":
|
|
1186
1193
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1193,10 +1200,12 @@ const deserializeAws_restJson1GetConfigCommandError = async (output, context) =>
|
|
|
1193
1200
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1194
1201
|
default:
|
|
1195
1202
|
const parsedBody = parsedOutput.body;
|
|
1203
|
+
const $metadata = deserializeMetadata(output);
|
|
1204
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1196
1205
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1197
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1198
1207
|
$fault: "client",
|
|
1199
|
-
$metadata
|
|
1208
|
+
$metadata,
|
|
1200
1209
|
});
|
|
1201
1210
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1202
1211
|
}
|
|
@@ -1234,8 +1243,7 @@ const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (outp
|
|
|
1234
1243
|
body: await parseBody(output.body, context),
|
|
1235
1244
|
};
|
|
1236
1245
|
let response;
|
|
1237
|
-
|
|
1238
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
1247
|
switch (errorCode) {
|
|
1240
1248
|
case "DependencyException":
|
|
1241
1249
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1248,10 +1256,12 @@ const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (outp
|
|
|
1248
1256
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1249
1257
|
default:
|
|
1250
1258
|
const parsedBody = parsedOutput.body;
|
|
1259
|
+
const $metadata = deserializeMetadata(output);
|
|
1260
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1251
1261
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1252
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1262
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1253
1263
|
$fault: "client",
|
|
1254
|
-
$metadata
|
|
1264
|
+
$metadata,
|
|
1255
1265
|
});
|
|
1256
1266
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1257
1267
|
}
|
|
@@ -1293,8 +1303,7 @@ const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, contex
|
|
|
1293
1303
|
body: await parseBody(output.body, context),
|
|
1294
1304
|
};
|
|
1295
1305
|
let response;
|
|
1296
|
-
|
|
1297
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1298
1307
|
switch (errorCode) {
|
|
1299
1308
|
case "DependencyException":
|
|
1300
1309
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1307,10 +1316,12 @@ const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, contex
|
|
|
1307
1316
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1308
1317
|
default:
|
|
1309
1318
|
const parsedBody = parsedOutput.body;
|
|
1319
|
+
const $metadata = deserializeMetadata(output);
|
|
1320
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1310
1321
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1311
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1322
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1312
1323
|
$fault: "client",
|
|
1313
|
-
$metadata
|
|
1324
|
+
$metadata,
|
|
1314
1325
|
});
|
|
1315
1326
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1316
1327
|
}
|
|
@@ -1372,8 +1383,7 @@ const deserializeAws_restJson1GetMissionProfileCommandError = async (output, con
|
|
|
1372
1383
|
body: await parseBody(output.body, context),
|
|
1373
1384
|
};
|
|
1374
1385
|
let response;
|
|
1375
|
-
|
|
1376
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1386
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1377
1387
|
switch (errorCode) {
|
|
1378
1388
|
case "DependencyException":
|
|
1379
1389
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1386,10 +1396,12 @@ const deserializeAws_restJson1GetMissionProfileCommandError = async (output, con
|
|
|
1386
1396
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1387
1397
|
default:
|
|
1388
1398
|
const parsedBody = parsedOutput.body;
|
|
1399
|
+
const $metadata = deserializeMetadata(output);
|
|
1400
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1389
1401
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1390
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1391
1403
|
$fault: "client",
|
|
1392
|
-
$metadata
|
|
1404
|
+
$metadata,
|
|
1393
1405
|
});
|
|
1394
1406
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1395
1407
|
}
|
|
@@ -1427,8 +1439,7 @@ const deserializeAws_restJson1GetSatelliteCommandError = async (output, context)
|
|
|
1427
1439
|
body: await parseBody(output.body, context),
|
|
1428
1440
|
};
|
|
1429
1441
|
let response;
|
|
1430
|
-
|
|
1431
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1443
|
switch (errorCode) {
|
|
1433
1444
|
case "DependencyException":
|
|
1434
1445
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1441,10 +1452,12 @@ const deserializeAws_restJson1GetSatelliteCommandError = async (output, context)
|
|
|
1441
1452
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1442
1453
|
default:
|
|
1443
1454
|
const parsedBody = parsedOutput.body;
|
|
1455
|
+
const $metadata = deserializeMetadata(output);
|
|
1456
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1444
1457
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1458
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1446
1459
|
$fault: "client",
|
|
1447
|
-
$metadata
|
|
1460
|
+
$metadata,
|
|
1448
1461
|
});
|
|
1449
1462
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1450
1463
|
}
|
|
@@ -1474,8 +1487,7 @@ const deserializeAws_restJson1ListConfigsCommandError = async (output, context)
|
|
|
1474
1487
|
body: await parseBody(output.body, context),
|
|
1475
1488
|
};
|
|
1476
1489
|
let response;
|
|
1477
|
-
|
|
1478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1491
|
switch (errorCode) {
|
|
1480
1492
|
case "DependencyException":
|
|
1481
1493
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1488,10 +1500,12 @@ const deserializeAws_restJson1ListConfigsCommandError = async (output, context)
|
|
|
1488
1500
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1489
1501
|
default:
|
|
1490
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1491
1505
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1492
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1493
1507
|
$fault: "client",
|
|
1494
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1495
1509
|
});
|
|
1496
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1497
1511
|
}
|
|
@@ -1521,8 +1535,7 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
|
|
|
1521
1535
|
body: await parseBody(output.body, context),
|
|
1522
1536
|
};
|
|
1523
1537
|
let response;
|
|
1524
|
-
|
|
1525
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1538
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
1539
|
switch (errorCode) {
|
|
1527
1540
|
case "DependencyException":
|
|
1528
1541
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1535,10 +1548,12 @@ const deserializeAws_restJson1ListContactsCommandError = async (output, context)
|
|
|
1535
1548
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1536
1549
|
default:
|
|
1537
1550
|
const parsedBody = parsedOutput.body;
|
|
1551
|
+
const $metadata = deserializeMetadata(output);
|
|
1552
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1538
1553
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1539
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1554
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1540
1555
|
$fault: "client",
|
|
1541
|
-
$metadata
|
|
1556
|
+
$metadata,
|
|
1542
1557
|
});
|
|
1543
1558
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1544
1559
|
}
|
|
@@ -1568,8 +1583,7 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
|
|
|
1568
1583
|
body: await parseBody(output.body, context),
|
|
1569
1584
|
};
|
|
1570
1585
|
let response;
|
|
1571
|
-
|
|
1572
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1573
1587
|
switch (errorCode) {
|
|
1574
1588
|
case "DependencyException":
|
|
1575
1589
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1582,10 +1596,12 @@ const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (ou
|
|
|
1582
1596
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1583
1597
|
default:
|
|
1584
1598
|
const parsedBody = parsedOutput.body;
|
|
1599
|
+
const $metadata = deserializeMetadata(output);
|
|
1600
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1585
1601
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1587
1603
|
$fault: "client",
|
|
1588
|
-
$metadata
|
|
1604
|
+
$metadata,
|
|
1589
1605
|
});
|
|
1590
1606
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1591
1607
|
}
|
|
@@ -1615,8 +1631,7 @@ const deserializeAws_restJson1ListGroundStationsCommandError = async (output, co
|
|
|
1615
1631
|
body: await parseBody(output.body, context),
|
|
1616
1632
|
};
|
|
1617
1633
|
let response;
|
|
1618
|
-
|
|
1619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1620
1635
|
switch (errorCode) {
|
|
1621
1636
|
case "DependencyException":
|
|
1622
1637
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1629,10 +1644,12 @@ const deserializeAws_restJson1ListGroundStationsCommandError = async (output, co
|
|
|
1629
1644
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1630
1645
|
default:
|
|
1631
1646
|
const parsedBody = parsedOutput.body;
|
|
1647
|
+
const $metadata = deserializeMetadata(output);
|
|
1648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1632
1649
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1634
1651
|
$fault: "client",
|
|
1635
|
-
$metadata
|
|
1652
|
+
$metadata,
|
|
1636
1653
|
});
|
|
1637
1654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1638
1655
|
}
|
|
@@ -1662,8 +1679,7 @@ const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, c
|
|
|
1662
1679
|
body: await parseBody(output.body, context),
|
|
1663
1680
|
};
|
|
1664
1681
|
let response;
|
|
1665
|
-
|
|
1666
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1682
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1667
1683
|
switch (errorCode) {
|
|
1668
1684
|
case "DependencyException":
|
|
1669
1685
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1676,10 +1692,12 @@ const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, c
|
|
|
1676
1692
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1677
1693
|
default:
|
|
1678
1694
|
const parsedBody = parsedOutput.body;
|
|
1695
|
+
const $metadata = deserializeMetadata(output);
|
|
1696
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1679
1697
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1680
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1698
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1681
1699
|
$fault: "client",
|
|
1682
|
-
$metadata
|
|
1700
|
+
$metadata,
|
|
1683
1701
|
});
|
|
1684
1702
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1685
1703
|
}
|
|
@@ -1709,8 +1727,7 @@ const deserializeAws_restJson1ListSatellitesCommandError = async (output, contex
|
|
|
1709
1727
|
body: await parseBody(output.body, context),
|
|
1710
1728
|
};
|
|
1711
1729
|
let response;
|
|
1712
|
-
|
|
1713
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1714
1731
|
switch (errorCode) {
|
|
1715
1732
|
case "DependencyException":
|
|
1716
1733
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1723,10 +1740,12 @@ const deserializeAws_restJson1ListSatellitesCommandError = async (output, contex
|
|
|
1723
1740
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1724
1741
|
default:
|
|
1725
1742
|
const parsedBody = parsedOutput.body;
|
|
1743
|
+
const $metadata = deserializeMetadata(output);
|
|
1744
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1726
1745
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1727
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1728
1747
|
$fault: "client",
|
|
1729
|
-
$metadata
|
|
1748
|
+
$metadata,
|
|
1730
1749
|
});
|
|
1731
1750
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1732
1751
|
}
|
|
@@ -1752,8 +1771,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1752
1771
|
body: await parseBody(output.body, context),
|
|
1753
1772
|
};
|
|
1754
1773
|
let response;
|
|
1755
|
-
|
|
1756
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
1775
|
switch (errorCode) {
|
|
1758
1776
|
case "DependencyException":
|
|
1759
1777
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1766,10 +1784,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1766
1784
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1767
1785
|
default:
|
|
1768
1786
|
const parsedBody = parsedOutput.body;
|
|
1787
|
+
const $metadata = deserializeMetadata(output);
|
|
1788
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1769
1789
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1770
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1790
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1771
1791
|
$fault: "client",
|
|
1772
|
-
$metadata
|
|
1792
|
+
$metadata,
|
|
1773
1793
|
});
|
|
1774
1794
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1775
1795
|
}
|
|
@@ -1795,8 +1815,7 @@ const deserializeAws_restJson1ReserveContactCommandError = async (output, contex
|
|
|
1795
1815
|
body: await parseBody(output.body, context),
|
|
1796
1816
|
};
|
|
1797
1817
|
let response;
|
|
1798
|
-
|
|
1799
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1819
|
switch (errorCode) {
|
|
1801
1820
|
case "DependencyException":
|
|
1802
1821
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1809,10 +1828,12 @@ const deserializeAws_restJson1ReserveContactCommandError = async (output, contex
|
|
|
1809
1828
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1810
1829
|
default:
|
|
1811
1830
|
const parsedBody = parsedOutput.body;
|
|
1831
|
+
const $metadata = deserializeMetadata(output);
|
|
1832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1812
1833
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1813
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1814
1835
|
$fault: "client",
|
|
1815
|
-
$metadata
|
|
1836
|
+
$metadata,
|
|
1816
1837
|
});
|
|
1817
1838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1818
1839
|
}
|
|
@@ -1834,8 +1855,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1834
1855
|
body: await parseBody(output.body, context),
|
|
1835
1856
|
};
|
|
1836
1857
|
let response;
|
|
1837
|
-
|
|
1838
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
1859
|
switch (errorCode) {
|
|
1840
1860
|
case "DependencyException":
|
|
1841
1861
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1848,10 +1868,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1848
1868
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1849
1869
|
default:
|
|
1850
1870
|
const parsedBody = parsedOutput.body;
|
|
1871
|
+
const $metadata = deserializeMetadata(output);
|
|
1872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1851
1873
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1852
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1853
1875
|
$fault: "client",
|
|
1854
|
-
$metadata
|
|
1876
|
+
$metadata,
|
|
1855
1877
|
});
|
|
1856
1878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1857
1879
|
}
|
|
@@ -1873,8 +1895,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1873
1895
|
body: await parseBody(output.body, context),
|
|
1874
1896
|
};
|
|
1875
1897
|
let response;
|
|
1876
|
-
|
|
1877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1878
1899
|
switch (errorCode) {
|
|
1879
1900
|
case "DependencyException":
|
|
1880
1901
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1887,10 +1908,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1887
1908
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1888
1909
|
default:
|
|
1889
1910
|
const parsedBody = parsedOutput.body;
|
|
1911
|
+
const $metadata = deserializeMetadata(output);
|
|
1912
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1890
1913
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1892
1915
|
$fault: "client",
|
|
1893
|
-
$metadata
|
|
1916
|
+
$metadata,
|
|
1894
1917
|
});
|
|
1895
1918
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1896
1919
|
}
|
|
@@ -1924,8 +1947,7 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
|
|
|
1924
1947
|
body: await parseBody(output.body, context),
|
|
1925
1948
|
};
|
|
1926
1949
|
let response;
|
|
1927
|
-
|
|
1928
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1929
1951
|
switch (errorCode) {
|
|
1930
1952
|
case "DependencyException":
|
|
1931
1953
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1938,10 +1960,12 @@ const deserializeAws_restJson1UpdateConfigCommandError = async (output, context)
|
|
|
1938
1960
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1939
1961
|
default:
|
|
1940
1962
|
const parsedBody = parsedOutput.body;
|
|
1963
|
+
const $metadata = deserializeMetadata(output);
|
|
1964
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1941
1965
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1942
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1943
1967
|
$fault: "client",
|
|
1944
|
-
$metadata
|
|
1968
|
+
$metadata,
|
|
1945
1969
|
});
|
|
1946
1970
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1947
1971
|
}
|
|
@@ -1967,8 +1991,7 @@ const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output,
|
|
|
1967
1991
|
body: await parseBody(output.body, context),
|
|
1968
1992
|
};
|
|
1969
1993
|
let response;
|
|
1970
|
-
|
|
1971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1994
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
1995
|
switch (errorCode) {
|
|
1973
1996
|
case "DependencyException":
|
|
1974
1997
|
case "com.amazonaws.groundstation#DependencyException":
|
|
@@ -1981,10 +2004,12 @@ const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output,
|
|
|
1981
2004
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1982
2005
|
default:
|
|
1983
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
|
+
const $metadata = deserializeMetadata(output);
|
|
2008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1984
2009
|
response = new GroundStationServiceException_1.GroundStationServiceException({
|
|
1985
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1986
2011
|
$fault: "client",
|
|
1987
|
-
$metadata
|
|
2012
|
+
$metadata,
|
|
1988
2013
|
});
|
|
1989
2014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1990
2015
|
}
|
|
@@ -2798,5 +2823,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2798
2823
|
if (data["__type"] !== undefined) {
|
|
2799
2824
|
return sanitizeErrorCode(data["__type"]);
|
|
2800
2825
|
}
|
|
2801
|
-
return "";
|
|
2802
2826
|
};
|