Skip to content

DescribeTaskExecution

Source: src/AWS/DataSync/DescribeTaskExecution.ts

Runtime binding for datasync:DescribeTaskExecution.

Reads one execution of the bound Task — status, bytes/files transferred, per-phase results — to monitor an ongoing transfer or check a finished one. 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.DescribeTaskExecutionHttp).

// init — bind the operation to the task
const describeTaskExecution = yield* AWS.DataSync.DescribeTaskExecution(task);
// runtime
const execution = yield* describeTaskExecution({
TaskExecutionArn: executionArn,
});
yield* Effect.log(`${execution.Status}: ${execution.BytesTransferred} bytes`);