1import type * as transcribe from "@distilled.cloud/aws/transcribe";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `transcribe:CreateMedicalVocabulary` — create a custom medical vocabulary from a text file in S3 (asynchronous: created `PENDING`, poll to `READY` with {@link GetMedicalVocabulary}).
7 *
8 * Amazon Transcribe batch actions have no resource-level IAM; the host is
9 * granted `transcribe:CreateMedicalVocabulary` on `*`.
10 *
11 * ### Medical Vocabularies
12 * **Example:** Create a Medical Vocabulary
13 * ```typescript
14 * // init
15 * const createMedicalVocabulary = yield* AWS.Transcribe.CreateMedicalVocabulary();
16 *
17 * // runtime
18 * yield* createMedicalVocabulary({
19 * VocabularyName: "clinic-vocabulary",
20 * LanguageCode: "en-US",
21 * VocabularyFileUri: "s3://my-bucket/vocab.txt",
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface CreateMedicalVocabulary extends Binding.Service<
28 CreateMedicalVocabulary,
29 "AWS.Transcribe.CreateMedicalVocabulary",
30 () => Effect.Effect<
31 (
32 request: transcribe.CreateMedicalVocabularyRequest,
33 ) => Effect.Effect<
34 transcribe.CreateMedicalVocabularyResponse,
35 transcribe.CreateMedicalVocabularyError
36 >
37 >
38> {}
39export const CreateMedicalVocabulary = Binding.Service<CreateMedicalVocabulary>(
40 "AWS.Transcribe.CreateMedicalVocabulary",
41);