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

Cancels a running query. To be canceled, a query must be running.

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, CancelStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import * // const { RedshiftDataClient, CancelStatementCommand } = 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 = { // CancelStatementRequest * Id: "STRING_VALUE", // required * }; * const command = new CancelStatementCommand(input); * const response = await client.send(command); * // { // CancelStatementResponse * // Status: true || false, * // }; * * ``` * * @param CancelStatementCommandInput - {@link CancelStatementCommandInput} * @returns {@link CancelStatementCommandOutput} * @see {@link CancelStatementCommandInput} for command's `input` shape. * @see {@link CancelStatementCommandOutput} 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 CancelStatementCommand extends CancelStatementCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CancelStatementRequest; output: CancelStatementResponse; }; sdk: { input: CancelStatementCommandInput; output: CancelStatementCommandOutput; }; }; }