Class CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty>
- Enclosing interface:
CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty
@Stability(Stable)
public static final class CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty>
A builder for
CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.gresCustomSettings(List<? extends Object> gresCustomSettings) gresCustomSettings(IResolvable gresCustomSettings) scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) slurmCustomSettings(List<? extends Object> slurmCustomSettings) slurmCustomSettings(IResolvable slurmCustomSettings)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
gresCustomSettings
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder gresCustomSettings(IResolvable gresCustomSettings) - Parameters:
gresCustomSettings- Additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf attribute names to values describing one gres.conf record (for example a GPU topology, MIG, MPS, or custom GRES entry). AWS PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance type.- Returns:
this
-
gresCustomSettings
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder gresCustomSettings(List<? extends Object> gresCustomSettings) - Parameters:
gresCustomSettings- Additional Slurm gres.conf records for the compute node group. Each item is a map of gres.conf attribute names to values describing one gres.conf record (for example a GPU topology, MIG, MPS, or custom GRES entry). AWS PCS adds the NodeName= prefix and merges these records with the GPU record it derives from the instance type.- Returns:
this
-
scaleDownIdleTimeInSeconds
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder scaleDownIdleTimeInSeconds(Number scaleDownIdleTimeInSeconds) Sets the value ofCfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.getScaleDownIdleTimeInSeconds()- Parameters:
scaleDownIdleTimeInSeconds- The time before an idle node is scaled down.- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder slurmCustomSettings(IResolvable slurmCustomSettings) - Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
slurmCustomSettings
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty.Builder slurmCustomSettings(List<? extends Object> slurmCustomSettings) - Parameters:
slurmCustomSettings- Additional Slurm-specific configuration that directly maps to Slurm settings.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty>- Returns:
- a new instance of
CfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-