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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:15.655Z")
@Stability(Stable)
public class CfnImageVersion
extends CfnResource
implements IInspectable
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
DependsOn
attribute to specify that the creation of a specific resource follows another. You can use it for the following use cases. For more information, seeDependsOn
attribute .
DependsOn
can be used to establish a parent/child relationship betweenImageVersion
andImage
where theImageVersion
DependsOn
theImage
.DependsOn
can be used to establish order amongImageVersion
s within the sameImage
namespace. For example, if ImageVersionBDependsOn
ImageVersionA 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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnImageVersion
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnImageVersion
(software.amazon.jsii.JsiiObjectRef objRef) CfnImageVersion
(software.constructs.Construct scope, String id, CfnImageVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The alias of the image version.void
setAliases
(List<String> value) List of aliases for the image version.void
setBaseImage
(String value) The container image that the SageMaker image version is based on.void
setHorovod
(Boolean value) Indicates Horovod compatibility.void
setHorovod
(IResolvable value) Indicates Horovod compatibility.void
setImageName
(String value) The name of the parent image.void
setJobType
(String value) Indicates SageMaker job type compatibility.void
setMlFramework
(String value) The machine learning framework vended in the image version.void
setProcessor
(String value) Indicates CPU or GPU compatibility.void
setProgrammingLang
(String value) The supported programming language and its version.void
setReleaseNotes
(String value) The maintainer description of the image version.void
setVendorGuidance
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
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. -
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.
-