import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListInsightsRequest, ListInsightsResponse } from "../models/models_0"; import type { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListInsightsCommand}. */ export interface ListInsightsCommandInput extends ListInsightsRequest { } /** * @public * * The output of {@link ListInsightsCommand}. */ export interface ListInsightsCommandOutput extends ListInsightsResponse, __MetadataBearer { } declare const ListInsightsCommand_base: { new (input: ListInsightsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListInsightsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Lists insights for an Amazon OpenSearch Service domain or Amazon Web Services account. * Returns a paginated list of insights based on the specified entity, filters, time range, * and sort order.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, ListInsightsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, ListInsightsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import * // import type { OpenSearchClientConfig } from "@aws-sdk/client-opensearch"; * const config = {}; // type is OpenSearchClientConfig * const client = new OpenSearchClient(config); * const input = { // ListInsightsRequest * Entity: { // InsightEntity * Type: "Account" || "DomainName", // required * Value: "STRING_VALUE", * }, * TimeRange: { // InsightTimeRange * From: Number("long"), // required * To: Number("long"), // required * }, * SortOrder: "ASC" || "DESC", * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListInsightsCommand(input); * const response = await client.send(command); * // { // ListInsightsResponse * // Insights: [ // InsightList * // { // Insight * // InsightId: "STRING_VALUE", * // DisplayName: "STRING_VALUE", * // Type: "EVENT" || "RECOMMENDATION", * // Priority: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW", * // Status: "ACTIVE" || "RESOLVED" || "DISMISSED", * // CreationTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // IsExperimental: true || false, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListInsightsCommandInput - {@link ListInsightsCommandInput} * @returns {@link ListInsightsCommandOutput} * @see {@link ListInsightsCommandInput} for command's `input` shape. * @see {@link ListInsightsCommandOutput} for command's `response` shape. * @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape. * * @throws {@link BaseException} (client fault) *

An error occurred while processing the request.

* * @throws {@link DisabledOperationException} (client fault) *

An error occured because the client wanted to access an unsupported operation.

* * @throws {@link InternalException} (server fault) *

Request processing failed because of an unknown error, exception, or internal failure.

* * @throws {@link LimitExceededException} (client fault) *

An exception for trying to create more than the allowed number of resources or sub-resources.

* * @throws {@link ResourceNotFoundException} (client fault) *

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link ValidationException} (client fault) *

An exception for accessing or deleting a resource that doesn't exist.

* * @throws {@link OpenSearchServiceException} *

Base exception class for all service exceptions from OpenSearch service.

* * * @public */ export declare class ListInsightsCommand extends ListInsightsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListInsightsRequest; output: ListInsightsResponse; }; sdk: { input: ListInsightsCommandInput; output: ListInsightsCommandOutput; }; }; }