Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
For more information, see /Running a trained Amazon Rekognition Custom Labels model/ in the Amazon Rekognition Custom Labels Guide.
This operation requires permissions to perform the
rekognition:StartProjectVersion
action.
Synopsis
- data StartProjectVersion = StartProjectVersion' {}
- newStartProjectVersion :: Text -> Natural -> StartProjectVersion
- startProjectVersion_maxInferenceUnits :: Lens' StartProjectVersion (Maybe Natural)
- startProjectVersion_projectVersionArn :: Lens' StartProjectVersion Text
- startProjectVersion_minInferenceUnits :: Lens' StartProjectVersion Natural
- data StartProjectVersionResponse = StartProjectVersionResponse' {}
- newStartProjectVersionResponse :: Int -> StartProjectVersionResponse
- startProjectVersionResponse_status :: Lens' StartProjectVersionResponse (Maybe ProjectVersionStatus)
- startProjectVersionResponse_httpStatus :: Lens' StartProjectVersionResponse Int
Creating a Request
data StartProjectVersion Source #
See: newStartProjectVersion
smart constructor.
StartProjectVersion' | |
|
Instances
newStartProjectVersion Source #
Create a value of StartProjectVersion
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StartProjectVersion
, startProjectVersion_maxInferenceUnits
- The maximum number of inference units to use for auto-scaling the model.
If you don't specify a value, Amazon Rekognition Custom Labels doesn't
auto-scale the model.
StartProjectVersion
, startProjectVersion_projectVersionArn
- The Amazon Resource Name(ARN) of the model version that you want to
start.
StartProjectVersion
, startProjectVersion_minInferenceUnits
- The minimum number of inference units to use. A single inference unit
represents 1 hour of processing.
For information about the number of transactions per second (TPS) that an inference unit can support, see /Running a trained Amazon Rekognition Custom Labels model/ in the Amazon Rekognition Custom Labels Guide.
Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
Request Lenses
startProjectVersion_maxInferenceUnits :: Lens' StartProjectVersion (Maybe Natural) Source #
The maximum number of inference units to use for auto-scaling the model. If you don't specify a value, Amazon Rekognition Custom Labels doesn't auto-scale the model.
startProjectVersion_projectVersionArn :: Lens' StartProjectVersion Text Source #
The Amazon Resource Name(ARN) of the model version that you want to start.
startProjectVersion_minInferenceUnits :: Lens' StartProjectVersion Natural Source #
The minimum number of inference units to use. A single inference unit represents 1 hour of processing.
For information about the number of transactions per second (TPS) that an inference unit can support, see /Running a trained Amazon Rekognition Custom Labels model/ in the Amazon Rekognition Custom Labels Guide.
Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.
Destructuring the Response
data StartProjectVersionResponse Source #
See: newStartProjectVersionResponse
smart constructor.
StartProjectVersionResponse' | |
|
Instances
newStartProjectVersionResponse Source #
Create a value of StartProjectVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
StartProjectVersionResponse
, startProjectVersionResponse_status
- The current running status of the model.
$sel:httpStatus:StartProjectVersionResponse'
, startProjectVersionResponse_httpStatus
- The response's http status code.
Response Lenses
startProjectVersionResponse_status :: Lens' StartProjectVersionResponse (Maybe ProjectVersionStatus) Source #
The current running status of the model.
startProjectVersionResponse_httpStatus :: Lens' StartProjectVersionResponse Int Source #
The response's http status code.