import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types"; import { type BatchExecuteStatementCommandInput, type BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand"; import { type CancelStatementCommandInput, type CancelStatementCommandOutput } from "./commands/CancelStatementCommand"; import { type DescribeStatementCommandInput, type DescribeStatementCommandOutput } from "./commands/DescribeStatementCommand"; import { type DescribeTableCommandInput, type DescribeTableCommandOutput } from "./commands/DescribeTableCommand"; import { type ExecuteStatementCommandInput, type ExecuteStatementCommandOutput } from "./commands/ExecuteStatementCommand"; import { type GetStatementResultCommandInput, type GetStatementResultCommandOutput } from "./commands/GetStatementResultCommand"; import { type GetStatementResultV2CommandInput, type GetStatementResultV2CommandOutput } from "./commands/GetStatementResultV2Command"; import { type ListDatabasesCommandInput, type ListDatabasesCommandOutput } from "./commands/ListDatabasesCommand"; import { type ListSchemasCommandInput, type ListSchemasCommandOutput } from "./commands/ListSchemasCommand"; import { type ListStatementsCommandInput, type ListStatementsCommandOutput } from "./commands/ListStatementsCommand"; import { type ListTablesCommandInput, type ListTablesCommandOutput } from "./commands/ListTablesCommand"; import { RedshiftDataClient } from "./RedshiftDataClient"; export interface RedshiftData { /** * @see {@link BatchExecuteStatementCommand} */ batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise; batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void; batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void; /** * @see {@link CancelStatementCommand} */ cancelStatement(args: CancelStatementCommandInput, options?: __HttpHandlerOptions): Promise; cancelStatement(args: CancelStatementCommandInput, cb: (err: any, data?: CancelStatementCommandOutput) => void): void; cancelStatement(args: CancelStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelStatementCommandOutput) => void): void; /** * @see {@link DescribeStatementCommand} */ describeStatement(args: DescribeStatementCommandInput, options?: __HttpHandlerOptions): Promise; describeStatement(args: DescribeStatementCommandInput, cb: (err: any, data?: DescribeStatementCommandOutput) => void): void; describeStatement(args: DescribeStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeStatementCommandOutput) => void): void; /** * @see {@link DescribeTableCommand} */ describeTable(args: DescribeTableCommandInput, options?: __HttpHandlerOptions): Promise; describeTable(args: DescribeTableCommandInput, cb: (err: any, data?: DescribeTableCommandOutput) => void): void; describeTable(args: DescribeTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTableCommandOutput) => void): void; /** * @see {@link ExecuteStatementCommand} */ executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise; executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void; executeStatement(args: ExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void; /** * @see {@link GetStatementResultCommand} */ getStatementResult(args: GetStatementResultCommandInput, options?: __HttpHandlerOptions): Promise; getStatementResult(args: GetStatementResultCommandInput, cb: (err: any, data?: GetStatementResultCommandOutput) => void): void; getStatementResult(args: GetStatementResultCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStatementResultCommandOutput) => void): void; /** * @see {@link GetStatementResultV2Command} */ getStatementResultV2(args: GetStatementResultV2CommandInput, options?: __HttpHandlerOptions): Promise; getStatementResultV2(args: GetStatementResultV2CommandInput, cb: (err: any, data?: GetStatementResultV2CommandOutput) => void): void; getStatementResultV2(args: GetStatementResultV2CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStatementResultV2CommandOutput) => void): void; /** * @see {@link ListDatabasesCommand} */ listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise; listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void; listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void; /** * @see {@link ListSchemasCommand} */ listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise; listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void; listSchemas(args: ListSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemasCommandOutput) => void): void; /** * @see {@link ListStatementsCommand} */ listStatements(): Promise; listStatements(args: ListStatementsCommandInput, options?: __HttpHandlerOptions): Promise; listStatements(args: ListStatementsCommandInput, cb: (err: any, data?: ListStatementsCommandOutput) => void): void; listStatements(args: ListStatementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStatementsCommandOutput) => void): void; /** * @see {@link ListTablesCommand} */ listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise; listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void; listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void; /** * @see {@link DescribeTableCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link DescribeTableCommandOutput}. */ paginateDescribeTable(args: DescribeTableCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link GetStatementResultCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link GetStatementResultCommandOutput}. */ paginateGetStatementResult(args: GetStatementResultCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link GetStatementResultV2Command} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link GetStatementResultV2CommandOutput}. */ paginateGetStatementResultV2(args: GetStatementResultV2CommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListDatabasesCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListDatabasesCommandOutput}. */ paginateListDatabases(args: ListDatabasesCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListSchemasCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListSchemasCommandOutput}. */ paginateListSchemas(args: ListSchemasCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListStatementsCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListStatementsCommandOutput}. */ paginateListStatements(args?: ListStatementsCommandInput, paginationConfig?: Omit): Paginator; /** * @see {@link ListTablesCommand} * @param args - command input. * @param paginationConfig - optional pagination config. * @returns AsyncIterable of {@link ListTablesCommandOutput}. */ paginateListTables(args: ListTablesCommandInput, paginationConfig?: Omit): Paginator; } /** *

You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You can run SQL statements, which are committed if the statement succeeds.

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.

* @public */ export declare class RedshiftData extends RedshiftDataClient implements RedshiftData { }