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

List the tables in a database. If neither SchemaPattern nor TablePattern are specified, then all tables in the database are returned. A token is returned to page through the table 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, ListTablesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, ListTablesCommand } = 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 = { // ListTablesRequest * ClusterIdentifier: "STRING_VALUE", * SecretArn: "STRING_VALUE", * DbUser: "STRING_VALUE", * Database: "STRING_VALUE", // required * ConnectedDatabase: "STRING_VALUE", * SchemaPattern: "STRING_VALUE", * TablePattern: "STRING_VALUE", * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * WorkgroupName: "STRING_VALUE", * }; * const command = new ListTablesCommand(input); * const response = await client.send(command); * // { // ListTablesResponse * // Tables: [ // TableList * // { // TableMember * // name: "STRING_VALUE", * // type: "STRING_VALUE", * // schema: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListTablesCommandInput - {@link ListTablesCommandInput} * @returns {@link ListTablesCommandOutput} * @see {@link ListTablesCommandInput} for command's `input` shape. * @see {@link ListTablesCommandOutput} 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 ListTablesCommand extends ListTablesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListTablesRequest; output: ListTablesResponse; }; sdk: { input: ListTablesCommandInput; output: ListTablesCommandOutput; }; }; }