| 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:StopProjectVersion` — stop hosting a Custom Labels model version to stop incurring inference-unit charges. |
| 7 | * |
| 8 | * The binding takes no arguments and grants the function |
| 9 | * `rekognition:StopProjectVersion` 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.StopProjectVersionHttp)`. |
| 13 | * |
| 14 | * ### Custom Labels |
| 15 | * **Example:** Stop a Model Version |
| 16 | * ```typescript |
| 17 | * // init |
| 18 | * const stopProjectVersion = yield* AWS.Rekognition.StopProjectVersion(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const stopped = yield* stopProjectVersion({ ProjectVersionArn: modelArn }); |
| 22 | * // stopped.Status |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface StopProjectVersion extends Binding.Service< |
| 28 | StopProjectVersion, |
| 29 | "AWS.Rekognition.StopProjectVersion", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: rekognition.StopProjectVersionRequest, |
| 33 | ) => Effect.Effect< |
| 34 | rekognition.StopProjectVersionResponse, |
| 35 | rekognition.StopProjectVersionError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const StopProjectVersion = Binding.Service<StopProjectVersion>( |
| 40 | "AWS.Rekognition.StopProjectVersion", |
| 41 | ); |