| 1 | import * as omics from "@distilled.cloud/aws/omics"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | export interface GetRunRequest extends omics.GetRunRequest {} |
| 6 | |
| 7 | /** |
| 8 | * Runtime binding for `omics:GetRun`. |
| 9 | * |
| 10 | * An account-level run-control operation (no resource argument) that reads the status and details of a run. |
| 11 | * Provide the implementation with `Effect.provide(AWS.Omics.GetRunHttp)`. |
| 12 | * ### Runs |
| 13 | * **Example:** Call GetRun |
| 14 | * ```typescript |
| 15 | * // init — account-level binding takes no resource |
| 16 | * const getRun = yield* AWS.Omics.GetRun(); |
| 17 | * // runtime |
| 18 | * const result = yield* getRun({ id: runId }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface GetRun extends Binding.Service< |
| 24 | GetRun, |
| 25 | "AWS.Omics.GetRun", |
| 26 | () => Effect.Effect< |
| 27 | ( |
| 28 | request?: GetRunRequest, |
| 29 | ) => Effect.Effect<omics.GetRunResponse, omics.GetRunError> |
| 30 | > |
| 31 | > {} |
| 32 | |
| 33 | export const GetRun = Binding.Service<GetRun>("AWS.Omics.GetRun"); |