| 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:GetCelebrityInfo` — get the name and additional links for a celebrity ID returned by RecognizeCelebrities. |
| 7 | * |
| 8 | * The binding takes no arguments and grants the function |
| 9 | * `rekognition:GetCelebrityInfo` 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.GetCelebrityInfoHttp)`. |
| 13 | * |
| 14 | * ### Image Analysis |
| 15 | * **Example:** Look Up a Celebrity by ID |
| 16 | * ```typescript |
| 17 | * // init |
| 18 | * const getCelebrityInfo = yield* AWS.Rekognition.GetCelebrityInfo(); |
| 19 | * |
| 20 | * // runtime |
| 21 | * const info = yield* getCelebrityInfo({ Id: celebrityId }); |
| 22 | * // info.Name, info.Urls, info.KnownGender |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface GetCelebrityInfo extends Binding.Service< |
| 28 | GetCelebrityInfo, |
| 29 | "AWS.Rekognition.GetCelebrityInfo", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: rekognition.GetCelebrityInfoRequest, |
| 33 | ) => Effect.Effect< |
| 34 | rekognition.GetCelebrityInfoResponse, |
| 35 | rekognition.GetCelebrityInfoError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const GetCelebrityInfo = Binding.Service<GetCelebrityInfo>( |
| 40 | "AWS.Rekognition.GetCelebrityInfo", |
| 41 | ); |