Skip to content

StartTaskExecution

Source: src/AWS/DataSync/StartTaskExecution.ts

Runtime binding for datasync:StartTaskExecution.

Starts a run of the bound Task — the moment data actually moves. The task ARN is injected from the binding; pass OverrideOptions, Includes/Excludes, or a ManifestConfig to shape the individual run. Returns the new execution’s ARN for use with DescribeTaskExecution / CancelTaskExecution. Provide the implementation with Effect.provide(AWS.DataSync.StartTaskExecutionHttp).

// init — bind the operation to the task
const startTaskExecution = yield* AWS.DataSync.StartTaskExecution(task);
// runtime
const { TaskExecutionArn } = yield* startTaskExecution();
yield* Effect.log(`transfer started: ${TaskExecutionArn}`);