@aws-sdk/client-opensearch 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 +46 -40
- package/dist-es/OpenSearch.js +162 -169
- package/dist-es/OpenSearchClient.js +22 -28
- package/dist-es/commands/AcceptInboundConnectionCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +22 -29
- package/dist-es/commands/AssociatePackageCommand.js +21 -28
- package/dist-es/commands/CancelServiceSoftwareUpdateCommand.js +21 -28
- package/dist-es/commands/CreateDomainCommand.js +21 -28
- package/dist-es/commands/CreateOutboundConnectionCommand.js +21 -28
- package/dist-es/commands/CreatePackageCommand.js +21 -28
- package/dist-es/commands/DeleteDomainCommand.js +21 -28
- package/dist-es/commands/DeleteInboundConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteOutboundConnectionCommand.js +21 -28
- package/dist-es/commands/DeletePackageCommand.js +21 -28
- package/dist-es/commands/DescribeDomainAutoTunesCommand.js +21 -28
- package/dist-es/commands/DescribeDomainChangeProgressCommand.js +21 -28
- package/dist-es/commands/DescribeDomainCommand.js +21 -28
- package/dist-es/commands/DescribeDomainConfigCommand.js +21 -28
- package/dist-es/commands/DescribeDomainsCommand.js +21 -28
- package/dist-es/commands/DescribeInboundConnectionsCommand.js +21 -28
- package/dist-es/commands/DescribeInstanceTypeLimitsCommand.js +21 -28
- package/dist-es/commands/DescribeOutboundConnectionsCommand.js +21 -28
- package/dist-es/commands/DescribePackagesCommand.js +21 -28
- package/dist-es/commands/DescribeReservedInstanceOfferingsCommand.js +21 -28
- package/dist-es/commands/DescribeReservedInstancesCommand.js +21 -28
- package/dist-es/commands/DissociatePackageCommand.js +21 -28
- package/dist-es/commands/GetCompatibleVersionsCommand.js +21 -28
- package/dist-es/commands/GetPackageVersionHistoryCommand.js +21 -28
- package/dist-es/commands/GetUpgradeHistoryCommand.js +21 -28
- package/dist-es/commands/GetUpgradeStatusCommand.js +21 -28
- package/dist-es/commands/ListDomainNamesCommand.js +21 -28
- package/dist-es/commands/ListDomainsForPackageCommand.js +21 -28
- package/dist-es/commands/ListInstanceTypeDetailsCommand.js +21 -28
- package/dist-es/commands/ListPackagesForDomainCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/ListVersionsCommand.js +21 -28
- package/dist-es/commands/PurchaseReservedInstanceOfferingCommand.js +21 -28
- package/dist-es/commands/RejectInboundConnectionCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +22 -29
- package/dist-es/commands/StartServiceSoftwareUpdateCommand.js +21 -28
- package/dist-es/commands/UpdateDomainConfigCommand.js +21 -28
- package/dist-es/commands/UpdatePackageCommand.js +21 -28
- package/dist-es/commands/UpgradeDomainCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/OpenSearchServiceException.js +5 -10
- package/dist-es/models/models_0.js +597 -281
- package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +25 -68
- package/dist-es/pagination/DescribeInboundConnectionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeOutboundConnectionsPaginator.js +25 -68
- package/dist-es/pagination/DescribePackagesPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedInstanceOfferingsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedInstancesPaginator.js +25 -68
- package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +25 -68
- package/dist-es/pagination/GetUpgradeHistoryPaginator.js +25 -68
- package/dist-es/pagination/ListDomainsForPackagePaginator.js +25 -68
- package/dist-es/pagination/ListInstanceTypeDetailsPaginator.js +25 -68
- package/dist-es/pagination/ListPackagesForDomainPaginator.js +25 -68
- package/dist-es/pagination/ListVersionsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3200 -4309
- 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-opensearch
|
|
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-opensearch
|
|
@@ -952,7 +952,7 @@ exports.deserializeAws_restJson1AcceptInboundConnectionCommand = deserializeAws_
|
|
|
952
952
|
const deserializeAws_restJson1AcceptInboundConnectionCommandError = async (output, context) => {
|
|
953
953
|
const parsedOutput = {
|
|
954
954
|
...output,
|
|
955
|
-
body: await
|
|
955
|
+
body: await parseErrorBody(output.body, context),
|
|
956
956
|
};
|
|
957
957
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
958
|
switch (errorCode) {
|
|
@@ -989,7 +989,7 @@ exports.deserializeAws_restJson1AddTagsCommand = deserializeAws_restJson1AddTags
|
|
|
989
989
|
const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
|
|
990
990
|
const parsedOutput = {
|
|
991
991
|
...output,
|
|
992
|
-
body: await
|
|
992
|
+
body: await parseErrorBody(output.body, context),
|
|
993
993
|
};
|
|
994
994
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
995
|
switch (errorCode) {
|
|
@@ -1032,7 +1032,7 @@ exports.deserializeAws_restJson1AssociatePackageCommand = deserializeAws_restJso
|
|
|
1032
1032
|
const deserializeAws_restJson1AssociatePackageCommandError = async (output, context) => {
|
|
1033
1033
|
const parsedOutput = {
|
|
1034
1034
|
...output,
|
|
1035
|
-
body: await
|
|
1035
|
+
body: await parseErrorBody(output.body, context),
|
|
1036
1036
|
};
|
|
1037
1037
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
1038
|
switch (errorCode) {
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = deserialize
|
|
|
1081
1081
|
const deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1124,7 +1124,7 @@ exports.deserializeAws_restJson1CreateDomainCommand = deserializeAws_restJson1Cr
|
|
|
1124
1124
|
const deserializeAws_restJson1CreateDomainCommandError = async (output, context) => {
|
|
1125
1125
|
const parsedOutput = {
|
|
1126
1126
|
...output,
|
|
1127
|
-
body: await
|
|
1127
|
+
body: await parseErrorBody(output.body, context),
|
|
1128
1128
|
};
|
|
1129
1129
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1130
|
switch (errorCode) {
|
|
@@ -1188,7 +1188,7 @@ exports.deserializeAws_restJson1CreateOutboundConnectionCommand = deserializeAws
|
|
|
1188
1188
|
const deserializeAws_restJson1CreateOutboundConnectionCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
|
-
body: await
|
|
1191
|
+
body: await parseErrorBody(output.body, context),
|
|
1192
1192
|
};
|
|
1193
1193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
1194
|
switch (errorCode) {
|
|
@@ -1231,7 +1231,7 @@ exports.deserializeAws_restJson1CreatePackageCommand = deserializeAws_restJson1C
|
|
|
1231
1231
|
const deserializeAws_restJson1CreatePackageCommandError = async (output, context) => {
|
|
1232
1232
|
const parsedOutput = {
|
|
1233
1233
|
...output,
|
|
1234
|
-
body: await
|
|
1234
|
+
body: await parseErrorBody(output.body, context),
|
|
1235
1235
|
};
|
|
1236
1236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1237
|
switch (errorCode) {
|
|
@@ -1283,7 +1283,7 @@ exports.deserializeAws_restJson1DeleteDomainCommand = deserializeAws_restJson1De
|
|
|
1283
1283
|
const deserializeAws_restJson1DeleteDomainCommandError = async (output, context) => {
|
|
1284
1284
|
const parsedOutput = {
|
|
1285
1285
|
...output,
|
|
1286
|
-
body: await
|
|
1286
|
+
body: await parseErrorBody(output.body, context),
|
|
1287
1287
|
};
|
|
1288
1288
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1289
1289
|
switch (errorCode) {
|
|
@@ -1326,7 +1326,7 @@ exports.deserializeAws_restJson1DeleteInboundConnectionCommand = deserializeAws_
|
|
|
1326
1326
|
const deserializeAws_restJson1DeleteInboundConnectionCommandError = async (output, context) => {
|
|
1327
1327
|
const parsedOutput = {
|
|
1328
1328
|
...output,
|
|
1329
|
-
body: await
|
|
1329
|
+
body: await parseErrorBody(output.body, context),
|
|
1330
1330
|
};
|
|
1331
1331
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1332
|
switch (errorCode) {
|
|
@@ -1363,7 +1363,7 @@ exports.deserializeAws_restJson1DeleteOutboundConnectionCommand = deserializeAws
|
|
|
1363
1363
|
const deserializeAws_restJson1DeleteOutboundConnectionCommandError = async (output, context) => {
|
|
1364
1364
|
const parsedOutput = {
|
|
1365
1365
|
...output,
|
|
1366
|
-
body: await
|
|
1366
|
+
body: await parseErrorBody(output.body, context),
|
|
1367
1367
|
};
|
|
1368
1368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
1369
|
switch (errorCode) {
|
|
@@ -1400,7 +1400,7 @@ exports.deserializeAws_restJson1DeletePackageCommand = deserializeAws_restJson1D
|
|
|
1400
1400
|
const deserializeAws_restJson1DeletePackageCommandError = async (output, context) => {
|
|
1401
1401
|
const parsedOutput = {
|
|
1402
1402
|
...output,
|
|
1403
|
-
body: await
|
|
1403
|
+
body: await parseErrorBody(output.body, context),
|
|
1404
1404
|
};
|
|
1405
1405
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
1406
|
switch (errorCode) {
|
|
@@ -1449,7 +1449,7 @@ exports.deserializeAws_restJson1DescribeDomainCommand = deserializeAws_restJson1
|
|
|
1449
1449
|
const deserializeAws_restJson1DescribeDomainCommandError = async (output, context) => {
|
|
1450
1450
|
const parsedOutput = {
|
|
1451
1451
|
...output,
|
|
1452
|
-
body: await
|
|
1452
|
+
body: await parseErrorBody(output.body, context),
|
|
1453
1453
|
};
|
|
1454
1454
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
1455
|
switch (errorCode) {
|
|
@@ -1495,7 +1495,7 @@ exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = deserializeAws_
|
|
|
1495
1495
|
const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (output, context) => {
|
|
1496
1496
|
const parsedOutput = {
|
|
1497
1497
|
...output,
|
|
1498
|
-
body: await
|
|
1498
|
+
body: await parseErrorBody(output.body, context),
|
|
1499
1499
|
};
|
|
1500
1500
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
1501
|
switch (errorCode) {
|
|
@@ -1538,7 +1538,7 @@ exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = deserializ
|
|
|
1538
1538
|
const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (output, context) => {
|
|
1539
1539
|
const parsedOutput = {
|
|
1540
1540
|
...output,
|
|
1541
|
-
body: await
|
|
1541
|
+
body: await parseErrorBody(output.body, context),
|
|
1542
1542
|
};
|
|
1543
1543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1544
1544
|
switch (errorCode) {
|
|
@@ -1581,7 +1581,7 @@ exports.deserializeAws_restJson1DescribeDomainConfigCommand = deserializeAws_res
|
|
|
1581
1581
|
const deserializeAws_restJson1DescribeDomainConfigCommandError = async (output, context) => {
|
|
1582
1582
|
const parsedOutput = {
|
|
1583
1583
|
...output,
|
|
1584
|
-
body: await
|
|
1584
|
+
body: await parseErrorBody(output.body, context),
|
|
1585
1585
|
};
|
|
1586
1586
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
1587
|
switch (errorCode) {
|
|
@@ -1624,7 +1624,7 @@ exports.deserializeAws_restJson1DescribeDomainsCommand = deserializeAws_restJson
|
|
|
1624
1624
|
const deserializeAws_restJson1DescribeDomainsCommandError = async (output, context) => {
|
|
1625
1625
|
const parsedOutput = {
|
|
1626
1626
|
...output,
|
|
1627
|
-
body: await
|
|
1627
|
+
body: await parseErrorBody(output.body, context),
|
|
1628
1628
|
};
|
|
1629
1629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1630
|
switch (errorCode) {
|
|
@@ -1667,7 +1667,7 @@ exports.deserializeAws_restJson1DescribeInboundConnectionsCommand = deserializeA
|
|
|
1667
1667
|
const deserializeAws_restJson1DescribeInboundConnectionsCommandError = async (output, context) => {
|
|
1668
1668
|
const parsedOutput = {
|
|
1669
1669
|
...output,
|
|
1670
|
-
body: await
|
|
1670
|
+
body: await parseErrorBody(output.body, context),
|
|
1671
1671
|
};
|
|
1672
1672
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1673
1673
|
switch (errorCode) {
|
|
@@ -1704,7 +1704,7 @@ exports.deserializeAws_restJson1DescribeInstanceTypeLimitsCommand = deserializeA
|
|
|
1704
1704
|
const deserializeAws_restJson1DescribeInstanceTypeLimitsCommandError = async (output, context) => {
|
|
1705
1705
|
const parsedOutput = {
|
|
1706
1706
|
...output,
|
|
1707
|
-
body: await
|
|
1707
|
+
body: await parseErrorBody(output.body, context),
|
|
1708
1708
|
};
|
|
1709
1709
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1710
1710
|
switch (errorCode) {
|
|
@@ -1756,7 +1756,7 @@ exports.deserializeAws_restJson1DescribeOutboundConnectionsCommand = deserialize
|
|
|
1756
1756
|
const deserializeAws_restJson1DescribeOutboundConnectionsCommandError = async (output, context) => {
|
|
1757
1757
|
const parsedOutput = {
|
|
1758
1758
|
...output,
|
|
1759
|
-
body: await
|
|
1759
|
+
body: await parseErrorBody(output.body, context),
|
|
1760
1760
|
};
|
|
1761
1761
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1762
|
switch (errorCode) {
|
|
@@ -1796,7 +1796,7 @@ exports.deserializeAws_restJson1DescribePackagesCommand = deserializeAws_restJso
|
|
|
1796
1796
|
const deserializeAws_restJson1DescribePackagesCommandError = async (output, context) => {
|
|
1797
1797
|
const parsedOutput = {
|
|
1798
1798
|
...output,
|
|
1799
|
-
body: await
|
|
1799
|
+
body: await parseErrorBody(output.body, context),
|
|
1800
1800
|
};
|
|
1801
1801
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
1802
|
switch (errorCode) {
|
|
@@ -1845,7 +1845,7 @@ exports.deserializeAws_restJson1DescribeReservedInstanceOfferingsCommand = deser
|
|
|
1845
1845
|
const deserializeAws_restJson1DescribeReservedInstanceOfferingsCommandError = async (output, context) => {
|
|
1846
1846
|
const parsedOutput = {
|
|
1847
1847
|
...output,
|
|
1848
|
-
body: await
|
|
1848
|
+
body: await parseErrorBody(output.body, context),
|
|
1849
1849
|
};
|
|
1850
1850
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1851
1851
|
switch (errorCode) {
|
|
@@ -1891,7 +1891,7 @@ exports.deserializeAws_restJson1DescribeReservedInstancesCommand = deserializeAw
|
|
|
1891
1891
|
const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (output, context) => {
|
|
1892
1892
|
const parsedOutput = {
|
|
1893
1893
|
...output,
|
|
1894
|
-
body: await
|
|
1894
|
+
body: await parseErrorBody(output.body, context),
|
|
1895
1895
|
};
|
|
1896
1896
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1897
1897
|
switch (errorCode) {
|
|
@@ -1934,7 +1934,7 @@ exports.deserializeAws_restJson1DissociatePackageCommand = deserializeAws_restJs
|
|
|
1934
1934
|
const deserializeAws_restJson1DissociatePackageCommandError = async (output, context) => {
|
|
1935
1935
|
const parsedOutput = {
|
|
1936
1936
|
...output,
|
|
1937
|
-
body: await
|
|
1937
|
+
body: await parseErrorBody(output.body, context),
|
|
1938
1938
|
};
|
|
1939
1939
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
1940
|
switch (errorCode) {
|
|
@@ -1983,7 +1983,7 @@ exports.deserializeAws_restJson1GetCompatibleVersionsCommand = deserializeAws_re
|
|
|
1983
1983
|
const deserializeAws_restJson1GetCompatibleVersionsCommandError = async (output, context) => {
|
|
1984
1984
|
const parsedOutput = {
|
|
1985
1985
|
...output,
|
|
1986
|
-
body: await
|
|
1986
|
+
body: await parseErrorBody(output.body, context),
|
|
1987
1987
|
};
|
|
1988
1988
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
1989
|
switch (errorCode) {
|
|
@@ -2035,7 +2035,7 @@ exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = deserializeAws
|
|
|
2035
2035
|
const deserializeAws_restJson1GetPackageVersionHistoryCommandError = async (output, context) => {
|
|
2036
2036
|
const parsedOutput = {
|
|
2037
2037
|
...output,
|
|
2038
|
-
body: await
|
|
2038
|
+
body: await parseErrorBody(output.body, context),
|
|
2039
2039
|
};
|
|
2040
2040
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
2041
|
switch (errorCode) {
|
|
@@ -2084,7 +2084,7 @@ exports.deserializeAws_restJson1GetUpgradeHistoryCommand = deserializeAws_restJs
|
|
|
2084
2084
|
const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, context) => {
|
|
2085
2085
|
const parsedOutput = {
|
|
2086
2086
|
...output,
|
|
2087
|
-
body: await
|
|
2087
|
+
body: await parseErrorBody(output.body, context),
|
|
2088
2088
|
};
|
|
2089
2089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2090
2090
|
switch (errorCode) {
|
|
@@ -2136,7 +2136,7 @@ exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJso
|
|
|
2136
2136
|
const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
|
|
2137
2137
|
const parsedOutput = {
|
|
2138
2138
|
...output,
|
|
2139
|
-
body: await
|
|
2139
|
+
body: await parseErrorBody(output.body, context),
|
|
2140
2140
|
};
|
|
2141
2141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2142
2142
|
switch (errorCode) {
|
|
@@ -2182,7 +2182,7 @@ exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson
|
|
|
2182
2182
|
const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
|
|
2183
2183
|
const parsedOutput = {
|
|
2184
2184
|
...output,
|
|
2185
|
-
body: await
|
|
2185
|
+
body: await parseErrorBody(output.body, context),
|
|
2186
2186
|
};
|
|
2187
2187
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
2188
|
switch (errorCode) {
|
|
@@ -2222,7 +2222,7 @@ exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_re
|
|
|
2222
2222
|
const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
|
|
2223
2223
|
const parsedOutput = {
|
|
2224
2224
|
...output,
|
|
2225
|
-
body: await
|
|
2225
|
+
body: await parseErrorBody(output.body, context),
|
|
2226
2226
|
};
|
|
2227
2227
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2228
2228
|
switch (errorCode) {
|
|
@@ -2271,7 +2271,7 @@ exports.deserializeAws_restJson1ListInstanceTypeDetailsCommand = deserializeAws_
|
|
|
2271
2271
|
const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (output, context) => {
|
|
2272
2272
|
const parsedOutput = {
|
|
2273
2273
|
...output,
|
|
2274
|
-
body: await
|
|
2274
|
+
body: await parseErrorBody(output.body, context),
|
|
2275
2275
|
};
|
|
2276
2276
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
2277
|
switch (errorCode) {
|
|
@@ -2317,7 +2317,7 @@ exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_re
|
|
|
2317
2317
|
const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
|
|
2318
2318
|
const parsedOutput = {
|
|
2319
2319
|
...output,
|
|
2320
|
-
body: await
|
|
2320
|
+
body: await parseErrorBody(output.body, context),
|
|
2321
2321
|
};
|
|
2322
2322
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2323
|
switch (errorCode) {
|
|
@@ -2363,7 +2363,7 @@ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTa
|
|
|
2363
2363
|
const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
|
|
2364
2364
|
const parsedOutput = {
|
|
2365
2365
|
...output,
|
|
2366
|
-
body: await
|
|
2366
|
+
body: await parseErrorBody(output.body, context),
|
|
2367
2367
|
};
|
|
2368
2368
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
2369
|
switch (errorCode) {
|
|
@@ -2409,7 +2409,7 @@ exports.deserializeAws_restJson1ListVersionsCommand = deserializeAws_restJson1Li
|
|
|
2409
2409
|
const deserializeAws_restJson1ListVersionsCommandError = async (output, context) => {
|
|
2410
2410
|
const parsedOutput = {
|
|
2411
2411
|
...output,
|
|
2412
|
-
body: await
|
|
2412
|
+
body: await parseErrorBody(output.body, context),
|
|
2413
2413
|
};
|
|
2414
2414
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2415
2415
|
switch (errorCode) {
|
|
@@ -2455,7 +2455,7 @@ exports.deserializeAws_restJson1PurchaseReservedInstanceOfferingCommand = deseri
|
|
|
2455
2455
|
const deserializeAws_restJson1PurchaseReservedInstanceOfferingCommandError = async (output, context) => {
|
|
2456
2456
|
const parsedOutput = {
|
|
2457
2457
|
...output,
|
|
2458
|
-
body: await
|
|
2458
|
+
body: await parseErrorBody(output.body, context),
|
|
2459
2459
|
};
|
|
2460
2460
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
2461
|
switch (errorCode) {
|
|
@@ -2504,7 +2504,7 @@ exports.deserializeAws_restJson1RejectInboundConnectionCommand = deserializeAws_
|
|
|
2504
2504
|
const deserializeAws_restJson1RejectInboundConnectionCommandError = async (output, context) => {
|
|
2505
2505
|
const parsedOutput = {
|
|
2506
2506
|
...output,
|
|
2507
|
-
body: await
|
|
2507
|
+
body: await parseErrorBody(output.body, context),
|
|
2508
2508
|
};
|
|
2509
2509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
2510
|
switch (errorCode) {
|
|
@@ -2538,7 +2538,7 @@ exports.deserializeAws_restJson1RemoveTagsCommand = deserializeAws_restJson1Remo
|
|
|
2538
2538
|
const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) => {
|
|
2539
2539
|
const parsedOutput = {
|
|
2540
2540
|
...output,
|
|
2541
|
-
body: await
|
|
2541
|
+
body: await parseErrorBody(output.body, context),
|
|
2542
2542
|
};
|
|
2543
2543
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
2544
|
switch (errorCode) {
|
|
@@ -2578,7 +2578,7 @@ exports.deserializeAws_restJson1StartServiceSoftwareUpdateCommand = deserializeA
|
|
|
2578
2578
|
const deserializeAws_restJson1StartServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
2579
2579
|
const parsedOutput = {
|
|
2580
2580
|
...output,
|
|
2581
|
-
body: await
|
|
2581
|
+
body: await parseErrorBody(output.body, context),
|
|
2582
2582
|
};
|
|
2583
2583
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
2584
|
switch (errorCode) {
|
|
@@ -2624,7 +2624,7 @@ exports.deserializeAws_restJson1UpdateDomainConfigCommand = deserializeAws_restJ
|
|
|
2624
2624
|
const deserializeAws_restJson1UpdateDomainConfigCommandError = async (output, context) => {
|
|
2625
2625
|
const parsedOutput = {
|
|
2626
2626
|
...output,
|
|
2627
|
-
body: await
|
|
2627
|
+
body: await parseErrorBody(output.body, context),
|
|
2628
2628
|
};
|
|
2629
2629
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2630
|
switch (errorCode) {
|
|
@@ -2673,7 +2673,7 @@ exports.deserializeAws_restJson1UpdatePackageCommand = deserializeAws_restJson1U
|
|
|
2673
2673
|
const deserializeAws_restJson1UpdatePackageCommandError = async (output, context) => {
|
|
2674
2674
|
const parsedOutput = {
|
|
2675
2675
|
...output,
|
|
2676
|
-
body: await
|
|
2676
|
+
body: await parseErrorBody(output.body, context),
|
|
2677
2677
|
};
|
|
2678
2678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
2679
|
switch (errorCode) {
|
|
@@ -2737,7 +2737,7 @@ exports.deserializeAws_restJson1UpgradeDomainCommand = deserializeAws_restJson1U
|
|
|
2737
2737
|
const deserializeAws_restJson1UpgradeDomainCommandError = async (output, context) => {
|
|
2738
2738
|
const parsedOutput = {
|
|
2739
2739
|
...output,
|
|
2740
|
-
body: await
|
|
2740
|
+
body: await parseErrorBody(output.body, context),
|
|
2741
2741
|
};
|
|
2742
2742
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2743
2743
|
switch (errorCode) {
|
|
@@ -4183,6 +4183,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4183
4183
|
}
|
|
4184
4184
|
return {};
|
|
4185
4185
|
});
|
|
4186
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4187
|
+
var _a;
|
|
4188
|
+
const value = await parseBody(errorBody, context);
|
|
4189
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4190
|
+
return value;
|
|
4191
|
+
};
|
|
4186
4192
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4187
4193
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4188
4194
|
const sanitizeErrorCode = (rawValue) => {
|