@aws-sdk/client-outposts 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 +32 -26
- package/dist-es/protocols/Aws_restJson1.js +39 -26
- 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-outposts
|
|
@@ -619,7 +619,7 @@ exports.deserializeAws_restJson1CancelOrderCommand = deserializeAws_restJson1Can
|
|
|
619
619
|
const deserializeAws_restJson1CancelOrderCommandError = async (output, context) => {
|
|
620
620
|
const parsedOutput = {
|
|
621
621
|
...output,
|
|
622
|
-
body: await
|
|
622
|
+
body: await parseErrorBody(output.body, context),
|
|
623
623
|
};
|
|
624
624
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
625
|
switch (errorCode) {
|
|
@@ -665,7 +665,7 @@ exports.deserializeAws_restJson1CreateOrderCommand = deserializeAws_restJson1Cre
|
|
|
665
665
|
const deserializeAws_restJson1CreateOrderCommandError = async (output, context) => {
|
|
666
666
|
const parsedOutput = {
|
|
667
667
|
...output,
|
|
668
|
-
body: await
|
|
668
|
+
body: await parseErrorBody(output.body, context),
|
|
669
669
|
};
|
|
670
670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
671
671
|
switch (errorCode) {
|
|
@@ -714,7 +714,7 @@ exports.deserializeAws_restJson1CreateOutpostCommand = deserializeAws_restJson1C
|
|
|
714
714
|
const deserializeAws_restJson1CreateOutpostCommandError = async (output, context) => {
|
|
715
715
|
const parsedOutput = {
|
|
716
716
|
...output,
|
|
717
|
-
body: await
|
|
717
|
+
body: await parseErrorBody(output.body, context),
|
|
718
718
|
};
|
|
719
719
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
720
720
|
switch (errorCode) {
|
|
@@ -763,7 +763,7 @@ exports.deserializeAws_restJson1CreateSiteCommand = deserializeAws_restJson1Crea
|
|
|
763
763
|
const deserializeAws_restJson1CreateSiteCommandError = async (output, context) => {
|
|
764
764
|
const parsedOutput = {
|
|
765
765
|
...output,
|
|
766
|
-
body: await
|
|
766
|
+
body: await parseErrorBody(output.body, context),
|
|
767
767
|
};
|
|
768
768
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
769
769
|
switch (errorCode) {
|
|
@@ -806,7 +806,7 @@ exports.deserializeAws_restJson1DeleteOutpostCommand = deserializeAws_restJson1D
|
|
|
806
806
|
const deserializeAws_restJson1DeleteOutpostCommandError = async (output, context) => {
|
|
807
807
|
const parsedOutput = {
|
|
808
808
|
...output,
|
|
809
|
-
body: await
|
|
809
|
+
body: await parseErrorBody(output.body, context),
|
|
810
810
|
};
|
|
811
811
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
812
812
|
switch (errorCode) {
|
|
@@ -849,7 +849,7 @@ exports.deserializeAws_restJson1DeleteSiteCommand = deserializeAws_restJson1Dele
|
|
|
849
849
|
const deserializeAws_restJson1DeleteSiteCommandError = async (output, context) => {
|
|
850
850
|
const parsedOutput = {
|
|
851
851
|
...output,
|
|
852
|
-
body: await
|
|
852
|
+
body: await parseErrorBody(output.body, context),
|
|
853
853
|
};
|
|
854
854
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
855
|
switch (errorCode) {
|
|
@@ -895,7 +895,7 @@ exports.deserializeAws_restJson1GetCatalogItemCommand = deserializeAws_restJson1
|
|
|
895
895
|
const deserializeAws_restJson1GetCatalogItemCommandError = async (output, context) => {
|
|
896
896
|
const parsedOutput = {
|
|
897
897
|
...output,
|
|
898
|
-
body: await
|
|
898
|
+
body: await parseErrorBody(output.body, context),
|
|
899
899
|
};
|
|
900
900
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
901
|
switch (errorCode) {
|
|
@@ -938,7 +938,7 @@ exports.deserializeAws_restJson1GetConnectionCommand = deserializeAws_restJson1G
|
|
|
938
938
|
const deserializeAws_restJson1GetConnectionCommandError = async (output, context) => {
|
|
939
939
|
const parsedOutput = {
|
|
940
940
|
...output,
|
|
941
|
-
body: await
|
|
941
|
+
body: await parseErrorBody(output.body, context),
|
|
942
942
|
};
|
|
943
943
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
944
|
switch (errorCode) {
|
|
@@ -981,7 +981,7 @@ exports.deserializeAws_restJson1GetOrderCommand = deserializeAws_restJson1GetOrd
|
|
|
981
981
|
const deserializeAws_restJson1GetOrderCommandError = async (output, context) => {
|
|
982
982
|
const parsedOutput = {
|
|
983
983
|
...output,
|
|
984
|
-
body: await
|
|
984
|
+
body: await parseErrorBody(output.body, context),
|
|
985
985
|
};
|
|
986
986
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
987
|
switch (errorCode) {
|
|
@@ -1021,7 +1021,7 @@ exports.deserializeAws_restJson1GetOutpostCommand = deserializeAws_restJson1GetO
|
|
|
1021
1021
|
const deserializeAws_restJson1GetOutpostCommandError = async (output, context) => {
|
|
1022
1022
|
const parsedOutput = {
|
|
1023
1023
|
...output,
|
|
1024
|
-
body: await
|
|
1024
|
+
body: await parseErrorBody(output.body, context),
|
|
1025
1025
|
};
|
|
1026
1026
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
1027
|
switch (errorCode) {
|
|
@@ -1073,7 +1073,7 @@ exports.deserializeAws_restJson1GetOutpostInstanceTypesCommand = deserializeAws_
|
|
|
1073
1073
|
const deserializeAws_restJson1GetOutpostInstanceTypesCommandError = async (output, context) => {
|
|
1074
1074
|
const parsedOutput = {
|
|
1075
1075
|
...output,
|
|
1076
|
-
body: await
|
|
1076
|
+
body: await parseErrorBody(output.body, context),
|
|
1077
1077
|
};
|
|
1078
1078
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1079
1079
|
switch (errorCode) {
|
|
@@ -1116,7 +1116,7 @@ exports.deserializeAws_restJson1GetSiteCommand = deserializeAws_restJson1GetSite
|
|
|
1116
1116
|
const deserializeAws_restJson1GetSiteCommandError = async (output, context) => {
|
|
1117
1117
|
const parsedOutput = {
|
|
1118
1118
|
...output,
|
|
1119
|
-
body: await
|
|
1119
|
+
body: await parseErrorBody(output.body, context),
|
|
1120
1120
|
};
|
|
1121
1121
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
1122
|
switch (errorCode) {
|
|
@@ -1165,7 +1165,7 @@ exports.deserializeAws_restJson1GetSiteAddressCommand = deserializeAws_restJson1
|
|
|
1165
1165
|
const deserializeAws_restJson1GetSiteAddressCommandError = async (output, context) => {
|
|
1166
1166
|
const parsedOutput = {
|
|
1167
1167
|
...output,
|
|
1168
|
-
body: await
|
|
1168
|
+
body: await parseErrorBody(output.body, context),
|
|
1169
1169
|
};
|
|
1170
1170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
1171
|
switch (errorCode) {
|
|
@@ -1211,7 +1211,7 @@ exports.deserializeAws_restJson1ListAssetsCommand = deserializeAws_restJson1List
|
|
|
1211
1211
|
const deserializeAws_restJson1ListAssetsCommandError = 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) {
|
|
@@ -1257,7 +1257,7 @@ exports.deserializeAws_restJson1ListCatalogItemsCommand = deserializeAws_restJso
|
|
|
1257
1257
|
const deserializeAws_restJson1ListCatalogItemsCommandError = async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
|
-
body: await
|
|
1260
|
+
body: await parseErrorBody(output.body, context),
|
|
1261
1261
|
};
|
|
1262
1262
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
switch (errorCode) {
|
|
@@ -1300,7 +1300,7 @@ exports.deserializeAws_restJson1ListOrdersCommand = deserializeAws_restJson1List
|
|
|
1300
1300
|
const deserializeAws_restJson1ListOrdersCommandError = async (output, context) => {
|
|
1301
1301
|
const parsedOutput = {
|
|
1302
1302
|
...output,
|
|
1303
|
-
body: await
|
|
1303
|
+
body: await parseErrorBody(output.body, context),
|
|
1304
1304
|
};
|
|
1305
1305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
1306
|
switch (errorCode) {
|
|
@@ -1346,7 +1346,7 @@ exports.deserializeAws_restJson1ListOutpostsCommand = deserializeAws_restJson1Li
|
|
|
1346
1346
|
const deserializeAws_restJson1ListOutpostsCommandError = async (output, context) => {
|
|
1347
1347
|
const parsedOutput = {
|
|
1348
1348
|
...output,
|
|
1349
|
-
body: await
|
|
1349
|
+
body: await parseErrorBody(output.body, context),
|
|
1350
1350
|
};
|
|
1351
1351
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1352
|
switch (errorCode) {
|
|
@@ -1389,7 +1389,7 @@ exports.deserializeAws_restJson1ListSitesCommand = deserializeAws_restJson1ListS
|
|
|
1389
1389
|
const deserializeAws_restJson1ListSitesCommandError = async (output, context) => {
|
|
1390
1390
|
const parsedOutput = {
|
|
1391
1391
|
...output,
|
|
1392
|
-
body: await
|
|
1392
|
+
body: await parseErrorBody(output.body, context),
|
|
1393
1393
|
};
|
|
1394
1394
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
1395
|
switch (errorCode) {
|
|
@@ -1429,7 +1429,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
1429
1429
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1430
1430
|
const parsedOutput = {
|
|
1431
1431
|
...output,
|
|
1432
|
-
body: await
|
|
1432
|
+
body: await parseErrorBody(output.body, context),
|
|
1433
1433
|
};
|
|
1434
1434
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1435
1435
|
switch (errorCode) {
|
|
@@ -1472,7 +1472,7 @@ exports.deserializeAws_restJson1StartConnectionCommand = deserializeAws_restJson
|
|
|
1472
1472
|
const deserializeAws_restJson1StartConnectionCommandError = async (output, context) => {
|
|
1473
1473
|
const parsedOutput = {
|
|
1474
1474
|
...output,
|
|
1475
|
-
body: await
|
|
1475
|
+
body: await parseErrorBody(output.body, context),
|
|
1476
1476
|
};
|
|
1477
1477
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1478
1478
|
switch (errorCode) {
|
|
@@ -1512,7 +1512,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
|
|
|
1512
1512
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
1513
1513
|
const parsedOutput = {
|
|
1514
1514
|
...output,
|
|
1515
|
-
body: await
|
|
1515
|
+
body: await parseErrorBody(output.body, context),
|
|
1516
1516
|
};
|
|
1517
1517
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
1518
|
switch (errorCode) {
|
|
@@ -1549,7 +1549,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
|
|
|
1549
1549
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
1550
1550
|
const parsedOutput = {
|
|
1551
1551
|
...output,
|
|
1552
|
-
body: await
|
|
1552
|
+
body: await parseErrorBody(output.body, context),
|
|
1553
1553
|
};
|
|
1554
1554
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
1555
|
switch (errorCode) {
|
|
@@ -1589,7 +1589,7 @@ exports.deserializeAws_restJson1UpdateOutpostCommand = deserializeAws_restJson1U
|
|
|
1589
1589
|
const deserializeAws_restJson1UpdateOutpostCommandError = async (output, context) => {
|
|
1590
1590
|
const parsedOutput = {
|
|
1591
1591
|
...output,
|
|
1592
|
-
body: await
|
|
1592
|
+
body: await parseErrorBody(output.body, context),
|
|
1593
1593
|
};
|
|
1594
1594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1595
1595
|
switch (errorCode) {
|
|
@@ -1635,7 +1635,7 @@ exports.deserializeAws_restJson1UpdateSiteCommand = deserializeAws_restJson1Upda
|
|
|
1635
1635
|
const deserializeAws_restJson1UpdateSiteCommandError = async (output, context) => {
|
|
1636
1636
|
const parsedOutput = {
|
|
1637
1637
|
...output,
|
|
1638
|
-
body: await
|
|
1638
|
+
body: await parseErrorBody(output.body, context),
|
|
1639
1639
|
};
|
|
1640
1640
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1641
1641
|
switch (errorCode) {
|
|
@@ -1684,7 +1684,7 @@ exports.deserializeAws_restJson1UpdateSiteAddressCommand = deserializeAws_restJs
|
|
|
1684
1684
|
const deserializeAws_restJson1UpdateSiteAddressCommandError = async (output, context) => {
|
|
1685
1685
|
const parsedOutput = {
|
|
1686
1686
|
...output,
|
|
1687
|
-
body: await
|
|
1687
|
+
body: await parseErrorBody(output.body, context),
|
|
1688
1688
|
};
|
|
1689
1689
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1690
1690
|
switch (errorCode) {
|
|
@@ -1730,7 +1730,7 @@ exports.deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommand = deseri
|
|
|
1730
1730
|
const deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = async (output, context) => {
|
|
1731
1731
|
const parsedOutput = {
|
|
1732
1732
|
...output,
|
|
1733
|
-
body: await
|
|
1733
|
+
body: await parseErrorBody(output.body, context),
|
|
1734
1734
|
};
|
|
1735
1735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
1736
|
switch (errorCode) {
|
|
@@ -2263,6 +2263,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2263
2263
|
}
|
|
2264
2264
|
return {};
|
|
2265
2265
|
});
|
|
2266
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2267
|
+
var _a;
|
|
2268
|
+
const value = await parseBody(errorBody, context);
|
|
2269
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2270
|
+
return value;
|
|
2271
|
+
};
|
|
2266
2272
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2267
2273
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2268
2274
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -709,7 +709,7 @@ var deserializeAws_restJson1CancelOrderCommandError = function (output, context)
|
|
|
709
709
|
case 0:
|
|
710
710
|
_a = [__assign({}, output)];
|
|
711
711
|
_c = {};
|
|
712
|
-
return [4,
|
|
712
|
+
return [4, parseErrorBody(output.body, context)];
|
|
713
713
|
case 1:
|
|
714
714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
715
715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -781,7 +781,7 @@ var deserializeAws_restJson1CreateOrderCommandError = function (output, context)
|
|
|
781
781
|
case 0:
|
|
782
782
|
_a = [__assign({}, output)];
|
|
783
783
|
_c = {};
|
|
784
|
-
return [4,
|
|
784
|
+
return [4, parseErrorBody(output.body, context)];
|
|
785
785
|
case 1:
|
|
786
786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
787
787
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -857,7 +857,7 @@ var deserializeAws_restJson1CreateOutpostCommandError = function (output, contex
|
|
|
857
857
|
case 0:
|
|
858
858
|
_a = [__assign({}, output)];
|
|
859
859
|
_c = {};
|
|
860
|
-
return [4,
|
|
860
|
+
return [4, parseErrorBody(output.body, context)];
|
|
861
861
|
case 1:
|
|
862
862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
863
863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -933,7 +933,7 @@ var deserializeAws_restJson1CreateSiteCommandError = function (output, context)
|
|
|
933
933
|
case 0:
|
|
934
934
|
_a = [__assign({}, output)];
|
|
935
935
|
_c = {};
|
|
936
|
-
return [4,
|
|
936
|
+
return [4, parseErrorBody(output.body, context)];
|
|
937
937
|
case 1:
|
|
938
938
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
939
939
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1000,7 +1000,7 @@ var deserializeAws_restJson1DeleteOutpostCommandError = function (output, contex
|
|
|
1000
1000
|
case 0:
|
|
1001
1001
|
_a = [__assign({}, output)];
|
|
1002
1002
|
_c = {};
|
|
1003
|
-
return [4,
|
|
1003
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1004
1004
|
case 1:
|
|
1005
1005
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1006
1006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1067,7 +1067,7 @@ var deserializeAws_restJson1DeleteSiteCommandError = function (output, context)
|
|
|
1067
1067
|
case 0:
|
|
1068
1068
|
_a = [__assign({}, output)];
|
|
1069
1069
|
_c = {};
|
|
1070
|
-
return [4,
|
|
1070
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1071
1071
|
case 1:
|
|
1072
1072
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1073
1073
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1139,7 +1139,7 @@ var deserializeAws_restJson1GetCatalogItemCommandError = function (output, conte
|
|
|
1139
1139
|
case 0:
|
|
1140
1140
|
_a = [__assign({}, output)];
|
|
1141
1141
|
_c = {};
|
|
1142
|
-
return [4,
|
|
1142
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1143
1143
|
case 1:
|
|
1144
1144
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1145
1145
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1206,7 +1206,7 @@ var deserializeAws_restJson1GetConnectionCommandError = function (output, contex
|
|
|
1206
1206
|
case 0:
|
|
1207
1207
|
_a = [__assign({}, output)];
|
|
1208
1208
|
_c = {};
|
|
1209
|
-
return [4,
|
|
1209
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1210
1210
|
case 1:
|
|
1211
1211
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1212
1212
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1274,7 +1274,7 @@ var deserializeAws_restJson1GetOrderCommandError = function (output, context) {
|
|
|
1274
1274
|
case 0:
|
|
1275
1275
|
_a = [__assign({}, output)];
|
|
1276
1276
|
_c = {};
|
|
1277
|
-
return [4,
|
|
1277
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1278
1278
|
case 1:
|
|
1279
1279
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1280
1280
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1338,7 +1338,7 @@ var deserializeAws_restJson1GetOutpostCommandError = function (output, context)
|
|
|
1338
1338
|
case 0:
|
|
1339
1339
|
_a = [__assign({}, output)];
|
|
1340
1340
|
_c = {};
|
|
1341
|
-
return [4,
|
|
1341
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1342
1342
|
case 1:
|
|
1343
1343
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1344
1344
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1415,7 +1415,7 @@ var deserializeAws_restJson1GetOutpostInstanceTypesCommandError = function (outp
|
|
|
1415
1415
|
case 0:
|
|
1416
1416
|
_a = [__assign({}, output)];
|
|
1417
1417
|
_c = {};
|
|
1418
|
-
return [4,
|
|
1418
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1419
1419
|
case 1:
|
|
1420
1420
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1421
1421
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1483,7 +1483,7 @@ var deserializeAws_restJson1GetSiteCommandError = function (output, context) { r
|
|
|
1483
1483
|
case 0:
|
|
1484
1484
|
_a = [__assign({}, output)];
|
|
1485
1485
|
_c = {};
|
|
1486
|
-
return [4,
|
|
1486
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1487
1487
|
case 1:
|
|
1488
1488
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1489
1489
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1557,7 +1557,7 @@ var deserializeAws_restJson1GetSiteAddressCommandError = function (output, conte
|
|
|
1557
1557
|
case 0:
|
|
1558
1558
|
_a = [__assign({}, output)];
|
|
1559
1559
|
_c = {};
|
|
1560
|
-
return [4,
|
|
1560
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1561
1561
|
case 1:
|
|
1562
1562
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1563
1563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1628,7 +1628,7 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
|
|
|
1628
1628
|
case 0:
|
|
1629
1629
|
_a = [__assign({}, output)];
|
|
1630
1630
|
_c = {};
|
|
1631
|
-
return [4,
|
|
1631
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1632
1632
|
case 1:
|
|
1633
1633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1634
1634
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1699,7 +1699,7 @@ var deserializeAws_restJson1ListCatalogItemsCommandError = function (output, con
|
|
|
1699
1699
|
case 0:
|
|
1700
1700
|
_a = [__assign({}, output)];
|
|
1701
1701
|
_c = {};
|
|
1702
|
-
return [4,
|
|
1702
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1703
1703
|
case 1:
|
|
1704
1704
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1705
1705
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1766,7 +1766,7 @@ var deserializeAws_restJson1ListOrdersCommandError = function (output, context)
|
|
|
1766
1766
|
case 0:
|
|
1767
1767
|
_a = [__assign({}, output)];
|
|
1768
1768
|
_c = {};
|
|
1769
|
-
return [4,
|
|
1769
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1770
1770
|
case 1:
|
|
1771
1771
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1772
1772
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1837,7 +1837,7 @@ var deserializeAws_restJson1ListOutpostsCommandError = function (output, context
|
|
|
1837
1837
|
case 0:
|
|
1838
1838
|
_a = [__assign({}, output)];
|
|
1839
1839
|
_c = {};
|
|
1840
|
-
return [4,
|
|
1840
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1841
1841
|
case 1:
|
|
1842
1842
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1843
1843
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1904,7 +1904,7 @@ var deserializeAws_restJson1ListSitesCommandError = function (output, context) {
|
|
|
1904
1904
|
case 0:
|
|
1905
1905
|
_a = [__assign({}, output)];
|
|
1906
1906
|
_c = {};
|
|
1907
|
-
return [4,
|
|
1907
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1908
1908
|
case 1:
|
|
1909
1909
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1910
1910
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1968,7 +1968,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1968
1968
|
case 0:
|
|
1969
1969
|
_a = [__assign({}, output)];
|
|
1970
1970
|
_c = {};
|
|
1971
|
-
return [4,
|
|
1971
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1972
1972
|
case 1:
|
|
1973
1973
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1974
1974
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2035,7 +2035,7 @@ var deserializeAws_restJson1StartConnectionCommandError = function (output, cont
|
|
|
2035
2035
|
case 0:
|
|
2036
2036
|
_a = [__assign({}, output)];
|
|
2037
2037
|
_c = {};
|
|
2038
|
-
return [4,
|
|
2038
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2039
2039
|
case 1:
|
|
2040
2040
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2041
2041
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2098,7 +2098,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2098
2098
|
case 0:
|
|
2099
2099
|
_a = [__assign({}, output)];
|
|
2100
2100
|
_c = {};
|
|
2101
|
-
return [4,
|
|
2101
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2102
2102
|
case 1:
|
|
2103
2103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2104
2104
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2157,7 +2157,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2157
2157
|
case 0:
|
|
2158
2158
|
_a = [__assign({}, output)];
|
|
2159
2159
|
_c = {};
|
|
2160
|
-
return [4,
|
|
2160
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2161
2161
|
case 1:
|
|
2162
2162
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2163
2163
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2221,7 +2221,7 @@ var deserializeAws_restJson1UpdateOutpostCommandError = function (output, contex
|
|
|
2221
2221
|
case 0:
|
|
2222
2222
|
_a = [__assign({}, output)];
|
|
2223
2223
|
_c = {};
|
|
2224
|
-
return [4,
|
|
2224
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2225
2225
|
case 1:
|
|
2226
2226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2227
2227
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2293,7 +2293,7 @@ var deserializeAws_restJson1UpdateSiteCommandError = function (output, context)
|
|
|
2293
2293
|
case 0:
|
|
2294
2294
|
_a = [__assign({}, output)];
|
|
2295
2295
|
_c = {};
|
|
2296
|
-
return [4,
|
|
2296
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2297
2297
|
case 1:
|
|
2298
2298
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2299
2299
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2368,7 +2368,7 @@ var deserializeAws_restJson1UpdateSiteAddressCommandError = function (output, co
|
|
|
2368
2368
|
case 0:
|
|
2369
2369
|
_a = [__assign({}, output)];
|
|
2370
2370
|
_c = {};
|
|
2371
|
-
return [4,
|
|
2371
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2372
2372
|
case 1:
|
|
2373
2373
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2374
2374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2440,7 +2440,7 @@ var deserializeAws_restJson1UpdateSiteRackPhysicalPropertiesCommandError = funct
|
|
|
2440
2440
|
case 0:
|
|
2441
2441
|
_a = [__assign({}, output)];
|
|
2442
2442
|
_c = {};
|
|
2443
|
-
return [4,
|
|
2443
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2444
2444
|
case 1:
|
|
2445
2445
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2446
2446
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2964,6 +2964,19 @@ var parseBody = function (streamBody, context) {
|
|
|
2964
2964
|
return {};
|
|
2965
2965
|
});
|
|
2966
2966
|
};
|
|
2967
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2968
|
+
var value;
|
|
2969
|
+
var _a;
|
|
2970
|
+
return __generator(this, function (_b) {
|
|
2971
|
+
switch (_b.label) {
|
|
2972
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2973
|
+
case 1:
|
|
2974
|
+
value = _b.sent();
|
|
2975
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2976
|
+
return [2, value];
|
|
2977
|
+
}
|
|
2978
|
+
});
|
|
2979
|
+
}); };
|
|
2967
2980
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2968
2981
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2969
2982
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-outposts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Outposts 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",
|