java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin
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.862Z") @Stability(Stable) public class CfnClusterPropsMixin extends Mixin implements software.constructs.IMixin
Creates an Amazon SageMaker HyperPod cluster.

SageMaker HyperPod is a capability of SageMaker for creating and managing persistent clusters for developing large machine learning models, such as large language models (LLMs) and diffusion models. To learn more, see Amazon SageMaker HyperPod in the Amazon SageMaker Developer Guide .

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;
 Object onDemand;
 Object spot;
 CfnClusterPropsMixin cfnClusterPropsMixin = CfnClusterPropsMixin.Builder.create(CfnClusterMixinProps.builder()
         .autoScaling(ClusterAutoScalingConfigProperty.builder()
                 .autoScalerType("autoScalerType")
                 .mode("mode")
                 .build())
         .clusterName("clusterName")
         .clusterRole("clusterRole")
         .instanceGroups(List.of(ClusterInstanceGroupProperty.builder()
                 .capacityRequirements(ClusterCapacityRequirementsProperty.builder()
                         .onDemand(onDemand)
                         .spot(spot)
                         .build())
                 .currentCount(123)
                 .executionRole("executionRole")
                 .imageId("imageId")
                 .instanceCount(123)
                 .instanceGroupName("instanceGroupName")
                 .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder()
                         .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder()
                                 .rootVolume(false)
                                 .volumeKmsKeyId("volumeKmsKeyId")
                                 .volumeSizeInGb(123)
                                 .build())
                         .fsxLustreConfig(ClusterFsxLustreConfigProperty.builder()
                                 .dnsName("dnsName")
                                 .mountName("mountName")
                                 .mountPath("mountPath")
                                 .build())
                         .fsxOpenZfsConfig(ClusterFsxOpenZfsConfigProperty.builder()
                                 .dnsName("dnsName")
                                 .mountPath("mountPath")
                                 .build())
                         .build()))
                 .instanceType("instanceType")
                 .kubernetesConfig(ClusterKubernetesConfigProperty.builder()
                         .labels(Map.of(
                                 "labelsKey", "labels"))
                         .taints(List.of(ClusterKubernetesTaintProperty.builder()
                                 .effect("effect")
                                 .key("key")
                                 .value("value")
                                 .build()))
                         .build())
                 .lifeCycleConfig(ClusterLifeCycleConfigProperty.builder()
                         .onCreate("onCreate")
                         .sourceS3Uri("sourceS3Uri")
                         .build())
                 .minInstanceCount(123)
                 .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks"))
                 .overrideVpcConfig(VpcConfigProperty.builder()
                         .securityGroupIds(List.of("securityGroupIds"))
                         .subnets(List.of("subnets"))
                         .build())
                 .scheduledUpdateConfig(ScheduledUpdateConfigProperty.builder()
                         .deploymentConfig(DeploymentConfigProperty.builder()
                                 .autoRollbackConfiguration(List.of(AlarmDetailsProperty.builder()
                                         .alarmName("alarmName")
                                         .build()))
                                 .rollingUpdatePolicy(RollingUpdatePolicyProperty.builder()
                                         .maximumBatchSize(CapacitySizeConfigProperty.builder()
                                                 .type("type")
                                                 .value(123)
                                                 .build())
                                         .rollbackMaximumBatchSize(CapacitySizeConfigProperty.builder()
                                                 .type("type")
                                                 .value(123)
                                                 .build())
                                         .build())
                                 .waitIntervalInSeconds(123)
                                 .build())
                         .scheduleExpression("scheduleExpression")
                         .build())
                 .slurmConfig(ClusterSlurmConfigProperty.builder()
                         .nodeType("nodeType")
                         .partitionNames(List.of("partitionNames"))
                         .build())
                 .threadsPerCore(123)
                 .trainingPlanArn("trainingPlanArn")
                 .build()))
         .nodeProvisioningMode("nodeProvisioningMode")
         .nodeRecovery("nodeRecovery")
         .orchestrator(OrchestratorProperty.builder()
                 .eks(ClusterOrchestratorEksConfigProperty.builder()
                         .clusterArn("clusterArn")
                         .build())
                 .slurm(ClusterOrchestratorSlurmConfigProperty.builder()
                         .slurmConfigStrategy("slurmConfigStrategy")
                         .build())
                 .build())
         .restrictedInstanceGroups(List.of(ClusterRestrictedInstanceGroupProperty.builder()
                 .currentCount(123)
                 .environmentConfig(EnvironmentConfigProperty.builder()
                         .fSxLustreConfig(FSxLustreConfigProperty.builder()
                                 .perUnitStorageThroughput(123)
                                 .sizeInGiB(123)
                                 .build())
                         .build())
                 .executionRole("executionRole")
                 .instanceCount(123)
                 .instanceGroupName("instanceGroupName")
                 .instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder()
                         .ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder()
                                 .rootVolume(false)
                                 .volumeKmsKeyId("volumeKmsKeyId")
                                 .volumeSizeInGb(123)
                                 .build())
                         .fsxLustreConfig(ClusterFsxLustreConfigProperty.builder()
                                 .dnsName("dnsName")
                                 .mountName("mountName")
                                 .mountPath("mountPath")
                                 .build())
                         .fsxOpenZfsConfig(ClusterFsxOpenZfsConfigProperty.builder()
                                 .dnsName("dnsName")
                                 .mountPath("mountPath")
                                 .build())
                         .build()))
                 .instanceType("instanceType")
                 .onStartDeepHealthChecks(List.of("onStartDeepHealthChecks"))
                 .overrideVpcConfig(VpcConfigProperty.builder()
                         .securityGroupIds(List.of("securityGroupIds"))
                         .subnets(List.of("subnets"))
                         .build())
                 .threadsPerCore(123)
                 .trainingPlanArn("trainingPlanArn")
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .tieredStorageConfig(TieredStorageConfigProperty.builder()
                 .instanceMemoryAllocationPercentage(123)
                 .mode("mode")
                 .build())
         .vpcConfig(VpcConfigProperty.builder()
                 .securityGroupIds(List.of("securityGroupIds"))
                 .subnets(List.of("subnets"))
                 .build())
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

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

    • CfnClusterPropsMixin

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

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

      @Stability(Stable) public CfnClusterPropsMixin(@NotNull CfnClusterMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::SageMaker::Cluster.

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

      @Stability(Stable) public CfnClusterPropsMixin(@NotNull CfnClusterMixinProps props)
      Create a mixin to apply properties to AWS::SageMaker::Cluster.

      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 CfnClusterMixinProps getProps()
    • getStrategy

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