1import * as omics from "@distilled.cloud/aws/omics";
2import * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { ReferenceStore } from "./ReferenceStore.ts";
5
6export interface GetReferenceRequest extends Omit<
7 omics.GetReferenceRequest,
8 "referenceStoreId"
9> {}
10
11/**
12 * Runtime binding for `omics:GetReference`.
13 *
14 * Bind this operation to a `ReferenceStore` to get a callable that streams the bytes of a reference file part — the
15 * store/workflow id is injected automatically and the action is granted on the
16 * bound resource. Provide the implementation with
17 * `Effect.provide(AWS.Omics.GetReferenceHttp)`.
18 * ### References
19 * **Example:** Bind GetReference to a ReferenceStore
20 * ```typescript
21 * // init
22 * const getReference = yield* AWS.Omics.GetReference(store);
23 * // runtime
24 * const result = yield* getReference({});
25 * ```
26 *
27 * @binding
28 */
29export interface GetReference extends Binding.Service<
30 GetReference,
31 "AWS.Omics.GetReference",
32 (
33 store: ReferenceStore,
34 ) => Effect.Effect<
35 (
36 request?: GetReferenceRequest,
37 ) => Effect.Effect<omics.GetReferenceResponse, omics.GetReferenceError>
38 >
39> {}
40
41export const GetReference = Binding.Service<GetReference>(
42 "AWS.Omics.GetReference",
43);