1import * as omics from "@distilled.cloud/aws/omics";
2import * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { SequenceStore } from "./SequenceStore.ts";
5
6export interface GetReadSetRequest extends Omit<
7 omics.GetReadSetRequest,
8 "sequenceStoreId"
9> {}
10
11/**
12 * Runtime binding for `omics:GetReadSet`.
13 *
14 * Bind this operation to a `SequenceStore` to get a callable that streams the bytes of a read set 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.GetReadSetHttp)`.
18 * ### Read Sets
19 * **Example:** Bind GetReadSet to a SequenceStore
20 * ```typescript
21 * // init
22 * const getReadSet = yield* AWS.Omics.GetReadSet(store);
23 * // runtime
24 * const result = yield* getReadSet({});
25 * ```
26 *
27 * @binding
28 */
29export interface GetReadSet extends Binding.Service<
30 GetReadSet,
31 "AWS.Omics.GetReadSet",
32 (
33 store: SequenceStore,
34 ) => Effect.Effect<
35 (
36 request?: GetReadSetRequest,
37 ) => Effect.Effect<omics.GetReadSetResponse, omics.GetReadSetError>
38 >
39> {}
40
41export const GetReadSet = Binding.Service<GetReadSet>("AWS.Omics.GetReadSet");