Skip to content

StartProjectVersion

Source: src/AWS/Rekognition/StartProjectVersion.ts

Runtime binding for rekognition:StartProjectVersion — start hosting a trained Custom Labels model version so it can serve DetectCustomLabels requests.

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

// init
const startProjectVersion = yield* AWS.Rekognition.StartProjectVersion();
// runtime
const started = yield* startProjectVersion({
ProjectVersionArn: modelArn,
MinInferenceUnits: 1,
});
// started.Status