| 1 | import type * as rekognition from "@distilled.cloud/aws/rekognition"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `rekognition:StartProjectVersion` — start hosting a trained Custom Labels model version so it can serve DetectCustomLabels requests. |
| 7 | * |
| 8 | * The binding takes no arguments and grants the function |
| 9 | * `rekognition:StartProjectVersion` on `*` (Rekognition data-plane resources such |
| 10 | * as collections, users, and jobs are routinely created at runtime, so |
| 11 | * their identifiers are unknown at deploy time). Provide the |
| 12 | * implementation with `Effect.provide(AWS.Rekognition.StartProjectVersionHttp)`. |
| 13 | * |
| 14 | * ### Custom Labels |
| 15 | * **Example:** Start a Model Version |
| 16 | * ```typescript |
| 17 | * // init |
| 18 | * const startProjectVersion = yield* AWS.Rekognition.StartProjectVersion(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const started = yield* startProjectVersion({ |
| 22 | * ProjectVersionArn: modelArn, |
| 23 | * MinInferenceUnits: 1, |
| 24 | * }); |
| 25 | * // started.Status |
| 26 | * ``` |
| 27 | * |
| 28 | * @binding |
| 29 | */ |
| 30 | export interface StartProjectVersion extends Binding.Service< |
| 31 | StartProjectVersion, |
| 32 | "AWS.Rekognition.StartProjectVersion", |
| 33 | () => Effect.Effect< |
| 34 | ( |
| 35 | request: rekognition.StartProjectVersionRequest, |
| 36 | ) => Effect.Effect< |
| 37 | rekognition.StartProjectVersionResponse, |
| 38 | rekognition.StartProjectVersionError |
| 39 | > |
| 40 | > |
| 41 | > {} |
| 42 | export const StartProjectVersion = Binding.Service<StartProjectVersion>( |
| 43 | "AWS.Rekognition.StartProjectVersion", |
| 44 | ); |