| 1 | import * as omics from "@distilled.cloud/aws/omics"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { ReferenceStore } from "./ReferenceStore.ts"; |
| 5 | |
| 6 | export interface GetReferenceMetadataRequest extends Omit< |
| 7 | omics.GetReferenceMetadataRequest, |
| 8 | "referenceStoreId" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `omics:GetReferenceMetadata`. |
| 13 | * |
| 14 | * Bind this operation to a `ReferenceStore` to get a callable that reads the metadata of a reference genome — 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.GetReferenceMetadataHttp)`. |
| 18 | * ### References |
| 19 | * **Example:** Bind GetReferenceMetadata to a ReferenceStore |
| 20 | * ```typescript |
| 21 | * // init |
| 22 | * const getReferenceMetadata = yield* AWS.Omics.GetReferenceMetadata(store); |
| 23 | * // runtime |
| 24 | * const result = yield* getReferenceMetadata({}); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface GetReferenceMetadata extends Binding.Service< |
| 30 | GetReferenceMetadata, |
| 31 | "AWS.Omics.GetReferenceMetadata", |
| 32 | ( |
| 33 | store: ReferenceStore, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request?: GetReferenceMetadataRequest, |
| 37 | ) => Effect.Effect< |
| 38 | omics.GetReferenceMetadataResponse, |
| 39 | omics.GetReferenceMetadataError |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const GetReferenceMetadata = Binding.Service<GetReferenceMetadata>( |
| 45 | "AWS.Omics.GetReferenceMetadata", |
| 46 | ); |