Interface AutoScalingGroupOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AutoScalingGroupOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:16.720Z") @Stability(Stable) public interface AutoScalingGroupOptions extends software.amazon.jsii.JsiiSerializable
Options for adding an AutoScalingGroup as capacity.

Example:

 Cluster cluster;
 AutoScalingGroup asg;
 cluster.connectAutoScalingGroupCapacity(asg, AutoScalingGroupOptions.builder().build());
 
  • Method Details

    • 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()
      Allows options for node bootstrapping through EC2 user data.

      Default: - default options

    • getMachineImageType

      @Stability(Stable) @Nullable default MachineImageType getMachineImageType()
      Allow options to specify different 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 configured on the auto-scaling group.

      Default: true

    • builder

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