import type * as deadline from "@distilled.cloud/aws/deadline"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Queue } from "./Queue.ts"; /** * Runtime binding for `deadline:UpdateTask`. * * Retargets a single task of a job in the bound {@link Queue} — requeue * (`READY`), cancel (`CANCELED`), suspend (`SUSPENDED`), or force-fail/ * succeed it. The queue's `farmId`/`queueId` are injected from the binding. * Provide the implementation with `Effect.provide(AWS.Deadline.UpdateTaskHttp)`. * ### Managing Tasks * **Example:** Cancel A Task * ```typescript * // init — bind the operation to the queue * const updateTask = yield* AWS.Deadline.UpdateTask(queue); * * // runtime * yield* updateTask({ jobId, stepId, taskId, targetRunStatus: "CANCELED" }); * ``` * * @binding */ export interface UpdateTask extends Binding.Service Effect.Effect<(request: Omit) => Effect.Effect>> { } export declare const UpdateTask: UpdateTask; //# sourceMappingURL=UpdateTask.d.ts.map