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

Fetches the temporarily cached result of an SQL statement in JSON format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as JSON , or let the format default to JSON. 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, GetStatementResultCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, GetStatementResultCommand } = 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 = { // GetStatementResultRequest * Id: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * }; * const command = new GetStatementResultCommand(input); * const response = await client.send(command); * // { // GetStatementResultResponse * // Records: [ // SqlRecords // required * // [ // FieldList * // { // Field Union: only one key present * // isNull: true || false, * // booleanValue: true || false, * // longValue: Number("long"), * // doubleValue: Number("double"), * // stringValue: "STRING_VALUE", * // blobValue: new Uint8Array(), * // }, * // ], * // ], * // 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"), * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetStatementResultCommandInput - {@link GetStatementResultCommandInput} * @returns {@link GetStatementResultCommandOutput} * @see {@link GetStatementResultCommandInput} for command's `input` shape. * @see {@link GetStatementResultCommandOutput} 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 GetStatementResultCommand extends GetStatementResultCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetStatementResultRequest; output: GetStatementResultResponse; }; sdk: { input: GetStatementResultCommandInput; output: GetStatementResultCommandOutput; }; }; }