Interface AutoScalingGroupCapacityOptions
- All Superinterfaces:
CommonAutoScalingGroupProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AutoScalingGroupCapacityOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:49.667Z")
@Stability(Experimental)
public interface AutoScalingGroupCapacityOptions
extends software.amazon.jsii.JsiiSerializable, CommonAutoScalingGroupProps
(experimental) Options for adding worker nodes.
Example:
Cluster cluster = Cluster.Builder.create(this, "SelfManagedCluster")
.version(KubernetesVersion.V1_34)
.build();
// Add self-managed Auto Scaling Group
cluster.addAutoScalingGroupCapacity("self-managed-asg", AutoScalingGroupCapacityOptions.builder()
.instanceType(InstanceType.of(InstanceClass.T3, InstanceSize.MEDIUM))
.minCapacity(1)
.maxCapacity(5)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAutoScalingGroupCapacityOptionsstatic final classAn implementation forAutoScalingGroupCapacityOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default Boolean(experimental) Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke/etc/eks/bootstrap.sh) and associate it with the EKS cluster.default BootstrapOptions(experimental) EKS node bootstrapping options.(experimental) Instance type of the instances to start.default MachineImageType(experimental) Machine image type.Methods inherited from interface software.amazon.awscdk.services.autoscaling.CommonAutoScalingGroupProps
getAllowAllOutbound, getAssociatePublicIpAddress, getAutoScalingGroupName, getAzCapacityDistributionStrategy, getBlockDevices, getCapacityRebalance, getCooldown, getDefaultInstanceWarmup, getDesiredCapacity, getGroupMetrics, getHealthCheck, getHealthChecks, getIgnoreUnmodifiedSizeProperties, getInstanceMonitoring, getKeyName, getKeyPair, getMaxCapacity, getMaxInstanceLifetime, getMinCapacity, getNewInstancesProtectedFromScaleIn, getNotifications, getSignals, getSpotPrice, getSsmSessionPermissions, getTerminationPolicies, getTerminationPolicyCustomLambdaFunctionArn, getUpdatePolicy, getVpcSubnetsMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceType
(experimental) Instance type of the instances to start. -
getBootstrapEnabled
(experimental) Configures the EC2 user-data script for instances in this autoscaling group to bootstrap the node (invoke/etc/eks/bootstrap.sh) and associate it with the EKS cluster.If you wish to provide a custom user data script, set this to
falseand manually invokeautoscalingGroup.addUserData().Default: true
-
getBootstrapOptions
(experimental) EKS node bootstrapping options.Default: - none
-
getMachineImageType
(experimental) Machine image type.Default: MachineImageType.AMAZON_LINUX_2
-
builder
-