The best way to control Claude Code, Codex and more from any computer or phone

main
ts 33 lines 1.06 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/databrew";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Job } from "./Job.ts";
5
6 export interface DescribeJobRunRequest extends Omit<SVC.DescribeJobRunRequest, "Name"> {}
7
8 /**
9 * Runtime binding for `databrew:DescribeJobRun` — reads the state,
10 * timings, and outputs of one run of the bound DataBrew job.
11 * ### Observing Job Runs
12 * **Example:** Poll a Run's State
13 * ```typescript
14 * const describeJobRun = yield* AWS.DataBrew.DescribeJobRun(job);
15 *
16 * const run = yield* describeJobRun({ RunId: runId });
17 * // run.State: "STARTING" | "RUNNING" | "SUCCEEDED" | ...
18 * ```
19 *
20 * @binding
21 */
22 export interface DescribeJobRun extends Binding.Service<
23 DescribeJobRun,
24 "AWS.DataBrew.DescribeJobRun",
25 <J extends Job>(
26 job: J,
27 ) => Effect.Effect<
28 (
29 request: DescribeJobRunRequest,
30 ) => Effect.Effect<SVC.DescribeJobRunResponse, SVC.DescribeJobRunError>
31 >
32 > {}
33 export const DescribeJobRun = Binding.Service<DescribeJobRun>("AWS.DataBrew.DescribeJobRun");