CancelTaskExecution
Source:
src/AWS/DataSync/CancelTaskExecution.ts
Runtime binding for datasync:CancelTaskExecution.
Stops a queued or in-flight execution of the bound Task — e.g. a
kill switch when a transfer was started by mistake or is saturating a
link. Address the execution with the ARN returned by
StartTaskExecution; access is granted on the bound task’s executions.
Provide the implementation with
Effect.provide(AWS.DataSync.CancelTaskExecutionHttp).
Running Transfers
Section titled “Running Transfers”// init — bind the operation to the taskconst cancelTaskExecution = yield* AWS.DataSync.CancelTaskExecution(task);
// runtimeyield* cancelTaskExecution({ TaskExecutionArn: executionArn });