@aws-sdk/client-elasticsearch-service 3.418.0 → 3.423.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/README.md +7 -13
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,22 +30,16 @@ using your favorite package manager:
|
|
|
30
30
|
|
|
31
31
|
The AWS SDK is modulized by clients and commands.
|
|
32
32
|
To send a request, you only need to import the `ElasticsearchServiceClient` and
|
|
33
|
-
the commands you need, for example `
|
|
33
|
+
the commands you need, for example `ListDomainNamesCommand`:
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
36
|
// ES5 example
|
|
37
|
-
const {
|
|
38
|
-
ElasticsearchServiceClient,
|
|
39
|
-
AcceptInboundCrossClusterSearchConnectionCommand,
|
|
40
|
-
} = require("@aws-sdk/client-elasticsearch-service");
|
|
37
|
+
const { ElasticsearchServiceClient, ListDomainNamesCommand } = require("@aws-sdk/client-elasticsearch-service");
|
|
41
38
|
```
|
|
42
39
|
|
|
43
40
|
```ts
|
|
44
41
|
// ES6+ example
|
|
45
|
-
import {
|
|
46
|
-
ElasticsearchServiceClient,
|
|
47
|
-
AcceptInboundCrossClusterSearchConnectionCommand,
|
|
48
|
-
} from "@aws-sdk/client-elasticsearch-service";
|
|
42
|
+
import { ElasticsearchServiceClient, ListDomainNamesCommand } from "@aws-sdk/client-elasticsearch-service";
|
|
49
43
|
```
|
|
50
44
|
|
|
51
45
|
### Usage
|
|
@@ -64,7 +58,7 @@ const client = new ElasticsearchServiceClient({ region: "REGION" });
|
|
|
64
58
|
const params = {
|
|
65
59
|
/** input parameters */
|
|
66
60
|
};
|
|
67
|
-
const command = new
|
|
61
|
+
const command = new ListDomainNamesCommand(params);
|
|
68
62
|
```
|
|
69
63
|
|
|
70
64
|
#### Async/await
|
|
@@ -143,7 +137,7 @@ const client = new AWS.ElasticsearchService({ region: "REGION" });
|
|
|
143
137
|
|
|
144
138
|
// async/await.
|
|
145
139
|
try {
|
|
146
|
-
const data = await client.
|
|
140
|
+
const data = await client.listDomainNames(params);
|
|
147
141
|
// process data.
|
|
148
142
|
} catch (error) {
|
|
149
143
|
// error handling.
|
|
@@ -151,7 +145,7 @@ try {
|
|
|
151
145
|
|
|
152
146
|
// Promises.
|
|
153
147
|
client
|
|
154
|
-
.
|
|
148
|
+
.listDomainNames(params)
|
|
155
149
|
.then((data) => {
|
|
156
150
|
// process data.
|
|
157
151
|
})
|
|
@@ -160,7 +154,7 @@ client
|
|
|
160
154
|
});
|
|
161
155
|
|
|
162
156
|
// callbacks.
|
|
163
|
-
client.
|
|
157
|
+
client.listDomainNames(params, (err, data) => {
|
|
164
158
|
// process err and data.
|
|
165
159
|
});
|
|
166
160
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-elasticsearch-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Elasticsearch Service Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.423.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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.423.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.423.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.418.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.418.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.418.0",
|