Interface CapacityOptions

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

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

Example:

 Cluster cluster;
 cluster.addCapacity("frontend-nodes", CapacityOptions.builder()
         .instanceType(new InstanceType("t2.medium"))
         .desiredCapacity(3)
         .vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())
         .build());
 
  • Method Details

    • getInstanceType

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

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

      Default: - none

    • getMapRole

      @Stability(Deprecated) @Deprecated @Nullable default Boolean getMapRole()
      Deprecated.
      (deprecated) 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).

    • builder

      @Stability(Deprecated) @Deprecated static CapacityOptions.Builder builder()
      Deprecated.
      Returns:
      a CapacityOptions.Builder of CapacityOptions