Interface ClusterRestrictedInstanceGroupSpecification.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClusterRestrictedInstanceGroupSpecification.Builder,
,ClusterRestrictedInstanceGroupSpecification> SdkBuilder<ClusterRestrictedInstanceGroupSpecification.Builder,
,ClusterRestrictedInstanceGroupSpecification> SdkPojo
- Enclosing class:
ClusterRestrictedInstanceGroupSpecification
-
Method Summary
Modifier and TypeMethodDescriptionenvironmentConfig
(Consumer<EnvironmentConfig.Builder> environmentConfig) The configuration for the restricted instance groups (RIG) environment.environmentConfig
(EnvironmentConfig environmentConfig) The configuration for the restricted instance groups (RIG) environment.executionRole
(String executionRole) Specifies an IAM execution role to be assumed by the restricted instance group.instanceCount
(Integer instanceCount) Specifies the number of instances to add to the restricted instance group of a SageMaker HyperPod cluster.instanceGroupName
(String instanceGroupName) Specifies the name of the restricted instance group.instanceStorageConfigs
(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.instanceStorageConfigs
(Consumer<ClusterInstanceStorageConfig.Builder>... instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.instanceStorageConfigs
(ClusterInstanceStorageConfig... instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.instanceType
(String instanceType) Specifies the instance type of the restricted instance group.instanceType
(ClusterInstanceType instanceType) Specifies the instance type of the restricted instance group.onStartDeepHealthChecks
(Collection<DeepHealthCheckType> onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.onStartDeepHealthChecks
(DeepHealthCheckType... onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.onStartDeepHealthChecksWithStrings
(String... onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.onStartDeepHealthChecksWithStrings
(Collection<String> onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.overrideVpcConfig
(Consumer<VpcConfig.Builder> overrideVpcConfig) Sets the value of the OverrideVpcConfig property for this object.overrideVpcConfig
(VpcConfig overrideVpcConfig) Sets the value of the OverrideVpcConfig property for this object.scheduledUpdateConfig
(Consumer<ScheduledUpdateConfig.Builder> scheduledUpdateConfig) Sets the value of the ScheduledUpdateConfig property for this object.scheduledUpdateConfig
(ScheduledUpdateConfig scheduledUpdateConfig) Sets the value of the ScheduledUpdateConfig property for this object.threadsPerCore
(Integer threadsPerCore) The number you specified toTreadsPerCore
inCreateCluster
for enabling or disabling multithreading.trainingPlanArn
(String trainingPlanArn) The Amazon Resource Name (ARN) of the training plan to filter clusters by.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceCount
Specifies the number of instances to add to the restricted instance group of a SageMaker HyperPod cluster.
- Parameters:
instanceCount
- Specifies the number of instances to add to the restricted instance group of a SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroupName
Specifies the name of the restricted instance group.
- Parameters:
instanceGroupName
- Specifies the name of the restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
Specifies the instance type of the restricted instance group.
- Parameters:
instanceType
- Specifies the instance type of the restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
Specifies the instance type of the restricted instance group.
- Parameters:
instanceType
- Specifies the instance type of the restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRole
Specifies an IAM execution role to be assumed by the restricted instance group.
- Parameters:
executionRole
- Specifies an IAM execution role to be assumed by the restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threadsPerCore
The number you specified to
TreadsPerCore
inCreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.- Parameters:
threadsPerCore
- The number you specified toTreadsPerCore
inCreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceStorageConfigs
ClusterRestrictedInstanceGroupSpecification.Builder instanceStorageConfigs(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.
- Parameters:
instanceStorageConfigs
- Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceStorageConfigs
ClusterRestrictedInstanceGroupSpecification.Builder instanceStorageConfigs(ClusterInstanceStorageConfig... instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.
- Parameters:
instanceStorageConfigs
- Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceStorageConfigs
ClusterRestrictedInstanceGroupSpecification.Builder instanceStorageConfigs(Consumer<ClusterInstanceStorageConfig.Builder>... instanceStorageConfigs) Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster restricted instance group.
This is a convenience method that creates an instance of theClusterInstanceStorageConfig.Builder
avoiding the need to create one manually viaClusterInstanceStorageConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceStorageConfigs(List<ClusterInstanceStorageConfig>)
.- Parameters:
instanceStorageConfigs
- a consumer that will call methods onClusterInstanceStorageConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
onStartDeepHealthChecksWithStrings
ClusterRestrictedInstanceGroupSpecification.Builder onStartDeepHealthChecksWithStrings(Collection<String> onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.
- Parameters:
onStartDeepHealthChecks
- A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStartDeepHealthChecksWithStrings
ClusterRestrictedInstanceGroupSpecification.Builder onStartDeepHealthChecksWithStrings(String... onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.
- Parameters:
onStartDeepHealthChecks
- A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStartDeepHealthChecks
ClusterRestrictedInstanceGroupSpecification.Builder onStartDeepHealthChecks(Collection<DeepHealthCheckType> onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.
- Parameters:
onStartDeepHealthChecks
- A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onStartDeepHealthChecks
ClusterRestrictedInstanceGroupSpecification.Builder onStartDeepHealthChecks(DeepHealthCheckType... onStartDeepHealthChecks) A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.
- Parameters:
onStartDeepHealthChecks
- A flag indicating whether deep health checks should be performed when the cluster restricted instance group is created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trainingPlanArn
The Amazon Resource Name (ARN) of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see
CreateTrainingPlan
.- Parameters:
trainingPlanArn
- The Amazon Resource Name (ARN) of the training plan to filter clusters by. For more information about reserving GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, seeCreateTrainingPlan
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideVpcConfig
Sets the value of the OverrideVpcConfig property for this object.- Parameters:
overrideVpcConfig
- The new value for the OverrideVpcConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideVpcConfig
default ClusterRestrictedInstanceGroupSpecification.Builder overrideVpcConfig(Consumer<VpcConfig.Builder> overrideVpcConfig) Sets the value of the OverrideVpcConfig property for this object. This is a convenience method that creates an instance of theVpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooverrideVpcConfig(VpcConfig)
.- Parameters:
overrideVpcConfig
- a consumer that will call methods onVpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scheduledUpdateConfig
ClusterRestrictedInstanceGroupSpecification.Builder scheduledUpdateConfig(ScheduledUpdateConfig scheduledUpdateConfig) Sets the value of the ScheduledUpdateConfig property for this object.- Parameters:
scheduledUpdateConfig
- The new value for the ScheduledUpdateConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledUpdateConfig
default ClusterRestrictedInstanceGroupSpecification.Builder scheduledUpdateConfig(Consumer<ScheduledUpdateConfig.Builder> scheduledUpdateConfig) Sets the value of the ScheduledUpdateConfig property for this object. This is a convenience method that creates an instance of theScheduledUpdateConfig.Builder
avoiding the need to create one manually viaScheduledUpdateConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscheduledUpdateConfig(ScheduledUpdateConfig)
.- Parameters:
scheduledUpdateConfig
- a consumer that will call methods onScheduledUpdateConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environmentConfig
ClusterRestrictedInstanceGroupSpecification.Builder environmentConfig(EnvironmentConfig environmentConfig) The configuration for the restricted instance groups (RIG) environment.
- Parameters:
environmentConfig
- The configuration for the restricted instance groups (RIG) environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentConfig
default ClusterRestrictedInstanceGroupSpecification.Builder environmentConfig(Consumer<EnvironmentConfig.Builder> environmentConfig) The configuration for the restricted instance groups (RIG) environment.
This is a convenience method that creates an instance of theEnvironmentConfig.Builder
avoiding the need to create one manually viaEnvironmentConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenvironmentConfig(EnvironmentConfig)
.- Parameters:
environmentConfig
- a consumer that will call methods onEnvironmentConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-