@aws-sdk/client-opensearch 3.1019.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 (80) hide show
  1. package/README.md +35 -0
  2. package/dist-cjs/index.js +117 -0
  3. package/dist-cjs/models/errors.js +14 -1
  4. package/dist-cjs/schemas/schemas_0.js +187 -12
  5. package/dist-es/OpenSearch.js +14 -4
  6. package/dist-es/commands/DeregisterCapabilityCommand.js +16 -0
  7. package/dist-es/commands/DescribeInsightDetailsCommand.js +16 -0
  8. package/dist-es/commands/GetCapabilityCommand.js +16 -0
  9. package/dist-es/commands/ListInsightsCommand.js +16 -0
  10. package/dist-es/commands/RegisterCapabilityCommand.js +16 -0
  11. package/dist-es/commands/index.js +5 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/enums.js +39 -0
  14. package/dist-es/models/errors.js +12 -0
  15. package/dist-es/models/models_1.js +1 -0
  16. package/dist-es/schemas/schemas_0.js +179 -5
  17. package/dist-types/OpenSearch.d.ts +117 -82
  18. package/dist-types/OpenSearchClient.d.ts +92 -87
  19. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  20. package/dist-types/commands/DeregisterCapabilityCommand.d.ts +93 -0
  21. package/dist-types/commands/DescribeInsightDetailsCommand.d.ts +105 -0
  22. package/dist-types/commands/GetCapabilityCommand.d.ts +101 -0
  23. package/dist-types/commands/ListInsightsCommand.d.ts +116 -0
  24. package/dist-types/commands/RegisterCapabilityCommand.d.ts +104 -0
  25. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -1
  26. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateIndexCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdatePackageCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdatePackageScopeCommand.d.ts +1 -1
  31. package/dist-types/commands/UpdateScheduledActionCommand.d.ts +1 -1
  32. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +1 -1
  33. package/dist-types/commands/UpgradeDomainCommand.d.ts +1 -1
  34. package/dist-types/commands/index.d.ts +5 -0
  35. package/dist-types/index.d.ts +2 -1
  36. package/dist-types/models/enums.d.ts +103 -0
  37. package/dist-types/models/errors.d.ts +12 -0
  38. package/dist-types/models/models_0.d.ts +484 -562
  39. package/dist-types/models/models_1.d.ts +524 -0
  40. package/dist-types/pagination/DescribeDomainAutoTunesPaginator.d.ts +1 -1
  41. package/dist-types/pagination/DescribeInboundConnectionsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/DescribeOutboundConnectionsPaginator.d.ts +1 -1
  43. package/dist-types/pagination/DescribePackagesPaginator.d.ts +1 -1
  44. package/dist-types/pagination/DescribeReservedInstanceOfferingsPaginator.d.ts +1 -1
  45. package/dist-types/pagination/DescribeReservedInstancesPaginator.d.ts +1 -1
  46. package/dist-types/pagination/GetPackageVersionHistoryPaginator.d.ts +1 -1
  47. package/dist-types/pagination/GetUpgradeHistoryPaginator.d.ts +1 -1
  48. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  49. package/dist-types/pagination/ListDomainMaintenancesPaginator.d.ts +1 -1
  50. package/dist-types/pagination/ListDomainsForPackagePaginator.d.ts +1 -1
  51. package/dist-types/pagination/ListInstanceTypeDetailsPaginator.d.ts +1 -1
  52. package/dist-types/pagination/ListPackagesForDomainPaginator.d.ts +1 -1
  53. package/dist-types/pagination/ListScheduledActionsPaginator.d.ts +1 -1
  54. package/dist-types/pagination/ListVersionsPaginator.d.ts +1 -1
  55. package/dist-types/schemas/schemas_0.d.ts +25 -0
  56. package/dist-types/ts3.4/OpenSearch.d.ts +85 -0
  57. package/dist-types/ts3.4/OpenSearchClient.d.ts +32 -3
  58. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DeregisterCapabilityCommand.d.ts +51 -0
  60. package/dist-types/ts3.4/commands/DescribeInsightDetailsCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/GetCapabilityCommand.d.ts +50 -0
  62. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +47 -0
  63. package/dist-types/ts3.4/commands/RegisterCapabilityCommand.d.ts +51 -0
  64. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +2 -4
  65. package/dist-types/ts3.4/commands/UpdateDirectQueryDataSourceCommand.d.ts +1 -1
  66. package/dist-types/ts3.4/commands/UpdateDomainConfigCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/UpdatePackageScopeCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/UpdateScheduledActionCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/UpgradeDomainCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  74. package/dist-types/ts3.4/index.d.ts +1 -0
  75. package/dist-types/ts3.4/models/enums.d.ts +53 -0
  76. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +135 -106
  78. package/dist-types/ts3.4/models/models_1.d.ts +143 -0
  79. package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
  80. package/package.json +14 -14
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DeregisterCapabilityRequest, DeregisterCapabilityResponse } 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 DeregisterCapabilityCommand}.
14
+ */
15
+ export interface DeregisterCapabilityCommandInput extends DeregisterCapabilityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeregisterCapabilityCommand}.
21
+ */
22
+ export interface DeregisterCapabilityCommandOutput extends DeregisterCapabilityResponse, __MetadataBearer {
23
+ }
24
+ declare const DeregisterCapabilityCommand_base: {
25
+ new (input: DeregisterCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterCapabilityCommandInput, DeregisterCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeregisterCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<DeregisterCapabilityCommandInput, DeregisterCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deregisters a capability from an OpenSearch UI application. This operation removes the capability and its associated configuration.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OpenSearchClient, DeregisterCapabilityCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
35
+ * // const { OpenSearchClient, DeregisterCapabilityCommand } = 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 = { // DeregisterCapabilityRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * capabilityName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new DeregisterCapabilityCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // DeregisterCapabilityResponse
46
+ * // status: "creating" || "create_failed" || "active" || "updating" || "update_failed" || "deleting" || "delete_failed",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeregisterCapabilityCommandInput - {@link DeregisterCapabilityCommandInput}
52
+ * @returns {@link DeregisterCapabilityCommandOutput}
53
+ * @see {@link DeregisterCapabilityCommandInput} for command's `input` shape.
54
+ * @see {@link DeregisterCapabilityCommandOutput} 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 ConflictException} (client fault)
61
+ * <p>An error occurred because the client attempts to remove a resource that is currently in use.</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 ValidationException} (client fault)
73
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
74
+ *
75
+ * @throws {@link OpenSearchServiceException}
76
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class DeregisterCapabilityCommand extends DeregisterCapabilityCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: DeregisterCapabilityRequest;
86
+ output: DeregisterCapabilityResponse;
87
+ };
88
+ sdk: {
89
+ input: DeregisterCapabilityCommandInput;
90
+ output: DeregisterCapabilityCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -0,0 +1,105 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { DescribeInsightDetailsRequest, DescribeInsightDetailsResponse } 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 DescribeInsightDetailsCommand}.
14
+ */
15
+ export interface DescribeInsightDetailsCommandInput extends DescribeInsightDetailsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeInsightDetailsCommand}.
21
+ */
22
+ export interface DescribeInsightDetailsCommandOutput extends DescribeInsightDetailsResponse, __MetadataBearer {
23
+ }
24
+ declare const DescribeInsightDetailsCommand_base: {
25
+ new (input: DescribeInsightDetailsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeInsightDetailsCommandInput, DescribeInsightDetailsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DescribeInsightDetailsCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeInsightDetailsCommandInput, DescribeInsightDetailsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Describes the details of an existing insight for an Amazon OpenSearch Service domain.
31
+ * Returns detailed fields associated with the specified insight, such as text descriptions
32
+ * and metric data.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OpenSearchClient, DescribeInsightDetailsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
37
+ * // const { OpenSearchClient, DescribeInsightDetailsCommand } = 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 = { // DescribeInsightDetailsRequest
42
+ * Entity: { // InsightEntity
43
+ * Type: "Account" || "DomainName", // required
44
+ * Value: "STRING_VALUE",
45
+ * },
46
+ * InsightId: "STRING_VALUE", // required
47
+ * ShowHtmlContent: true || false,
48
+ * };
49
+ * const command = new DescribeInsightDetailsCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // DescribeInsightDetailsResponse
52
+ * // Fields: [ // InsightFieldList // required
53
+ * // { // InsightField
54
+ * // Name: "STRING_VALUE", // required
55
+ * // Type: "text" || "metric", // required
56
+ * // Value: "STRING_VALUE", // required
57
+ * // },
58
+ * // ],
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param DescribeInsightDetailsCommandInput - {@link DescribeInsightDetailsCommandInput}
64
+ * @returns {@link DescribeInsightDetailsCommandOutput}
65
+ * @see {@link DescribeInsightDetailsCommandInput} for command's `input` shape.
66
+ * @see {@link DescribeInsightDetailsCommandOutput} 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 LimitExceededException} (client fault)
79
+ * <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
86
+ *
87
+ * @throws {@link OpenSearchServiceException}
88
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
89
+ *
90
+ *
91
+ * @public
92
+ */
93
+ export declare class DescribeInsightDetailsCommand extends DescribeInsightDetailsCommand_base {
94
+ /** @internal type navigation helper, not in runtime. */
95
+ protected static __types: {
96
+ api: {
97
+ input: DescribeInsightDetailsRequest;
98
+ output: DescribeInsightDetailsResponse;
99
+ };
100
+ sdk: {
101
+ input: DescribeInsightDetailsCommandInput;
102
+ output: DescribeInsightDetailsCommandOutput;
103
+ };
104
+ };
105
+ }
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetCapabilityRequest, GetCapabilityResponse } 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 GetCapabilityCommand}.
14
+ */
15
+ export interface GetCapabilityCommandInput extends GetCapabilityRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetCapabilityCommand}.
21
+ */
22
+ export interface GetCapabilityCommandOutput extends GetCapabilityResponse, __MetadataBearer {
23
+ }
24
+ declare const GetCapabilityCommand_base: {
25
+ new (input: GetCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCapabilityCommandInput, GetCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetCapabilityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCapabilityCommandInput, GetCapabilityCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a registered capability for an OpenSearch UI application, including its configuration and current status.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OpenSearchClient, GetCapabilityCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
35
+ * // const { OpenSearchClient, GetCapabilityCommand } = 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 = { // GetCapabilityRequest
40
+ * applicationId: "STRING_VALUE", // required
41
+ * capabilityName: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GetCapabilityCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetCapabilityResponse
46
+ * // capabilityName: "STRING_VALUE",
47
+ * // applicationId: "STRING_VALUE",
48
+ * // status: "creating" || "create_failed" || "active" || "updating" || "update_failed" || "deleting" || "delete_failed",
49
+ * // capabilityConfig: { // CapabilityExtendedResponseConfig Union: only one key present
50
+ * // aiConfig: {},
51
+ * // },
52
+ * // failures: [ // CapabilityFailures
53
+ * // { // CapabilityFailure
54
+ * // reason: "KMS_KEY_INSUFFICIENT_PERMISSION",
55
+ * // details: "STRING_VALUE",
56
+ * // },
57
+ * // ],
58
+ * // };
59
+ *
60
+ * ```
61
+ *
62
+ * @param GetCapabilityCommandInput - {@link GetCapabilityCommandInput}
63
+ * @returns {@link GetCapabilityCommandOutput}
64
+ * @see {@link GetCapabilityCommandInput} for command's `input` shape.
65
+ * @see {@link GetCapabilityCommandOutput} for command's `response` shape.
66
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>An error occurred because you don't have permissions to access the resource.</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 ValidationException} (client fault)
81
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
82
+ *
83
+ * @throws {@link OpenSearchServiceException}
84
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
85
+ *
86
+ *
87
+ * @public
88
+ */
89
+ export declare class GetCapabilityCommand extends GetCapabilityCommand_base {
90
+ /** @internal type navigation helper, not in runtime. */
91
+ protected static __types: {
92
+ api: {
93
+ input: GetCapabilityRequest;
94
+ output: GetCapabilityResponse;
95
+ };
96
+ sdk: {
97
+ input: GetCapabilityCommandInput;
98
+ output: GetCapabilityCommandOutput;
99
+ };
100
+ };
101
+ }
@@ -0,0 +1,116 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListInsightsRequest, ListInsightsResponse } 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 ListInsightsCommand}.
14
+ */
15
+ export interface ListInsightsCommandInput extends ListInsightsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListInsightsCommand}.
21
+ */
22
+ export interface ListInsightsCommandOutput extends ListInsightsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListInsightsCommand_base: {
25
+ new (input: ListInsightsCommandInput): import("@smithy/smithy-client").CommandImpl<ListInsightsCommandInput, ListInsightsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListInsightsCommandInput): import("@smithy/smithy-client").CommandImpl<ListInsightsCommandInput, ListInsightsCommandOutput, OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists insights for an Amazon OpenSearch Service domain or Amazon Web Services account.
31
+ * Returns a paginated list of insights based on the specified entity, filters, time range,
32
+ * and sort order.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { OpenSearchClient, ListInsightsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
37
+ * // const { OpenSearchClient, ListInsightsCommand } = 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 = { // ListInsightsRequest
42
+ * Entity: { // InsightEntity
43
+ * Type: "Account" || "DomainName", // required
44
+ * Value: "STRING_VALUE",
45
+ * },
46
+ * TimeRange: { // InsightTimeRange
47
+ * From: Number("long"), // required
48
+ * To: Number("long"), // required
49
+ * },
50
+ * SortOrder: "ASC" || "DESC",
51
+ * MaxResults: Number("int"),
52
+ * NextToken: "STRING_VALUE",
53
+ * };
54
+ * const command = new ListInsightsCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // ListInsightsResponse
57
+ * // Insights: [ // InsightList
58
+ * // { // Insight
59
+ * // InsightId: "STRING_VALUE",
60
+ * // DisplayName: "STRING_VALUE",
61
+ * // Type: "EVENT" || "RECOMMENDATION",
62
+ * // Priority: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW",
63
+ * // Status: "ACTIVE" || "RESOLVED" || "DISMISSED",
64
+ * // CreationTime: new Date("TIMESTAMP"),
65
+ * // UpdateTime: new Date("TIMESTAMP"),
66
+ * // IsExperimental: true || false,
67
+ * // },
68
+ * // ],
69
+ * // NextToken: "STRING_VALUE",
70
+ * // };
71
+ *
72
+ * ```
73
+ *
74
+ * @param ListInsightsCommandInput - {@link ListInsightsCommandInput}
75
+ * @returns {@link ListInsightsCommandOutput}
76
+ * @see {@link ListInsightsCommandInput} for command's `input` shape.
77
+ * @see {@link ListInsightsCommandOutput} for command's `response` shape.
78
+ * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
79
+ *
80
+ * @throws {@link BaseException} (client fault)
81
+ * <p>An error occurred while processing the request.</p>
82
+ *
83
+ * @throws {@link DisabledOperationException} (client fault)
84
+ * <p>An error occured because the client wanted to access an unsupported operation.</p>
85
+ *
86
+ * @throws {@link InternalException} (server fault)
87
+ * <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
88
+ *
89
+ * @throws {@link LimitExceededException} (client fault)
90
+ * <p>An exception for trying to create more than the allowed number of resources or sub-resources.</p>
91
+ *
92
+ * @throws {@link ResourceNotFoundException} (client fault)
93
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>An exception for accessing or deleting a resource that doesn't exist.</p>
97
+ *
98
+ * @throws {@link OpenSearchServiceException}
99
+ * <p>Base exception class for all service exceptions from OpenSearch service.</p>
100
+ *
101
+ *
102
+ * @public
103
+ */
104
+ export declare class ListInsightsCommand extends ListInsightsCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: ListInsightsRequest;
109
+ output: ListInsightsResponse;
110
+ };
111
+ sdk: {
112
+ input: ListInsightsCommandInput;
113
+ output: ListInsightsCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -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
@@ -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 { UpdateScheduledActionRequest, UpdateScheduledActionResponse } from "../models/models_0";
3
+ import type { UpdateScheduledActionRequest, UpdateScheduledActionResponse } 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 { UpdateVpcEndpointRequest, UpdateVpcEndpointResponse } from "../models/models_0";
3
+ import type { UpdateVpcEndpointRequest, UpdateVpcEndpointResponse } 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 { UpgradeDomainRequest, UpgradeDomainResponse } from "../models/models_0";
3
+ import type { UpgradeDomainRequest, UpgradeDomainResponse } 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";
@@ -31,6 +32,7 @@ export * from "./DescribeDomainNodesCommand";
31
32
  export * from "./DescribeDomainsCommand";
32
33
  export * from "./DescribeDryRunProgressCommand";
33
34
  export * from "./DescribeInboundConnectionsCommand";
35
+ export * from "./DescribeInsightDetailsCommand";
34
36
  export * from "./DescribeInstanceTypeLimitsCommand";
35
37
  export * from "./DescribeOutboundConnectionsCommand";
36
38
  export * from "./DescribePackagesCommand";
@@ -40,6 +42,7 @@ export * from "./DescribeVpcEndpointsCommand";
40
42
  export * from "./DissociatePackageCommand";
41
43
  export * from "./DissociatePackagesCommand";
42
44
  export * from "./GetApplicationCommand";
45
+ export * from "./GetCapabilityCommand";
43
46
  export * from "./GetCompatibleVersionsCommand";
44
47
  export * from "./GetDataSourceCommand";
45
48
  export * from "./GetDefaultApplicationSettingCommand";
@@ -55,6 +58,7 @@ export * from "./ListDirectQueryDataSourcesCommand";
55
58
  export * from "./ListDomainMaintenancesCommand";
56
59
  export * from "./ListDomainNamesCommand";
57
60
  export * from "./ListDomainsForPackageCommand";
61
+ export * from "./ListInsightsCommand";
58
62
  export * from "./ListInstanceTypeDetailsCommand";
59
63
  export * from "./ListPackagesForDomainCommand";
60
64
  export * from "./ListScheduledActionsCommand";
@@ -65,6 +69,7 @@ export * from "./ListVpcEndpointsCommand";
65
69
  export * from "./ListVpcEndpointsForDomainCommand";
66
70
  export * from "./PurchaseReservedInstanceOfferingCommand";
67
71
  export * from "./PutDefaultApplicationSettingCommand";
72
+ export * from "./RegisterCapabilityCommand";
68
73
  export * from "./RejectInboundConnectionCommand";
69
74
  export * from "./RemoveTagsCommand";
70
75
  export * from "./RevokeVpcEndpointAccessCommand";