Skip to content

GetFaceLivenessSessionResults

Source: src/AWS/Rekognition/GetFaceLivenessSessionResults.ts

Runtime binding for rekognition:GetFaceLivenessSessionResults — get the confidence score, status, and audit images of a completed Face Liveness session.

The binding takes no arguments and grants the function rekognition:GetFaceLivenessSessionResults 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.GetFaceLivenessSessionResultsHttp).

// init
const getFaceLivenessSessionResults = yield* AWS.Rekognition.GetFaceLivenessSessionResults();
// runtime
const results = yield* getFaceLivenessSessionResults({
SessionId: sessionId,
});
const isLive = results.Status === "SUCCEEDED" && (results.Confidence ?? 0) > 80;