1import type * as datazone from "@distilled.cloud/aws/datazone";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { Domain } from "./Domain.ts";
5
6export interface PostLineageEventRequest extends Omit<
7 datazone.PostLineageEventInput,
8 "domainIdentifier"
9> {}
10
11/**
12 * Runtime binding for `datazone:PostLineageEvent`.
13 *
14 * Posts an OpenLineage run event to the bound domain, recording the lineage of a data transformation the function performed. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.PostLineageEventHttp)`.
17 * ### Data Lineage
18 * **Example:** Emit a Lineage Event
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const postLineageEvent = yield* AWS.DataZone.PostLineageEvent(domain);
22 *
23 * // runtime
24 * yield* postLineageEvent({ event: JSON.stringify(openLineageRunEvent) });
25 * ```
26 *
27 * @binding
28 */
29export interface PostLineageEvent extends Binding.Service<
30 PostLineageEvent,
31 "AWS.DataZone.PostLineageEvent",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: PostLineageEventRequest,
37 ) => Effect.Effect<
38 datazone.PostLineageEventOutput,
39 datazone.PostLineageEventError
40 >
41 >
42> {}
43export const PostLineageEvent = Binding.Service<PostLineageEvent>(
44 "AWS.DataZone.PostLineageEvent",
45);