v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106873.4 KB

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.

post/#X-Amz-Target=RedshiftData.CancelStatement

Headers

X-Amz-Target'RedshiftData.CancelStatement' required

Request body

Idstring required

The identifier of the SQL statement to cancel. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This identifier is returned by <code>BatchExecuteStatment</code>, <code>ExecuteStatment</code>, and <code>ListStatements</code>.

Response

Success

Statusboolean

A value that indicates whether the cancel statement succeeded (true).