Class CfnClusterMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.sagemaker.mixins.CfnClusterMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterMixinProps>
- Enclosing interface:
CfnClusterMixinProps
@Stability(Stable)
public static final class CfnClusterMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterMixinProps>
A builder for
CfnClusterMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoScaling(IResolvable autoScaling) Sets the value ofCfnClusterMixinProps.getAutoScaling()Sets the value ofCfnClusterMixinProps.getAutoScaling()build()Builds the configured instance.clusterName(String clusterName) Sets the value ofCfnClusterMixinProps.getClusterName()clusterRole(String clusterRole) Sets the value ofCfnClusterMixinProps.getClusterRole()instanceGroups(List<? extends Object> instanceGroups) Sets the value ofCfnClusterMixinProps.getInstanceGroups()instanceGroups(IResolvable instanceGroups) Sets the value ofCfnClusterMixinProps.getInstanceGroups()nodeProvisioningMode(String nodeProvisioningMode) Sets the value ofCfnClusterMixinProps.getNodeProvisioningMode()nodeRecovery(String nodeRecovery) Sets the value ofCfnClusterMixinProps.getNodeRecovery()orchestrator(IResolvable orchestrator) Sets the value ofCfnClusterMixinProps.getOrchestrator()orchestrator(CfnClusterPropsMixin.OrchestratorProperty orchestrator) Sets the value ofCfnClusterMixinProps.getOrchestrator()restrictedInstanceGroups(List<? extends Object> restrictedInstanceGroups) Sets the value ofCfnClusterMixinProps.getRestrictedInstanceGroups()restrictedInstanceGroups(IResolvable restrictedInstanceGroups) Sets the value ofCfnClusterMixinProps.getRestrictedInstanceGroups()Sets the value ofCfnClusterMixinProps.getTags()tieredStorageConfig(IResolvable tieredStorageConfig) Sets the value ofCfnClusterMixinProps.getTieredStorageConfig()tieredStorageConfig(CfnClusterPropsMixin.TieredStorageConfigProperty tieredStorageConfig) Sets the value ofCfnClusterMixinProps.getTieredStorageConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnClusterMixinProps.getVpcConfig()vpcConfig(CfnClusterPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnClusterMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoScaling
Sets the value ofCfnClusterMixinProps.getAutoScaling()- Parameters:
autoScaling- Configuration for cluster auto-scaling.- Returns:
this
-
autoScaling
@Stability(Stable) public CfnClusterMixinProps.Builder autoScaling(CfnClusterPropsMixin.ClusterAutoScalingConfigProperty autoScaling) Sets the value ofCfnClusterMixinProps.getAutoScaling()- Parameters:
autoScaling- Configuration for cluster auto-scaling.- Returns:
this
-
clusterName
Sets the value ofCfnClusterMixinProps.getClusterName()- Parameters:
clusterName- The name of the SageMaker HyperPod cluster.- Returns:
this
-
clusterRole
Sets the value ofCfnClusterMixinProps.getClusterRole()- Parameters:
clusterRole- The cluster role for the autoscaler to assume.- Returns:
this
-
instanceGroups
Sets the value ofCfnClusterMixinProps.getInstanceGroups()- Parameters:
instanceGroups- The instance groups of the SageMaker HyperPod cluster. To delete an instance group, remove it from the array.- Returns:
this
-
instanceGroups
@Stability(Stable) public CfnClusterMixinProps.Builder instanceGroups(List<? extends Object> instanceGroups) Sets the value ofCfnClusterMixinProps.getInstanceGroups()- Parameters:
instanceGroups- The instance groups of the SageMaker HyperPod cluster. To delete an instance group, remove it from the array.- Returns:
this
-
nodeProvisioningMode
@Stability(Stable) public CfnClusterMixinProps.Builder nodeProvisioningMode(String nodeProvisioningMode) Sets the value ofCfnClusterMixinProps.getNodeProvisioningMode()- Parameters:
nodeProvisioningMode- 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.- Returns:
this
-
nodeRecovery
Sets the value ofCfnClusterMixinProps.getNodeRecovery()- Parameters:
nodeRecovery- Specifies whether to enable or disable the automatic node recovery feature of SageMaker HyperPod. Available values areAutomaticfor enabling andNonefor disabling.- Returns:
this
-
orchestrator
Sets the value ofCfnClusterMixinProps.getOrchestrator()- Parameters:
orchestrator- The orchestrator type for the SageMaker HyperPod cluster. Currently,'eks'is the only available option.- Returns:
this
-
orchestrator
@Stability(Stable) public CfnClusterMixinProps.Builder orchestrator(CfnClusterPropsMixin.OrchestratorProperty orchestrator) Sets the value ofCfnClusterMixinProps.getOrchestrator()- Parameters:
orchestrator- The orchestrator type for the SageMaker HyperPod cluster. Currently,'eks'is the only available option.- Returns:
this
-
restrictedInstanceGroups
@Stability(Stable) public CfnClusterMixinProps.Builder restrictedInstanceGroups(IResolvable restrictedInstanceGroups) Sets the value ofCfnClusterMixinProps.getRestrictedInstanceGroups()- Parameters:
restrictedInstanceGroups- The restricted instance groups of the SageMaker HyperPod cluster.- Returns:
this
-
restrictedInstanceGroups
@Stability(Stable) public CfnClusterMixinProps.Builder restrictedInstanceGroups(List<? extends Object> restrictedInstanceGroups) Sets the value ofCfnClusterMixinProps.getRestrictedInstanceGroups()- Parameters:
restrictedInstanceGroups- The restricted instance groups of the SageMaker HyperPod cluster.- Returns:
this
-
tags
Sets the value ofCfnClusterMixinProps.getTags()- Parameters:
tags- 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 .
- Returns:
this
-
tieredStorageConfig
@Stability(Stable) public CfnClusterMixinProps.Builder tieredStorageConfig(IResolvable tieredStorageConfig) Sets the value ofCfnClusterMixinProps.getTieredStorageConfig()- Parameters:
tieredStorageConfig- Configuration for tiered storage in the SageMaker HyperPod cluster.- Returns:
this
-
tieredStorageConfig
@Stability(Stable) public CfnClusterMixinProps.Builder tieredStorageConfig(CfnClusterPropsMixin.TieredStorageConfigProperty tieredStorageConfig) Sets the value ofCfnClusterMixinProps.getTieredStorageConfig()- Parameters:
tieredStorageConfig- Configuration for tiered storage in the SageMaker HyperPod cluster.- Returns:
this
-
vpcConfig
Sets the value ofCfnClusterMixinProps.getVpcConfig()- Parameters:
vpcConfig- 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:
this
-
vpcConfig
@Stability(Stable) public CfnClusterMixinProps.Builder vpcConfig(CfnClusterPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnClusterMixinProps.getVpcConfig()- Parameters:
vpcConfig- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterMixinProps>- Returns:
- a new instance of
CfnClusterMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-