Skip to content

GetCelebrityInfo

Source: src/AWS/Rekognition/GetCelebrityInfo.ts

Runtime binding for rekognition:GetCelebrityInfo — get the name and additional links for a celebrity ID returned by RecognizeCelebrities.

The binding takes no arguments and grants the function rekognition:GetCelebrityInfo on * (Rekognition data-plane resources such as collections, users, and jobs are routinely created at runtime, so their identifiers are unknown at deploy time). Provide the implementation with Effect.provide(AWS.Rekognition.GetCelebrityInfoHttp).

// init
const getCelebrityInfo = yield* AWS.Rekognition.GetCelebrityInfo();
// runtime
const info = yield* getCelebrityInfo({ Id: celebrityId });
// info.Name, info.Urls, info.KnownGender