Class CfnImageVersion

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.230Z") @Stability(Stable) public class CfnImageVersion extends CfnResource implements IInspectable
A CloudFormation 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 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, see DependsOn attribute .

  1. DependsOn can be used to establish a parent/child relationship between ImageVersion and Image where the ImageVersion DependsOn the Image .
  2. DependsOn can be used to establish order among ImageVersion s within the same Image namespace. For example, if ImageVersionB DependsOn ImageVersionA and both share the same parent Image , 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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::SageMaker::ImageVersion.

      Parameters:
      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.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrContainerImage

      @Stability(Stable) @NotNull public String getAttrContainerImage()
      The URI of the container image version referenced by ImageVersion.
    • getAttrImageArn

      @Stability(Stable) @NotNull public String getAttrImageArn()
      The Amazon Resource Name (ARN) of the parent Image.
    • getAttrImageVersionArn

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) @NotNull public Number getAttrVersion()
      The version of the image.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getBaseImage

      @Stability(Stable) @NotNull public String getBaseImage()
      The container image that the SageMaker image version is based on.

      Length Constraints : Minimum length of 1. Maximum length of 255.

      Pattern : .*

    • setBaseImage

      @Stability(Stable) public void setBaseImage(@NotNull String value)
      The container image that the SageMaker image version is based on.

      Length Constraints : Minimum length of 1. Maximum length of 255.

      Pattern : .*

    • getImageName

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) public void setImageName(@NotNull String value)
      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}$