The best way to control Claude Code, Codex and more from any computer or phone

main
ts 48 lines 1.6 KB
Raw
1 import * as omics from "@distilled.cloud/aws/omics";
2 import * as Binding from "alchemy/Binding";
3 import * as Effect from "effect/Effect";
4 import type { AnnotationStore } from "./AnnotationStore.ts";
5
6 export interface StartAnnotationImportJobRequest extends Omit<
7 omics.StartAnnotationImportRequest,
8 "destinationName"
9 > {}
10
11 /**
12 * Runtime binding for `omics:StartAnnotationImportJob`.
13 *
14 * Bind this operation to an `AnnotationStore` to get a callable that starts a
15 * job importing annotation files (TSV/VCF/GFF) into the store — the store name
16 * is injected automatically as `destinationName` and the action is granted on
17 * the bound resource (with `iam:PassRole` for the HealthOmics service role).
18 * Provide the implementation with
19 * `Effect.provide(AWS.Omics.StartAnnotationImportJobHttp)`.
20 * ### Annotation Imports
21 * **Example:** Bind StartAnnotationImportJob to an AnnotationStore
22 * ```typescript
23 * // init
24 * const startImport = yield* AWS.Omics.StartAnnotationImportJob(store);
25 * // runtime
26 * const result = yield* startImport({
27 * roleArn,
28 * items: [{ source: "s3://my-bucket/annotations.tsv" }],
29 * });
30 * ```
31 *
32 * @binding
33 */
34 export interface StartAnnotationImportJob extends Binding.Service<
35 StartAnnotationImportJob,
36 "AWS.Omics.StartAnnotationImportJob",
37 (
38 store: AnnotationStore,
39 ) => Effect.Effect<
40 (
41 request: StartAnnotationImportJobRequest,
42 ) => Effect.Effect<omics.StartAnnotationImportResponse, omics.StartAnnotationImportJobError>
43 >
44 > {}
45
46 export const StartAnnotationImportJob = Binding.Service<StartAnnotationImportJob>(
47 "AWS.Omics.StartAnnotationImportJob",
48 );