Skip to content

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).

// init — bind the operation to the task
const cancelTaskExecution = yield* AWS.DataSync.CancelTaskExecution(task);
// runtime
yield* cancelTaskExecution({ TaskExecutionArn: executionArn });