Skip to content

GetTextDetection

Source: src/AWS/Rekognition/GetTextDetection.ts

Runtime binding for rekognition:GetTextDetection — get the results of an asynchronous text detection job started by StartTextDetection.

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

// init
const getTextDetection = yield* AWS.Rekognition.GetTextDetection();
// runtime
const results = yield* getTextDetection({ JobId: jobId });
if (results.JobStatus === "SUCCEEDED") {
// consume the detections
}