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 |
Sends a cancel request for a specified task. You can cancel a task only
if it's still in a QUEUED
state. Tasks that are already running
can't be cancelled.
A task might still run if it's processed from the queue before the
CancelTask
operation changes the task's state.
Synopsis
- data CancelTask = CancelTask' {}
- newCancelTask :: Text -> CancelTask
- cancelTask_taskId :: Lens' CancelTask Text
- data CancelTaskResponse = CancelTaskResponse' {
- taskId :: Maybe Text
- httpStatus :: Int
- newCancelTaskResponse :: Int -> CancelTaskResponse
- cancelTaskResponse_taskId :: Lens' CancelTaskResponse (Maybe Text)
- cancelTaskResponse_httpStatus :: Lens' CancelTaskResponse Int
Creating a Request
data CancelTask Source #
See: newCancelTask
smart constructor.
Instances
Create a value of CancelTask
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:taskId:CancelTask'
, cancelTask_taskId
- The ID of the task that you are attempting to cancel. You can retrieve a
task ID by using the ListTasks
operation.
Request Lenses
cancelTask_taskId :: Lens' CancelTask Text Source #
The ID of the task that you are attempting to cancel. You can retrieve a
task ID by using the ListTasks
operation.
Destructuring the Response
data CancelTaskResponse Source #
See: newCancelTaskResponse
smart constructor.
CancelTaskResponse' | |
|
Instances
newCancelTaskResponse Source #
Create a value of CancelTaskResponse
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:taskId:CancelTask'
, cancelTaskResponse_taskId
- The ID of the task that you are attempting to cancel.
$sel:httpStatus:CancelTaskResponse'
, cancelTaskResponse_httpStatus
- The response's http status code.
Response Lenses
cancelTaskResponse_taskId :: Lens' CancelTaskResponse (Maybe Text) Source #
The ID of the task that you are attempting to cancel.
cancelTaskResponse_httpStatus :: Lens' CancelTaskResponse Int Source #
The response's http status code.