Interface CreateClusterRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateClusterRequest.Builder,CreateClusterRequest>
,SageMakerRequest.Builder
,SdkBuilder<CreateClusterRequest.Builder,CreateClusterRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateClusterRequest
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.Builder
clusterName(String clusterName)
The name for the new SageMaker HyperPod cluster.CreateClusterRequest.Builder
instanceGroups(Collection<ClusterInstanceGroupSpecification> instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.Builder
instanceGroups(Consumer<ClusterInstanceGroupSpecification.Builder>... instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.Builder
instanceGroups(ClusterInstanceGroupSpecification... instanceGroups)
The instance groups to be created in the SageMaker HyperPod cluster.CreateClusterRequest.Builder
nodeRecovery(String nodeRecovery)
The node recovery mode for the SageMaker HyperPod cluster.CreateClusterRequest.Builder
nodeRecovery(ClusterNodeRecovery nodeRecovery)
The node recovery mode for the SageMaker HyperPod cluster.default CreateClusterRequest.Builder
orchestrator(Consumer<ClusterOrchestrator.Builder> orchestrator)
The type of orchestrator to use for the SageMaker HyperPod cluster.CreateClusterRequest.Builder
orchestrator(ClusterOrchestrator orchestrator)
The type of orchestrator to use for the SageMaker HyperPod cluster.CreateClusterRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateClusterRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateClusterRequest.Builder
tags(Collection<Tag> tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.CreateClusterRequest.Builder
tags(Consumer<Tag.Builder>... tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.CreateClusterRequest.Builder
tags(Tag... tags)
Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource.default CreateClusterRequest.Builder
vpcConfig(Consumer<VpcConfig.Builder> vpcConfig)
Specifies the Amazon Virtual Private Cloud (VPC) that is associated with the Amazon SageMaker HyperPod cluster.CreateClusterRequest.Builder
vpcConfig(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.Builder
avoiding the need to create one manually viaClusterInstanceGroupSpecification.builder()
.When the
Consumer
completes,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
)
-
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.
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.
VpcConfig.Builder
avoiding the need to create one manually viaVpcConfig.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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 (EKS) 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 (EKS) 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 (EKS) cluster as the orchestrator.ClusterOrchestrator.Builder
avoiding the need to create one manually viaClusterOrchestrator.builder()
.When the
Consumer
completes,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
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateClusterRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-