Skip to content

/AWS1/CL_LOV=>STARTMODELPACKAGINGJOB()

About StartModelPackagingJob

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.

Method Signature

IMPORTING

Required arguments:

IV_PROJECTNAME TYPE /AWS1/LOVPROJECTNAME /AWS1/LOVPROJECTNAME

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

IV_MODELVERSION TYPE /AWS1/LOVMODELVERSION /AWS1/LOVMODELVERSION

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

IO_CONFIGURATION TYPE REF TO /AWS1/CL_LOVMODELPACKAGINGCONF /AWS1/CL_LOVMODELPACKAGINGCONF

The configuration for the model packaging job.

Optional arguments:

IV_JOBNAME TYPE /AWS1/LOVMODELPACKAGINGJOBNAME /AWS1/LOVMODELPACKAGINGJOBNAME

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

IV_DESCRIPTION TYPE /AWS1/LOVMODELPACKAGINGJOBDESC /AWS1/LOVMODELPACKAGINGJOBDESC

A description for the model packaging job.

IV_CLIENTTOKEN TYPE /AWS1/LOVCLIENTTOKEN /AWS1/LOVCLIENTTOKEN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LOVSTRTMDELPACKAGIN01 /AWS1/CL_LOVSTRTMDELPACKAGIN01