Class CfnImageVersion
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::SageMaker::ImageVersion.
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")
.build();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnImageVersion(Construct scope, String id, CfnImageVersionProps props) Create a newAWS::SageMaker::ImageVersion.protectedCfnImageVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnImageVersion(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.The name of the parent image.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBaseImage(String value) The container image that the SageMaker image version is based on.voidsetImageName(String value) The name of the parent image.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnImageVersionProps props) Create a newAWS::SageMaker::ImageVersion.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getBaseImage
The container image that the SageMaker image version is based on.Length Constraints : Minimum length of 1. Maximum length of 255.
Pattern :
.* -
setBaseImage
The container image that the SageMaker image version is based on.Length Constraints : Minimum length of 1. Maximum length of 255.
Pattern :
.* -
getImageName
The name of the parent image.Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern :
^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$ -
setImageName
The name of the parent image.Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern :
^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
-