Class CfnImageVersionPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnImageVersionPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:20:04.977Z") @Stability(Stable) public class CfnImageVersionPropsMixin extends Mixin implements software.constructs.IMixin
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.cfnpropertymixins.services.sagemaker.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnImageVersionPropsMixin cfnImageVersionPropsMixin = CfnImageVersionPropsMixin.Builder.create(CfnImageVersionMixinProps.builder()
         .alias("alias")
         .aliases(List.of("aliases"))
         .baseImage("baseImage")
         .horovod(false)
         .imageName("imageName")
         .jobType("jobType")
         .mlFramework("mlFramework")
         .processor("processor")
         .programmingLang("programmingLang")
         .releaseNotes("releaseNotes")
         .vendorGuidance("vendorGuidance")
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnImageVersionPropsMixin

      protected CfnImageVersionPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnImageVersionPropsMixin

      protected CfnImageVersionPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnImageVersionPropsMixin

      @Stability(Stable) public CfnImageVersionPropsMixin(@NotNull CfnImageVersionMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::SageMaker::ImageVersion.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnImageVersionPropsMixin

      @Stability(Stable) public CfnImageVersionPropsMixin(@NotNull CfnImageVersionMixinProps props)
      Create a mixin to apply properties to AWS::SageMaker::ImageVersion.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnImageVersionMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()