Skip to content

CancelDataRepositoryTask

Source: src/AWS/FSx/CancelDataRepositoryTask.ts

Runtime binding for the CancelDataRepositoryTask operation (IAM action fsx:CancelDataRepositoryTask on * — runtime-created tasks have ARNs unknowable at deploy time).

Cancels a PENDING or EXECUTING Lustre data repository task started with CreateDataRepositoryTask. A task that already finished surfaces the typed DataRepositoryTaskEnded. Provide the implementation with Effect.provide(AWS.FSx.CancelDataRepositoryTaskHttp).

const cancelDataRepositoryTask =
yield* AWS.FSx.CancelDataRepositoryTask();
yield* cancelDataRepositoryTask({ TaskId: taskId }).pipe(
Effect.catchTag("DataRepositoryTaskEnded", () => Effect.void),
);