Class CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ClusterRestrictedInstanceGroupProperty>
- Enclosing interface:
CfnCluster.ClusterRestrictedInstanceGroupProperty
@Stability(Stable)
public static final class CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ClusterRestrictedInstanceGroupProperty>
A builder for
CfnCluster.ClusterRestrictedInstanceGroupProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.currentCount
(Number currentCount) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getCurrentCount()
environmentConfig
(IResolvable environmentConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()
environmentConfig
(CfnCluster.EnvironmentConfigProperty environmentConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()
executionRole
(String executionRole) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getExecutionRole()
instanceCount
(Number instanceCount) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceCount()
instanceGroupName
(String instanceGroupName) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceGroupName()
instanceStorageConfigs
(List<? extends Object> instanceStorageConfigs) instanceStorageConfigs
(IResolvable instanceStorageConfigs) instanceType
(String instanceType) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceType()
onStartDeepHealthChecks
(List<String> onStartDeepHealthChecks) overrideVpcConfig
(IResolvable overrideVpcConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getOverrideVpcConfig()
overrideVpcConfig
(CfnCluster.VpcConfigProperty overrideVpcConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getOverrideVpcConfig()
threadsPerCore
(Number threadsPerCore) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getThreadsPerCore()
trainingPlanArn
(String trainingPlanArn) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getTrainingPlanArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
environmentConfig
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder environmentConfig(IResolvable environmentConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()
- Parameters:
environmentConfig
- The configuration for the restricted instance groups (RIG) environment. This parameter is required.- Returns:
this
-
environmentConfig
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder environmentConfig(CfnCluster.EnvironmentConfigProperty environmentConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()
- Parameters:
environmentConfig
- The configuration for the restricted instance groups (RIG) environment. This parameter is required.- Returns:
this
-
executionRole
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder executionRole(String executionRole) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getExecutionRole()
- Parameters:
executionRole
- The execution role for the instance group to assume. This parameter is required.- Returns:
this
-
instanceCount
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceCount()
- Parameters:
instanceCount
- The number of instances you specified to add to the restricted instance group of a SageMaker HyperPod cluster. This parameter is required.- Returns:
this
-
instanceGroupName
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder instanceGroupName(String instanceGroupName) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceGroupName()
- Parameters:
instanceGroupName
- The name of the instance group of a SageMaker HyperPod cluster. This parameter is required.- Returns:
this
-
instanceType
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder instanceType(String instanceType) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getInstanceType()
- Parameters:
instanceType
- The instance type of the instance group of a SageMaker HyperPod cluster. This parameter is required.- Returns:
this
-
currentCount
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder currentCount(Number currentCount) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getCurrentCount()
- Parameters:
currentCount
- The number of instances that are currently in the restricted instance group of a SageMaker HyperPod cluster.- Returns:
this
-
instanceStorageConfigs
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder instanceStorageConfigs(IResolvable instanceStorageConfigs) - Parameters:
instanceStorageConfigs
- The instance storage configuration for the instance group.- Returns:
this
-
instanceStorageConfigs
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder instanceStorageConfigs(List<? extends Object> instanceStorageConfigs) - Parameters:
instanceStorageConfigs
- The instance storage configuration for the instance group.- Returns:
this
-
onStartDeepHealthChecks
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder onStartDeepHealthChecks(List<String> onStartDeepHealthChecks) - Parameters:
onStartDeepHealthChecks
- Nodes will undergo advanced stress test to detect and replace faulty instances, based on the type of deep health check(s) passed in.- Returns:
this
-
overrideVpcConfig
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder overrideVpcConfig(IResolvable overrideVpcConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getOverrideVpcConfig()
- Parameters:
overrideVpcConfig
- 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.- Returns:
this
-
overrideVpcConfig
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder overrideVpcConfig(CfnCluster.VpcConfigProperty overrideVpcConfig) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getOverrideVpcConfig()
- Parameters:
overrideVpcConfig
- 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.- Returns:
this
-
threadsPerCore
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder threadsPerCore(Number threadsPerCore) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getThreadsPerCore()
- Parameters:
threadsPerCore
- The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading.- Returns:
this
-
trainingPlanArn
@Stability(Stable) public CfnCluster.ClusterRestrictedInstanceGroupProperty.Builder trainingPlanArn(String trainingPlanArn) Sets the value ofCfnCluster.ClusterRestrictedInstanceGroupProperty.getTrainingPlanArn()
- Parameters:
trainingPlanArn
- The Amazon Resource Name (ARN) of the training plan to use for this cluster restricted instance group. For more information about how to reserve GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see CreateTrainingPlan.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.ClusterRestrictedInstanceGroupProperty>
- Returns:
- a new instance of
CfnCluster.ClusterRestrictedInstanceGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-