@aws-sdk/client-groundstation 3.180.0 → 3.181.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 +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +31 -25
- package/dist-es/protocols/Aws_restJson1.js +38 -25
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
12
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-groundstation
|
|
@@ -562,7 +562,7 @@ exports.deserializeAws_restJson1CancelContactCommand = deserializeAws_restJson1C
|
|
|
562
562
|
const deserializeAws_restJson1CancelContactCommandError = async (output, context) => {
|
|
563
563
|
const parsedOutput = {
|
|
564
564
|
...output,
|
|
565
|
-
body: await
|
|
565
|
+
body: await parseErrorBody(output.body, context),
|
|
566
566
|
};
|
|
567
567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
568
|
switch (errorCode) {
|
|
@@ -608,7 +608,7 @@ exports.deserializeAws_restJson1CreateConfigCommand = deserializeAws_restJson1Cr
|
|
|
608
608
|
const deserializeAws_restJson1CreateConfigCommandError = async (output, context) => {
|
|
609
609
|
const parsedOutput = {
|
|
610
610
|
...output,
|
|
611
|
-
body: await
|
|
611
|
+
body: await parseErrorBody(output.body, context),
|
|
612
612
|
};
|
|
613
613
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
614
|
switch (errorCode) {
|
|
@@ -651,7 +651,7 @@ exports.deserializeAws_restJson1CreateDataflowEndpointGroupCommand = deserialize
|
|
|
651
651
|
const deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = async (output, context) => {
|
|
652
652
|
const parsedOutput = {
|
|
653
653
|
...output,
|
|
654
|
-
body: await
|
|
654
|
+
body: await parseErrorBody(output.body, context),
|
|
655
655
|
};
|
|
656
656
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
657
|
switch (errorCode) {
|
|
@@ -691,7 +691,7 @@ exports.deserializeAws_restJson1CreateMissionProfileCommand = deserializeAws_res
|
|
|
691
691
|
const deserializeAws_restJson1CreateMissionProfileCommandError = async (output, context) => {
|
|
692
692
|
const parsedOutput = {
|
|
693
693
|
...output,
|
|
694
|
-
body: await
|
|
694
|
+
body: await parseErrorBody(output.body, context),
|
|
695
695
|
};
|
|
696
696
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
697
|
switch (errorCode) {
|
|
@@ -737,7 +737,7 @@ exports.deserializeAws_restJson1DeleteConfigCommand = deserializeAws_restJson1De
|
|
|
737
737
|
const deserializeAws_restJson1DeleteConfigCommandError = async (output, context) => {
|
|
738
738
|
const parsedOutput = {
|
|
739
739
|
...output,
|
|
740
|
-
body: await
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
741
|
};
|
|
742
742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
743
|
switch (errorCode) {
|
|
@@ -777,7 +777,7 @@ exports.deserializeAws_restJson1DeleteDataflowEndpointGroupCommand = deserialize
|
|
|
777
777
|
const deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = async (output, context) => {
|
|
778
778
|
const parsedOutput = {
|
|
779
779
|
...output,
|
|
780
|
-
body: await
|
|
780
|
+
body: await parseErrorBody(output.body, context),
|
|
781
781
|
};
|
|
782
782
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
783
|
switch (errorCode) {
|
|
@@ -817,7 +817,7 @@ exports.deserializeAws_restJson1DeleteMissionProfileCommand = deserializeAws_res
|
|
|
817
817
|
const deserializeAws_restJson1DeleteMissionProfileCommandError = async (output, context) => {
|
|
818
818
|
const parsedOutput = {
|
|
819
819
|
...output,
|
|
820
|
-
body: await
|
|
820
|
+
body: await parseErrorBody(output.body, context),
|
|
821
821
|
};
|
|
822
822
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
823
823
|
switch (errorCode) {
|
|
@@ -896,7 +896,7 @@ exports.deserializeAws_restJson1DescribeContactCommand = deserializeAws_restJson
|
|
|
896
896
|
const deserializeAws_restJson1DescribeContactCommandError = async (output, context) => {
|
|
897
897
|
const parsedOutput = {
|
|
898
898
|
...output,
|
|
899
|
-
body: await
|
|
899
|
+
body: await parseErrorBody(output.body, context),
|
|
900
900
|
};
|
|
901
901
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
902
902
|
switch (errorCode) {
|
|
@@ -951,7 +951,7 @@ exports.deserializeAws_restJson1GetConfigCommand = deserializeAws_restJson1GetCo
|
|
|
951
951
|
const deserializeAws_restJson1GetConfigCommandError = async (output, context) => {
|
|
952
952
|
const parsedOutput = {
|
|
953
953
|
...output,
|
|
954
|
-
body: await
|
|
954
|
+
body: await parseErrorBody(output.body, context),
|
|
955
955
|
};
|
|
956
956
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
957
|
switch (errorCode) {
|
|
@@ -1000,7 +1000,7 @@ exports.deserializeAws_restJson1GetDataflowEndpointGroupCommand = deserializeAws
|
|
|
1000
1000
|
const deserializeAws_restJson1GetDataflowEndpointGroupCommandError = async (output, context) => {
|
|
1001
1001
|
const parsedOutput = {
|
|
1002
1002
|
...output,
|
|
1003
|
-
body: await
|
|
1003
|
+
body: await parseErrorBody(output.body, context),
|
|
1004
1004
|
};
|
|
1005
1005
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1006
|
switch (errorCode) {
|
|
@@ -1052,7 +1052,7 @@ exports.deserializeAws_restJson1GetMinuteUsageCommand = deserializeAws_restJson1
|
|
|
1052
1052
|
const deserializeAws_restJson1GetMinuteUsageCommandError = async (output, context) => {
|
|
1053
1053
|
const parsedOutput = {
|
|
1054
1054
|
...output,
|
|
1055
|
-
body: await
|
|
1055
|
+
body: await parseErrorBody(output.body, context),
|
|
1056
1056
|
};
|
|
1057
1057
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
1058
|
switch (errorCode) {
|
|
@@ -1119,7 +1119,7 @@ exports.deserializeAws_restJson1GetMissionProfileCommand = deserializeAws_restJs
|
|
|
1119
1119
|
const deserializeAws_restJson1GetMissionProfileCommandError = async (output, context) => {
|
|
1120
1120
|
const parsedOutput = {
|
|
1121
1121
|
...output,
|
|
1122
|
-
body: await
|
|
1122
|
+
body: await parseErrorBody(output.body, context),
|
|
1123
1123
|
};
|
|
1124
1124
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
1125
|
switch (errorCode) {
|
|
@@ -1168,7 +1168,7 @@ exports.deserializeAws_restJson1GetSatelliteCommand = deserializeAws_restJson1Ge
|
|
|
1168
1168
|
const deserializeAws_restJson1GetSatelliteCommandError = async (output, context) => {
|
|
1169
1169
|
const parsedOutput = {
|
|
1170
1170
|
...output,
|
|
1171
|
-
body: await
|
|
1171
|
+
body: await parseErrorBody(output.body, context),
|
|
1172
1172
|
};
|
|
1173
1173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1174
|
switch (errorCode) {
|
|
@@ -1211,7 +1211,7 @@ exports.deserializeAws_restJson1ListConfigsCommand = deserializeAws_restJson1Lis
|
|
|
1211
1211
|
const deserializeAws_restJson1ListConfigsCommandError = async (output, context) => {
|
|
1212
1212
|
const parsedOutput = {
|
|
1213
1213
|
...output,
|
|
1214
|
-
body: await
|
|
1214
|
+
body: await parseErrorBody(output.body, context),
|
|
1215
1215
|
};
|
|
1216
1216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1217
1217
|
switch (errorCode) {
|
|
@@ -1254,7 +1254,7 @@ exports.deserializeAws_restJson1ListContactsCommand = deserializeAws_restJson1Li
|
|
|
1254
1254
|
const deserializeAws_restJson1ListContactsCommandError = async (output, context) => {
|
|
1255
1255
|
const parsedOutput = {
|
|
1256
1256
|
...output,
|
|
1257
|
-
body: await
|
|
1257
|
+
body: await parseErrorBody(output.body, context),
|
|
1258
1258
|
};
|
|
1259
1259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
1260
|
switch (errorCode) {
|
|
@@ -1297,7 +1297,7 @@ exports.deserializeAws_restJson1ListDataflowEndpointGroupsCommand = deserializeA
|
|
|
1297
1297
|
const deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = async (output, context) => {
|
|
1298
1298
|
const parsedOutput = {
|
|
1299
1299
|
...output,
|
|
1300
|
-
body: await
|
|
1300
|
+
body: await parseErrorBody(output.body, context),
|
|
1301
1301
|
};
|
|
1302
1302
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1303
1303
|
switch (errorCode) {
|
|
@@ -1340,7 +1340,7 @@ exports.deserializeAws_restJson1ListGroundStationsCommand = deserializeAws_restJ
|
|
|
1340
1340
|
const deserializeAws_restJson1ListGroundStationsCommandError = async (output, context) => {
|
|
1341
1341
|
const parsedOutput = {
|
|
1342
1342
|
...output,
|
|
1343
|
-
body: await
|
|
1343
|
+
body: await parseErrorBody(output.body, context),
|
|
1344
1344
|
};
|
|
1345
1345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
1346
|
switch (errorCode) {
|
|
@@ -1383,7 +1383,7 @@ exports.deserializeAws_restJson1ListMissionProfilesCommand = deserializeAws_rest
|
|
|
1383
1383
|
const deserializeAws_restJson1ListMissionProfilesCommandError = async (output, context) => {
|
|
1384
1384
|
const parsedOutput = {
|
|
1385
1385
|
...output,
|
|
1386
|
-
body: await
|
|
1386
|
+
body: await parseErrorBody(output.body, context),
|
|
1387
1387
|
};
|
|
1388
1388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
1389
|
switch (errorCode) {
|
|
@@ -1426,7 +1426,7 @@ exports.deserializeAws_restJson1ListSatellitesCommand = deserializeAws_restJson1
|
|
|
1426
1426
|
const deserializeAws_restJson1ListSatellitesCommandError = async (output, context) => {
|
|
1427
1427
|
const parsedOutput = {
|
|
1428
1428
|
...output,
|
|
1429
|
-
body: await
|
|
1429
|
+
body: await parseErrorBody(output.body, context),
|
|
1430
1430
|
};
|
|
1431
1431
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1432
|
switch (errorCode) {
|
|
@@ -1466,7 +1466,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1466
1466
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1467
1467
|
const parsedOutput = {
|
|
1468
1468
|
...output,
|
|
1469
|
-
body: await
|
|
1469
|
+
body: await parseErrorBody(output.body, context),
|
|
1470
1470
|
};
|
|
1471
1471
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1472
|
switch (errorCode) {
|
|
@@ -1506,7 +1506,7 @@ exports.deserializeAws_restJson1ReserveContactCommand = deserializeAws_restJson1
|
|
|
1506
1506
|
const deserializeAws_restJson1ReserveContactCommandError = async (output, context) => {
|
|
1507
1507
|
const parsedOutput = {
|
|
1508
1508
|
...output,
|
|
1509
|
-
body: await
|
|
1509
|
+
body: await parseErrorBody(output.body, context),
|
|
1510
1510
|
};
|
|
1511
1511
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1512
1512
|
switch (errorCode) {
|
|
@@ -1543,7 +1543,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1543
1543
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1544
1544
|
const parsedOutput = {
|
|
1545
1545
|
...output,
|
|
1546
|
-
body: await
|
|
1546
|
+
body: await parseErrorBody(output.body, context),
|
|
1547
1547
|
};
|
|
1548
1548
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
1549
|
switch (errorCode) {
|
|
@@ -1580,7 +1580,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1580
1580
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1581
1581
|
const parsedOutput = {
|
|
1582
1582
|
...output,
|
|
1583
|
-
body: await
|
|
1583
|
+
body: await parseErrorBody(output.body, context),
|
|
1584
1584
|
};
|
|
1585
1585
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
1586
|
switch (errorCode) {
|
|
@@ -1626,7 +1626,7 @@ exports.deserializeAws_restJson1UpdateConfigCommand = deserializeAws_restJson1Up
|
|
|
1626
1626
|
const deserializeAws_restJson1UpdateConfigCommandError = async (output, context) => {
|
|
1627
1627
|
const parsedOutput = {
|
|
1628
1628
|
...output,
|
|
1629
|
-
body: await
|
|
1629
|
+
body: await parseErrorBody(output.body, context),
|
|
1630
1630
|
};
|
|
1631
1631
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
1632
|
switch (errorCode) {
|
|
@@ -1666,7 +1666,7 @@ exports.deserializeAws_restJson1UpdateMissionProfileCommand = deserializeAws_res
|
|
|
1666
1666
|
const deserializeAws_restJson1UpdateMissionProfileCommandError = async (output, context) => {
|
|
1667
1667
|
const parsedOutput = {
|
|
1668
1668
|
...output,
|
|
1669
|
-
body: await
|
|
1669
|
+
body: await parseErrorBody(output.body, context),
|
|
1670
1670
|
};
|
|
1671
1671
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
1672
|
switch (errorCode) {
|
|
@@ -2413,6 +2413,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2413
2413
|
}
|
|
2414
2414
|
return {};
|
|
2415
2415
|
});
|
|
2416
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2417
|
+
var _a;
|
|
2418
|
+
const value = await parseBody(errorBody, context);
|
|
2419
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2420
|
+
return value;
|
|
2421
|
+
};
|
|
2416
2422
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2417
2423
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2418
2424
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -653,7 +653,7 @@ var deserializeAws_restJson1CancelContactCommandError = function (output, contex
|
|
|
653
653
|
case 0:
|
|
654
654
|
_a = [__assign({}, output)];
|
|
655
655
|
_c = {};
|
|
656
|
-
return [4,
|
|
656
|
+
return [4, parseErrorBody(output.body, context)];
|
|
657
657
|
case 1:
|
|
658
658
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
659
659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -723,7 +723,7 @@ var deserializeAws_restJson1CreateConfigCommandError = function (output, context
|
|
|
723
723
|
case 0:
|
|
724
724
|
_a = [__assign({}, output)];
|
|
725
725
|
_c = {};
|
|
726
|
-
return [4,
|
|
726
|
+
return [4, parseErrorBody(output.body, context)];
|
|
727
727
|
case 1:
|
|
728
728
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
729
729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -791,7 +791,7 @@ var deserializeAws_restJson1CreateDataflowEndpointGroupCommandError = function (
|
|
|
791
791
|
case 0:
|
|
792
792
|
_a = [__assign({}, output)];
|
|
793
793
|
_c = {};
|
|
794
|
-
return [4,
|
|
794
|
+
return [4, parseErrorBody(output.body, context)];
|
|
795
795
|
case 1:
|
|
796
796
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
797
797
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -855,7 +855,7 @@ var deserializeAws_restJson1CreateMissionProfileCommandError = function (output,
|
|
|
855
855
|
case 0:
|
|
856
856
|
_a = [__assign({}, output)];
|
|
857
857
|
_c = {};
|
|
858
|
-
return [4,
|
|
858
|
+
return [4, parseErrorBody(output.body, context)];
|
|
859
859
|
case 1:
|
|
860
860
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
861
861
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -925,7 +925,7 @@ var deserializeAws_restJson1DeleteConfigCommandError = function (output, context
|
|
|
925
925
|
case 0:
|
|
926
926
|
_a = [__assign({}, output)];
|
|
927
927
|
_c = {};
|
|
928
|
-
return [4,
|
|
928
|
+
return [4, parseErrorBody(output.body, context)];
|
|
929
929
|
case 1:
|
|
930
930
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
931
931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -989,7 +989,7 @@ var deserializeAws_restJson1DeleteDataflowEndpointGroupCommandError = function (
|
|
|
989
989
|
case 0:
|
|
990
990
|
_a = [__assign({}, output)];
|
|
991
991
|
_c = {};
|
|
992
|
-
return [4,
|
|
992
|
+
return [4, parseErrorBody(output.body, context)];
|
|
993
993
|
case 1:
|
|
994
994
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
995
995
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1053,7 +1053,7 @@ var deserializeAws_restJson1DeleteMissionProfileCommandError = function (output,
|
|
|
1053
1053
|
case 0:
|
|
1054
1054
|
_a = [__assign({}, output)];
|
|
1055
1055
|
_c = {};
|
|
1056
|
-
return [4,
|
|
1056
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1057
1057
|
case 1:
|
|
1058
1058
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1059
1059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1156,7 +1156,7 @@ var deserializeAws_restJson1DescribeContactCommandError = function (output, cont
|
|
|
1156
1156
|
case 0:
|
|
1157
1157
|
_a = [__assign({}, output)];
|
|
1158
1158
|
_c = {};
|
|
1159
|
-
return [4,
|
|
1159
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1160
1160
|
case 1:
|
|
1161
1161
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1162
1162
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1235,7 +1235,7 @@ var deserializeAws_restJson1GetConfigCommandError = function (output, context) {
|
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
_a = [__assign({}, output)];
|
|
1237
1237
|
_c = {};
|
|
1238
|
-
return [4,
|
|
1238
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1239
1239
|
case 1:
|
|
1240
1240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1241
1241
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1308,7 +1308,7 @@ var deserializeAws_restJson1GetDataflowEndpointGroupCommandError = function (out
|
|
|
1308
1308
|
case 0:
|
|
1309
1309
|
_a = [__assign({}, output)];
|
|
1310
1310
|
_c = {};
|
|
1311
|
-
return [4,
|
|
1311
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1312
1312
|
case 1:
|
|
1313
1313
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1314
1314
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1384,7 +1384,7 @@ var deserializeAws_restJson1GetMinuteUsageCommandError = function (output, conte
|
|
|
1384
1384
|
case 0:
|
|
1385
1385
|
_a = [__assign({}, output)];
|
|
1386
1386
|
_c = {};
|
|
1387
|
-
return [4,
|
|
1387
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1388
1388
|
case 1:
|
|
1389
1389
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1390
1390
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1475,7 +1475,7 @@ var deserializeAws_restJson1GetMissionProfileCommandError = function (output, co
|
|
|
1475
1475
|
case 0:
|
|
1476
1476
|
_a = [__assign({}, output)];
|
|
1477
1477
|
_c = {};
|
|
1478
|
-
return [4,
|
|
1478
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1479
1479
|
case 1:
|
|
1480
1480
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1481
1481
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1548,7 +1548,7 @@ var deserializeAws_restJson1GetSatelliteCommandError = function (output, context
|
|
|
1548
1548
|
case 0:
|
|
1549
1549
|
_a = [__assign({}, output)];
|
|
1550
1550
|
_c = {};
|
|
1551
|
-
return [4,
|
|
1551
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1552
1552
|
case 1:
|
|
1553
1553
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1554
1554
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1615,7 +1615,7 @@ var deserializeAws_restJson1ListConfigsCommandError = function (output, context)
|
|
|
1615
1615
|
case 0:
|
|
1616
1616
|
_a = [__assign({}, output)];
|
|
1617
1617
|
_c = {};
|
|
1618
|
-
return [4,
|
|
1618
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1619
1619
|
case 1:
|
|
1620
1620
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1621
1621
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1682,7 +1682,7 @@ var deserializeAws_restJson1ListContactsCommandError = function (output, context
|
|
|
1682
1682
|
case 0:
|
|
1683
1683
|
_a = [__assign({}, output)];
|
|
1684
1684
|
_c = {};
|
|
1685
|
-
return [4,
|
|
1685
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1686
1686
|
case 1:
|
|
1687
1687
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1688
1688
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1749,7 +1749,7 @@ var deserializeAws_restJson1ListDataflowEndpointGroupsCommandError = function (o
|
|
|
1749
1749
|
case 0:
|
|
1750
1750
|
_a = [__assign({}, output)];
|
|
1751
1751
|
_c = {};
|
|
1752
|
-
return [4,
|
|
1752
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1753
1753
|
case 1:
|
|
1754
1754
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1755
1755
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1816,7 +1816,7 @@ var deserializeAws_restJson1ListGroundStationsCommandError = function (output, c
|
|
|
1816
1816
|
case 0:
|
|
1817
1817
|
_a = [__assign({}, output)];
|
|
1818
1818
|
_c = {};
|
|
1819
|
-
return [4,
|
|
1819
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1820
1820
|
case 1:
|
|
1821
1821
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1822
1822
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1883,7 +1883,7 @@ var deserializeAws_restJson1ListMissionProfilesCommandError = function (output,
|
|
|
1883
1883
|
case 0:
|
|
1884
1884
|
_a = [__assign({}, output)];
|
|
1885
1885
|
_c = {};
|
|
1886
|
-
return [4,
|
|
1886
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1887
1887
|
case 1:
|
|
1888
1888
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1889
1889
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1950,7 +1950,7 @@ var deserializeAws_restJson1ListSatellitesCommandError = function (output, conte
|
|
|
1950
1950
|
case 0:
|
|
1951
1951
|
_a = [__assign({}, output)];
|
|
1952
1952
|
_c = {};
|
|
1953
|
-
return [4,
|
|
1953
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1954
1954
|
case 1:
|
|
1955
1955
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1956
1956
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2014,7 +2014,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2014
2014
|
case 0:
|
|
2015
2015
|
_a = [__assign({}, output)];
|
|
2016
2016
|
_c = {};
|
|
2017
|
-
return [4,
|
|
2017
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2018
2018
|
case 1:
|
|
2019
2019
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2020
2020
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2078,7 +2078,7 @@ var deserializeAws_restJson1ReserveContactCommandError = function (output, conte
|
|
|
2078
2078
|
case 0:
|
|
2079
2079
|
_a = [__assign({}, output)];
|
|
2080
2080
|
_c = {};
|
|
2081
|
-
return [4,
|
|
2081
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2082
2082
|
case 1:
|
|
2083
2083
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2084
2084
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2137,7 +2137,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2137
2137
|
case 0:
|
|
2138
2138
|
_a = [__assign({}, output)];
|
|
2139
2139
|
_c = {};
|
|
2140
|
-
return [4,
|
|
2140
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2141
2141
|
case 1:
|
|
2142
2142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2143
2143
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2196,7 +2196,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2196
2196
|
case 0:
|
|
2197
2197
|
_a = [__assign({}, output)];
|
|
2198
2198
|
_c = {};
|
|
2199
|
-
return [4,
|
|
2199
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2200
2200
|
case 1:
|
|
2201
2201
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2202
2202
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2266,7 +2266,7 @@ var deserializeAws_restJson1UpdateConfigCommandError = function (output, context
|
|
|
2266
2266
|
case 0:
|
|
2267
2267
|
_a = [__assign({}, output)];
|
|
2268
2268
|
_c = {};
|
|
2269
|
-
return [4,
|
|
2269
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2270
2270
|
case 1:
|
|
2271
2271
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2272
2272
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2330,7 +2330,7 @@ var deserializeAws_restJson1UpdateMissionProfileCommandError = function (output,
|
|
|
2330
2330
|
case 0:
|
|
2331
2331
|
_a = [__assign({}, output)];
|
|
2332
2332
|
_c = {};
|
|
2333
|
-
return [4,
|
|
2333
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2334
2334
|
case 1:
|
|
2335
2335
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2336
2336
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3035,6 +3035,19 @@ var parseBody = function (streamBody, context) {
|
|
|
3035
3035
|
return {};
|
|
3036
3036
|
});
|
|
3037
3037
|
};
|
|
3038
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3039
|
+
var value;
|
|
3040
|
+
var _a;
|
|
3041
|
+
return __generator(this, function (_b) {
|
|
3042
|
+
switch (_b.label) {
|
|
3043
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
3044
|
+
case 1:
|
|
3045
|
+
value = _b.sent();
|
|
3046
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
3047
|
+
return [2, value];
|
|
3048
|
+
}
|
|
3049
|
+
});
|
|
3050
|
+
}); };
|
|
3038
3051
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3039
3052
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3040
3053
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-groundstation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Groundstation Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|