libZSservicesZSamazonka-rekognitionZSamazonka-rekognition
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Rekognition.StartProjectVersion

Description

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.

Synopsis

Creating a Request

data StartProjectVersion Source #

See: newStartProjectVersion smart constructor.

Constructors

StartProjectVersion' 

Fields

  • projectVersionArn :: Text

    The Amazon Resource Name(ARN) of the model version that you want to start.

  • minInferenceUnits :: Natural

    The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). Use a higher number to increase the TPS throughput of your model. You are charged for the number of inference units that you use.

Instances

Instances details
Eq StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Read StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Show StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Generic StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Associated Types

type Rep StartProjectVersion :: Type -> Type #

NFData StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Methods

rnf :: StartProjectVersion -> () #

Hashable StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

ToJSON StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

AWSRequest StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Associated Types

type AWSResponse StartProjectVersion #

ToHeaders StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

ToPath StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

ToQuery StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

type Rep StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

type Rep StartProjectVersion = D1 ('MetaData "StartProjectVersion" "Amazonka.Rekognition.StartProjectVersion" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "StartProjectVersion'" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectVersionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "minInferenceUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))
type AWSResponse StartProjectVersion Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

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:

$sel:projectVersionArn:StartProjectVersion', startProjectVersion_projectVersionArn - The Amazon Resource Name(ARN) of the model version that you want to start.

$sel:minInferenceUnits:StartProjectVersion', startProjectVersion_minInferenceUnits - The minimum number of inference units to use. A single inference unit represents 1 hour of processing and can support up to 5 Transaction Pers Second (TPS). 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_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 and can support up to 5 Transaction Pers Second (TPS). 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.

Constructors

StartProjectVersionResponse' 

Fields

Instances

Instances details
Eq StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Read StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Show StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Generic StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

Associated Types

type Rep StartProjectVersionResponse :: Type -> Type #

NFData StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

type Rep StartProjectVersionResponse Source # 
Instance details

Defined in Amazonka.Rekognition.StartProjectVersion

type Rep StartProjectVersionResponse = D1 ('MetaData "StartProjectVersionResponse" "Amazonka.Rekognition.StartProjectVersion" "libZSservicesZSamazonka-rekognitionZSamazonka-rekognition" 'False) (C1 ('MetaCons "StartProjectVersionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProjectVersionStatus)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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:

$sel:status:StartProjectVersionResponse', startProjectVersionResponse_status - The current running status of the model.

$sel:httpStatus:StartProjectVersionResponse', startProjectVersionResponse_httpStatus - The response's http status code.

Response Lenses