Interface ComputeConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ComputeConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-23T18:58:18.913Z")
@Stability(Stable)
public interface ComputeConfig
extends software.amazon.jsii.JsiiSerializable
Options for configuring EKS Auto Mode compute settings.
When enabled, EKS will automatically manage compute resources like node groups and Fargate profiles.
Example:
Cluster cluster = Cluster.Builder.create(this, "EksAutoCluster")
.version(KubernetesVersion.V1_34)
.defaultCapacityType(DefaultCapacityType.AUTOMODE)
.compute(ComputeConfig.builder()
.nodePools(List.of("system", "general-purpose"))
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forComputeConfigstatic final classAn implementation forComputeConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeConfig.Builderbuilder()Names of nodePools to include in Auto Mode.default IRoleIAM role for the nodePools.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNodePools
Names of nodePools to include in Auto Mode.You cannot modify the built in system and general-purpose node pools. You can only enable or disable them. Node pool values are case-sensitive and must be
general-purposeand/orsystem.Default: - ['system', 'general-purpose']
- See Also:
-
getNodeRole
IAM role for the nodePools.Default: - generated by the CDK
- See Also:
-
builder
- Returns:
- a
ComputeConfig.BuilderofComputeConfig
-