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

Lists the schemas in a database. A token is returned to page through the schema 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, ListSchemasCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, ListSchemasCommand } = 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 = { // ListSchemasRequest * ClusterIdentifier: "STRING_VALUE", * SecretArn: "STRING_VALUE", * DbUser: "STRING_VALUE", * Database: "STRING_VALUE", // required * ConnectedDatabase: "STRING_VALUE", * SchemaPattern: "STRING_VALUE", * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * WorkgroupName: "STRING_VALUE", * }; * const command = new ListSchemasCommand(input); * const response = await client.send(command); * // { // ListSchemasResponse * // Schemas: [ // SchemaList * // "STRING_VALUE", * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListSchemasCommandInput - {@link ListSchemasCommandInput} * @returns {@link ListSchemasCommandOutput} * @see {@link ListSchemasCommandInput} for command's `input` shape. * @see {@link ListSchemasCommandOutput} 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 ListSchemasCommand extends ListSchemasCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSchemasRequest; output: ListSchemasResponse; }; sdk: { input: ListSchemasCommandInput; output: ListSchemasCommandOutput; }; }; }