Interface AutoScalingGroupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AutoScalingGroupOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.484Z")
@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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAutoScalingGroupOptionsstatic final classAn implementation forAutoScalingGroupOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanConfigures 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 BootstrapOptionsAllows options for node bootstrapping through EC2 user data.default MachineImageTypeAllow options to specify different machine image type.default BooleanWill automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.default BooleanInstalls the AWS spot instance interrupt handler on the cluster if it's not already added.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
falseand manually invokeautoscalingGroup.addUserData().Default: true
-
getBootstrapOptions
Allows options for node bootstrapping through EC2 user data.Default: - default options
-
getMachineImageType
Allow options to specify different machine image type.Default: MachineImageType.AMAZON_LINUX_2
-
getMapRole
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.This cannot be explicitly set to
trueif the cluster has kubectl disabled.Default: - true if the cluster has kubectl enabled (which is the default).
-
getSpotInterruptHandler
Installs the AWS spot instance interrupt handler on the cluster if it's not already added.Only relevant if
spotPriceis configured on the auto-scaling group.Default: true
-
builder
- Returns:
- a
AutoScalingGroupOptions.BuilderofAutoScalingGroupOptions
-