Interface ComputeNodeGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ComputeNodeGroup.Builder,
,ComputeNodeGroup> SdkBuilder<ComputeNodeGroup.Builder,
,ComputeNodeGroup> SdkPojo
- Enclosing class:
ComputeNodeGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances.The unique Amazon Resource Name (ARN) of the compute node group.The ID of the cluster of the compute node group.The date and time the resource was created.default ComputeNodeGroup.Builder
customLaunchTemplate
(Consumer<CustomLaunchTemplate.Builder> customLaunchTemplate) Sets the value of the CustomLaunchTemplate property for this object.customLaunchTemplate
(CustomLaunchTemplate customLaunchTemplate) Sets the value of the CustomLaunchTemplate property for this object.errorInfo
(Collection<ErrorInfo> errorInfo) The list of errors that occurred during compute node group provisioning.errorInfo
(Consumer<ErrorInfo.Builder>... errorInfo) The list of errors that occurred during compute node group provisioning.The list of errors that occurred during compute node group provisioning.iamInstanceProfileArn
(String iamInstanceProfileArn) The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances.The generated unique ID of the compute node group.instanceConfigs
(Collection<InstanceConfig> instanceConfigs) A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.instanceConfigs
(Consumer<InstanceConfig.Builder>... instanceConfigs) A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.instanceConfigs
(InstanceConfig... instanceConfigs) A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.modifiedAt
(Instant modifiedAt) The date and time the resource was modified.The name that identifies the compute node group.purchaseOption
(String purchaseOption) Specifies how EC2 instances are purchased on your behalf.purchaseOption
(PurchaseOption purchaseOption) Specifies how EC2 instances are purchased on your behalf.default ComputeNodeGroup.Builder
scalingConfiguration
(Consumer<ScalingConfiguration.Builder> scalingConfiguration) Sets the value of the ScalingConfiguration property for this object.scalingConfiguration
(ScalingConfiguration scalingConfiguration) Sets the value of the ScalingConfiguration property for this object.default ComputeNodeGroup.Builder
slurmConfiguration
(Consumer<ComputeNodeGroupSlurmConfiguration.Builder> slurmConfiguration) Sets the value of the SlurmConfiguration property for this object.slurmConfiguration
(ComputeNodeGroupSlurmConfiguration slurmConfiguration) Sets the value of the SlurmConfiguration property for this object.default ComputeNodeGroup.Builder
spotOptions
(Consumer<SpotOptions.Builder> spotOptions) Sets the value of the SpotOptions property for this object.spotOptions
(SpotOptions spotOptions) Sets the value of the SpotOptions property for this object.The provisioning status of the compute node group.status
(ComputeNodeGroupStatus status) The provisioning status of the compute node group.The list of subnet IDs where instances are provisioned by the compute node group.subnetIds
(Collection<String> subnetIds) The list of subnet IDs where instances are provisioned by the compute node group.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
-
name
The name that identifies the compute node group.
- Parameters:
name
- The name that identifies the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The generated unique ID of the compute node group.
- Parameters:
id
- The generated unique ID of the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The unique Amazon Resource Name (ARN) of the compute node group.
- Parameters:
arn
- The unique Amazon Resource Name (ARN) of the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterId
The ID of the cluster of the compute node group.
- Parameters:
clusterId
- The ID of the cluster of the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time the resource was created.
- Parameters:
createdAt
- The date and time the resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modifiedAt
The date and time the resource was modified.
- Parameters:
modifiedAt
- The date and time the resource was modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The provisioning status of the compute node group.
The provisioning status doesn't indicate the overall health of the compute node group.
The resource enters the
SUSPENDING
andSUSPENDED
states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status isSUSPENDED
. For more information, see Frequently asked questions about Slurm versions in PCS in the PCS User Guide.- Parameters:
status
- The provisioning status of the compute node group.The provisioning status doesn't indicate the overall health of the compute node group.
The resource enters the
SUSPENDING
andSUSPENDED
states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status isSUSPENDED
. For more information, see Frequently asked questions about Slurm versions in PCS in the PCS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The provisioning status of the compute node group.
The provisioning status doesn't indicate the overall health of the compute node group.
The resource enters the
SUSPENDING
andSUSPENDED
states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status isSUSPENDED
. For more information, see Frequently asked questions about Slurm versions in PCS in the PCS User Guide.- Parameters:
status
- The provisioning status of the compute node group.The provisioning status doesn't indicate the overall health of the compute node group.
The resource enters the
SUSPENDING
andSUSPENDED
states when the scheduler is beyond end of life and we have suspended the cluster. When in these states, you can't use the cluster. The cluster controller is down and all compute instances are terminated. The resources still count toward your service quotas. You can delete a resource if its status isSUSPENDED
. For more information, see Frequently asked questions about Slurm versions in PCS in the PCS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
amiId
The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.
- Parameters:
amiId
- The ID of the Amazon Machine Image (AMI) that Amazon Web Services PCS uses to launch instances. If not provided, Amazon Web Services PCS uses the AMI ID specified in the custom launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
- Parameters:
subnetIds
- The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetIds
The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.
- Parameters:
subnetIds
- The list of subnet IDs where instances are provisioned by the compute node group. The subnets must be in the same VPC as the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
purchaseOption
Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
- Parameters:
purchaseOption
- Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
purchaseOption
Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.
- Parameters:
purchaseOption
- Specifies how EC2 instances are purchased on your behalf. Amazon Web Services PCS supports On-Demand and Spot instances. For more information, see Instance purchasing options in the Amazon Elastic Compute Cloud User Guide. If you don't provide this option, it defaults to On-Demand.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customLaunchTemplate
Sets the value of the CustomLaunchTemplate property for this object.- Parameters:
customLaunchTemplate
- The new value for the CustomLaunchTemplate property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customLaunchTemplate
default ComputeNodeGroup.Builder customLaunchTemplate(Consumer<CustomLaunchTemplate.Builder> customLaunchTemplate) Sets the value of the CustomLaunchTemplate property for this object. This is a convenience method that creates an instance of theCustomLaunchTemplate.Builder
avoiding the need to create one manually viaCustomLaunchTemplate.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomLaunchTemplate(CustomLaunchTemplate)
.- Parameters:
customLaunchTemplate
- a consumer that will call methods onCustomLaunchTemplate.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
iamInstanceProfileArn
The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have the
pcs:RegisterComputeNodeGroupInstance
permission. The resource identifier of the ARN must start withAWSPCS
or it must have/aws-pcs/
in its path.Examples
-
arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1
-
arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2
- Parameters:
iamInstanceProfileArn
- The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances. The role contained in your instance profile must have thepcs:RegisterComputeNodeGroupInstance
permission. The resource identifier of the ARN must start withAWSPCS
or it must have/aws-pcs/
in its path.Examples
-
arn:aws:iam::111122223333:instance-profile/AWSPCS-example-role-1
-
arn:aws:iam::111122223333:instance-profile/aws-pcs/example-role-2
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
scalingConfiguration
Sets the value of the ScalingConfiguration property for this object.- Parameters:
scalingConfiguration
- The new value for the ScalingConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingConfiguration
default ComputeNodeGroup.Builder scalingConfiguration(Consumer<ScalingConfiguration.Builder> scalingConfiguration) Sets the value of the ScalingConfiguration property for this object. This is a convenience method that creates an instance of theScalingConfiguration.Builder
avoiding the need to create one manually viaScalingConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscalingConfiguration(ScalingConfiguration)
.- Parameters:
scalingConfiguration
- a consumer that will call methods onScalingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceConfigs
A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
- Parameters:
instanceConfigs
- A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConfigs
A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
- Parameters:
instanceConfigs
- A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConfigs
A list of EC2 instance configurations that Amazon Web Services PCS can provision in the compute node group.
This is a convenience method that creates an instance of theInstanceConfig.Builder
avoiding the need to create one manually viaInstanceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceConfigs(List<InstanceConfig>)
.- Parameters:
instanceConfigs
- a consumer that will call methods onInstanceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spotOptions
Sets the value of the SpotOptions property for this object.- Parameters:
spotOptions
- The new value for the SpotOptions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spotOptions
Sets the value of the SpotOptions property for this object. This is a convenience method that creates an instance of theSpotOptions.Builder
avoiding the need to create one manually viaSpotOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tospotOptions(SpotOptions)
.- Parameters:
spotOptions
- a consumer that will call methods onSpotOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
slurmConfiguration
Sets the value of the SlurmConfiguration property for this object.- Parameters:
slurmConfiguration
- The new value for the SlurmConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slurmConfiguration
default ComputeNodeGroup.Builder slurmConfiguration(Consumer<ComputeNodeGroupSlurmConfiguration.Builder> slurmConfiguration) Sets the value of the SlurmConfiguration property for this object. This is a convenience method that creates an instance of theComputeNodeGroupSlurmConfiguration.Builder
avoiding the need to create one manually viaComputeNodeGroupSlurmConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toslurmConfiguration(ComputeNodeGroupSlurmConfiguration)
.- Parameters:
slurmConfiguration
- a consumer that will call methods onComputeNodeGroupSlurmConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
errorInfo
The list of errors that occurred during compute node group provisioning.
- Parameters:
errorInfo
- The list of errors that occurred during compute node group provisioning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInfo
The list of errors that occurred during compute node group provisioning.
- Parameters:
errorInfo
- The list of errors that occurred during compute node group provisioning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorInfo
The list of errors that occurred during compute node group provisioning.
This is a convenience method that creates an instance of theErrorInfo.Builder
avoiding the need to create one manually viaErrorInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrorInfo(List<ErrorInfo>)
.- Parameters:
errorInfo
- a consumer that will call methods onErrorInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-