Skip to main content

edge_packaging_jobs

Creates, updates, deletes, gets or lists an edge_packaging_jobs resource.

Overview

Nameedge_packaging_jobs
TypeResource
Idaws.sagemaker.edge_packaging_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
compilation_job_namestringThe name of the SageMaker Neo compilation job that is used to locate model artifacts that are being packaged. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
creation_timestring (date-time)The timestamp of when the packaging job was created.
edge_packaging_job_arnstringThe Amazon Resource Name (ARN) of the edge packaging job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z-]:\d{12}:edge-packaging-job/?[a-zA-Z_0-9+=,.@-_/]+</code>)
edge_packaging_job_namestringThe name of the edge packaging job. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
edge_packaging_job_statusstringThe current status of the packaging job. (STARTING, INPROGRESS, COMPLETED, FAILED, STOPPING, STOPPED)
edge_packaging_job_status_messagestringReturns a message describing the job status and error messages.
last_modified_timestring (date-time)The timestamp of when the job was last updated.
model_artifactstringThe Amazon Simple Storage (S3) URI where model artifacts ares stored. (pattern: <code>(https|s3):​//([^/]+)/?(.*)</code>)
model_namestringThe name of the model. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62}</code>)
model_signaturestringThe signature document of files in the model artifact.
model_versionstringThe version of the model. (pattern: <code>[a-zA-Z0-9\ _.]+</code>)
output_configobjectThe output configuration for the edge packaging job.
preset_deployment_outputobjectThe output of a SageMaker Edge Manager deployable resource.
resource_keystringThe Amazon Web Services KMS key to use when encrypting the EBS volume the job run on. (pattern: <code>[a-zA-Z0-9:/_-]*</code>)
role_arnstringThe Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to download and upload the model, and to contact Neo. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_edge_packaging_jobselectregionA description of edge packaging jobs.
list_edge_packaging_jobsselectregionReturns a list of edge packaging jobs.
create_edge_packaging_jobinsertregion, EdgePackagingJobName, CompilationJobName, ModelName, ModelVersion, RoleArn, OutputConfigStarts a SageMaker Edge Manager model packaging job. Edge Manager will use the model artifacts from the Amazon Simple Storage Service bucket that you specify. After the model has been packaged, Amazon SageMaker saves the resulting artifacts to an S3 bucket that you specify.
stop_edge_packaging_jobexecregion, EdgePackagingJobNameRequest to stop an edge packaging job.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

A description of edge packaging jobs.

SELECT
compilation_job_name,
creation_time,
edge_packaging_job_arn,
edge_packaging_job_name,
edge_packaging_job_status,
edge_packaging_job_status_message,
last_modified_time,
model_artifact,
model_name,
model_signature,
model_version,
output_config,
preset_deployment_output,
resource_key,
role_arn
FROM aws.sagemaker.edge_packaging_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Starts a SageMaker Edge Manager model packaging job. Edge Manager will use the model artifacts from the Amazon Simple Storage Service bucket that you specify. After the model has been packaged, Amazon SageMaker saves the resulting artifacts to an S3 bucket that you specify.

INSERT INTO aws.sagemaker.edge_packaging_jobs (
EdgePackagingJobName,
CompilationJobName,
ModelName,
ModelVersion,
RoleArn,
OutputConfig,
ResourceKey,
Tags,
region
)
SELECT
'{{ EdgePackagingJobName }}' /* required */,
'{{ CompilationJobName }}' /* required */,
'{{ ModelName }}' /* required */,
'{{ ModelVersion }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ OutputConfig }}' /* required */,
'{{ ResourceKey }}',
'{{ Tags }}',
'{{ region }}'
;

Lifecycle Methods

Request to stop an edge packaging job.

EXEC aws.sagemaker.edge_packaging_jobs.stop_edge_packaging_job
@region='{{ region }}' --required
@@json=
'{
"EdgePackagingJobName": "{{ EdgePackagingJobName }}"
}'
;