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 GetLineageNodeRequest extends Omit<
7 datazone.GetLineageNodeInput,
8 "domainIdentifier"
9> {}
10
11/**
12 * Runtime binding for `datazone:GetLineageNode`.
13 *
14 * Reads a data lineage node in the bound domain. The domain id is injected from the binding.
15 * Provide the implementation with
16 * `Effect.provide(AWS.DataZone.GetLineageNodeHttp)`.
17 * ### Data Lineage
18 * **Example:** Read a Lineage Node
19 * ```typescript
20 * // init — bind the operation to the domain
21 * const getLineageNode = yield* AWS.DataZone.GetLineageNode(domain);
22 *
23 * // runtime
24 * const node = yield* getLineageNode({ identifier: nodeId });
25 * ```
26 *
27 * @binding
28 */
29export interface GetLineageNode extends Binding.Service<
30 GetLineageNode,
31 "AWS.DataZone.GetLineageNode",
32 (
33 domain: Domain,
34 ) => Effect.Effect<
35 (
36 request: GetLineageNodeRequest,
37 ) => Effect.Effect<
38 datazone.GetLineageNodeOutput,
39 datazone.GetLineageNodeError
40 >
41 >
42> {}
43export const GetLineageNode = Binding.Service<GetLineageNode>(
44 "AWS.DataZone.GetLineageNode",
45);