@aws-sdk/client-elasticsearch-service 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 +47 -41
- package/dist-es/ElasticsearchService.js +166 -173
- package/dist-es/ElasticsearchServiceClient.js +22 -28
- package/dist-es/commands/AcceptInboundCrossClusterSearchConnectionCommand.js +21 -28
- package/dist-es/commands/AddTagsCommand.js +22 -29
- package/dist-es/commands/AssociatePackageCommand.js +21 -28
- package/dist-es/commands/CancelElasticsearchServiceSoftwareUpdateCommand.js +21 -28
- package/dist-es/commands/CreateElasticsearchDomainCommand.js +21 -28
- package/dist-es/commands/CreateOutboundCrossClusterSearchConnectionCommand.js +21 -28
- package/dist-es/commands/CreatePackageCommand.js +21 -28
- package/dist-es/commands/DeleteElasticsearchDomainCommand.js +21 -28
- package/dist-es/commands/DeleteElasticsearchServiceRoleCommand.js +23 -30
- package/dist-es/commands/DeleteInboundCrossClusterSearchConnectionCommand.js +21 -28
- package/dist-es/commands/DeleteOutboundCrossClusterSearchConnectionCommand.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/DescribeElasticsearchDomainCommand.js +21 -28
- package/dist-es/commands/DescribeElasticsearchDomainConfigCommand.js +21 -28
- package/dist-es/commands/DescribeElasticsearchDomainsCommand.js +21 -28
- package/dist-es/commands/DescribeElasticsearchInstanceTypeLimitsCommand.js +21 -28
- package/dist-es/commands/DescribeInboundCrossClusterSearchConnectionsCommand.js +21 -28
- package/dist-es/commands/DescribeOutboundCrossClusterSearchConnectionsCommand.js +21 -28
- package/dist-es/commands/DescribePackagesCommand.js +21 -28
- package/dist-es/commands/DescribeReservedElasticsearchInstanceOfferingsCommand.js +21 -28
- package/dist-es/commands/DescribeReservedElasticsearchInstancesCommand.js +21 -28
- package/dist-es/commands/DissociatePackageCommand.js +21 -28
- package/dist-es/commands/GetCompatibleElasticsearchVersionsCommand.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/ListElasticsearchInstanceTypesCommand.js +21 -28
- package/dist-es/commands/ListElasticsearchVersionsCommand.js +21 -28
- package/dist-es/commands/ListPackagesForDomainCommand.js +21 -28
- package/dist-es/commands/ListTagsCommand.js +21 -28
- package/dist-es/commands/PurchaseReservedElasticsearchInstanceOfferingCommand.js +21 -28
- package/dist-es/commands/RejectInboundCrossClusterSearchConnectionCommand.js +21 -28
- package/dist-es/commands/RemoveTagsCommand.js +22 -29
- package/dist-es/commands/StartElasticsearchServiceSoftwareUpdateCommand.js +21 -28
- package/dist-es/commands/UpdateElasticsearchDomainConfigCommand.js +21 -28
- package/dist-es/commands/UpdatePackageCommand.js +21 -28
- package/dist-es/commands/UpgradeElasticsearchDomainCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ElasticsearchServiceServiceException.js +5 -10
- package/dist-es/models/models_0.js +591 -279
- package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +25 -68
- package/dist-es/pagination/DescribeInboundCrossClusterSearchConnectionsPaginator.js +25 -68
- package/dist-es/pagination/DescribeOutboundCrossClusterSearchConnectionsPaginator.js +25 -68
- package/dist-es/pagination/DescribePackagesPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedElasticsearchInstanceOfferingsPaginator.js +25 -68
- package/dist-es/pagination/DescribeReservedElasticsearchInstancesPaginator.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/ListElasticsearchInstanceTypesPaginator.js +25 -68
- package/dist-es/pagination/ListElasticsearchVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListPackagesForDomainPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +3228 -4369
- 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-elasticsearch-service
|
|
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-elasticsearch-service
|
|
@@ -964,7 +964,7 @@ exports.deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommand
|
|
|
964
964
|
const deserializeAws_restJson1AcceptInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
|
|
965
965
|
const parsedOutput = {
|
|
966
966
|
...output,
|
|
967
|
-
body: await
|
|
967
|
+
body: await parseErrorBody(output.body, context),
|
|
968
968
|
};
|
|
969
969
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
970
|
switch (errorCode) {
|
|
@@ -1001,7 +1001,7 @@ exports.deserializeAws_restJson1AddTagsCommand = deserializeAws_restJson1AddTags
|
|
|
1001
1001
|
const deserializeAws_restJson1AddTagsCommandError = async (output, context) => {
|
|
1002
1002
|
const parsedOutput = {
|
|
1003
1003
|
...output,
|
|
1004
|
-
body: await
|
|
1004
|
+
body: await parseErrorBody(output.body, context),
|
|
1005
1005
|
};
|
|
1006
1006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1007
1007
|
switch (errorCode) {
|
|
@@ -1044,7 +1044,7 @@ exports.deserializeAws_restJson1AssociatePackageCommand = deserializeAws_restJso
|
|
|
1044
1044
|
const deserializeAws_restJson1AssociatePackageCommandError = async (output, context) => {
|
|
1045
1045
|
const parsedOutput = {
|
|
1046
1046
|
...output,
|
|
1047
|
-
body: await
|
|
1047
|
+
body: await parseErrorBody(output.body, context),
|
|
1048
1048
|
};
|
|
1049
1049
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1050
|
switch (errorCode) {
|
|
@@ -1093,7 +1093,7 @@ exports.deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommand
|
|
|
1093
1093
|
const deserializeAws_restJson1CancelElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
1094
1094
|
const parsedOutput = {
|
|
1095
1095
|
...output,
|
|
1096
|
-
body: await
|
|
1096
|
+
body: await parseErrorBody(output.body, context),
|
|
1097
1097
|
};
|
|
1098
1098
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1099
|
switch (errorCode) {
|
|
@@ -1136,7 +1136,7 @@ exports.deserializeAws_restJson1CreateElasticsearchDomainCommand = deserializeAw
|
|
|
1136
1136
|
const deserializeAws_restJson1CreateElasticsearchDomainCommandError = async (output, context) => {
|
|
1137
1137
|
const parsedOutput = {
|
|
1138
1138
|
...output,
|
|
1139
|
-
body: await
|
|
1139
|
+
body: await parseErrorBody(output.body, context),
|
|
1140
1140
|
};
|
|
1141
1141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
1142
|
switch (errorCode) {
|
|
@@ -1200,7 +1200,7 @@ exports.deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionComman
|
|
|
1200
1200
|
const deserializeAws_restJson1CreateOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
|
|
1201
1201
|
const parsedOutput = {
|
|
1202
1202
|
...output,
|
|
1203
|
-
body: await
|
|
1203
|
+
body: await parseErrorBody(output.body, context),
|
|
1204
1204
|
};
|
|
1205
1205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1206
|
switch (errorCode) {
|
|
@@ -1243,7 +1243,7 @@ exports.deserializeAws_restJson1CreatePackageCommand = deserializeAws_restJson1C
|
|
|
1243
1243
|
const deserializeAws_restJson1CreatePackageCommandError = async (output, context) => {
|
|
1244
1244
|
const parsedOutput = {
|
|
1245
1245
|
...output,
|
|
1246
|
-
body: await
|
|
1246
|
+
body: await parseErrorBody(output.body, context),
|
|
1247
1247
|
};
|
|
1248
1248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
1249
|
switch (errorCode) {
|
|
@@ -1295,7 +1295,7 @@ exports.deserializeAws_restJson1DeleteElasticsearchDomainCommand = deserializeAw
|
|
|
1295
1295
|
const deserializeAws_restJson1DeleteElasticsearchDomainCommandError = async (output, context) => {
|
|
1296
1296
|
const parsedOutput = {
|
|
1297
1297
|
...output,
|
|
1298
|
-
body: await
|
|
1298
|
+
body: await parseErrorBody(output.body, context),
|
|
1299
1299
|
};
|
|
1300
1300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
1301
|
switch (errorCode) {
|
|
@@ -1335,7 +1335,7 @@ exports.deserializeAws_restJson1DeleteElasticsearchServiceRoleCommand = deserial
|
|
|
1335
1335
|
const deserializeAws_restJson1DeleteElasticsearchServiceRoleCommandError = async (output, context) => {
|
|
1336
1336
|
const parsedOutput = {
|
|
1337
1337
|
...output,
|
|
1338
|
-
body: await
|
|
1338
|
+
body: await parseErrorBody(output.body, context),
|
|
1339
1339
|
};
|
|
1340
1340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
1341
|
switch (errorCode) {
|
|
@@ -1375,7 +1375,7 @@ exports.deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommand
|
|
|
1375
1375
|
const deserializeAws_restJson1DeleteInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
|
|
1376
1376
|
const parsedOutput = {
|
|
1377
1377
|
...output,
|
|
1378
|
-
body: await
|
|
1378
|
+
body: await parseErrorBody(output.body, context),
|
|
1379
1379
|
};
|
|
1380
1380
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1381
|
switch (errorCode) {
|
|
@@ -1412,7 +1412,7 @@ exports.deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionComman
|
|
|
1412
1412
|
const deserializeAws_restJson1DeleteOutboundCrossClusterSearchConnectionCommandError = async (output, context) => {
|
|
1413
1413
|
const parsedOutput = {
|
|
1414
1414
|
...output,
|
|
1415
|
-
body: await
|
|
1415
|
+
body: await parseErrorBody(output.body, context),
|
|
1416
1416
|
};
|
|
1417
1417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
1418
|
switch (errorCode) {
|
|
@@ -1449,7 +1449,7 @@ exports.deserializeAws_restJson1DeletePackageCommand = deserializeAws_restJson1D
|
|
|
1449
1449
|
const deserializeAws_restJson1DeletePackageCommandError = 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) {
|
|
@@ -1501,7 +1501,7 @@ exports.deserializeAws_restJson1DescribeDomainAutoTunesCommand = deserializeAws_
|
|
|
1501
1501
|
const deserializeAws_restJson1DescribeDomainAutoTunesCommandError = async (output, context) => {
|
|
1502
1502
|
const parsedOutput = {
|
|
1503
1503
|
...output,
|
|
1504
|
-
body: await
|
|
1504
|
+
body: await parseErrorBody(output.body, context),
|
|
1505
1505
|
};
|
|
1506
1506
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1507
1507
|
switch (errorCode) {
|
|
@@ -1544,7 +1544,7 @@ exports.deserializeAws_restJson1DescribeDomainChangeProgressCommand = deserializ
|
|
|
1544
1544
|
const deserializeAws_restJson1DescribeDomainChangeProgressCommandError = async (output, context) => {
|
|
1545
1545
|
const parsedOutput = {
|
|
1546
1546
|
...output,
|
|
1547
|
-
body: await
|
|
1547
|
+
body: await parseErrorBody(output.body, context),
|
|
1548
1548
|
};
|
|
1549
1549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1550
1550
|
switch (errorCode) {
|
|
@@ -1587,7 +1587,7 @@ exports.deserializeAws_restJson1DescribeElasticsearchDomainCommand = deserialize
|
|
|
1587
1587
|
const deserializeAws_restJson1DescribeElasticsearchDomainCommandError = async (output, context) => {
|
|
1588
1588
|
const parsedOutput = {
|
|
1589
1589
|
...output,
|
|
1590
|
-
body: await
|
|
1590
|
+
body: await parseErrorBody(output.body, context),
|
|
1591
1591
|
};
|
|
1592
1592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1593
1593
|
switch (errorCode) {
|
|
@@ -1630,7 +1630,7 @@ exports.deserializeAws_restJson1DescribeElasticsearchDomainConfigCommand = deser
|
|
|
1630
1630
|
const deserializeAws_restJson1DescribeElasticsearchDomainConfigCommandError = async (output, context) => {
|
|
1631
1631
|
const parsedOutput = {
|
|
1632
1632
|
...output,
|
|
1633
|
-
body: await
|
|
1633
|
+
body: await parseErrorBody(output.body, context),
|
|
1634
1634
|
};
|
|
1635
1635
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
1636
|
switch (errorCode) {
|
|
@@ -1673,7 +1673,7 @@ exports.deserializeAws_restJson1DescribeElasticsearchDomainsCommand = deserializ
|
|
|
1673
1673
|
const deserializeAws_restJson1DescribeElasticsearchDomainsCommandError = async (output, context) => {
|
|
1674
1674
|
const parsedOutput = {
|
|
1675
1675
|
...output,
|
|
1676
|
-
body: await
|
|
1676
|
+
body: await parseErrorBody(output.body, context),
|
|
1677
1677
|
};
|
|
1678
1678
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1679
1679
|
switch (errorCode) {
|
|
@@ -1713,7 +1713,7 @@ exports.deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommand =
|
|
|
1713
1713
|
const deserializeAws_restJson1DescribeElasticsearchInstanceTypeLimitsCommandError = async (output, context) => {
|
|
1714
1714
|
const parsedOutput = {
|
|
1715
1715
|
...output,
|
|
1716
|
-
body: await
|
|
1716
|
+
body: await parseErrorBody(output.body, context),
|
|
1717
1717
|
};
|
|
1718
1718
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1719
1719
|
switch (errorCode) {
|
|
@@ -1765,7 +1765,7 @@ exports.deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsComm
|
|
|
1765
1765
|
const deserializeAws_restJson1DescribeInboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
|
|
1766
1766
|
const parsedOutput = {
|
|
1767
1767
|
...output,
|
|
1768
|
-
body: await
|
|
1768
|
+
body: await parseErrorBody(output.body, context),
|
|
1769
1769
|
};
|
|
1770
1770
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1771
1771
|
switch (errorCode) {
|
|
@@ -1805,7 +1805,7 @@ exports.deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCom
|
|
|
1805
1805
|
const deserializeAws_restJson1DescribeOutboundCrossClusterSearchConnectionsCommandError = async (output, context) => {
|
|
1806
1806
|
const parsedOutput = {
|
|
1807
1807
|
...output,
|
|
1808
|
-
body: await
|
|
1808
|
+
body: await parseErrorBody(output.body, context),
|
|
1809
1809
|
};
|
|
1810
1810
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
1811
|
switch (errorCode) {
|
|
@@ -1845,7 +1845,7 @@ exports.deserializeAws_restJson1DescribePackagesCommand = deserializeAws_restJso
|
|
|
1845
1845
|
const deserializeAws_restJson1DescribePackagesCommandError = 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) {
|
|
@@ -1894,7 +1894,7 @@ exports.deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCo
|
|
|
1894
1894
|
const deserializeAws_restJson1DescribeReservedElasticsearchInstanceOfferingsCommandError = async (output, context) => {
|
|
1895
1895
|
const parsedOutput = {
|
|
1896
1896
|
...output,
|
|
1897
|
-
body: await
|
|
1897
|
+
body: await parseErrorBody(output.body, context),
|
|
1898
1898
|
};
|
|
1899
1899
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
1900
|
switch (errorCode) {
|
|
@@ -1940,7 +1940,7 @@ exports.deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommand =
|
|
|
1940
1940
|
const deserializeAws_restJson1DescribeReservedElasticsearchInstancesCommandError = async (output, context) => {
|
|
1941
1941
|
const parsedOutput = {
|
|
1942
1942
|
...output,
|
|
1943
|
-
body: await
|
|
1943
|
+
body: await parseErrorBody(output.body, context),
|
|
1944
1944
|
};
|
|
1945
1945
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1946
1946
|
switch (errorCode) {
|
|
@@ -1983,7 +1983,7 @@ exports.deserializeAws_restJson1DissociatePackageCommand = deserializeAws_restJs
|
|
|
1983
1983
|
const deserializeAws_restJson1DissociatePackageCommandError = 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) {
|
|
@@ -2032,7 +2032,7 @@ exports.deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommand = dese
|
|
|
2032
2032
|
const deserializeAws_restJson1GetCompatibleElasticsearchVersionsCommandError = async (output, context) => {
|
|
2033
2033
|
const parsedOutput = {
|
|
2034
2034
|
...output,
|
|
2035
|
-
body: await
|
|
2035
|
+
body: await parseErrorBody(output.body, context),
|
|
2036
2036
|
};
|
|
2037
2037
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
2038
|
switch (errorCode) {
|
|
@@ -2084,7 +2084,7 @@ exports.deserializeAws_restJson1GetPackageVersionHistoryCommand = deserializeAws
|
|
|
2084
2084
|
const deserializeAws_restJson1GetPackageVersionHistoryCommandError = 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) {
|
|
@@ -2133,7 +2133,7 @@ exports.deserializeAws_restJson1GetUpgradeHistoryCommand = deserializeAws_restJs
|
|
|
2133
2133
|
const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, context) => {
|
|
2134
2134
|
const parsedOutput = {
|
|
2135
2135
|
...output,
|
|
2136
|
-
body: await
|
|
2136
|
+
body: await parseErrorBody(output.body, context),
|
|
2137
2137
|
};
|
|
2138
2138
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2139
2139
|
switch (errorCode) {
|
|
@@ -2185,7 +2185,7 @@ exports.deserializeAws_restJson1GetUpgradeStatusCommand = deserializeAws_restJso
|
|
|
2185
2185
|
const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
|
|
2186
2186
|
const parsedOutput = {
|
|
2187
2187
|
...output,
|
|
2188
|
-
body: await
|
|
2188
|
+
body: await parseErrorBody(output.body, context),
|
|
2189
2189
|
};
|
|
2190
2190
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2191
2191
|
switch (errorCode) {
|
|
@@ -2231,7 +2231,7 @@ exports.deserializeAws_restJson1ListDomainNamesCommand = deserializeAws_restJson
|
|
|
2231
2231
|
const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
|
|
2232
2232
|
const parsedOutput = {
|
|
2233
2233
|
...output,
|
|
2234
|
-
body: await
|
|
2234
|
+
body: await parseErrorBody(output.body, context),
|
|
2235
2235
|
};
|
|
2236
2236
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
2237
|
switch (errorCode) {
|
|
@@ -2271,7 +2271,7 @@ exports.deserializeAws_restJson1ListDomainsForPackageCommand = deserializeAws_re
|
|
|
2271
2271
|
const deserializeAws_restJson1ListDomainsForPackageCommandError = 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) {
|
|
@@ -2320,7 +2320,7 @@ exports.deserializeAws_restJson1ListElasticsearchInstanceTypesCommand = deserial
|
|
|
2320
2320
|
const deserializeAws_restJson1ListElasticsearchInstanceTypesCommandError = async (output, context) => {
|
|
2321
2321
|
const parsedOutput = {
|
|
2322
2322
|
...output,
|
|
2323
|
-
body: await
|
|
2323
|
+
body: await parseErrorBody(output.body, context),
|
|
2324
2324
|
};
|
|
2325
2325
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2326
2326
|
switch (errorCode) {
|
|
@@ -2366,7 +2366,7 @@ exports.deserializeAws_restJson1ListElasticsearchVersionsCommand = deserializeAw
|
|
|
2366
2366
|
const deserializeAws_restJson1ListElasticsearchVersionsCommandError = async (output, context) => {
|
|
2367
2367
|
const parsedOutput = {
|
|
2368
2368
|
...output,
|
|
2369
|
-
body: await
|
|
2369
|
+
body: await parseErrorBody(output.body, context),
|
|
2370
2370
|
};
|
|
2371
2371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2372
2372
|
switch (errorCode) {
|
|
@@ -2412,7 +2412,7 @@ exports.deserializeAws_restJson1ListPackagesForDomainCommand = deserializeAws_re
|
|
|
2412
2412
|
const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
|
|
2413
2413
|
const parsedOutput = {
|
|
2414
2414
|
...output,
|
|
2415
|
-
body: await
|
|
2415
|
+
body: await parseErrorBody(output.body, context),
|
|
2416
2416
|
};
|
|
2417
2417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
2418
|
switch (errorCode) {
|
|
@@ -2458,7 +2458,7 @@ exports.deserializeAws_restJson1ListTagsCommand = deserializeAws_restJson1ListTa
|
|
|
2458
2458
|
const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
|
|
2459
2459
|
const parsedOutput = {
|
|
2460
2460
|
...output,
|
|
2461
|
-
body: await
|
|
2461
|
+
body: await parseErrorBody(output.body, context),
|
|
2462
2462
|
};
|
|
2463
2463
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2464
2464
|
switch (errorCode) {
|
|
@@ -2504,7 +2504,7 @@ exports.deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCom
|
|
|
2504
2504
|
const deserializeAws_restJson1PurchaseReservedElasticsearchInstanceOfferingCommandError = 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) {
|
|
@@ -2553,7 +2553,7 @@ exports.deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommand
|
|
|
2553
2553
|
const deserializeAws_restJson1RejectInboundCrossClusterSearchConnectionCommandError = async (output, context) => {
|
|
2554
2554
|
const parsedOutput = {
|
|
2555
2555
|
...output,
|
|
2556
|
-
body: await
|
|
2556
|
+
body: await parseErrorBody(output.body, context),
|
|
2557
2557
|
};
|
|
2558
2558
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
2559
|
switch (errorCode) {
|
|
@@ -2587,7 +2587,7 @@ exports.deserializeAws_restJson1RemoveTagsCommand = deserializeAws_restJson1Remo
|
|
|
2587
2587
|
const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) => {
|
|
2588
2588
|
const parsedOutput = {
|
|
2589
2589
|
...output,
|
|
2590
|
-
body: await
|
|
2590
|
+
body: await parseErrorBody(output.body, context),
|
|
2591
2591
|
};
|
|
2592
2592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2593
2593
|
switch (errorCode) {
|
|
@@ -2627,7 +2627,7 @@ exports.deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommand =
|
|
|
2627
2627
|
const deserializeAws_restJson1StartElasticsearchServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
2628
2628
|
const parsedOutput = {
|
|
2629
2629
|
...output,
|
|
2630
|
-
body: await
|
|
2630
|
+
body: await parseErrorBody(output.body, context),
|
|
2631
2631
|
};
|
|
2632
2632
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
2633
|
switch (errorCode) {
|
|
@@ -2673,7 +2673,7 @@ exports.deserializeAws_restJson1UpdateElasticsearchDomainConfigCommand = deseria
|
|
|
2673
2673
|
const deserializeAws_restJson1UpdateElasticsearchDomainConfigCommandError = 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) {
|
|
@@ -2722,7 +2722,7 @@ exports.deserializeAws_restJson1UpdatePackageCommand = deserializeAws_restJson1U
|
|
|
2722
2722
|
const deserializeAws_restJson1UpdatePackageCommandError = async (output, context) => {
|
|
2723
2723
|
const parsedOutput = {
|
|
2724
2724
|
...output,
|
|
2725
|
-
body: await
|
|
2725
|
+
body: await parseErrorBody(output.body, context),
|
|
2726
2726
|
};
|
|
2727
2727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2728
2728
|
switch (errorCode) {
|
|
@@ -2780,7 +2780,7 @@ exports.deserializeAws_restJson1UpgradeElasticsearchDomainCommand = deserializeA
|
|
|
2780
2780
|
const deserializeAws_restJson1UpgradeElasticsearchDomainCommandError = async (output, context) => {
|
|
2781
2781
|
const parsedOutput = {
|
|
2782
2782
|
...output,
|
|
2783
|
-
body: await
|
|
2783
|
+
body: await parseErrorBody(output.body, context),
|
|
2784
2784
|
};
|
|
2785
2785
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2786
|
switch (errorCode) {
|
|
@@ -4195,6 +4195,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4195
4195
|
}
|
|
4196
4196
|
return {};
|
|
4197
4197
|
});
|
|
4198
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4199
|
+
var _a;
|
|
4200
|
+
const value = await parseBody(errorBody, context);
|
|
4201
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4202
|
+
return value;
|
|
4203
|
+
};
|
|
4198
4204
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4199
4205
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4200
4206
|
const sanitizeErrorCode = (rawValue) => {
|