Interface CfnClusterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnClusterProps.Jsii$Proxy
CfnCluster.
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.*;
CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
.autoScaling(ClusterAutoScalingConfigProperty.builder()
.mode("mode")
// the properties below are optional
.autoScalerType("autoScalerType")
.build())
.clusterName("clusterName")
.clusterRole("clusterRole")
.instanceGroups(List.of(ClusterInstanceGroupProperty.builder()
.executionRole("executionRole")
.instanceCount(123)
.instanceGroupName("instanceGroupName")
.instanceType("instanceType")
.lifeCycleConfig(ClusterLifeCycleConfigProperty.builder()
.onCreate("onCreate")
.sourceS3Uri("sourceS3Uri")
.build())
// the properties below are optional
.currentCount(123)
.imageId("imageId")
.instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder()
.ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder()
.rootVolume(false)
.volumeKmsKeyId("volumeKmsKeyId")
.volumeSizeInGb(123)
.build())
.build()))
.onStartDeepHealthChecks(List.of("onStartDeepHealthChecks"))
.overrideVpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build())
.scheduledUpdateConfig(ScheduledUpdateConfigProperty.builder()
.scheduleExpression("scheduleExpression")
// the properties below are optional
.deploymentConfig(DeploymentConfigProperty.builder()
.autoRollbackConfiguration(List.of(AlarmDetailsProperty.builder()
.alarmName("alarmName")
.build()))
.rollingUpdatePolicy(RollingUpdatePolicyProperty.builder()
.maximumBatchSize(CapacitySizeConfigProperty.builder()
.type("type")
.value(123)
.build())
// the properties below are optional
.rollbackMaximumBatchSize(CapacitySizeConfigProperty.builder()
.type("type")
.value(123)
.build())
.build())
.waitIntervalInSeconds(123)
.build())
.build())
.threadsPerCore(123)
.trainingPlanArn("trainingPlanArn")
.build()))
.nodeProvisioningMode("nodeProvisioningMode")
.nodeRecovery("nodeRecovery")
.orchestrator(OrchestratorProperty.builder()
.eks(ClusterOrchestratorEksConfigProperty.builder()
.clusterArn("clusterArn")
.build())
.build())
.restrictedInstanceGroups(List.of(ClusterRestrictedInstanceGroupProperty.builder()
.environmentConfig(EnvironmentConfigProperty.builder()
.fSxLustreConfig(FSxLustreConfigProperty.builder()
.perUnitStorageThroughput(123)
.sizeInGiB(123)
.build())
.build())
.executionRole("executionRole")
.instanceCount(123)
.instanceGroupName("instanceGroupName")
.instanceType("instanceType")
// the properties below are optional
.currentCount(123)
.instanceStorageConfigs(List.of(ClusterInstanceStorageConfigProperty.builder()
.ebsVolumeConfig(ClusterEbsVolumeConfigProperty.builder()
.rootVolume(false)
.volumeKmsKeyId("volumeKmsKeyId")
.volumeSizeInGb(123)
.build())
.build()))
.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()
.mode("mode")
// the properties below are optional
.instanceMemoryAllocationPercentage(123)
.build())
.vpcConfig(VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnClusterPropsstatic final classAn implementation forCfnClusterProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnClusterProps.Builderbuilder()default ObjectConfiguration for cluster auto-scaling.default StringThe name of the SageMaker HyperPod cluster.default StringThe cluster role for the autoscaler to assume.default ObjectThe instance groups of the SageMaker HyperPod cluster.default StringDetermines the scaling strategy for the SageMaker HyperPod cluster.default StringSpecifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod.default ObjectThe orchestrator type for the SageMaker HyperPod cluster.default ObjectThe restricted instance groups of the SageMaker HyperPod cluster.getTags()A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources.default ObjectConfiguration for tiered storage in the SageMaker HyperPod cluster.default ObjectSpecifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScaling
Configuration for cluster auto-scaling.Returns union: either
IResolvableorCfnCluster.ClusterAutoScalingConfigProperty- See Also:
-
getClusterName
The name of the SageMaker HyperPod cluster.- See Also:
-
getClusterRole
The cluster role for the autoscaler to assume.- See Also:
-
getInstanceGroups
The instance groups of the SageMaker HyperPod cluster.To delete an instance group, remove it from the array.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCluster.ClusterInstanceGroupProperty>- See Also:
-
getNodeProvisioningMode
Determines the scaling strategy for the SageMaker HyperPod cluster.When set to 'Continuous', enables continuous scaling which dynamically manages node provisioning. If the parameter is omitted, uses the standard scaling approach in previous release.
- See Also:
-
getNodeRecovery
Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod.Available values are
Automaticfor enabling andNonefor disabling.- See Also:
-
getOrchestrator
The orchestrator type for the SageMaker HyperPod cluster.Currently,
'eks'is the only available option.Returns union: either
IResolvableorCfnCluster.OrchestratorProperty- See Also:
-
getRestrictedInstanceGroups
The restricted instance groups of the SageMaker HyperPod cluster.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCluster.ClusterRestrictedInstanceGroupProperty>- See Also:
-
getTags
A tag object that consists of a key and an optional value, used to manage metadata for SageMaker AWS resources.You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see AddTags .
For more information on adding metadata to your AWS resources with tagging, see Tagging AWS resources . For advice on best practices for managing AWS resources with tagging, see Tagging Best Practices: Implement an Effective AWS Resource Tagging Strategy .
- See Also:
-
getTieredStorageConfig
Configuration for tiered storage in the SageMaker HyperPod cluster.Returns union: either
IResolvableorCfnCluster.TieredStorageConfigProperty- See Also:
-
getVpcConfig
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC .
Returns union: either
IResolvableorCfnCluster.VpcConfigProperty- See Also:
-
builder
- Returns:
- a
CfnClusterProps.BuilderofCfnClusterProps
-