Interface AutoScalingGroupCapacityOptions

All Superinterfaces:
CommonAutoScalingGroupProps, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AutoScalingGroupCapacityOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.110.0 (build 336b265)", date="2025-04-24T21:16:02.755Z") @Stability(Experimental) public interface AutoScalingGroupCapacityOptions extends software.amazon.jsii.JsiiSerializable, CommonAutoScalingGroupProps
(experimental) Options for adding worker nodes.

Example:

 Vpc vpc;
 Cluster cluster;
 cluster.addAutoScalingGroupCapacity("nodes", AutoScalingGroupCapacityOptions.builder()
         .vpcSubnets(SubnetSelection.builder().subnets(vpc.getPrivateSubnets()).build())
         .instanceType(new InstanceType("t2.medium"))
         .build());
 
  • Method Details

    • getInstanceType

      @Stability(Experimental) @NotNull InstanceType getInstanceType()
      (experimental) Instance type of the instances to start.
    • getBootstrapEnabled

      @Stability(Experimental) @Nullable default Boolean 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 false and manually invoke autoscalingGroup.addUserData().

      Default: true

    • getBootstrapOptions

      @Stability(Experimental) @Nullable default BootstrapOptions getBootstrapOptions()
      (experimental) EKS node bootstrapping options.

      Default: - none

    • getMachineImageType

      @Stability(Experimental) @Nullable default MachineImageType getMachineImageType()
      (experimental) Machine image type.

      Default: MachineImageType.AMAZON_LINUX_2

    • builder

      @Stability(Experimental) static AutoScalingGroupCapacityOptions.Builder builder()
      Returns:
      a AutoScalingGroupCapacityOptions.Builder of AutoScalingGroupCapacityOptions