@aws-sdk/client-opensearch 3.1020.0 → 3.1021.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 (47) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +56 -0
  3. package/dist-cjs/models/errors.js +14 -1
  4. package/dist-cjs/schemas/schemas_0.js +107 -11
  5. package/dist-es/OpenSearch.js +6 -0
  6. package/dist-es/commands/DeregisterCapabilityCommand.js +16 -0
  7. package/dist-es/commands/GetCapabilityCommand.js +16 -0
  8. package/dist-es/commands/RegisterCapabilityCommand.js +16 -0
  9. package/dist-es/commands/index.js +3 -0
  10. package/dist-es/models/enums.js +12 -0
  11. package/dist-es/models/errors.js +12 -0
  12. package/dist-es/schemas/schemas_0.js +99 -3
  13. package/dist-types/OpenSearch.d.ts +21 -0
  14. package/dist-types/OpenSearchClient.d.ts +5 -2
  15. package/dist-types/commands/DeregisterCapabilityCommand.d.ts +93 -0
  16. package/dist-types/commands/GetCapabilityCommand.d.ts +101 -0
  17. package/dist-types/commands/RegisterCapabilityCommand.d.ts +104 -0
  18. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -1
  19. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  20. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -1
  21. package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
  22. package/dist-types/commands/UpdatePackageCommand.d.ts +1 -1
  23. package/dist-types/commands/UpdatePackageScopeCommand.d.ts +1 -1
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/models/enums.d.ts +28 -0
  26. package/dist-types/models/errors.d.ts +12 -0
  27. package/dist-types/models/models_0.d.ts +244 -366
  28. package/dist-types/models/models_1.d.ts +368 -2
  29. package/dist-types/schemas/schemas_0.d.ts +15 -0
  30. package/dist-types/ts3.4/OpenSearch.d.ts +51 -0
  31. package/dist-types/ts3.4/OpenSearchClient.d.ts +18 -0
  32. package/dist-types/ts3.4/commands/DeregisterCapabilityCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +50 -0
  34. package/dist-types/ts3.4/commands/RegisterCapabilityCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +2 -4
  36. package/dist-types/ts3.4/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/UpdateDomainConfigCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/UpdatePackageScopeCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +16 -0
  43. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +87 -75
  45. package/dist-types/ts3.4/models/models_1.d.ts +106 -1
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  47. package/package.json +6 -6
@@ -0,0 +1,104 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { RegisterCapabilityRequest, RegisterCapabilityResponse } 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 RegisterCapabilityCommand}.
14
+ */
15
+ export interface RegisterCapabilityCommandInput extends RegisterCapabilityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link RegisterCapabilityCommand}.
21
+ */
22
+ export interface RegisterCapabilityCommandOutput extends RegisterCapabilityResponse, __MetadataBearer {
23
+ }
24
+ declare const RegisterCapabilityCommand_base: {
25
+ new (input: RegisterCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterCapabilityCommandInput, RegisterCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: RegisterCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<RegisterCapabilityCommandInput, RegisterCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Registers a capability for an OpenSearch UI application. Use this operation to enable specific capabilities, such as AI features, for a given application. The capability configuration defines the type and settings of the capability to register. For more information about the AI features, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/application-ai-assistant.html">Agentic AI for OpenSearch UI</a>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OpenSearchClient, RegisterCapabilityCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
35
+ * // const { OpenSearchClient, RegisterCapabilityCommand } = 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 = { // RegisterCapabilityRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * capabilityName: "STRING_VALUE", // required
42
+ * capabilityConfig: { // CapabilityBaseRequestConfig Union: only one key present
43
+ * aiConfig: {},
44
+ * },
45
+ * };
46
+ * const command = new RegisterCapabilityCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // RegisterCapabilityResponse
49
+ * // capabilityName: "STRING_VALUE",
50
+ * // applicationId: "STRING_VALUE",
51
+ * // status: "creating" || "create_failed" || "active" || "updating" || "update_failed" || "deleting" || "delete_failed",
52
+ * // capabilityConfig: { // CapabilityBaseResponseConfig Union: only one key present
53
+ * // aiConfig: {},
54
+ * // },
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param RegisterCapabilityCommandInput - {@link RegisterCapabilityCommandInput}
60
+ * @returns {@link RegisterCapabilityCommandOutput}
61
+ * @see {@link RegisterCapabilityCommandInput} for command's `input` shape.
62
+ * @see {@link RegisterCapabilityCommandOutput} for command's `response` shape.
63
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>An error occurred because you don't have permissions to access the resource.</p>
67
+ *
68
+ * @throws {@link ConflictException} (client fault)
69
+ * <p>An error occurred because the client attempts to remove a resource that is currently in use.</p>
70
+ *
71
+ * @throws {@link DisabledOperationException} (client fault)
72
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
73
+ *
74
+ * @throws {@link InternalException} (server fault)
75
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
76
+ *
77
+ * @throws {@link ResourceNotFoundException} (client fault)
78
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
79
+ *
80
+ * @throws {@link ServiceQuotaExceededException} (client fault)
81
+ * <p>An exception for when a request would cause a service quota to be exceeded.</p>
82
+ *
83
+ * @throws {@link ValidationException} (client fault)
84
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
85
+ *
86
+ * @throws {@link OpenSearchServiceException}
87
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
88
+ *
89
+ *
90
+ * @public
91
+ */
92
+ export declare class RegisterCapabilityCommand extends RegisterCapabilityCommand_base {
93
+ /** @internal type navigation helper, not in runtime. */
94
+ protected static __types: {
95
+ api: {
96
+ input: RegisterCapabilityRequest;
97
+ output: RegisterCapabilityResponse;
98
+ };
99
+ sdk: {
100
+ input: RegisterCapabilityCommandInput;
101
+ output: RegisterCapabilityCommandOutput;
102
+ };
103
+ };
104
+ }
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdateDataSourceRequest, UpdateDataSourceResponse } from "../models/models_0";
3
+ import type { UpdateDataSourceRequest } from "../models/models_0";
4
+ import type { UpdateDataSourceResponse } 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/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdateDirectQueryDataSourceRequest, UpdateDirectQueryDataSourceResponse } from "../models/models_0";
3
+ import type { UpdateDirectQueryDataSourceRequest, UpdateDirectQueryDataSourceResponse } 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/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdateDomainConfigRequest, UpdateDomainConfigResponse } from "../models/models_0";
3
+ import type { UpdateDomainConfigRequest, UpdateDomainConfigResponse } 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/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdateIndexRequest, UpdateIndexResponse } from "../models/models_0";
3
+ import type { UpdateIndexRequest, UpdateIndexResponse } 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/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdatePackageRequest, UpdatePackageResponse } from "../models/models_0";
3
+ import type { UpdatePackageRequest, UpdatePackageResponse } 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/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { UpdatePackageScopeRequest, UpdatePackageScopeResponse } from "../models/models_0";
3
+ import type { UpdatePackageScopeRequest, UpdatePackageScopeResponse } from "../models/models_1";
4
4
  import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
