Skip to main content

image_versions

Creates, updates, deletes or gets an image_version resource or lists image_versions in a region

Overview

Nameimage_versions
TypeResource
DescriptionResource Type definition for AWS::SageMaker::ImageVersion
Idawscc.sagemaker.image_versions

Fields

NameDatatypeDescription
image_namestringThe name of the image this version belongs to.
image_arnstringThe Amazon Resource Name (ARN) of the parent image.
image_version_arnstringThe Amazon Resource Name (ARN) of the image version.
base_imagestringThe registry path of the container image on which this image version is based.
container_imagestringThe image to use for the container that will be materialized for the inference component
versionintegerThe version number of the image version.
aliasstringThe alias of the image version.
aliasesarrayList of aliases for the image version.
vendor_guidancestringThe availability of the image version specified by the maintainer.
job_typestringIndicates SageMaker job type compatibility.
ml_frameworkstringThe machine learning framework vended in the image version.
programming_langstringThe supported programming language and its version.
processorstringIndicates CPU or GPU compatibility.
horovodbooleanIndicates Horovod compatibility.
release_notesstringThe maintainer description of the image version.
regionstringAWS region.

For more information, see AWS::SageMaker::ImageVersion.

Methods

NameResourceAccessible byRequired Params
create_resourceimage_versionsINSERTImageName, BaseImage, region
delete_resourceimage_versionsDELETEIdentifier, region
update_resourceimage_versionsUPDATEIdentifier, PatchDocument, region
list_resourcesimage_versions_list_onlySELECTregion
get_resourceimage_versionsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual image_version.

SELECT
region,
image_name,
image_arn,
image_version_arn,
base_image,
container_image,
version,
alias,
aliases,
vendor_guidance,
job_type,
ml_framework,
programming_lang,
processor,
horovod,
release_notes
FROM awscc.sagemaker.image_versions
WHERE
region = 'us-east-1' AND
Identifier = '{{ image_version_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new image_version resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.sagemaker.image_versions (
ImageName,
BaseImage,
region
)
SELECT
'{{ image_name }}',
'{{ base_image }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a image_version resource, using stack-deploy.

/*+ update */
UPDATE awscc.sagemaker.image_versions
SET PatchDocument = string('{{ {
"Alias": alias,
"Aliases": aliases,
"VendorGuidance": vendor_guidance,
"JobType": job_type,
"MLFramework": ml_framework,
"ProgrammingLang": programming_lang,
"Processor": processor,
"Horovod": horovod,
"ReleaseNotes": release_notes
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ image_version_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.sagemaker.image_versions
WHERE
Identifier = '{{ image_version_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the image_versions resource, the following permissions are required:

sagemaker:CreateImageVersion,
sagemaker:DescribeImageVersion