Interface CreateClusterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,SageMakerRequest.Builder,SdkBuilder<CreateClusterRequest.Builder,CreateClusterRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateClusterRequest
@Mutable @NotThreadSafe public static interface CreateClusterRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateClusterRequest.BuilderclusterName(String clusterName)The name for the new SageMaker HyperPod cluster.CreateClusterRequest.BuilderinstanceGroups(Collection<ClusterInstanceGroupSpecification> instanceGroups)The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.BuilderinstanceGroups(Consumer<ClusterInstanceGroupSpecification.Builder>... instanceGroups)The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.BuilderinstanceGroups(ClusterInstanceGroupSpecification... instanceGroups)The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.BuildernodeProvisioningMode(String nodeProvisioningMode)The mode for provisioning nodes in the cluster.CreateClusterRequest.BuildernodeProvisioningMode(ClusterNodeProvisioningMode nodeProvisioningMode)The mode for provisioning nodes in the cluster.CreateClusterRequest.BuildernodeRecovery(String nodeRecovery)The node recovery mode for the SageMaker HyperPod cluster.CreateClusterRequest.BuildernodeRecovery(ClusterNodeRecovery nodeRecovery)The node recovery mode for the SageMaker HyperPod cluster.default CreateClusterRequest.Builderorchestrator(Consumer<ClusterOrchestrator.Builder> orchestrator)The type of orchestrator to use for the SageMaker HyperPod cluster.CreateClusterRequest.Builderorchestrator(ClusterOrchestrator orchestrator)The type of orchestrator to use for the SageMaker HyperPod cluster.CreateClusterRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateClusterRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateClusterRequest.BuilderrestrictedInstanceGroups(Collection<ClusterRestrictedInstanceGroupSpecification> restrictedInstanceGroups)The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.CreateClusterRequest.BuilderrestrictedInstanceGroups(Consumer<ClusterRestrictedInstanceGroupSpecification.Builder>... restrictedInstanceGroups)The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.CreateClusterRequest.BuilderrestrictedInstanceGroups(ClusterRestrictedInstanceGroupSpecification... restrictedInstanceGroups)The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.CreateClusterRequest.Buildertags(Collection<Tag> tags)Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.CreateClusterRequest.Buildertags(Consumer<Tag.Builder>... tags)Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.CreateClusterRequest.Buildertags(Tag... tags)Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.default CreateClusterRequest.BuildervpcConfig(Consumer<VpcConfig.Builder> vpcConfig)Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster.CreateClusterRequest.BuildervpcConfig(VpcConfig vpcConfig)Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
-
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 Detail
-
clusterName
CreateClusterRequest.Builder clusterName(String clusterName)
The name for the new SageMaker HyperPod cluster.
- Parameters:
clusterName- The name for the new SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
CreateClusterRequest.Builder instanceGroups(Collection<ClusterInstanceGroupSpecification> instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.
- Parameters:
instanceGroups- The instance groups to be created in the SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
CreateClusterRequest.Builder instanceGroups(ClusterInstanceGroupSpecification... instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.
- Parameters:
instanceGroups- The instance groups to be created in the SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
CreateClusterRequest.Builder instanceGroups(Consumer<ClusterInstanceGroupSpecification.Builder>... instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.
This is a convenience method that creates an instance of theClusterInstanceGroupSpecification.Builderavoiding the need to create one manually viaClusterInstanceGroupSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instanceGroups(List.) - Parameters:
instanceGroups- a consumer that will call methods onClusterInstanceGroupSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#instanceGroups(java.util.Collection)
-
restrictedInstanceGroups
CreateClusterRequest.Builder restrictedInstanceGroups(Collection<ClusterRestrictedInstanceGroupSpecification> restrictedInstanceGroups)
The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.
- Parameters:
restrictedInstanceGroups- The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictedInstanceGroups
CreateClusterRequest.Builder restrictedInstanceGroups(ClusterRestrictedInstanceGroupSpecification... restrictedInstanceGroups)
The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.
- Parameters:
restrictedInstanceGroups- The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictedInstanceGroups
CreateClusterRequest.Builder restrictedInstanceGroups(Consumer<ClusterRestrictedInstanceGroupSpecification.Builder>... restrictedInstanceGroups)
The specialized instance groups for training models like Amazon Nova to be created in the SageMaker HyperPod cluster.
This is a convenience method that creates an instance of theClusterRestrictedInstanceGroupSpecification.Builderavoiding the need to create one manually viaClusterRestrictedInstanceGroupSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#restrictedInstanceGroups(List.) - Parameters:
restrictedInstanceGroups- a consumer that will call methods onClusterRestrictedInstanceGroupSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#restrictedInstanceGroups(java.util.Collection)
-
vpcConfig
CreateClusterRequest.Builder vpcConfig(VpcConfig vpcConfig)
Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster. You can control access to and from your resources by configuring your VPC. For more information, see Give SageMaker access to resources in your Amazon VPC.
When your Amazon VPC and subnets support IPv6, network communications differ based on the cluster orchestration platform:
-
Slurm-orchestrated clusters automatically configure nodes with dual IPv6 and IPv4 addresses, allowing immediate IPv6 network communications.
-
In Amazon EKS-orchestrated clusters, nodes receive dual-stack addressing, but pods can only use IPv6 when the Amazon EKS cluster is explicitly IPv6-enabled. For information about deploying an IPv6 Amazon EKS cluster, see Amazon EKS IPv6 Cluster Deployment.
Additional resources for IPv6 configuration:
-
For information about adding IPv6 support to your VPC, see to IPv6 Support for VPC.
-
For information about creating a new IPv6-compatible VPC, see Amazon VPC Creation Guide.
-
To configure SageMaker HyperPod with a custom Amazon VPC, see Custom Amazon VPC Setup for SageMaker HyperPod.
- Parameters:
vpcConfig- Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster. You can control access to and from your resources by configuring your VPC. For more information, see Give SageMaker access to resources in your Amazon VPC.When your Amazon VPC and subnets support IPv6, network communications differ based on the cluster orchestration platform:
-
Slurm-orchestrated clusters automatically configure nodes with dual IPv6 and IPv4 addresses, allowing immediate IPv6 network communications.
-
In Amazon EKS-orchestrated clusters, nodes receive dual-stack addressing, but pods can only use IPv6 when the Amazon EKS cluster is explicitly IPv6-enabled. For information about deploying an IPv6 Amazon EKS cluster, see Amazon EKS IPv6 Cluster Deployment.
Additional resources for IPv6 configuration:
-
For information about adding IPv6 support to your VPC, see to IPv6 Support for VPC.
-
For information about creating a new IPv6-compatible VPC, see Amazon VPC Creation Guide.
-
To configure SageMaker HyperPod with a custom Amazon VPC, see Custom Amazon VPC Setup for SageMaker HyperPod.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
vpcConfig
default CreateClusterRequest.Builder vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster. You can control access to and from your resources by configuring your VPC. For more information, see Give SageMaker access to resources in your Amazon VPC.
This is a convenience method that creates an instance of theWhen your Amazon VPC and subnets support IPv6, network communications differ based on the cluster orchestration platform:
-
Slurm-orchestrated clusters automatically configure nodes with dual IPv6 and IPv4 addresses, allowing immediate IPv6 network communications.
-
In Amazon EKS-orchestrated clusters, nodes receive dual-stack addressing, but pods can only use IPv6 when the Amazon EKS cluster is explicitly IPv6-enabled. For information about deploying an IPv6 Amazon EKS cluster, see Amazon EKS IPv6 Cluster Deployment.
Additional resources for IPv6 configuration:
-
For information about adding IPv6 support to your VPC, see to IPv6 Support for VPC.
-
For information about creating a new IPv6-compatible VPC, see Amazon VPC Creation Guide.
-
To configure SageMaker HyperPod with a custom Amazon VPC, see Custom Amazon VPC Setup for SageMaker HyperPod.
VpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
vpcConfig- 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:
vpcConfig(VpcConfig)
-
-
tags
CreateClusterRequest.Builder tags(Collection<Tag> tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.
- Parameters:
tags- Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateClusterRequest.Builder tags(Tag... tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.
- Parameters:
tags- Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateClusterRequest.Builder tags(Consumer<Tag.Builder>... tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
orchestrator
CreateClusterRequest.Builder orchestrator(ClusterOrchestrator orchestrator)
The type of orchestrator to use for the SageMaker HyperPod cluster. Currently, the only supported value is
"eks", which is to use an Amazon Elastic Kubernetes Service cluster as the orchestrator.- Parameters:
orchestrator- The type of orchestrator to use for the SageMaker HyperPod cluster. Currently, the only supported value is"eks", which is to use an Amazon Elastic Kubernetes Service cluster as the orchestrator.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orchestrator
default CreateClusterRequest.Builder orchestrator(Consumer<ClusterOrchestrator.Builder> orchestrator)
The type of orchestrator to use for the SageMaker HyperPod cluster. Currently, the only supported value is
This is a convenience method that creates an instance of the"eks", which is to use an Amazon Elastic Kubernetes Service cluster as the orchestrator.ClusterOrchestrator.Builderavoiding the need to create one manually viaClusterOrchestrator.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toorchestrator(ClusterOrchestrator).- Parameters:
orchestrator- a consumer that will call methods onClusterOrchestrator.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
orchestrator(ClusterOrchestrator)
-
nodeRecovery
CreateClusterRequest.Builder nodeRecovery(String nodeRecovery)
The node recovery mode for the SageMaker HyperPod cluster. When set to
Automatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set toNone, cluster administrators will need to manually manage any faulty cluster instances.- Parameters:
nodeRecovery- The node recovery mode for the SageMaker HyperPod cluster. When set toAutomatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set toNone, cluster administrators will need to manually manage any faulty cluster instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterNodeRecovery,ClusterNodeRecovery
-
nodeRecovery
CreateClusterRequest.Builder nodeRecovery(ClusterNodeRecovery nodeRecovery)
The node recovery mode for the SageMaker HyperPod cluster. When set to
Automatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set toNone, cluster administrators will need to manually manage any faulty cluster instances.- Parameters:
nodeRecovery- The node recovery mode for the SageMaker HyperPod cluster. When set toAutomatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set toNone, cluster administrators will need to manually manage any faulty cluster instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterNodeRecovery,ClusterNodeRecovery
-
nodeProvisioningMode
CreateClusterRequest.Builder nodeProvisioningMode(String nodeProvisioningMode)
The mode for provisioning nodes in the cluster. You can specify the following modes:
-
Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain
InServicewhile scaling. This mode is only supported for EKS orchestrated clusters.
- Parameters:
nodeProvisioningMode- The mode for provisioning nodes in the cluster. You can specify the following modes:-
Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain
InServicewhile scaling. This mode is only supported for EKS orchestrated clusters.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterNodeProvisioningMode,ClusterNodeProvisioningMode
-
-
nodeProvisioningMode
CreateClusterRequest.Builder nodeProvisioningMode(ClusterNodeProvisioningMode nodeProvisioningMode)
The mode for provisioning nodes in the cluster. You can specify the following modes:
-
Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain
InServicewhile scaling. This mode is only supported for EKS orchestrated clusters.
- Parameters:
nodeProvisioningMode- The mode for provisioning nodes in the cluster. You can specify the following modes:-
Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain
InServicewhile scaling. This mode is only supported for EKS orchestrated clusters.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ClusterNodeProvisioningMode,ClusterNodeProvisioningMode
-
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-