Class CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty>
- Enclosing interface:
CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty
@Stability(Stable)
public static final class CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.currentCount(Number currentCount) environmentConfig(CfnClusterPropsMixin.EnvironmentConfigProperty environmentConfig) environmentConfig(IResolvable environmentConfig) executionRole(String executionRole) instanceCount(Number instanceCount) instanceGroupName(String instanceGroupName) instanceStorageConfigs(List<? extends Object> instanceStorageConfigs) instanceStorageConfigs(IResolvable instanceStorageConfigs) instanceType(String instanceType) onStartDeepHealthChecks(List<String> onStartDeepHealthChecks) overrideVpcConfig(CfnClusterPropsMixin.VpcConfigProperty overrideVpcConfig) overrideVpcConfig(IResolvable overrideVpcConfig) threadsPerCore(Number threadsPerCore) trainingPlanArn(String trainingPlanArn)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
currentCount
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder currentCount(Number currentCount) - Parameters:
currentCount- The number of instances that are currently in the restricted instance group of a SageMaker HyperPod cluster.- Returns:
this
-
environmentConfig
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder environmentConfig(IResolvable environmentConfig) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()- Parameters:
environmentConfig- The configuration for the restricted instance groups (RIG) environment.- Returns:
this
-
environmentConfig
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder environmentConfig(CfnClusterPropsMixin.EnvironmentConfigProperty environmentConfig) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getEnvironmentConfig()- Parameters:
environmentConfig- The configuration for the restricted instance groups (RIG) environment.- Returns:
this
-
executionRole
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder executionRole(String executionRole) - Parameters:
executionRole- The execution role for the instance group to assume.- Returns:
this
-
instanceCount
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder instanceCount(Number instanceCount) - Parameters:
instanceCount- The number of instances you specified to add to the restricted instance group of a SageMaker HyperPod cluster.- Returns:
this
-
instanceGroupName
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder instanceGroupName(String instanceGroupName) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getInstanceGroupName()- Parameters:
instanceGroupName- The name of the instance group of a SageMaker HyperPod cluster.- Returns:
this
-
instanceStorageConfigs
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder instanceStorageConfigs(IResolvable instanceStorageConfigs) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getInstanceStorageConfigs()- Parameters:
instanceStorageConfigs- The instance storage configuration for the instance group.- Returns:
this
-
instanceStorageConfigs
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder instanceStorageConfigs(List<? extends Object> instanceStorageConfigs) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getInstanceStorageConfigs()- Parameters:
instanceStorageConfigs- The instance storage configuration for the instance group.- Returns:
this
-
instanceType
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder instanceType(String instanceType) - Parameters:
instanceType- The instance type of the instance group of a SageMaker HyperPod cluster.- Returns:
this
-
onStartDeepHealthChecks
@Stability(Stable) public CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder onStartDeepHealthChecks(List<String> onStartDeepHealthChecks) Sets the value ofCfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.getOnStartDeepHealthChecks()- 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 CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder overrideVpcConfig(IResolvable overrideVpcConfig) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder overrideVpcConfig(CfnClusterPropsMixin.VpcConfigProperty overrideVpcConfig) Sets the value ofCfnClusterPropsMixin.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 CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder threadsPerCore(Number threadsPerCore) - 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 CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty.Builder trainingPlanArn(String trainingPlanArn) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.ClusterRestrictedInstanceGroupProperty - Throws:
NullPointerException- if any required attribute was not provided
-