Skip to content

DescribeTask

Source: src/AWS/DataSync/DescribeTask.ts

Runtime binding for datasync:DescribeTask.

Reads the bound Task’s full detail — status, transfer options, filters, schedule (including ScheduleDetails with the last disable reason), and the ARN of the currently running execution — so an ops function can monitor the task’s health. The task ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.DataSync.DescribeTaskHttp).

// init — bind the operation to the task
const describeTask = yield* AWS.DataSync.DescribeTask(task);
// runtime
const detail = yield* describeTask();
yield* Effect.log(`task ${detail.Name} is ${detail.Status}`);