amazonka-lookoutvision-2.0: Amazon Lookout for Vision SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.LookoutVision.StartModelPackagingJob

Description

Starts an Amazon Lookout for Vision model packaging job. A model packaging job creates an AWS IoT Greengrass component for a Lookout for Vision model. You can use the component to deploy your model to an edge device managed by Greengrass.

Use the DescribeModelPackagingJob API to determine the current status of the job. The model packaging job is complete if the value of Status is SUCCEEDED.

To deploy the component to the target device, use the component name and component version with the AWS IoT Greengrass CreateDeployment API.

This operation requires the following permissions:

  • lookoutvision:StartModelPackagingJob
  • s3:PutObject
  • s3:GetBucketLocation
  • kms:GenerateDataKey
  • greengrass:CreateComponentVersion
  • greengrass:DescribeComponent
  • (Optional) greengrass:TagResource. Only required if you want to tag the component.

For more information, see /Using your Amazon Lookout for Vision model on an edge device/ in the Amazon Lookout for Vision Developer Guide.

Synopsis

Creating a Request

data StartModelPackagingJob Source #

See: newStartModelPackagingJob smart constructor.

Constructors

StartModelPackagingJob' 

Fields

  • clientToken :: Maybe Text

    ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.

    If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases.

    An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.

  • description :: Maybe Text

    A description for the model packaging job.

  • jobName :: Maybe Text

    A name for the model packaging job. If you don't supply a value, the service creates a job name for you.

  • projectName :: Text

    The name of the project which contains the version of the model that you want to package.

  • modelVersion :: Text

    The version of the model within the project that you want to package.

  • configuration :: ModelPackagingConfiguration

    The configuration for the model packaging job.

Instances

Instances details
ToJSON StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

ToHeaders StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

ToPath StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

ToQuery StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

AWSRequest StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Associated Types

type AWSResponse StartModelPackagingJob #

Generic StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Associated Types

type Rep StartModelPackagingJob :: Type -> Type #

Read StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Show StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

NFData StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Methods

rnf :: StartModelPackagingJob -> () #

Eq StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Hashable StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

type AWSResponse StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

type Rep StartModelPackagingJob Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

type Rep StartModelPackagingJob = D1 ('MetaData "StartModelPackagingJob" "Amazonka.LookoutVision.StartModelPackagingJob" "amazonka-lookoutvision-2.0-3cIJAF9xWxx8xGDY24BOkS" 'False) (C1 ('MetaCons "StartModelPackagingJob'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "projectName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "modelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "configuration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ModelPackagingConfiguration)))))

newStartModelPackagingJob Source #

Create a value of StartModelPackagingJob 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:clientToken:StartModelPackagingJob', startModelPackagingJob_clientToken - ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.

If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases.

An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.

StartModelPackagingJob, startModelPackagingJob_description - A description for the model packaging job.

StartModelPackagingJob, startModelPackagingJob_jobName - A name for the model packaging job. If you don't supply a value, the service creates a job name for you.

StartModelPackagingJob, startModelPackagingJob_projectName - The name of the project which contains the version of the model that you want to package.

StartModelPackagingJob, startModelPackagingJob_modelVersion - The version of the model within the project that you want to package.

$sel:configuration:StartModelPackagingJob', startModelPackagingJob_configuration - The configuration for the model packaging job.

Request Lenses

startModelPackagingJob_clientToken :: Lens' StartModelPackagingJob (Maybe Text) Source #

ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.

If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases.

An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.

startModelPackagingJob_description :: Lens' StartModelPackagingJob (Maybe Text) Source #

A description for the model packaging job.

startModelPackagingJob_jobName :: Lens' StartModelPackagingJob (Maybe Text) Source #

A name for the model packaging job. If you don't supply a value, the service creates a job name for you.

startModelPackagingJob_projectName :: Lens' StartModelPackagingJob Text Source #

The name of the project which contains the version of the model that you want to package.

startModelPackagingJob_modelVersion :: Lens' StartModelPackagingJob Text Source #

The version of the model within the project that you want to package.

Destructuring the Response

data StartModelPackagingJobResponse Source #

See: newStartModelPackagingJobResponse smart constructor.

Constructors

StartModelPackagingJobResponse' 

Fields

  • jobName :: Maybe Text

    The job name for the model packaging job. If you don't supply a job name in the JobName input parameter, the service creates a job name for you.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Associated Types

type Rep StartModelPackagingJobResponse :: Type -> Type #

Read StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Show StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

NFData StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

Eq StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

type Rep StartModelPackagingJobResponse Source # 
Instance details

Defined in Amazonka.LookoutVision.StartModelPackagingJob

type Rep StartModelPackagingJobResponse = D1 ('MetaData "StartModelPackagingJobResponse" "Amazonka.LookoutVision.StartModelPackagingJob" "amazonka-lookoutvision-2.0-3cIJAF9xWxx8xGDY24BOkS" 'False) (C1 ('MetaCons "StartModelPackagingJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newStartModelPackagingJobResponse Source #

Create a value of StartModelPackagingJobResponse 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:

StartModelPackagingJob, startModelPackagingJobResponse_jobName - The job name for the model packaging job. If you don't supply a job name in the JobName input parameter, the service creates a job name for you.

$sel:httpStatus:StartModelPackagingJobResponse', startModelPackagingJobResponse_httpStatus - The response's http status code.

Response Lenses

startModelPackagingJobResponse_jobName :: Lens' StartModelPackagingJobResponse (Maybe Text) Source #

The job name for the model packaging job. If you don't supply a job name in the JobName input parameter, the service creates a job name for you.