Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data CancelStatement = CancelStatement' {}
- newCancelStatement :: Text -> CancelStatement
- cancelStatement_id :: Lens' CancelStatement Text
- data CancelStatementResponse = CancelStatementResponse' {
- status :: Maybe Bool
- httpStatus :: Int
- newCancelStatementResponse :: Int -> CancelStatementResponse
- cancelStatementResponse_status :: Lens' CancelStatementResponse (Maybe Bool)
- cancelStatementResponse_httpStatus :: Lens' CancelStatementResponse Int
Creating a Request
data CancelStatement Source #
See: newCancelStatement
smart constructor.
Instances
Create a value of CancelStatement
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CancelStatement
, cancelStatement_id
- 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 BatchExecuteStatment
,
ExecuteStatment
, and ListStatements
.
Request Lenses
cancelStatement_id :: Lens' CancelStatement Text Source #
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 BatchExecuteStatment
,
ExecuteStatment
, and ListStatements
.
Destructuring the Response
data CancelStatementResponse Source #
See: newCancelStatementResponse
smart constructor.
CancelStatementResponse' | |
|
Instances
newCancelStatementResponse Source #
Create a value of CancelStatementResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CancelStatementResponse
, cancelStatementResponse_status
- A value that indicates whether the cancel statement succeeded (true).
$sel:httpStatus:CancelStatementResponse'
, cancelStatementResponse_httpStatus
- The response's http status code.
Response Lenses
cancelStatementResponse_status :: Lens' CancelStatementResponse (Maybe Bool) Source #
A value that indicates whether the cancel statement succeeded (true).
cancelStatementResponse_httpStatus :: Lens' CancelStatementResponse Int Source #
The response's http status code.