Class CfnImageVersion
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnImageVersion
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IImageVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:29.627Z")
@Stability(Stable)
public class CfnImageVersion
extends CfnResource
implements IInspectable, IImageVersionRef
Creates a version of the SageMaker image specified by
ImageName .
The version represents the Amazon Container Registry (ECR) container image specified by BaseImage .
You can use the
DependsOnattribute to specify that the creation of a specific resource follows another. You can use it for the following use cases. For more information, seeDependsOnattribute .
DependsOncan be used to establish a parent/child relationship betweenImageVersionandImagewhere theImageVersionDependsOntheImage.DependsOncan be used to establish order amongImageVersions within the sameImagenamespace. For example, if ImageVersionBDependsOnImageVersionA and both share the same parentImage, then ImageVersionA is version N and ImageVersionB is N+1.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnImageVersion cfnImageVersion = CfnImageVersion.Builder.create(this, "MyCfnImageVersion")
.baseImage("baseImage")
.imageName("imageName")
// the properties below are optional
.alias("alias")
.aliases(List.of("aliases"))
.horovod(false)
.jobType("jobType")
.mlFramework("mlFramework")
.processor("processor")
.programmingLang("programmingLang")
.releaseNotes("releaseNotes")
.vendorGuidance("vendorGuidance")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IImageVersionRef
IImageVersionRef.Jsii$Default, IImageVersionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnImageVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnImageVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnImageVersion(software.constructs.Construct scope, String id, CfnImageVersionProps props) Create a newAWS::SageMaker::ImageVersion. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForImageVersion(IImageVersionRef resource) getAlias()The alias of the image version.List of aliases for the image version.The URI of the container image version referenced by ImageVersion.The Amazon Resource Name (ARN) of the parent Image.The Amazon Resource Name (ARN) of the image version.The version of the image.The container image that the SageMaker image version is based on.Indicates Horovod compatibility.The name of the parent image.A reference to a ImageVersion resource.Indicates SageMaker job type compatibility.The machine learning framework vended in the image version.Indicates CPU or GPU compatibility.The supported programming language and its version.The maintainer description of the image version.The availability of the image version specified by the maintainer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe alias of the image version.voidsetAliases(List<String> value) List of aliases for the image version.voidsetBaseImage(String value) The container image that the SageMaker image version is based on.voidsetHorovod(Boolean value) Indicates Horovod compatibility.voidsetHorovod(IResolvable value) Indicates Horovod compatibility.voidsetImageName(String value) The name of the parent image.voidsetJobType(String value) Indicates SageMaker job type compatibility.voidsetMlFramework(String value) The machine learning framework vended in the image version.voidsetProcessor(String value) Indicates CPU or GPU compatibility.voidsetProgrammingLang(String value) The supported programming language and its version.voidsetReleaseNotes(String value) The maintainer description of the image version.voidsetVendorGuidance(String value) The availability of the image version specified by the maintainer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnImageVersion
protected CfnImageVersion(software.amazon.jsii.JsiiObjectRef objRef) -
CfnImageVersion
protected CfnImageVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnImageVersion
@Stability(Stable) public CfnImageVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnImageVersionProps props) Create a newAWS::SageMaker::ImageVersion.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForImageVersion
@Stability(Stable) @NotNull public static String arnForImageVersion(@NotNull IImageVersionRef resource) - Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrContainerImage
The URI of the container image version referenced by ImageVersion. -
getAttrImageArn
The Amazon Resource Name (ARN) of the parent Image. -
getAttrImageVersionArn
The Amazon Resource Name (ARN) of the image version.Type : String
Length Constraints : Maximum length of 256.
Pattern :
^arn:aws(-[\w]+)*:sagemaker:.+:[0-9]{12}:image-version/[a-z0-9]([-.]?[a-z0-9])* /[0-9]+$ -
getAttrVersion
The version of the image. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getImageVersionRef
A reference to a ImageVersion resource.- Specified by:
getImageVersionRefin interfaceIImageVersionRef
-
getBaseImage
The container image that the SageMaker image version is based on. -
setBaseImage
The container image that the SageMaker image version is based on. -
getImageName
The name of the parent image. -
setImageName
The name of the parent image. -
getAlias
The alias of the image version. -
setAlias
The alias of the image version. -
getAliases
List of aliases for the image version. -
setAliases
List of aliases for the image version. -
getHorovod
Indicates Horovod compatibility.Returns union: either
BooleanorIResolvable -
setHorovod
Indicates Horovod compatibility. -
setHorovod
Indicates Horovod compatibility. -
getJobType
Indicates SageMaker job type compatibility. -
setJobType
Indicates SageMaker job type compatibility. -
getMlFramework
The machine learning framework vended in the image version. -
setMlFramework
The machine learning framework vended in the image version. -
getProcessor
Indicates CPU or GPU compatibility. -
setProcessor
Indicates CPU or GPU compatibility. -
getProgrammingLang
The supported programming language and its version. -
setProgrammingLang
The supported programming language and its version. -
getReleaseNotes
The maintainer description of the image version. -
setReleaseNotes
The maintainer description of the image version. -
getVendorGuidance
The availability of the image version specified by the maintainer. -
setVendorGuidance
The availability of the image version specified by the maintainer.
-