import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0"; import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ListDatabasesCommand}. */ export interface ListDatabasesCommandInput extends ListDatabasesRequest { } /** * @public * * The output of {@link ListDatabasesCommand}. */ export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __MetadataBearer { } declare const ListDatabasesCommand_base: { new (input: ListDatabasesCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListDatabasesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

List the databases in a cluster. A token is returned to page through the database list. Depending on the authorization method, use one of the following combinations of request parameters:

For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftDataClient, ListDatabasesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, ListDatabasesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import * // import type { RedshiftDataClientConfig } from "@aws-sdk/client-redshift-data"; * const config = {}; // type is RedshiftDataClientConfig * const client = new RedshiftDataClient(config); * const input = { // ListDatabasesRequest * ClusterIdentifier: "STRING_VALUE", * Database: "STRING_VALUE", // required * SecretArn: "STRING_VALUE", * DbUser: "STRING_VALUE", * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * WorkgroupName: "STRING_VALUE", * }; * const command = new ListDatabasesCommand(input); * const response = await client.send(command); * // { // ListDatabasesResponse * // Databases: [ // DatabaseList * // "STRING_VALUE", * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListDatabasesCommandInput - {@link ListDatabasesCommandInput} * @returns {@link ListDatabasesCommandOutput} * @see {@link ListDatabasesCommandInput} for command's `input` shape. * @see {@link ListDatabasesCommandOutput} for command's `response` shape. * @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape. * * @throws {@link DatabaseConnectionException} (server fault) *

Connection to a database failed.

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

The Amazon Redshift Data API operation failed due to invalid input.

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

The Amazon Redshift Data API operation failed due to timeout.

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

The Amazon Redshift Data API operation failed due to a missing resource.

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

The Amazon Redshift Data API operation failed due to invalid input.

* * @throws {@link RedshiftDataServiceException} *

Base exception class for all service exceptions from RedshiftData service.

* * * @public */ export declare class ListDatabasesCommand extends ListDatabasesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListDatabasesRequest; output: ListDatabasesResponse; }; sdk: { input: ListDatabasesCommandInput; output: ListDatabasesCommandOutput; }; }; }