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 |
Cancels execution of a task.
When you cancel a task execution, the transfer of some files is abruptly interrupted. The contents of files that are transferred to the destination might be incomplete or inconsistent with the source files. However, if you start a new task execution on the same task and you allow the task execution to complete, file content on the destination is complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully complete the transfer when you start the next task execution.
Synopsis
- data CancelTaskExecution = CancelTaskExecution' {}
- newCancelTaskExecution :: Text -> CancelTaskExecution
- cancelTaskExecution_taskExecutionArn :: Lens' CancelTaskExecution Text
- data CancelTaskExecutionResponse = CancelTaskExecutionResponse' {
- httpStatus :: Int
- newCancelTaskExecutionResponse :: Int -> CancelTaskExecutionResponse
- cancelTaskExecutionResponse_httpStatus :: Lens' CancelTaskExecutionResponse Int
Creating a Request
data CancelTaskExecution Source #
CancelTaskExecutionRequest
See: newCancelTaskExecution
smart constructor.
CancelTaskExecution' | |
|
Instances
newCancelTaskExecution Source #
Create a value of CancelTaskExecution
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:taskExecutionArn:CancelTaskExecution'
, cancelTaskExecution_taskExecutionArn
- The Amazon Resource Name (ARN) of the task execution to cancel.
Request Lenses
cancelTaskExecution_taskExecutionArn :: Lens' CancelTaskExecution Text Source #
The Amazon Resource Name (ARN) of the task execution to cancel.
Destructuring the Response
data CancelTaskExecutionResponse Source #
See: newCancelTaskExecutionResponse
smart constructor.
CancelTaskExecutionResponse' | |
|
Instances
newCancelTaskExecutionResponse Source #
Create a value of CancelTaskExecutionResponse
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:httpStatus:CancelTaskExecutionResponse'
, cancelTaskExecutionResponse_httpStatus
- The response's http status code.
Response Lenses
cancelTaskExecutionResponse_httpStatus :: Lens' CancelTaskExecutionResponse Int Source #
The response's http status code.