| 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 DeleteReferenceRequest extends Omit< |
| 7 | omics.DeleteReferenceRequest, |
| 8 | "referenceStoreId" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `omics:DeleteReference`. |
| 13 | * |
| 14 | * Bind this operation to a `ReferenceStore` to get a callable that deletes a reference genome from the store — 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.DeleteReferenceHttp)`. |
| 18 | * ### References |
| 19 | * **Example:** Bind DeleteReference to a ReferenceStore |
| 20 | * ```typescript |
| 21 | * // init |
| 22 | * const deleteReference = yield* AWS.Omics.DeleteReference(store); |
| 23 | * // runtime |
| 24 | * const result = yield* deleteReference({}); |
| 25 | * ``` |
| 26 | * |
| 27 | * @binding |
| 28 | */ |
| 29 | export interface DeleteReference extends Binding.Service< |
| 30 | DeleteReference, |
| 31 | "AWS.Omics.DeleteReference", |
| 32 | ( |
| 33 | store: ReferenceStore, |
| 34 | ) => Effect.Effect< |
| 35 | ( |
| 36 | request?: DeleteReferenceRequest, |
| 37 | ) => Effect.Effect< |
| 38 | omics.DeleteReferenceResponse, |
| 39 | omics.DeleteReferenceError |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const DeleteReference = Binding.Service<DeleteReference>( |
| 45 | "AWS.Omics.DeleteReference", |
| 46 | ); |