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

Fetches the temporarily cached result of an SQL statement in CSV format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as CSV. A token is returned to page through the statement results.

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, GetStatementResultV2Command } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, GetStatementResultV2Command } = 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 = { // GetStatementResultV2Request * Id: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * }; * const command = new GetStatementResultV2Command(input); * const response = await client.send(command); * // { // GetStatementResultV2Response * // Records: [ // FormattedSqlRecords // required * // { // QueryRecords Union: only one key present * // CSVRecords: "STRING_VALUE", * // }, * // ], * // ColumnMetadata: [ // ColumnMetadataList * // { // ColumnMetadata * // isCaseSensitive: true || false, * // isCurrency: true || false, * // isSigned: true || false, * // label: "STRING_VALUE", * // name: "STRING_VALUE", * // nullable: Number("int"), * // precision: Number("int"), * // scale: Number("int"), * // schemaName: "STRING_VALUE", * // tableName: "STRING_VALUE", * // typeName: "STRING_VALUE", * // length: Number("int"), * // columnDefault: "STRING_VALUE", * // }, * // ], * // TotalNumRows: Number("long"), * // ResultFormat: "STRING_VALUE", * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetStatementResultV2CommandInput - {@link GetStatementResultV2CommandInput} * @returns {@link GetStatementResultV2CommandOutput} * @see {@link GetStatementResultV2CommandInput} for command's `input` shape. * @see {@link GetStatementResultV2CommandOutput} for command's `response` shape. * @see {@link RedshiftDataClientResolvedConfig | config} for RedshiftDataClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

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

* * @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 GetStatementResultV2Command extends GetStatementResultV2Command_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetStatementResultV2Request; output: GetStatementResultV2Response; }; sdk: { input: GetStatementResultV2CommandInput; output: GetStatementResultV2CommandOutput; }; }; }