| 1 | import type * as translate from "@distilled.cloud/aws/translate"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `translate:GetTerminology` — retrieve a custom |
| 7 | * terminology's properties and a presigned download location for its |
| 8 | * term-pair file. |
| 9 | * |
| 10 | * ### Reading Terminologies |
| 11 | * **Example:** Read a terminology's properties |
| 12 | * ```typescript |
| 13 | * // init |
| 14 | * const getTerminology = yield* AWS.Translate.GetTerminology(); |
| 15 | * |
| 16 | * // runtime |
| 17 | * const result = yield* getTerminology({ Name: glossary.terminologyName }); |
| 18 | * // result.TerminologyProperties?.TermCount |
| 19 | * // result.TerminologyDataLocation?.Location — presigned download URL |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface GetTerminology extends Binding.Service< |
| 25 | GetTerminology, |
| 26 | "AWS.Translate.GetTerminology", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request: translate.GetTerminologyRequest, |
| 30 | ) => Effect.Effect< |
| 31 | translate.GetTerminologyResponse, |
| 32 | translate.GetTerminologyError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const GetTerminology = Binding.Service<GetTerminology>( |
| 37 | "AWS.Translate.GetTerminology", |
| 38 | ); |