@aws-sdk/client-opensearch 3.460.0 → 3.462.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 +40 -0
- package/dist-cjs/OpenSearch.js +10 -0
- package/dist-cjs/commands/AddDataSourceCommand.js +51 -0
- package/dist-cjs/commands/DeleteDataSourceCommand.js +51 -0
- package/dist-cjs/commands/GetDataSourceCommand.js +51 -0
- package/dist-cjs/commands/ListDataSourcesCommand.js +51 -0
- package/dist-cjs/commands/UpdateDataSourceCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +23 -15
- package/dist-cjs/protocols/Aws_restJson1.js +360 -3
- package/dist-es/OpenSearch.js +10 -0
- package/dist-es/commands/AddDataSourceCommand.js +47 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +47 -0
- package/dist-es/commands/GetDataSourceCommand.js +47 -0
- package/dist-es/commands/ListDataSourcesCommand.js +47 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +20 -12
- package/dist-es/protocols/Aws_restJson1.js +347 -0
- package/dist-types/OpenSearch.d.ts +35 -0
- package/dist-types/OpenSearchClient.d.ts +7 -2
- package/dist-types/commands/AddDataSourceCommand.d.ts +101 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +92 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +98 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +101 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +291 -54
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +85 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/AddDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +82 -16
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -219,6 +219,14 @@ AcceptInboundConnection
|
|
|
219
219
|
|
|
220
220
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/AcceptInboundConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AcceptInboundConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AcceptInboundConnectionCommandOutput/)
|
|
221
221
|
|
|
222
|
+
</details>
|
|
223
|
+
<details>
|
|
224
|
+
<summary>
|
|
225
|
+
AddDataSource
|
|
226
|
+
</summary>
|
|
227
|
+
|
|
228
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/AddDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/AddDataSourceCommandOutput/)
|
|
229
|
+
|
|
222
230
|
</details>
|
|
223
231
|
<details>
|
|
224
232
|
<summary>
|
|
@@ -283,6 +291,14 @@ CreateVpcEndpoint
|
|
|
283
291
|
|
|
284
292
|
[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/)
|
|
285
293
|
|
|
294
|
+
</details>
|
|
295
|
+
<details>
|
|
296
|
+
<summary>
|
|
297
|
+
DeleteDataSource
|
|
298
|
+
</summary>
|
|
299
|
+
|
|
300
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/DeleteDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/DeleteDataSourceCommandOutput/)
|
|
301
|
+
|
|
286
302
|
</details>
|
|
287
303
|
<details>
|
|
288
304
|
<summary>
|
|
@@ -459,6 +475,14 @@ GetCompatibleVersions
|
|
|
459
475
|
|
|
460
476
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetCompatibleVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetCompatibleVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetCompatibleVersionsCommandOutput/)
|
|
461
477
|
|
|
478
|
+
</details>
|
|
479
|
+
<details>
|
|
480
|
+
<summary>
|
|
481
|
+
GetDataSource
|
|
482
|
+
</summary>
|
|
483
|
+
|
|
484
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/GetDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/GetDataSourceCommandOutput/)
|
|
485
|
+
|
|
462
486
|
</details>
|
|
463
487
|
<details>
|
|
464
488
|
<summary>
|
|
@@ -491,6 +515,14 @@ GetUpgradeStatus
|
|
|
491
515
|
|
|
492
516
|
[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/)
|
|
493
517
|
|
|
518
|
+
</details>
|
|
519
|
+
<details>
|
|
520
|
+
<summary>
|
|
521
|
+
ListDataSources
|
|
522
|
+
</summary>
|
|
523
|
+
|
|
524
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/ListDataSourcesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDataSourcesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/ListDataSourcesCommandOutput/)
|
|
525
|
+
|
|
494
526
|
</details>
|
|
495
527
|
<details>
|
|
496
528
|
<summary>
|
|
@@ -627,6 +659,14 @@ StartServiceSoftwareUpdate
|
|
|
627
659
|
|
|
628
660
|
[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/)
|
|
629
661
|
|
|
662
|
+
</details>
|
|
663
|
+
<details>
|
|
664
|
+
<summary>
|
|
665
|
+
UpdateDataSource
|
|
666
|
+
</summary>
|
|
667
|
+
|
|
668
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/opensearch/command/UpdateDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-opensearch/Interface/UpdateDataSourceCommandOutput/)
|
|
669
|
+
|
|
630
670
|
</details>
|
|
631
671
|
<details>
|
|
632
672
|
<summary>
|
package/dist-cjs/OpenSearch.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OpenSearch = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const AcceptInboundConnectionCommand_1 = require("./commands/AcceptInboundConnectionCommand");
|
|
6
|
+
const AddDataSourceCommand_1 = require("./commands/AddDataSourceCommand");
|
|
6
7
|
const AddTagsCommand_1 = require("./commands/AddTagsCommand");
|
|
7
8
|
const AssociatePackageCommand_1 = require("./commands/AssociatePackageCommand");
|
|
8
9
|
const AuthorizeVpcEndpointAccessCommand_1 = require("./commands/AuthorizeVpcEndpointAccessCommand");
|
|
@@ -11,6 +12,7 @@ const CreateDomainCommand_1 = require("./commands/CreateDomainCommand");
|
|
|
11
12
|
const CreateOutboundConnectionCommand_1 = require("./commands/CreateOutboundConnectionCommand");
|
|
12
13
|
const CreatePackageCommand_1 = require("./commands/CreatePackageCommand");
|
|
13
14
|
const CreateVpcEndpointCommand_1 = require("./commands/CreateVpcEndpointCommand");
|
|
15
|
+
const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
|
|
14
16
|
const DeleteDomainCommand_1 = require("./commands/DeleteDomainCommand");
|
|
15
17
|
const DeleteInboundConnectionCommand_1 = require("./commands/DeleteInboundConnectionCommand");
|
|
16
18
|
const DeleteOutboundConnectionCommand_1 = require("./commands/DeleteOutboundConnectionCommand");
|
|
@@ -33,10 +35,12 @@ const DescribeReservedInstancesCommand_1 = require("./commands/DescribeReservedI
|
|
|
33
35
|
const DescribeVpcEndpointsCommand_1 = require("./commands/DescribeVpcEndpointsCommand");
|
|
34
36
|
const DissociatePackageCommand_1 = require("./commands/DissociatePackageCommand");
|
|
35
37
|
const GetCompatibleVersionsCommand_1 = require("./commands/GetCompatibleVersionsCommand");
|
|
38
|
+
const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
|
|
36
39
|
const GetDomainMaintenanceStatusCommand_1 = require("./commands/GetDomainMaintenanceStatusCommand");
|
|
37
40
|
const GetPackageVersionHistoryCommand_1 = require("./commands/GetPackageVersionHistoryCommand");
|
|
38
41
|
const GetUpgradeHistoryCommand_1 = require("./commands/GetUpgradeHistoryCommand");
|
|
39
42
|
const GetUpgradeStatusCommand_1 = require("./commands/GetUpgradeStatusCommand");
|
|
43
|
+
const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
|
|
40
44
|
const ListDomainMaintenancesCommand_1 = require("./commands/ListDomainMaintenancesCommand");
|
|
41
45
|
const ListDomainNamesCommand_1 = require("./commands/ListDomainNamesCommand");
|
|
42
46
|
const ListDomainsForPackageCommand_1 = require("./commands/ListDomainsForPackageCommand");
|
|
@@ -54,6 +58,7 @@ const RemoveTagsCommand_1 = require("./commands/RemoveTagsCommand");
|
|
|
54
58
|
const RevokeVpcEndpointAccessCommand_1 = require("./commands/RevokeVpcEndpointAccessCommand");
|
|
55
59
|
const StartDomainMaintenanceCommand_1 = require("./commands/StartDomainMaintenanceCommand");
|
|
56
60
|
const StartServiceSoftwareUpdateCommand_1 = require("./commands/StartServiceSoftwareUpdateCommand");
|
|
61
|
+
const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
|
|
57
62
|
const UpdateDomainConfigCommand_1 = require("./commands/UpdateDomainConfigCommand");
|
|
58
63
|
const UpdatePackageCommand_1 = require("./commands/UpdatePackageCommand");
|
|
59
64
|
const UpdateScheduledActionCommand_1 = require("./commands/UpdateScheduledActionCommand");
|
|
@@ -62,6 +67,7 @@ const UpgradeDomainCommand_1 = require("./commands/UpgradeDomainCommand");
|
|
|
62
67
|
const OpenSearchClient_1 = require("./OpenSearchClient");
|
|
63
68
|
const commands = {
|
|
64
69
|
AcceptInboundConnectionCommand: AcceptInboundConnectionCommand_1.AcceptInboundConnectionCommand,
|
|
70
|
+
AddDataSourceCommand: AddDataSourceCommand_1.AddDataSourceCommand,
|
|
65
71
|
AddTagsCommand: AddTagsCommand_1.AddTagsCommand,
|
|
66
72
|
AssociatePackageCommand: AssociatePackageCommand_1.AssociatePackageCommand,
|
|
67
73
|
AuthorizeVpcEndpointAccessCommand: AuthorizeVpcEndpointAccessCommand_1.AuthorizeVpcEndpointAccessCommand,
|
|
@@ -70,6 +76,7 @@ const commands = {
|
|
|
70
76
|
CreateOutboundConnectionCommand: CreateOutboundConnectionCommand_1.CreateOutboundConnectionCommand,
|
|
71
77
|
CreatePackageCommand: CreatePackageCommand_1.CreatePackageCommand,
|
|
72
78
|
CreateVpcEndpointCommand: CreateVpcEndpointCommand_1.CreateVpcEndpointCommand,
|
|
79
|
+
DeleteDataSourceCommand: DeleteDataSourceCommand_1.DeleteDataSourceCommand,
|
|
73
80
|
DeleteDomainCommand: DeleteDomainCommand_1.DeleteDomainCommand,
|
|
74
81
|
DeleteInboundConnectionCommand: DeleteInboundConnectionCommand_1.DeleteInboundConnectionCommand,
|
|
75
82
|
DeleteOutboundConnectionCommand: DeleteOutboundConnectionCommand_1.DeleteOutboundConnectionCommand,
|
|
@@ -92,10 +99,12 @@ const commands = {
|
|
|
92
99
|
DescribeVpcEndpointsCommand: DescribeVpcEndpointsCommand_1.DescribeVpcEndpointsCommand,
|
|
93
100
|
DissociatePackageCommand: DissociatePackageCommand_1.DissociatePackageCommand,
|
|
94
101
|
GetCompatibleVersionsCommand: GetCompatibleVersionsCommand_1.GetCompatibleVersionsCommand,
|
|
102
|
+
GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
|
|
95
103
|
GetDomainMaintenanceStatusCommand: GetDomainMaintenanceStatusCommand_1.GetDomainMaintenanceStatusCommand,
|
|
96
104
|
GetPackageVersionHistoryCommand: GetPackageVersionHistoryCommand_1.GetPackageVersionHistoryCommand,
|
|
97
105
|
GetUpgradeHistoryCommand: GetUpgradeHistoryCommand_1.GetUpgradeHistoryCommand,
|
|
98
106
|
GetUpgradeStatusCommand: GetUpgradeStatusCommand_1.GetUpgradeStatusCommand,
|
|
107
|
+
ListDataSourcesCommand: ListDataSourcesCommand_1.ListDataSourcesCommand,
|
|
99
108
|
ListDomainMaintenancesCommand: ListDomainMaintenancesCommand_1.ListDomainMaintenancesCommand,
|
|
100
109
|
ListDomainNamesCommand: ListDomainNamesCommand_1.ListDomainNamesCommand,
|
|
101
110
|
ListDomainsForPackageCommand: ListDomainsForPackageCommand_1.ListDomainsForPackageCommand,
|
|
@@ -113,6 +122,7 @@ const commands = {
|
|
|
113
122
|
RevokeVpcEndpointAccessCommand: RevokeVpcEndpointAccessCommand_1.RevokeVpcEndpointAccessCommand,
|
|
114
123
|
StartDomainMaintenanceCommand: StartDomainMaintenanceCommand_1.StartDomainMaintenanceCommand,
|
|
115
124
|
StartServiceSoftwareUpdateCommand: StartServiceSoftwareUpdateCommand_1.StartServiceSoftwareUpdateCommand,
|
|
125
|
+
UpdateDataSourceCommand: UpdateDataSourceCommand_1.UpdateDataSourceCommand,
|
|
116
126
|
UpdateDomainConfigCommand: UpdateDomainConfigCommand_1.UpdateDomainConfigCommand,
|
|
117
127
|
UpdatePackageCommand: UpdatePackageCommand_1.UpdatePackageCommand,
|
|
118
128
|
UpdateScheduledActionCommand: UpdateScheduledActionCommand_1.UpdateScheduledActionCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddDataSourceCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class AddDataSourceCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddDataSourceCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "OpenSearchClient";
|
|
29
|
+
const commandName = "AddDataSourceCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonOpenSearchService",
|
|
38
|
+
operation: "AddDataSource",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_AddDataSourceCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_AddDataSourceCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.AddDataSourceCommand = AddDataSourceCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteDataSourceCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class DeleteDataSourceCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteDataSourceCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "OpenSearchClient";
|
|
29
|
+
const commandName = "DeleteDataSourceCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonOpenSearchService",
|
|
38
|
+
operation: "DeleteDataSource",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_DeleteDataSourceCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_DeleteDataSourceCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DeleteDataSourceCommand = DeleteDataSourceCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetDataSourceCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetDataSourceCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDataSourceCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "OpenSearchClient";
|
|
29
|
+
const commandName = "GetDataSourceCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonOpenSearchService",
|
|
38
|
+
operation: "GetDataSource",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetDataSourceCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetDataSourceCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetDataSourceCommand = GetDataSourceCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListDataSourcesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListDataSourcesCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDataSourcesCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "OpenSearchClient";
|
|
29
|
+
const commandName = "ListDataSourcesCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonOpenSearchService",
|
|
38
|
+
operation: "ListDataSources",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_ListDataSourcesCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_ListDataSourcesCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.ListDataSourcesCommand = ListDataSourcesCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateDataSourceCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class UpdateDataSourceCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDataSourceCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "OpenSearchClient";
|
|
29
|
+
const commandName = "UpdateDataSourceCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonOpenSearchService",
|
|
38
|
+
operation: "UpdateDataSource",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_UpdateDataSourceCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_UpdateDataSourceCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.UpdateDataSourceCommand = UpdateDataSourceCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AcceptInboundConnectionCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./AddDataSourceCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./AddTagsCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./AssociatePackageCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./AuthorizeVpcEndpointAccessCommand"), exports);
|
|
@@ -10,6 +11,7 @@ tslib_1.__exportStar(require("./CreateDomainCommand"), exports);
|
|
|
10
11
|
tslib_1.__exportStar(require("./CreateOutboundConnectionCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./CreatePackageCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./CreateVpcEndpointCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
|
|
13
15
|
tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
|
|
14
16
|
tslib_1.__exportStar(require("./DeleteInboundConnectionCommand"), exports);
|
|
15
17
|
tslib_1.__exportStar(require("./DeleteOutboundConnectionCommand"), exports);
|
|
@@ -32,10 +34,12 @@ tslib_1.__exportStar(require("./DescribeReservedInstancesCommand"), exports);
|
|
|
32
34
|
tslib_1.__exportStar(require("./DescribeVpcEndpointsCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./DissociatePackageCommand"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./GetCompatibleVersionsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
|
|
35
38
|
tslib_1.__exportStar(require("./GetDomainMaintenanceStatusCommand"), exports);
|
|
36
39
|
tslib_1.__exportStar(require("./GetPackageVersionHistoryCommand"), exports);
|
|
37
40
|
tslib_1.__exportStar(require("./GetUpgradeHistoryCommand"), exports);
|
|
38
41
|
tslib_1.__exportStar(require("./GetUpgradeStatusCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./ListDataSourcesCommand"), exports);
|
|
39
43
|
tslib_1.__exportStar(require("./ListDomainMaintenancesCommand"), exports);
|
|
40
44
|
tslib_1.__exportStar(require("./ListDomainNamesCommand"), exports);
|
|
41
45
|
tslib_1.__exportStar(require("./ListDomainsForPackageCommand"), exports);
|
|
@@ -53,6 +57,7 @@ tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
|
|
|
53
57
|
tslib_1.__exportStar(require("./RevokeVpcEndpointAccessCommand"), exports);
|
|
54
58
|
tslib_1.__exportStar(require("./StartDomainMaintenanceCommand"), exports);
|
|
55
59
|
tslib_1.__exportStar(require("./StartServiceSoftwareUpdateCommand"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./UpdateDataSourceCommand"), exports);
|
|
56
61
|
tslib_1.__exportStar(require("./UpdateDomainConfigCommand"), exports);
|
|
57
62
|
tslib_1.__exportStar(require("./UpdatePackageCommand"), exports);
|
|
58
63
|
tslib_1.__exportStar(require("./UpdateScheduledActionCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.MaintenanceStatus = void 0;
|
|
3
|
+
exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.MasterNodeStatus = exports.ZoneStatus = exports.DomainState = exports.DomainHealth = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.SkipUnavailableStatus = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.IPAddressType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.DependencyFailureException = exports.BaseException = exports.DataSourceType = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
|
|
4
|
+
exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.MaintenanceStatus = exports.MaintenanceType = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
|
|
7
7
|
exports.ConnectionMode = {
|
|
@@ -93,6 +93,14 @@ exports.ActionType = {
|
|
|
93
93
|
JVM_YOUNG_GEN_TUNING: "JVM_YOUNG_GEN_TUNING",
|
|
94
94
|
SERVICE_SOFTWARE_UPDATE: "SERVICE_SOFTWARE_UPDATE",
|
|
95
95
|
};
|
|
96
|
+
var DataSourceType;
|
|
97
|
+
(function (DataSourceType) {
|
|
98
|
+
DataSourceType.visit = (value, visitor) => {
|
|
99
|
+
if (value.S3GlueDataCatalog !== undefined)
|
|
100
|
+
return visitor.S3GlueDataCatalog(value.S3GlueDataCatalog);
|
|
101
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
102
|
+
};
|
|
103
|
+
})(DataSourceType = exports.DataSourceType || (exports.DataSourceType = {}));
|
|
96
104
|
class BaseException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
97
105
|
constructor(opts) {
|
|
98
106
|
super({
|
|
@@ -106,6 +114,19 @@ class BaseException extends OpenSearchServiceException_1.OpenSearchServiceExcept
|
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
116
|
exports.BaseException = BaseException;
|
|
117
|
+
class DependencyFailureException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "DependencyFailureException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
this.name = "DependencyFailureException";
|
|
125
|
+
this.$fault = "client";
|
|
126
|
+
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.DependencyFailureException = DependencyFailureException;
|
|
109
130
|
class InternalException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
110
131
|
constructor(opts) {
|
|
111
132
|
super({
|
|
@@ -410,19 +431,6 @@ exports.MasterNodeStatus = {
|
|
|
410
431
|
Available: "Available",
|
|
411
432
|
UnAvailable: "UnAvailable",
|
|
412
433
|
};
|
|
413
|
-
class DependencyFailureException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
414
|
-
constructor(opts) {
|
|
415
|
-
super({
|
|
416
|
-
name: "DependencyFailureException",
|
|
417
|
-
$fault: "client",
|
|
418
|
-
...opts,
|
|
419
|
-
});
|
|
420
|
-
this.name = "DependencyFailureException";
|
|
421
|
-
this.$fault = "client";
|
|
422
|
-
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
exports.DependencyFailureException = DependencyFailureException;
|
|
426
434
|
exports.NodeStatus = {
|
|
427
435
|
Active: "Active",
|
|
428
436
|
NotAvailable: "NotAvailable",
|