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

main
ts 42 lines 1.29 KB
Raw
1 import type * as datazone from "@distilled.cloud/aws/datazone";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Domain } from "./Domain.ts";
5
6 export interface ListDataSourceRunsRequest extends Omit<
7 datazone.ListDataSourceRunsInput,
8 "domainIdentifier"
9 > {}
10
11 /**
12 * Runtime binding for `datazone:ListDataSourceRuns`.
13 *
14 * Lists the runs of a data source in the bound domain. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.ListDataSourceRunsHttp)`.
17 * ### Data Source Runs
18 * **Example:** List Recent Runs
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const listDataSourceRuns = yield* AWS.DataZone.ListDataSourceRuns(domain);
22 *
23 * // runtime
24 * const runs = yield* listDataSourceRuns({ dataSourceIdentifier: dataSourceId });
25 * ```
26 *
27 * @binding
28 */
29 export interface ListDataSourceRuns extends Binding.Service<
30 ListDataSourceRuns,
31 "AWS.DataZone.ListDataSourceRuns",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: ListDataSourceRunsRequest,
37 ) => Effect.Effect<datazone.ListDataSourceRunsOutput, datazone.ListDataSourceRunsError>
38 >
39 > {}
40 export const ListDataSourceRuns = Binding.Service<ListDataSourceRuns>(
41 "AWS.DataZone.ListDataSourceRuns",
42 );