sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Omics/ GetReadSetImportJob.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 GetReadSetImportJobRequest extends Omit<
  omics.GetReadSetImportJobRequest,
  "sequenceStoreId"
> {}

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

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