@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.901Z") @Stability(value=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
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnImageVersion.Builder
A fluent builder for
CfnImageVersion. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnImageVersion(software.constructs.Construct scope,
String id,
CfnImageVersionProps props)
Create a new `AWS::SageMaker::ImageVersion`.
|
protected |
CfnImageVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnImageVersion(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrContainerImage()
The URI of the container image version referenced by ImageVersion.
|
String |
getAttrImageArn()
The Amazon Resource Name (ARN) of the parent Image.
|
String |
getAttrImageVersionArn()
The Amazon Resource Name (ARN) of the image version.
|
Number |
getAttrVersion()
The version of the image.
|
String |
getBaseImage()
The container image that the SageMaker image version is based on.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getImageName()
The name of the parent image.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBaseImage(String value)
The container image that the SageMaker image version is based on.
|
void |
setImageName(String value)
The name of the parent image.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnImageVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnImageVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnImageVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnImageVersionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrContainerImage()
@Stability(value=Stable) @NotNull public String getAttrImageArn()
@Stability(value=Stable) @NotNull public String getAttrImageVersionArn()
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]+$
@Stability(value=Stable) @NotNull public Number getAttrVersion()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getBaseImage()
Length Constraints : Minimum length of 1. Maximum length of 255.
Pattern : .*
@Stability(value=Stable)
public void setBaseImage(@NotNull
String value)
Length Constraints : Minimum length of 1. Maximum length of 255.
Pattern : .*
@Stability(value=Stable) @NotNull public String getImageName()
Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern : ^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
@Stability(value=Stable)
public void setImageName(@NotNull
String value)
Length Constraints : Minimum length of 1. Maximum length of 63.
Pattern : ^[a-zA-Z0-9]([-.]?[a-zA-Z0-9]){0,62}$
Copyright © 2022. All rights reserved.