1import type * as deadline from "@distilled.cloud/aws/deadline";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Queue } from "./Queue.ts";
5
6/**
7 * Runtime binding for `deadline:ListSteps`.
8 *
9 * Enumerates the steps of a job in the bound {@link Queue} (paginated).
10 * The queue's `farmId`/`queueId` are injected from the binding. Provide
11 * the implementation with `Effect.provide(AWS.Deadline.ListStepsHttp)`.
12 * ### Monitoring Steps
13 * **Example:** List A Job's Steps
14 * ```typescript
15 * // init — bind the operation to the queue
16 * const listSteps = yield* AWS.Deadline.ListSteps(queue);
17 *
18 * // runtime
19 * const { steps } = yield* listSteps({ jobId });
20 * ```
21 *
22 * @binding
23 */
24export interface ListSteps extends Binding.Service<
25 ListSteps,
26 "AWS.Deadline.ListSteps",
27 (
28 queue: Queue,
29 ) => Effect.Effect<
30 (
31 request: Omit<deadline.ListStepsRequest, "farmId" | "queueId">,
32 ) => Effect.Effect<deadline.ListStepsResponse, deadline.ListStepsError>
33 >
34> {}
35export const ListSteps = Binding.Service<ListSteps>("AWS.Deadline.ListSteps");