@aws-sdk/client-opensearch 3.682.0 → 3.683.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 +47 -7
- package/dist-cjs/index.js +344 -29
- package/dist-es/OpenSearch.js +10 -0
- package/dist-es/commands/CreateApplicationCommand.js +22 -0
- package/dist-es/commands/DeleteApplicationCommand.js +22 -0
- package/dist-es/commands/GetApplicationCommand.js +22 -0
- package/dist-es/commands/ListApplicationsCommand.js +22 -0
- package/dist-es/commands/UpdateApplicationCommand.js +22 -0
- package/dist-es/commands/UpdateDomainConfigCommand.js +1 -1
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +23 -28
- package/dist-es/models/models_1.js +30 -1
- package/dist-es/pagination/ListApplicationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +191 -3
- package/dist-types/OpenSearch.d.ts +36 -0
- package/dist-types/OpenSearchClient.d.ts +7 -2
- package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +2 -1
- package/dist-types/commands/CreateApplicationCommand.d.ts +140 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +14 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +90 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +8 -0
- package/dist-types/commands/DescribeDomainCommand.d.ts +8 -0
- package/dist-types/commands/DescribeDomainConfigCommand.d.ts +11 -0
- package/dist-types/commands/DescribeDomainsCommand.d.ts +8 -0
- package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +8 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +113 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +104 -0
- package/dist-types/commands/RejectInboundConnectionCommand.d.ts +2 -1
- package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
- package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +3 -2
- package/dist-types/commands/StartDomainMaintenanceCommand.d.ts +1 -1
- package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateApplicationCommand.d.ts +126 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDomainConfigCommand.d.ts +18 -1
- package/dist-types/commands/UpdatePackageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateScheduledActionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +538 -565
- package/dist-types/models/models_1.d.ts +603 -1
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +86 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RejectInboundConnectionCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartDomainMaintenanceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/StartServiceSoftwareUpdateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDomainConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +129 -114
- package/dist-types/ts3.4/models/models_1.d.ts +169 -1
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -27,16 +27,16 @@ using your favorite package manager:
|
|
|
27
27
|
|
|
28
28
|
The AWS SDK is modulized by clients and commands.
|
|
29
29
|
To send a request, you only need to import the `OpenSearchClient` and
|
|
30
|
-
the commands you need, for example `
|
|
30
|
+
the commands you need, for example `ListApplicationsCommand`:
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
33
|
// ES5 example
|
|
34
|
-
const { OpenSearchClient,
|
|
34
|
+
const { OpenSearchClient, ListApplicationsCommand } = require("@aws-sdk/client-opensearch");
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
// ES6+ example
|
|
39
|
-
import { OpenSearchClient,
|
|
39
|
+
import { OpenSearchClient, ListApplicationsCommand } from "@aws-sdk/client-opensearch";
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Usage
|
|
@@ -55,7 +55,7 @@ const client = new OpenSearchClient({ region: "REGION" });
|
|
|
55
55
|
const params = {
|
|
56
56
|
/** input parameters */
|
|
57
57
|
};
|
|
58
|
-
const command = new
|
|
58
|
+
const command = new ListApplicationsCommand(params);
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
#### Async/await
|
|
@@ -134,7 +134,7 @@ const client = new AWS.OpenSearch({ region: "REGION" });
|
|
|
134
134
|
|
|
135
135
|
// async/await.
|
|
136
136
|
try {
|
|
137
|
-
const data = await client.
|
|
137
|
+
const data = await client.listApplications(params);
|
|
138
138
|
// process data.
|
|
139
139
|
} catch (error) {
|
|
140
140
|
// error handling.
|
|
@@ -142,7 +142,7 @@ try {
|
|
|
142
142
|
|
|
143
143
|
// Promises.
|
|
144
144
|
client
|
|
145
|
-
.
|
|
145
|
+
.listApplications(params)
|
|
146
146
|
.then((data) => {
|
|
147
147
|
// process data.
|
|
148
148
|
})
|
|
@@ -151,7 +151,7 @@ client
|
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
// callbacks.
|
|
154
|
-
client.
|
|
154
|
+
client.listApplications(params, (err, data) => {
|
|
155
155
|
// process err and data.
|
|
156
156
|
});
|
|
157
157
|
```
|
|
@@ -262,6 +262,14 @@ CancelServiceSoftwareUpdate
|
|
|
262
262
|
|
|
263
263
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/CancelServiceSoftwareUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CancelServiceSoftwareUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CancelServiceSoftwareUpdateCommandOutput/)
|
|
264
264
|
|
|
265
|
+
</details>
|
|
266
|
+
<details>
|
|
267
|
+
<summary>
|
|
268
|
+
CreateApplication
|
|
269
|
+
</summary>
|
|
270
|
+
|
|
271
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/CreateApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CreateApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CreateApplicationCommandOutput/)
|
|
272
|
+
|
|
265
273
|
</details>
|
|
266
274
|
<details>
|
|
267
275
|
<summary>
|
|
@@ -294,6 +302,14 @@ CreateVpcEndpoint
|
|
|
294
302
|
|
|
295
303
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/CreateVpcEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CreateVpcEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/CreateVpcEndpointCommandOutput/)
|
|
296
304
|
|
|
305
|
+
</details>
|
|
306
|
+
<details>
|
|
307
|
+
<summary>
|
|
308
|
+
DeleteApplication
|
|
309
|
+
</summary>
|
|
310
|
+
|
|
311
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/DeleteApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteApplicationCommandOutput/)
|
|
312
|
+
|
|
297
313
|
</details>
|
|
298
314
|
<details>
|
|
299
315
|
<summary>
|
|
@@ -470,6 +486,14 @@ DissociatePackage
|
|
|
470
486
|
|
|
471
487
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/DissociatePackageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DissociatePackageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DissociatePackageCommandOutput/)
|
|
472
488
|
|
|
489
|
+
</details>
|
|
490
|
+
<details>
|
|
491
|
+
<summary>
|
|
492
|
+
GetApplication
|
|
493
|
+
</summary>
|
|
494
|
+
|
|
495
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetApplicationCommandOutput/)
|
|
496
|
+
|
|
473
497
|
</details>
|
|
474
498
|
<details>
|
|
475
499
|
<summary>
|
|
@@ -518,6 +542,14 @@ GetUpgradeStatus
|
|
|
518
542
|
|
|
519
543
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetUpgradeStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetUpgradeStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetUpgradeStatusCommandOutput/)
|
|
520
544
|
|
|
545
|
+
</details>
|
|
546
|
+
<details>
|
|
547
|
+
<summary>
|
|
548
|
+
ListApplications
|
|
549
|
+
</summary>
|
|
550
|
+
|
|
551
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/ListApplicationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListApplicationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListApplicationsCommandOutput/)
|
|
552
|
+
|
|
521
553
|
</details>
|
|
522
554
|
<details>
|
|
523
555
|
<summary>
|
|
@@ -662,6 +694,14 @@ StartServiceSoftwareUpdate
|
|
|
662
694
|
|
|
663
695
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/StartServiceSoftwareUpdateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/StartServiceSoftwareUpdateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/StartServiceSoftwareUpdateCommandOutput/)
|
|
664
696
|
|
|
697
|
+
</details>
|
|
698
|
+
<details>
|
|
699
|
+
<summary>
|
|
700
|
+
UpdateApplication
|
|
701
|
+
</summary>
|
|
702
|
+
|
|
703
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/UpdateApplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateApplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateApplicationCommandOutput/)
|
|
704
|
+
|
|
665
705
|
</details>
|
|
666
706
|
<details>
|
|
667
707
|
<summary>
|