@aws-sdk/client-opensearch 3.1071.0 → 3.1073.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 (44) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/index.js +63 -1
  3. package/dist-cjs/schemas/schemas_0.js +101 -6
  4. package/dist-es/OpenSearch.js +8 -0
  5. package/dist-es/commands/AttachDataSourceCommand.js +16 -0
  6. package/dist-es/commands/DescribeDataSourceAttachmentCommand.js +16 -0
  7. package/dist-es/commands/DetachDataSourceCommand.js +16 -0
  8. package/dist-es/commands/ListDataSourceAttachmentsCommand.js +16 -0
  9. package/dist-es/commands/index.js +4 -0
  10. package/dist-es/models/enums.js +5 -0
  11. package/dist-es/schemas/schemas_0.js +91 -6
  12. package/dist-types/OpenSearch.d.ts +28 -0
  13. package/dist-types/OpenSearchClient.d.ts +6 -2
  14. package/dist-types/commands/AttachDataSourceCommand.d.ts +105 -0
  15. package/dist-types/commands/DescribeDataSourceAttachmentCommand.d.ts +96 -0
  16. package/dist-types/commands/DetachDataSourceCommand.d.ts +97 -0
  17. package/dist-types/commands/ListDataSourceAttachmentsCommand.d.ts +100 -0
  18. package/dist-types/commands/RegisterCapabilityCommand.d.ts +2 -1
  19. package/dist-types/commands/RejectInboundConnectionCommand.d.ts +1 -1
  20. package/dist-types/commands/RemoveTagsCommand.d.ts +1 -1
  21. package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +1 -1
  22. package/dist-types/commands/RollbackServiceSoftwareUpdateCommand.d.ts +1 -1
  23. package/dist-types/commands/index.d.ts +4 -0
  24. package/dist-types/models/enums.d.ts +13 -0
  25. package/dist-types/models/models_0.d.ts +233 -180
  26. package/dist-types/models/models_1.d.ts +181 -2
  27. package/dist-types/schemas/schemas_0.d.ts +14 -0
  28. package/dist-types/ts3.4/OpenSearch.d.ts +68 -0
  29. package/dist-types/ts3.4/OpenSearchClient.d.ts +24 -0
  30. package/dist-types/ts3.4/commands/AttachDataSourceCommand.d.ts +52 -0
  31. package/dist-types/ts3.4/commands/DescribeDataSourceAttachmentCommand.d.ts +53 -0
  32. package/dist-types/ts3.4/commands/DetachDataSourceCommand.d.ts +52 -0
  33. package/dist-types/ts3.4/commands/ListDataSourceAttachmentsCommand.d.ts +53 -0
  34. package/dist-types/ts3.4/commands/RegisterCapabilityCommand.d.ts +2 -4
  35. package/dist-types/ts3.4/commands/RejectInboundConnectionCommand.d.ts +1 -1
  36. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/RollbackServiceSoftwareUpdateCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  40. package/dist-types/ts3.4/models/enums.d.ts +7 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +53 -52
  42. package/dist-types/ts3.4/models/models_1.d.ts +57 -0
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +14 -0
  44. package/package.json +1 -1
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DetachDataSourceRequest, DetachDataSourceResponse } from "../models/models_0";
4
+ import type { 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 DetachDataSourceCommand}.
14
+ */
15
+ export interface DetachDataSourceCommandInput extends DetachDataSourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DetachDataSourceCommand}.
21
+ */
22
+ export interface DetachDataSourceCommandOutput extends DetachDataSourceResponse, __MetadataBearer {
23
+ }
24
+ declare const DetachDataSourceCommand_base: {
25
+ new (input: DetachDataSourceCommandInput): import("@smithy/core/client").CommandImpl<DetachDataSourceCommandInput, DetachDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DetachDataSourceCommandInput): import("@smithy/core/client").CommandImpl<DetachDataSourceCommandInput, DetachDataSourceCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Removes a data source from an OpenSearch application. The application must be in the <code>ACTIVE</code> state. This operation removes the data source saved object from the application and deletes the attachment record. Throws a <code>ConflictException</code> if the specified data source has a <code>PENDING</code> attachment, and a <code>ResourceNotFoundException</code> if the data source is not currently attached to the application.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OpenSearchClient, DetachDataSourceCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
37
+ * // const { OpenSearchClient, DetachDataSourceCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
38
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
39
+ * const config = {}; // type is OpenSearchClientConfig
40
+ * const client = new OpenSearchClient(config);
41
+ * const input = { // DetachDataSourceRequest
42
+ * id: "STRING_VALUE", // required
43
+ * dataSourceArn: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new DetachDataSourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // DetachDataSourceResponse
48
+ * // id: "STRING_VALUE",
49
+ * // arn: "STRING_VALUE",
50
+ * // dataSourceArn: "STRING_VALUE",
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param DetachDataSourceCommandInput - {@link DetachDataSourceCommandInput}
56
+ * @returns {@link DetachDataSourceCommandOutput}
57
+ * @see {@link DetachDataSourceCommandInput} for command's `input` shape.
58
+ * @see {@link DetachDataSourceCommandOutput} for command's `response` shape.
59
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
63
+ *
64
+ * @throws {@link ConflictException} (client fault)
65
+ * <p>An error occurred because the client attempts to remove a resource that is currently in use.</p>
66
+ *
67
+ * @throws {@link DisabledOperationException} (client fault)
68
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
69
+ *
70
+ * @throws {@link InternalException} (server fault)
71
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
78
+ *
79
+ * @throws {@link OpenSearchServiceException}
80
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
81
+ *
82
+ *
83
+ * @public
84
+ */
85
+ export declare class DetachDataSourceCommand extends DetachDataSourceCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: DetachDataSourceRequest;
90
+ output: DetachDataSourceResponse;
91
+ };
92
+ sdk: {
93
+ input: DetachDataSourceCommandInput;
94
+ output: DetachDataSourceCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -0,0 +1,100 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListDataSourceAttachmentsRequest, ListDataSourceAttachmentsResponse } from "../models/models_0";
4
+ import type { 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 ListDataSourceAttachmentsCommand}.
14
+ */
15
+ export interface ListDataSourceAttachmentsCommandInput extends ListDataSourceAttachmentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDataSourceAttachmentsCommand}.
21
+ */
22
+ export interface ListDataSourceAttachmentsCommandOutput extends ListDataSourceAttachmentsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListDataSourceAttachmentsCommand_base: {
25
+ new (input: ListDataSourceAttachmentsCommandInput): import("@smithy/core/client").CommandImpl<ListDataSourceAttachmentsCommandInput, ListDataSourceAttachmentsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListDataSourceAttachmentsCommandInput): import("@smithy/core/client").CommandImpl<ListDataSourceAttachmentsCommandInput, ListDataSourceAttachmentsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Returns a paginated list of all data source attachments for an OpenSearch application, including attachments in all states (<code>PENDING</code>, <code>ATTACHED</code>, and <code>FAILED</code>).</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OpenSearchClient, ListDataSourceAttachmentsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
37
+ * // const { OpenSearchClient, ListDataSourceAttachmentsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
38
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
39
+ * const config = {}; // type is OpenSearchClientConfig
40
+ * const client = new OpenSearchClient(config);
41
+ * const input = { // ListDataSourceAttachmentsRequest
42
+ * id: "STRING_VALUE", // required
43
+ * nextToken: "STRING_VALUE",
44
+ * maxResults: Number("int"),
45
+ * };
46
+ * const command = new ListDataSourceAttachmentsCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // ListDataSourceAttachmentsResponse
49
+ * // attachments: [ // DataSourceAttachmentSummaryList
50
+ * // { // DataSourceAttachmentSummary
51
+ * // attachmentId: "STRING_VALUE",
52
+ * // dataSourceArn: "STRING_VALUE",
53
+ * // status: "PENDING" || "ATTACHED" || "FAILED",
54
+ * // },
55
+ * // ],
56
+ * // nextToken: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param ListDataSourceAttachmentsCommandInput - {@link ListDataSourceAttachmentsCommandInput}
62
+ * @returns {@link ListDataSourceAttachmentsCommandOutput}
63
+ * @see {@link ListDataSourceAttachmentsCommandInput} for command's `input` shape.
64
+ * @see {@link ListDataSourceAttachmentsCommandOutput} for command's `response` shape.
65
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
69
+ *
70
+ * @throws {@link DisabledOperationException} (client fault)
71
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
72
+ *
73
+ * @throws {@link InternalException} (server fault)
74
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
75
+ *
76
+ * @throws {@link ResourceNotFoundException} (client fault)
77
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
81
+ *
82
+ * @throws {@link OpenSearchServiceException}
83
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
84
+ *
85
+ *
86
+ * @public
87
+ */
88
+ export declare class ListDataSourceAttachmentsCommand extends ListDataSourceAttachmentsCommand_base {
89
+ /** @internal type navigation helper, not in runtime. */
90
+ protected static __types: {
91
+ api: {
92
+ input: ListDataSourceAttachmentsRequest;
93
+ output: ListDataSourceAttachmentsResponse;
94
+ };
95
+ sdk: {
96
+ input: ListDataSourceAttachmentsCommandInput;
97
+ output: ListDataSourceAttachmentsCommandOutput;
98
+ };
99
+ };
100
+ }
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { RegisterCapabilityRequest, RegisterCapabilityResponse } from "../models/models_0";
3
+ import type { RegisterCapabilityRequest } from "../models/models_0";
4
+ import type { RegisterCapabilityResponse } from "../models/models_1";
4
5
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
6
  /**
6
7
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { RejectInboundConnectionRequest, RejectInboundConnectionResponse } from "../models/models_0";
3
+ import type { RejectInboundConnectionRequest, RejectInboundConnectionResponse } from "../models/models_1";
4
4
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { RemoveTagsRequest } from "../models/models_0";
3
+ import type { RemoveTagsRequest } from "../models/models_1";
4
4
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { RevokeVpcEndpointAccessRequest, RevokeVpcEndpointAccessResponse } from "../models/models_0";
3
+ import type { RevokeVpcEndpointAccessRequest, RevokeVpcEndpointAccessResponse } from "../models/models_1";
4
4
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { RollbackServiceSoftwareUpdateRequest, RollbackServiceSoftwareUpdateResponse } from "../models/models_0";
3
+ import type { RollbackServiceSoftwareUpdateRequest, RollbackServiceSoftwareUpdateResponse } from "../models/models_1";
4
4
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -4,6 +4,7 @@ export * from "./AddDirectQueryDataSourceCommand";
4
4
  export * from "./AddTagsCommand";
5
5
  export * from "./AssociatePackageCommand";
6
6
  export * from "./AssociatePackagesCommand";
7
+ export * from "./AttachDataSourceCommand";
7
8
  export * from "./AuthorizeVpcEndpointAccessCommand";
8
9
  export * from "./CancelDomainConfigChangeCommand";
9
10
  export * from "./CancelServiceSoftwareUpdateCommand";
@@ -23,6 +24,7 @@ export * from "./DeleteOutboundConnectionCommand";
23
24
  export * from "./DeletePackageCommand";
24
25
  export * from "./DeleteVpcEndpointCommand";
25
26
  export * from "./DeregisterCapabilityCommand";
27
+ export * from "./DescribeDataSourceAttachmentCommand";
26
28
  export * from "./DescribeDomainAutoTunesCommand";
27
29
  export * from "./DescribeDomainChangeProgressCommand";
28
30
  export * from "./DescribeDomainCommand";
@@ -39,6 +41,7 @@ export * from "./DescribePackagesCommand";
39
41
  export * from "./DescribeReservedInstanceOfferingsCommand";
40
42
  export * from "./DescribeReservedInstancesCommand";
41
43
  export * from "./DescribeVpcEndpointsCommand";
44
+ export * from "./DetachDataSourceCommand";
42
45
  export * from "./DissociatePackageCommand";
43
46
  export * from "./DissociatePackagesCommand";
44
47
  export * from "./GetApplicationCommand";
@@ -53,6 +56,7 @@ export * from "./GetPackageVersionHistoryCommand";
53
56
  export * from "./GetUpgradeHistoryCommand";
54
57
  export * from "./GetUpgradeStatusCommand";
55
58
  export * from "./ListApplicationsCommand";
59
+ export * from "./ListDataSourceAttachmentsCommand";
56
60
  export * from "./ListDataSourcesCommand";
57
61
  export * from "./ListDirectQueryDataSourcesCommand";
58
62
  export * from "./ListDomainMaintenancesCommand";
@@ -141,6 +141,19 @@ export declare const PackageType: {
141
141
  * @public
142
142
  */
143
143
  export type PackageType = (typeof PackageType)[keyof typeof PackageType];
144
+ /**
145
+ * @public
146
+ * @enum
147
+ */
148
+ export declare const DataSourceAttachmentStatus: {
149
+ readonly ATTACHED: "ATTACHED";
150
+ readonly FAILED: "FAILED";
151
+ readonly PENDING: "PENDING";
152
+ };
153
+ /**
154
+ * @public
155
+ */
156
+ export type DataSourceAttachmentStatus = (typeof DataSourceAttachmentStatus)[keyof typeof DataSourceAttachmentStatus];
144
157
  /**
145
158
  * @public
146
159
  * @enum