@aws-sdk/client-opensearch 3.699.0 → 3.709.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.
Files changed (45) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +240 -5
  3. package/dist-es/OpenSearch.js +10 -0
  4. package/dist-es/commands/AddDirectQueryDataSourceCommand.js +22 -0
  5. package/dist-es/commands/DeleteDirectQueryDataSourceCommand.js +22 -0
  6. package/dist-es/commands/GetDirectQueryDataSourceCommand.js +22 -0
  7. package/dist-es/commands/ListDirectQueryDataSourcesCommand.js +22 -0
  8. package/dist-es/commands/UpdateDirectQueryDataSourceCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +10 -4
  11. package/dist-es/models/models_1.js +4 -0
  12. package/dist-es/protocols/Aws_restJson1.js +134 -0
  13. package/dist-types/OpenSearch.d.ts +36 -0
  14. package/dist-types/OpenSearchClient.d.ts +7 -2
  15. package/dist-types/commands/AddDirectQueryDataSourceCommand.d.ts +110 -0
  16. package/dist-types/commands/AddTagsCommand.d.ts +4 -4
  17. package/dist-types/commands/DeleteDirectQueryDataSourceCommand.d.ts +87 -0
  18. package/dist-types/commands/GetDirectQueryDataSourceCommand.d.ts +102 -0
  19. package/dist-types/commands/ListDirectQueryDataSourcesCommand.d.ts +113 -0
  20. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +1 -1
  22. package/dist-types/commands/ListScheduledActionsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListTagsCommand.d.ts +4 -3
  24. package/dist-types/commands/RemoveTagsCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +101 -0
  26. package/dist-types/commands/index.d.ts +5 -0
  27. package/dist-types/models/models_0.d.ts +307 -298
  28. package/dist-types/models/models_1.d.ts +331 -4
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  30. package/dist-types/ts3.4/OpenSearch.d.ts +86 -0
  31. package/dist-types/ts3.4/OpenSearchClient.d.ts +30 -0
  32. package/dist-types/ts3.4/commands/AddDirectQueryDataSourceCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/DeleteDirectQueryDataSourceCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/GetDirectQueryDataSourceCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/ListDirectQueryDataSourcesCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/ListInstanceTypeDetailsCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/ListPackagesForDomainCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/UpdateDirectQueryDataSourceCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +74 -65
  43. package/dist-types/ts3.4/models/models_1.d.ts +77 -1
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  45. package/package.json +35 -35
@@ -0,0 +1,110 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AddDirectQueryDataSourceRequest, AddDirectQueryDataSourceResponse } from "../models/models_0";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AddDirectQueryDataSourceCommand}.
14
+ */
15
+ export interface AddDirectQueryDataSourceCommandInput extends AddDirectQueryDataSourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AddDirectQueryDataSourceCommand}.
21
+ */
22
+ export interface AddDirectQueryDataSourceCommandOutput extends AddDirectQueryDataSourceResponse, __MetadataBearer {
23
+ }
24
+ declare const AddDirectQueryDataSourceCommand_base: {
25
+ new (input: AddDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<AddDirectQueryDataSourceCommandInput, AddDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AddDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<AddDirectQueryDataSourceCommandInput, AddDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Adds a new data source in Amazon OpenSearch Service
32
+ * so that you can perform direct queries on external data.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OpenSearchClient, AddDirectQueryDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
38
+ * // const { OpenSearchClient, AddDirectQueryDataSourceCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
39
+ * const client = new OpenSearchClient(config);
40
+ * const input = { // AddDirectQueryDataSourceRequest
41
+ * DataSourceName: "STRING_VALUE", // required
42
+ * DataSourceType: { // DirectQueryDataSourceType Union: only one key present
43
+ * CloudWatchLog: { // CloudWatchDirectQueryDataSource
44
+ * RoleArn: "STRING_VALUE", // required
45
+ * },
46
+ * SecurityLake: { // SecurityLakeDirectQueryDataSource
47
+ * RoleArn: "STRING_VALUE", // required
48
+ * },
49
+ * },
50
+ * Description: "STRING_VALUE",
51
+ * OpenSearchArns: [ // DirectQueryOpenSearchARNList // required
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * TagList: [ // TagList
55
+ * { // Tag
56
+ * Key: "STRING_VALUE", // required
57
+ * Value: "STRING_VALUE", // required
58
+ * },
59
+ * ],
60
+ * };
61
+ * const command = new AddDirectQueryDataSourceCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // AddDirectQueryDataSourceResponse
64
+ * // DataSourceArn: "STRING_VALUE",
65
+ * // };
66
+ *
67
+ * ```
68
+ *
69
+ * @param AddDirectQueryDataSourceCommandInput - {@link AddDirectQueryDataSourceCommandInput}
70
+ * @returns {@link AddDirectQueryDataSourceCommandOutput}
71
+ * @see {@link AddDirectQueryDataSourceCommandInput} for command's `input` shape.
72
+ * @see {@link AddDirectQueryDataSourceCommandOutput} for command's `response` shape.
73
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
74
+ *
75
+ * @throws {@link BaseException} (client fault)
76
+ * <p>An error occurred while processing the request.</p>
77
+ *
78
+ * @throws {@link DisabledOperationException} (client fault)
79
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
80
+ *
81
+ * @throws {@link InternalException} (server fault)
82
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
83
+ *
84
+ * @throws {@link LimitExceededException} (client fault)
85
+ * <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
89
+ *
90
+ * @throws {@link ValidationException} (client fault)
91
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
92
+ *
93
+ * @throws {@link OpenSearchServiceException}
94
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
95
+ *
96
+ * @public
97
+ */
98
+ export declare class AddDirectQueryDataSourceCommand extends AddDirectQueryDataSourceCommand_base {
99
+ /** @internal type navigation helper, not in runtime. */
100
+ protected static __types: {
101
+ api: {
102
+ input: AddDirectQueryDataSourceRequest;
103
+ output: AddDirectQueryDataSourceResponse;
104
+ };
105
+ sdk: {
106
+ input: AddDirectQueryDataSourceCommandInput;
107
+ output: AddDirectQueryDataSourceCommandOutput;
108
+ };
109
+ };
110
+ }
@@ -27,10 +27,10 @@ declare const AddTagsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Attaches tags to an existing Amazon OpenSearch Service domain. Tags are a set of
31
- * case-sensitive key-value pairs. A domain can have up to 10 tags. For more information, see
32
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging Amazon OpenSearch Service domains</a>.
33
- * </p>
30
+ * <p>Attaches tags to an existing Amazon OpenSearch Service domain, data source, or application. </p>
31
+ * <p>Tags are a set of case-sensitive key-value pairs. A domain, data source, or application can
32
+ * have up to 10 tags. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging
33
+ * Amazon OpenSearch Service resources</a>. </p>
34
34
  * @example
35
35
  * Use a bare-bones client and the command you need to make an API call.
36
36
  * ```javascript
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteDirectQueryDataSourceRequest } from "../models/models_0";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDirectQueryDataSourceCommand}.
14
+ */
15
+ export interface DeleteDirectQueryDataSourceCommandInput extends DeleteDirectQueryDataSourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDirectQueryDataSourceCommand}.
21
+ */
22
+ export interface DeleteDirectQueryDataSourceCommandOutput extends __MetadataBearer {
23
+ }
24
+ declare const DeleteDirectQueryDataSourceCommand_base: {
25
+ new (input: DeleteDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDirectQueryDataSourceCommandInput, DeleteDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDirectQueryDataSourceCommandInput, DeleteDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Deletes a previously configured direct query data
32
+ * source from Amazon OpenSearch Service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OpenSearchClient, DeleteDirectQueryDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
38
+ * // const { OpenSearchClient, DeleteDirectQueryDataSourceCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
39
+ * const client = new OpenSearchClient(config);
40
+ * const input = { // DeleteDirectQueryDataSourceRequest
41
+ * DataSourceName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new DeleteDirectQueryDataSourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param DeleteDirectQueryDataSourceCommandInput - {@link DeleteDirectQueryDataSourceCommandInput}
50
+ * @returns {@link DeleteDirectQueryDataSourceCommandOutput}
51
+ * @see {@link DeleteDirectQueryDataSourceCommandInput} for command's `input` shape.
52
+ * @see {@link DeleteDirectQueryDataSourceCommandOutput} for command's `response` shape.
53
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
54
+ *
55
+ * @throws {@link BaseException} (client fault)
56
+ * <p>An error occurred while processing the request.</p>
57
+ *
58
+ * @throws {@link DisabledOperationException} (client fault)
59
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
60
+ *
61
+ * @throws {@link InternalException} (server fault)
62
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
69
+ *
70
+ * @throws {@link OpenSearchServiceException}
71
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
72
+ *
73
+ * @public
74
+ */
75
+ export declare class DeleteDirectQueryDataSourceCommand extends DeleteDirectQueryDataSourceCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: DeleteDirectQueryDataSourceRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: DeleteDirectQueryDataSourceCommandInput;
84
+ output: DeleteDirectQueryDataSourceCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetDirectQueryDataSourceRequest, GetDirectQueryDataSourceResponse } from "../models/models_0";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetDirectQueryDataSourceCommand}.
14
+ */
15
+ export interface GetDirectQueryDataSourceCommandInput extends GetDirectQueryDataSourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetDirectQueryDataSourceCommand}.
21
+ */
22
+ export interface GetDirectQueryDataSourceCommandOutput extends GetDirectQueryDataSourceResponse, __MetadataBearer {
23
+ }
24
+ declare const GetDirectQueryDataSourceCommand_base: {
25
+ new (input: GetDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetDirectQueryDataSourceCommandInput, GetDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<GetDirectQueryDataSourceCommandInput, GetDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Returns detailed configuration information for
32
+ * a specific direct query data source in Amazon OpenSearch Service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OpenSearchClient, GetDirectQueryDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
38
+ * // const { OpenSearchClient, GetDirectQueryDataSourceCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
39
+ * const client = new OpenSearchClient(config);
40
+ * const input = { // GetDirectQueryDataSourceRequest
41
+ * DataSourceName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetDirectQueryDataSourceCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetDirectQueryDataSourceResponse
46
+ * // DataSourceName: "STRING_VALUE",
47
+ * // DataSourceType: { // DirectQueryDataSourceType Union: only one key present
48
+ * // CloudWatchLog: { // CloudWatchDirectQueryDataSource
49
+ * // RoleArn: "STRING_VALUE", // required
50
+ * // },
51
+ * // SecurityLake: { // SecurityLakeDirectQueryDataSource
52
+ * // RoleArn: "STRING_VALUE", // required
53
+ * // },
54
+ * // },
55
+ * // Description: "STRING_VALUE",
56
+ * // OpenSearchArns: [ // DirectQueryOpenSearchARNList
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // DataSourceArn: "STRING_VALUE",
60
+ * // };
61
+ *
62
+ * ```
63
+ *
64
+ * @param GetDirectQueryDataSourceCommandInput - {@link GetDirectQueryDataSourceCommandInput}
65
+ * @returns {@link GetDirectQueryDataSourceCommandOutput}
66
+ * @see {@link GetDirectQueryDataSourceCommandInput} for command's `input` shape.
67
+ * @see {@link GetDirectQueryDataSourceCommandOutput} for command's `response` shape.
68
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
69
+ *
70
+ * @throws {@link BaseException} (client fault)
71
+ * <p>An error occurred while processing the request.</p>
72
+ *
73
+ * @throws {@link DisabledOperationException} (client fault)
74
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
75
+ *
76
+ * @throws {@link InternalException} (server fault)
77
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
81
+ *
82
+ * @throws {@link ValidationException} (client fault)
83
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
84
+ *
85
+ * @throws {@link OpenSearchServiceException}
86
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class GetDirectQueryDataSourceCommand extends GetDirectQueryDataSourceCommand_base {
91
+ /** @internal type navigation helper, not in runtime. */
92
+ protected static __types: {
93
+ api: {
94
+ input: GetDirectQueryDataSourceRequest;
95
+ output: GetDirectQueryDataSourceResponse;
96
+ };
97
+ sdk: {
98
+ input: GetDirectQueryDataSourceCommandInput;
99
+ output: GetDirectQueryDataSourceCommandOutput;
100
+ };
101
+ };
102
+ }
@@ -0,0 +1,113 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { ListDirectQueryDataSourcesRequest, ListDirectQueryDataSourcesResponse } from "../models/models_0";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDirectQueryDataSourcesCommand}.
14
+ */
15
+ export interface ListDirectQueryDataSourcesCommandInput extends ListDirectQueryDataSourcesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDirectQueryDataSourcesCommand}.
21
+ */
22
+ export interface ListDirectQueryDataSourcesCommandOutput extends ListDirectQueryDataSourcesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDirectQueryDataSourcesCommand_base: {
25
+ new (input: ListDirectQueryDataSourcesCommandInput): import("@smithy/smithy-client").CommandImpl<ListDirectQueryDataSourcesCommandInput, ListDirectQueryDataSourcesCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListDirectQueryDataSourcesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListDirectQueryDataSourcesCommandInput, ListDirectQueryDataSourcesCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Lists an inventory of all the direct query data sources that you
32
+ * have configured within Amazon OpenSearch Service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OpenSearchClient, ListDirectQueryDataSourcesCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
38
+ * // const { OpenSearchClient, ListDirectQueryDataSourcesCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
39
+ * const client = new OpenSearchClient(config);
40
+ * const input = { // ListDirectQueryDataSourcesRequest
41
+ * NextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListDirectQueryDataSourcesCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListDirectQueryDataSourcesResponse
46
+ * // NextToken: "STRING_VALUE",
47
+ * // DirectQueryDataSources: [ // DirectQueryDataSourceList
48
+ * // { // DirectQueryDataSource
49
+ * // DataSourceName: "STRING_VALUE",
50
+ * // DataSourceType: { // DirectQueryDataSourceType Union: only one key present
51
+ * // CloudWatchLog: { // CloudWatchDirectQueryDataSource
52
+ * // RoleArn: "STRING_VALUE", // required
53
+ * // },
54
+ * // SecurityLake: { // SecurityLakeDirectQueryDataSource
55
+ * // RoleArn: "STRING_VALUE", // required
56
+ * // },
57
+ * // },
58
+ * // Description: "STRING_VALUE",
59
+ * // OpenSearchArns: [ // DirectQueryOpenSearchARNList
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // DataSourceArn: "STRING_VALUE",
63
+ * // TagList: [ // TagList
64
+ * // { // Tag
65
+ * // Key: "STRING_VALUE", // required
66
+ * // Value: "STRING_VALUE", // required
67
+ * // },
68
+ * // ],
69
+ * // },
70
+ * // ],
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param ListDirectQueryDataSourcesCommandInput - {@link ListDirectQueryDataSourcesCommandInput}
76
+ * @returns {@link ListDirectQueryDataSourcesCommandOutput}
77
+ * @see {@link ListDirectQueryDataSourcesCommandInput} for command's `input` shape.
78
+ * @see {@link ListDirectQueryDataSourcesCommandOutput} for command's `response` shape.
79
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
80
+ *
81
+ * @throws {@link BaseException} (client fault)
82
+ * <p>An error occurred while processing the request.</p>
83
+ *
84
+ * @throws {@link DisabledOperationException} (client fault)
85
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
86
+ *
87
+ * @throws {@link InternalException} (server fault)
88
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
89
+ *
90
+ * @throws {@link ResourceNotFoundException} (client fault)
91
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
95
+ *
96
+ * @throws {@link OpenSearchServiceException}
97
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
98
+ *
99
+ * @public
100
+ */
101
+ export declare class ListDirectQueryDataSourcesCommand extends ListDirectQueryDataSourcesCommand_base {
102
+ /** @internal type navigation helper, not in runtime. */
103
+ protected static __types: {
104
+ api: {
105
+ input: ListDirectQueryDataSourcesRequest;
106
+ output: ListDirectQueryDataSourcesResponse;
107
+ };
108
+ sdk: {
109
+ input: ListDirectQueryDataSourcesCommandInput;
110
+ output: ListDirectQueryDataSourcesCommandOutput;
111
+ };
112
+ };
113
+ }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListInstanceTypeDetailsRequest, ListInstanceTypeDetailsResponse } from "../models/models_0";
3
+ import { ListInstanceTypeDetailsRequest, ListInstanceTypeDetailsResponse } from "../models/models_1";
4
4
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListPackagesForDomainRequest, ListPackagesForDomainResponse } from "../models/models_0";
3
+ import { ListPackagesForDomainRequest, ListPackagesForDomainResponse } from "../models/models_1";
4
4
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListScheduledActionsRequest, ListScheduledActionsResponse } from "../models/models_0";
3
+ import { ListScheduledActionsRequest, ListScheduledActionsResponse } from "../models/models_1";
4
4
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListTagsRequest, ListTagsResponse } from "../models/models_0";
3
+ import { ListTagsRequest, ListTagsResponse } from "../models/models_1";
4
4
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -27,8 +27,9 @@ declare const ListTagsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns all resource tags for an Amazon OpenSearch Service domain. For more information, see
31
- * <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging Amazon OpenSearch Service domains</a>.</p>
30
+ * <p>Returns all resource tags for an Amazon OpenSearch Service domain, data source, or
31
+ * application. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-awsresourcetagging.html">Tagging
32
+ * Amazon OpenSearch Service resources</a>.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -27,8 +27,8 @@ declare const RemoveTagsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Removes the specified set of tags from an Amazon OpenSearch Service domain. For more
31
- * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service domains</a>.</p>
30
+ * <p>Removes the specified set of tags from an Amazon OpenSearch Service domain, data source, or
31
+ * application. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains.html#managedomains-awsresorcetagging"> Tagging Amazon OpenSearch Service resources</a>.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateDirectQueryDataSourceRequest, UpdateDirectQueryDataSourceResponse } from "../models/models_1";
4
+ import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateDirectQueryDataSourceCommand}.
14
+ */
15
+ export interface UpdateDirectQueryDataSourceCommandInput extends UpdateDirectQueryDataSourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateDirectQueryDataSourceCommand}.
21
+ */
22
+ export interface UpdateDirectQueryDataSourceCommandOutput extends UpdateDirectQueryDataSourceResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateDirectQueryDataSourceCommand_base: {
25
+ new (input: UpdateDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDirectQueryDataSourceCommandInput, UpdateDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateDirectQueryDataSourceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateDirectQueryDataSourceCommandInput, UpdateDirectQueryDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Updates the configuration or properties of an existing
32
+ * direct query data source in Amazon OpenSearch Service.
33
+ * </p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OpenSearchClient, UpdateDirectQueryDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
38
+ * // const { OpenSearchClient, UpdateDirectQueryDataSourceCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
39
+ * const client = new OpenSearchClient(config);
40
+ * const input = { // UpdateDirectQueryDataSourceRequest
41
+ * DataSourceName: "STRING_VALUE", // required
42
+ * DataSourceType: { // DirectQueryDataSourceType Union: only one key present
43
+ * CloudWatchLog: { // CloudWatchDirectQueryDataSource
44
+ * RoleArn: "STRING_VALUE", // required
45
+ * },
46
+ * SecurityLake: { // SecurityLakeDirectQueryDataSource
47
+ * RoleArn: "STRING_VALUE", // required
48
+ * },
49
+ * },
50
+ * Description: "STRING_VALUE",
51
+ * OpenSearchArns: [ // DirectQueryOpenSearchARNList // required
52
+ * "STRING_VALUE",
53
+ * ],
54
+ * };
55
+ * const command = new UpdateDirectQueryDataSourceCommand(input);
56
+ * const response = await client.send(command);
57
+ * // { // UpdateDirectQueryDataSourceResponse
58
+ * // DataSourceArn: "STRING_VALUE",
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param UpdateDirectQueryDataSourceCommandInput - {@link UpdateDirectQueryDataSourceCommandInput}
64
+ * @returns {@link UpdateDirectQueryDataSourceCommandOutput}
65
+ * @see {@link UpdateDirectQueryDataSourceCommandInput} for command's `input` shape.
66
+ * @see {@link UpdateDirectQueryDataSourceCommandOutput} for command's `response` shape.
67
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
68
+ *
69
+ * @throws {@link BaseException} (client fault)
70
+ * <p>An error occurred while processing the request.</p>
71
+ *
72
+ * @throws {@link DisabledOperationException} (client fault)
73
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
74
+ *
75
+ * @throws {@link InternalException} (server fault)
76
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
83
+ *
84
+ * @throws {@link OpenSearchServiceException}
85
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
86
+ *
87
+ * @public
88
+ */
89
+ export declare class UpdateDirectQueryDataSourceCommand extends UpdateDirectQueryDataSourceCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: UpdateDirectQueryDataSourceRequest;
94
+ output: UpdateDirectQueryDataSourceResponse;
95
+ };
96
+ sdk: {
97
+ input: UpdateDirectQueryDataSourceCommandInput;
98
+ output: UpdateDirectQueryDataSourceCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./AcceptInboundConnectionCommand";
2
2
  export * from "./AddDataSourceCommand";
3
+ export * from "./AddDirectQueryDataSourceCommand";
3
4
  export * from "./AddTagsCommand";
4
5
  export * from "./AssociatePackageCommand";
5
6
  export * from "./AssociatePackagesCommand";
@@ -13,6 +14,7 @@ export * from "./CreatePackageCommand";
13
14
  export * from "./CreateVpcEndpointCommand";
14
15
  export * from "./DeleteApplicationCommand";
15
16
  export * from "./DeleteDataSourceCommand";
17
+ export * from "./DeleteDirectQueryDataSourceCommand";
16
18
  export * from "./DeleteDomainCommand";
17
19
  export * from "./DeleteInboundConnectionCommand";
18
20
  export * from "./DeleteOutboundConnectionCommand";
@@ -38,12 +40,14 @@ export * from "./DissociatePackagesCommand";
38
40
  export * from "./GetApplicationCommand";
39
41
  export * from "./GetCompatibleVersionsCommand";
40
42
  export * from "./GetDataSourceCommand";
43
+ export * from "./GetDirectQueryDataSourceCommand";
41
44
  export * from "./GetDomainMaintenanceStatusCommand";
42
45
  export * from "./GetPackageVersionHistoryCommand";
43
46
  export * from "./GetUpgradeHistoryCommand";
44
47
  export * from "./GetUpgradeStatusCommand";
45
48
  export * from "./ListApplicationsCommand";
46
49
  export * from "./ListDataSourcesCommand";
50
+ export * from "./ListDirectQueryDataSourcesCommand";
47
51
  export * from "./ListDomainMaintenancesCommand";
48
52
  export * from "./ListDomainNamesCommand";
49
53
  export * from "./ListDomainsForPackageCommand";
@@ -63,6 +67,7 @@ export * from "./StartDomainMaintenanceCommand";
63
67
  export * from "./StartServiceSoftwareUpdateCommand";
64
68
  export * from "./UpdateApplicationCommand";
65
69
  export * from "./UpdateDataSourceCommand";
70
+ export * from "./UpdateDirectQueryDataSourceCommand";
66
71
  export * from "./UpdateDomainConfigCommand";
67
72
  export * from "./UpdatePackageCommand";
68
73
  export * from "./UpdatePackageScopeCommand";