@aws-sdk/client-opensearch 3.932.0 → 3.933.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 +32 -0
  2. package/dist-cjs/index.js +171 -1
  3. package/dist-es/OpenSearch.js +8 -0
  4. package/dist-es/commands/CreateIndexCommand.js +16 -0
  5. package/dist-es/commands/DeleteIndexCommand.js +16 -0
  6. package/dist-es/commands/GetIndexCommand.js +16 -0
  7. package/dist-es/commands/UpdateIndexCommand.js +16 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +17 -4
  10. package/dist-es/models/models_1.js +4 -0
  11. package/dist-es/schemas/schemas_0.js +96 -1
  12. package/dist-types/OpenSearch.d.ts +28 -0
  13. package/dist-types/OpenSearchClient.d.ts +6 -2
  14. package/dist-types/commands/CreateIndexCommand.d.ts +100 -0
  15. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +3 -2
  16. package/dist-types/commands/DeleteIndexCommand.d.ts +96 -0
  17. package/dist-types/commands/DissociatePackagesCommand.d.ts +1 -1
  18. package/dist-types/commands/GetDirectQueryDataSourceCommand.d.ts +1 -1
  19. package/dist-types/commands/GetIndexCommand.d.ts +96 -0
  20. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +4 -4
  21. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -2
  22. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
  23. package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -1
  24. package/dist-types/commands/ListDirectQueryDataSourcesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListDomainMaintenancesCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateIndexCommand.d.ts +97 -0
  27. package/dist-types/commands/index.d.ts +4 -0
  28. package/dist-types/models/models_0.d.ts +229 -329
  29. package/dist-types/models/models_1.d.ts +231 -5
  30. package/dist-types/schemas/schemas_0.d.ts +13 -0
  31. package/dist-types/ts3.4/OpenSearch.d.ts +68 -0
  32. package/dist-types/ts3.4/OpenSearchClient.d.ts +24 -0
  33. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
  35. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +2 -4
  37. package/dist-types/ts3.4/commands/ListDirectQueryDataSourcesCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListDomainMaintenancesCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +47 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +36 -44
  42. package/dist-types/ts3.4/models/models_1.d.ts +56 -1
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  44. package/package.json +3 -3
@@ -0,0 +1,96 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetIndexRequest, GetIndexResponse } 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 GetIndexCommand}.
14
+ */
15
+ export interface GetIndexCommandInput extends GetIndexRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetIndexCommand}.
21
+ */
22
+ export interface GetIndexCommandOutput extends GetIndexResponse, __MetadataBearer {
23
+ }
24
+ declare const GetIndexCommand_base: {
25
+ new (input: GetIndexCommandInput): import("@smithy/smithy-client").CommandImpl<GetIndexCommandInput, GetIndexCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetIndexCommandInput): import("@smithy/smithy-client").CommandImpl<GetIndexCommandInput, GetIndexCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about an OpenSearch index including its schema and semantic enrichment configuration. Use this operation to view the current index structure and semantic search settings.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OpenSearchClient, GetIndexCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
35
+ * // const { OpenSearchClient, GetIndexCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
36
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
37
+ * const config = {}; // type is OpenSearchClientConfig
38
+ * const client = new OpenSearchClient(config);
39
+ * const input = { // GetIndexRequest
40
+ * DomainName: "STRING_VALUE", // required
41
+ * IndexName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetIndexCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetIndexResponse
46
+ * // IndexSchema: "DOCUMENT_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetIndexCommandInput - {@link GetIndexCommandInput}
52
+ * @returns {@link GetIndexCommandOutput}
53
+ * @see {@link GetIndexCommandInput} for command's `input` shape.
54
+ * @see {@link GetIndexCommandOutput} for command's `response` shape.
55
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
59
+ *
60
+ * @throws {@link DependencyFailureException} (client fault)
61
+ * <p>An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.</p>
62
+ *
63
+ * @throws {@link DisabledOperationException} (client fault)
64
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
65
+ *
66
+ * @throws {@link InternalException} (server fault)
67
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
77
+ *
78
+ * @throws {@link OpenSearchServiceException}
79
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
80
+ *
81
+ *
82
+ * @public
83
+ */
84
+ export declare class GetIndexCommand extends GetIndexCommand_base {
85
+ /** @internal type navigation helper, not in runtime. */
86
+ protected static __types: {
87
+ api: {
88
+ input: GetIndexRequest;
89
+ output: GetIndexResponse;
90
+ };
91
+ sdk: {
92
+ input: GetIndexCommandInput;
93
+ output: GetIndexCommandOutput;
94
+ };
95
+ };
96
+ }
@@ -27,10 +27,10 @@ declare const GetPackageVersionHistoryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns a list of Amazon OpenSearch Service package versions, along with their
31
- * creation time, commit message, and plugin properties (if the package is a zip plugin
32
- * package). For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages
33
- * for Amazon OpenSearch Service</a>.</p>
30
+ * <p>Returns a list of Amazon OpenSearch Service package versions, along with their creation
31
+ * time, commit message, and plugin properties (if the package is a zip plugin package). For more
32
+ * information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html">Custom packages for Amazon
33
+ * OpenSearch Service</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
@@ -27,8 +27,8 @@ declare const GetUpgradeHistoryCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves the complete history of the last 10 upgrades performed on an Amazon
31
- * OpenSearch Service domain.</p>
30
+ * <p>Retrieves the complete history of the last 10 upgrades performed on an Amazon OpenSearch
31
+ * Service domain.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,8 +27,8 @@ declare const GetUpgradeStatusCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns the most recent status of the last upgrade or upgrade eligibility check
31
- * performed on an Amazon OpenSearch Service domain.</p>
30
+ * <p>Returns the most recent status of the last upgrade or upgrade eligibility check performed on
31
+ * an Amazon OpenSearch Service domain.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListDataSourcesRequest, ListDataSourcesResponse } from "../models/models_0";
3
+ import { ListDataSourcesRequest } from "../models/models_0";
4
+ import { ListDataSourcesResponse } from "../models/models_1";
4
5
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
6
  /**
6
7
  * @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 { ListDirectQueryDataSourcesRequest, ListDirectQueryDataSourcesResponse } from "../models/models_0";
3
+ import { ListDirectQueryDataSourcesRequest, ListDirectQueryDataSourcesResponse } 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 { ListDomainMaintenancesRequest, ListDomainMaintenancesResponse } from "../models/models_0";
3
+ import { ListDomainMaintenancesRequest, ListDomainMaintenancesResponse } from "../models/models_1";
4
4
  import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -0,0 +1,97 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { UpdateIndexRequest, UpdateIndexResponse } 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 UpdateIndexCommand}.
14
+ */
15
+ export interface UpdateIndexCommandInput extends UpdateIndexRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateIndexCommand}.
21
+ */
22
+ export interface UpdateIndexCommandOutput extends UpdateIndexResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateIndexCommand_base: {
25
+ new (input: UpdateIndexCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIndexCommandInput, UpdateIndexCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateIndexCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateIndexCommandInput, UpdateIndexCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing OpenSearch index schema and semantic enrichment configuration. This operation allows modification of field mappings and semantic search settings for text fields. Changes to semantic enrichment configuration will apply to newly ingested documents.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OpenSearchClient, UpdateIndexCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
35
+ * // const { OpenSearchClient, UpdateIndexCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
36
+ * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch";
37
+ * const config = {}; // type is OpenSearchClientConfig
38
+ * const client = new OpenSearchClient(config);
39
+ * const input = { // UpdateIndexRequest
40
+ * DomainName: "STRING_VALUE", // required
41
+ * IndexName: "STRING_VALUE", // required
42
+ * IndexSchema: "DOCUMENT_VALUE", // required
43
+ * };
44
+ * const command = new UpdateIndexCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // UpdateIndexResponse
47
+ * // Status: "CREATED" || "UPDATED" || "DELETED", // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param UpdateIndexCommandInput - {@link UpdateIndexCommandInput}
53
+ * @returns {@link UpdateIndexCommandOutput}
54
+ * @see {@link UpdateIndexCommandInput} for command's `input` shape.
55
+ * @see {@link UpdateIndexCommandOutput} for command's `response` shape.
56
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
60
+ *
61
+ * @throws {@link DependencyFailureException} (client fault)
62
+ * <p>An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.</p>
63
+ *
64
+ * @throws {@link DisabledOperationException} (client fault)
65
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
66
+ *
67
+ * @throws {@link InternalException} (server fault)
68
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</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 UpdateIndexCommand extends UpdateIndexCommand_base {
86
+ /** @internal type navigation helper, not in runtime. */
87
+ protected static __types: {
88
+ api: {
89
+ input: UpdateIndexRequest;
90
+ output: UpdateIndexResponse;
91
+ };
92
+ sdk: {
93
+ input: UpdateIndexCommandInput;
94
+ output: UpdateIndexCommandOutput;
95
+ };
96
+ };
97
+ }
@@ -9,6 +9,7 @@ export * from "./CancelDomainConfigChangeCommand";
9
9
  export * from "./CancelServiceSoftwareUpdateCommand";
10
10
  export * from "./CreateApplicationCommand";
11
11
  export * from "./CreateDomainCommand";
12
+ export * from "./CreateIndexCommand";
12
13
  export * from "./CreateOutboundConnectionCommand";
13
14
  export * from "./CreatePackageCommand";
14
15
  export * from "./CreateVpcEndpointCommand";
@@ -17,6 +18,7 @@ export * from "./DeleteDataSourceCommand";
17
18
  export * from "./DeleteDirectQueryDataSourceCommand";
18
19
  export * from "./DeleteDomainCommand";
19
20
  export * from "./DeleteInboundConnectionCommand";
21
+ export * from "./DeleteIndexCommand";
20
22
  export * from "./DeleteOutboundConnectionCommand";
21
23
  export * from "./DeletePackageCommand";
22
24
  export * from "./DeleteVpcEndpointCommand";
@@ -43,6 +45,7 @@ export * from "./GetDataSourceCommand";
43
45
  export * from "./GetDefaultApplicationSettingCommand";
44
46
  export * from "./GetDirectQueryDataSourceCommand";
45
47
  export * from "./GetDomainMaintenanceStatusCommand";
48
+ export * from "./GetIndexCommand";
46
49
  export * from "./GetPackageVersionHistoryCommand";
47
50
  export * from "./GetUpgradeHistoryCommand";
48
51
  export * from "./GetUpgradeStatusCommand";
@@ -71,6 +74,7 @@ export * from "./UpdateApplicationCommand";
71
74
  export * from "./UpdateDataSourceCommand";
72
75
  export * from "./UpdateDirectQueryDataSourceCommand";
73
76
  export * from "./UpdateDomainConfigCommand";
77
+ export * from "./UpdateIndexCommand";
74
78
  export * from "./UpdatePackageCommand";
75
79
  export * from "./UpdatePackageScopeCommand";
76
80
  export * from "./UpdateScheduledActionCommand";