@aws-sdk/client-outposts 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +32 -26
- package/dist-es/Outposts.js +106 -113
- package/dist-es/OutpostsClient.js +22 -28
- package/dist-es/commands/CancelOrderCommand.js +21 -28
- package/dist-es/commands/CreateOrderCommand.js +21 -28
- package/dist-es/commands/CreateOutpostCommand.js +21 -28
- package/dist-es/commands/CreateSiteCommand.js +21 -28
- package/dist-es/commands/DeleteOutpostCommand.js +21 -28
- package/dist-es/commands/DeleteSiteCommand.js +21 -28
- package/dist-es/commands/GetCatalogItemCommand.js +21 -28
- package/dist-es/commands/GetConnectionCommand.js +21 -28
- package/dist-es/commands/GetOrderCommand.js +21 -28
- package/dist-es/commands/GetOutpostCommand.js +21 -28
- package/dist-es/commands/GetOutpostInstanceTypesCommand.js +21 -28
- package/dist-es/commands/GetSiteAddressCommand.js +21 -28
- package/dist-es/commands/GetSiteCommand.js +21 -28
- package/dist-es/commands/ListAssetsCommand.js +21 -28
- package/dist-es/commands/ListCatalogItemsCommand.js +21 -28
- package/dist-es/commands/ListOrdersCommand.js +21 -28
- package/dist-es/commands/ListOutpostsCommand.js +21 -28
- package/dist-es/commands/ListSitesCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/StartConnectionCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateOutpostCommand.js +21 -28
- package/dist-es/commands/UpdateSiteAddressCommand.js +21 -28
- package/dist-es/commands/UpdateSiteCommand.js +21 -28
- package/dist-es/commands/UpdateSiteRackPhysicalPropertiesCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/OutpostsServiceException.js +5 -10
- package/dist-es/models/models_0.js +281 -144
- package/dist-es/pagination/GetOutpostInstanceTypesPaginator.js +25 -68
- package/dist-es/pagination/ListAssetsPaginator.js +25 -68
- package/dist-es/pagination/ListCatalogItemsPaginator.js +25 -68
- package/dist-es/pagination/ListOrdersPaginator.js +25 -68
- package/dist-es/pagination/ListOutpostsPaginator.js +25 -68
- package/dist-es/pagination/ListSitesPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +1870 -2625
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-outposts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
* **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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**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) => {
|