| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.RedshiftData.CancelStatement
Description
Cancels a running query. To be canceled, a query must be running.
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.
Constructors
| CancelStatement' | |
Instances
Arguments
| :: Text | |
| -> CancelStatement |
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:
$sel:id: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.
Constructors
| CancelStatementResponse' | |
Fields
| |
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:
$sel:status: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.