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

Lists direct-query data sources for a specific domain. For more information, see For * more information, see Working with * Amazon OpenSearch Service direct queries with Amazon S3.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { OpenSearchClient, ListDataSourcesCommand } from "@aws-sdk/client-opensearch"; // ES Modules import * // const { OpenSearchClient, ListDataSourcesCommand } = 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 = { // ListDataSourcesRequest * DomainName: "STRING_VALUE", // required * }; * const command = new ListDataSourcesCommand(input); * const response = await client.send(command); * // { // ListDataSourcesResponse * // DataSources: [ // DataSourceList * // { // DataSourceDetails * // DataSourceType: { // DataSourceType Union: only one key present * // S3GlueDataCatalog: { // S3GlueDataCatalog * // RoleArn: "STRING_VALUE", * // }, * // }, * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // Status: "ACTIVE" || "DISABLED", * // }, * // ], * // }; * * ``` * * @param ListDataSourcesCommandInput - {@link ListDataSourcesCommandInput} * @returns {@link ListDataSourcesCommandOutput} * @see {@link ListDataSourcesCommandInput} for command's `input` shape. * @see {@link ListDataSourcesCommandOutput} 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 DependencyFailureException} (client fault) *

An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.

* * @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 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 ListDataSourcesCommand extends ListDataSourcesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListDataSourcesRequest; output: ListDataSourcesResponse; }; sdk: { input: ListDataSourcesCommandInput; output: ListDataSourcesCommandOutput; }; }; }