Interface AutoScalingGroupCapacityOptions

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:46.482Z") @Stability(Stable) public interface AutoScalingGroupCapacityOptions extends software.amazon.jsii.JsiiSerializable, CommonAutoScalingGroupProps
Options for adding worker nodes.

Example:

 Cluster cluster;
 cluster.addAutoScalingGroupCapacity("BottlerocketNodes", AutoScalingGroupCapacityOptions.builder()
         .instanceType(new InstanceType("t3.small"))
         .minCapacity(2)
         .machineImageType(MachineImageType.BOTTLEROCKET)
         .build());
 
  • Method Details

    • getInstanceType

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

      @Stability(Stable) @Nullable default Boolean getBootstrapEnabled()
      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(Stable) @Nullable default BootstrapOptions getBootstrapOptions()
      EKS node bootstrapping options.

      Default: - none

    • getMachineImageType

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

      Default: MachineImageType.AMAZON_LINUX_2

    • getMapRole

      @Stability(Stable) @Nullable default Boolean getMapRole()
      Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.

      This cannot be explicitly set to true if the cluster has kubectl disabled.

      Default: - true if the cluster has kubectl enabled (which is the default).

    • getSpotInterruptHandler

      @Stability(Stable) @Nullable default Boolean getSpotInterruptHandler()
      Installs the AWS spot instance interrupt handler on the cluster if it's not already added.

      Only relevant if spotPrice is used.

      Default: true

    • builder

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