Skip to content

ListTaskExecutions

Source: src/AWS/DataSync/ListTaskExecutions.ts

Runtime binding for datasync:ListTaskExecutions.

Enumerates the bound Task’s executions (most recent first) so an ops function can audit run history or find the latest run’s ARN. The task ARN is injected from the binding; pass MaxResults/NextToken to page. Provide the implementation with Effect.provide(AWS.DataSync.ListTaskExecutionsHttp).

// init — bind the operation to the task
const listTaskExecutions = yield* AWS.DataSync.ListTaskExecutions(task);
// runtime
const { TaskExecutions } = yield* listTaskExecutions();
for (const execution of TaskExecutions ?? []) {
yield* Effect.log(`${execution.TaskExecutionArn}: ${execution.Status}`);
}