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

Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information includes when the query started, when it finished, the query status, the number of rows returned, and the SQL statement.

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, DescribeStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, DescribeStatementCommand } = 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 = { // DescribeStatementRequest * Id: "STRING_VALUE", // required * }; * const command = new DescribeStatementCommand(input); * const response = await client.send(command); * // { // DescribeStatementResponse * // Id: "STRING_VALUE", // required * // SecretArn: "STRING_VALUE", * // DbUser: "STRING_VALUE", * // Database: "STRING_VALUE", * // ClusterIdentifier: "STRING_VALUE", * // Duration: Number("long"), * // Error: "STRING_VALUE", * // Status: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // UpdatedAt: new Date("TIMESTAMP"), * // RedshiftPid: Number("long"), * // HasResultSet: true || false, * // QueryString: "STRING_VALUE", * // ResultRows: Number("long"), * // ResultSize: Number("long"), * // RedshiftQueryId: Number("long"), * // QueryParameters: [ // SqlParametersList * // { // SqlParameter * // name: "STRING_VALUE", // required * // value: "STRING_VALUE", // required * // }, * // ], * // SubStatements: [ // SubStatementList * // { // SubStatementData * // Id: "STRING_VALUE", // required * // Duration: Number("long"), * // Error: "STRING_VALUE", * // Status: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // UpdatedAt: new Date("TIMESTAMP"), * // QueryString: "STRING_VALUE", * // ResultRows: Number("long"), * // ResultSize: Number("long"), * // RedshiftQueryId: Number("long"), * // HasResultSet: true || false, * // }, * // ], * // WorkgroupName: "STRING_VALUE", * // ResultFormat: "STRING_VALUE", * // SessionId: "STRING_VALUE", * // }; * * ``` * * @param DescribeStatementCommandInput - {@link DescribeStatementCommandInput} * @returns {@link DescribeStatementCommandOutput} * @see {@link DescribeStatementCommandInput} for command's `input` shape. * @see {@link DescribeStatementCommandOutput} 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 DescribeStatementCommand extends DescribeStatementCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeStatementRequest; output: DescribeStatementResponse; }; sdk: { input: DescribeStatementCommandInput; output: DescribeStatementCommandOutput; }; }; }