@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-19T23:09:32.964Z") @Stability(value=Stable) public interface AutoScalingGroupOptions extends software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster; AutoScalingGroup asg; cluster.connectAutoScalingGroupCapacity(asg, AutoScalingGroupOptions.builder().build());
Modifier and Type | Interface and Description |
---|---|
static class |
AutoScalingGroupOptions.Builder
A builder for
AutoScalingGroupOptions |
static class |
AutoScalingGroupOptions.Jsii$Proxy
An implementation for
AutoScalingGroupOptions |
Modifier and Type | Method and Description |
---|---|
static AutoScalingGroupOptions.Builder |
builder() |
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.
|
default BootstrapOptions |
getBootstrapOptions()
Allows options for node bootstrapping through EC2 user data.
|
default MachineImageType |
getMachineImageType()
Allow options to specify different machine image type.
|
default Boolean |
getMapRole()
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
|
default Boolean |
getSpotInterruptHandler()
Installs the AWS spot instance interrupt handler on the cluster if it's not already added.
|
@Stability(value=Stable) @Nullable default Boolean getBootstrapEnabled()
If you wish to provide a custom user data script, set this to false
and
manually invoke autoscalingGroup.addUserData()
.
Default: true
@Stability(value=Stable) @Nullable default BootstrapOptions getBootstrapOptions()
Default: - default options
@Stability(value=Stable) @Nullable default MachineImageType getMachineImageType()
Default: MachineImageType.AMAZON_LINUX_2
@Stability(value=Stable) @Nullable default Boolean getMapRole()
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).
@Stability(value=Stable) @Nullable default Boolean getSpotInterruptHandler()
Only relevant if spotPrice
is configured on the auto-scaling group.
Default: true
@Stability(value=Stable) static AutoScalingGroupOptions.Builder builder()
AutoScalingGroupOptions.Builder
of AutoScalingGroupOptions
Copyright © 2023. All rights reserved.