sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Omics/ GetReadSetMetadata.ts

import * as omics from "@distilled.cloud/aws/omics";
import * as Binding from "alchemy/Binding";
import * as Effect from "effect/Effect";
import type { SequenceStore } from "./SequenceStore.ts";

export interface GetReadSetMetadataRequest extends Omit<
  omics.GetReadSetMetadataRequest,
  "sequenceStoreId"
> {}

/**
 * Runtime binding for `omics:GetReadSetMetadata`.
 *
 * Bind this operation to a `SequenceStore` to get a callable that reads the metadata of a read set — the
 * store/workflow id is injected automatically and the action is granted on the
 * bound resource. Provide the implementation with
 * `Effect.provide(AWS.Omics.GetReadSetMetadataHttp)`.
 * ### Read Sets
 * **Example:** Bind GetReadSetMetadata to a SequenceStore
 * ```typescript
 * // init
 * const getReadSetMetadata = yield* AWS.Omics.GetReadSetMetadata(store);
 * // runtime
 * const result = yield* getReadSetMetadata({});
 * ```
 *
 * @binding
 */
export interface GetReadSetMetadata extends Binding.Service<
  GetReadSetMetadata,
  "AWS.Omics.GetReadSetMetadata",
  (
    store: SequenceStore,
  ) => Effect.Effect<
    (
      request?: GetReadSetMetadataRequest,
    ) => Effect.Effect<omics.GetReadSetMetadataResponse, omics.GetReadSetMetadataError>
  >
> {}

export const GetReadSetMetadata = Binding.Service<GetReadSetMetadata>(
  "AWS.Omics.GetReadSetMetadata",
);