Smaws_Client_DataSync.CancelTaskExecutionStops an DataSync task execution that's in progress. The transfer of some files are abruptly interrupted. File contents that're transferred to the destination might be incomplete or inconsistent with the source files.
However, if you start a new task execution using the same task and allow it to finish, file content on the destination will be complete and consistent. This applies to other unexpected failures that interrupt a task execution. In all of these cases, DataSync successfully completes the transfer when you start the next task execution.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.cancel_task_execution_request ->
(Types.cancel_task_execution_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.cancel_task_execution_request ->
(Types.cancel_task_execution_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalException of Types.internal_exception
| `InvalidRequestException of Types.invalid_request_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result