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 GetReadSetMetadataRequest extends Omit<
7 omics.GetReadSetMetadataRequest,
8 "sequenceStoreId"
9> {}
10
11/**
12 * Runtime binding for `omics:GetReadSetMetadata`.
13 *
14 * Bind this operation to a `SequenceStore` to get a callable that reads the metadata of a read set — 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.GetReadSetMetadataHttp)`.
18 * ### Read Sets
19 * **Example:** Bind GetReadSetMetadata to a SequenceStore
20 * ```typescript
21 * // init
22 * const getReadSetMetadata = yield* AWS.Omics.GetReadSetMetadata(store);
23 * // runtime
24 * const result = yield* getReadSetMetadata({});
25 * ```
26 *
27 * @binding
28 */
29export interface GetReadSetMetadata extends Binding.Service<
30 GetReadSetMetadata,
31 "AWS.Omics.GetReadSetMetadata",
32 (
33 store: SequenceStore,
34 ) => Effect.Effect<
35 (
36 request?: GetReadSetMetadataRequest,
37 ) => Effect.Effect<
38 omics.GetReadSetMetadataResponse,
39 omics.GetReadSetMetadataError
40 >
41 >
42> {}
43
44export const GetReadSetMetadata = Binding.Service<GetReadSetMetadata>(
45 "AWS.Omics.GetReadSetMetadata",
46);