startProjectVersion
abstract suspend fun startProjectVersion(input: StartProjectVersionRequest): StartProjectVersionResponse
This operation applies only to Amazon Rekognition Custom Labels.
Starts the running of the version of a model. Starting a model takes a while to complete. To check the current state of the model, use DescribeProjectVersions.
Once the model is running, you can detect custom labels in new images by calling DetectCustomLabels.
You are charged for the amount of time that the model is running. To stop a running model, call StopProjectVersion.
This operation requires permissions to perform the rekognition:StartProjectVersion
action.
Samples
fun main() {
//sampleStart
// Starts a version of an Amazon Rekognition Custom Labels model.
val resp = rekognitionClient.startProjectVersion {
projectVersionArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
minInferenceUnits = 1
maxInferenceUnits = 1
}
//sampleEnd
}