5
5
  /**
6
6
  * @public
@@ -22,6 +22,7 @@ export * from "./DeleteIndexCommand";
22
22
  export * from "./DeleteOutboundConnectionCommand";
23
23
  export * from "./DeletePackageCommand";
24
24
  export * from "./DeleteVpcEndpointCommand";
25
+ export * from "./DeregisterCapabilityCommand";
25
26
  export * from "./DescribeDomainAutoTunesCommand";
26
27
  export * from "./DescribeDomainChangeProgressCommand";
27
28
  export * from "./DescribeDomainCommand";
@@ -41,6 +42,7 @@ export * from "./DescribeVpcEndpointsCommand";
41
42
  export * from "./DissociatePackageCommand";
42
43
  export * from "./DissociatePackagesCommand";
43
44
  export * from "./GetApplicationCommand";
45
+ export * from "./GetCapabilityCommand";
44
46
  export * from "./GetCompatibleVersionsCommand";
45
47
  export * from "./GetDataSourceCommand";
46
48
  export * from "./GetDefaultApplicationSettingCommand";
@@ -67,6 +69,7 @@ export * from "./ListVpcEndpointsCommand";
67
69
  export * from "./ListVpcEndpointsForDomainCommand";
68
70
  export * from "./PurchaseReservedInstanceOfferingCommand";
69
71
  export * from "./PutDefaultApplicationSettingCommand";
72
+ export * from "./RegisterCapabilityCommand";
70
73
  export * from "./RejectInboundConnectionCommand";
71
74
  export * from "./RemoveTagsCommand";
72
75
  export * from "./RevokeVpcEndpointAccessCommand";
@@ -612,6 +612,23 @@ export declare const VpcEndpointStatus: {
612
612
  * @public
613
613
  */
614
614
  export type VpcEndpointStatus = (typeof VpcEndpointStatus)[keyof typeof VpcEndpointStatus];
615
+ /**
616
+ * @public
617
+ * @enum
618
+ */
619
+ export declare const CapabilityStatus: {
620
+ readonly ACTIVE: "active";
621
+ readonly CREATE_FAILED: "create_failed";
622
+ readonly CREATING: "creating";
623
+ readonly DELETE_FAILED: "delete_failed";
624
+ readonly DELETING: "deleting";
625
+ readonly UPDATE_FAILED: "update_failed";
626
+ readonly UPDATING: "updating";
627
+ };
628
+ /**
629
+ * @public
630
+ */
631
+ export type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus];
615
632
  /**
616
633
  * @public
617
634
  * @enum
@@ -833,6 +850,17 @@ export declare const ApplicationStatus: {
833
850
  * @public
834
851
  */
835
852
  export type ApplicationStatus = (typeof ApplicationStatus)[keyof typeof ApplicationStatus];
853
+ /**
854
+ * @public
855
+ * @enum
856
+ */
857
+ export declare const CapabilityFailureReason: {
858
+ readonly KMS_KEY_INSUFFICIENT_PERMISSION: "KMS_KEY_INSUFFICIENT_PERMISSION";
859
+ };
860
+ /**
861
+ * @public
862
+ */
863
+ export type CapabilityFailureReason = (typeof CapabilityFailureReason)[keyof typeof CapabilityFailureReason];
836
864
  /**
837
865
  * @public
838
866
  * @enum
@@ -156,6 +156,18 @@ export declare class InvalidPaginationTokenException extends __BaseException {
156
156
  */
157
157
  constructor(opts: __ExceptionOptionType<InvalidPaginationTokenException, __BaseException>);
158
158
  }
159
+ /**
160
+ * <p>An exception for when a request would cause a service quota to be exceeded.</p>
161
+ * @public
162
+ */
163
+ export declare class ServiceQuotaExceededException extends __BaseException {
164
+ readonly name: "ServiceQuotaExceededException";
165
+ readonly $fault: "client";
166
+ /**
167
+ * @internal
168
+ */
169
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
170
+ }
159
171
  /**
160
172
  * <p>An exception for attempting to schedule a domain action during an unavailable time slot.</p>
161
173
  * @public