@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.891Z") @Stability(value=Stable) public interface AutoScalingGroupCapacityOptions extends software.amazon.jsii.JsiiSerializable, CommonAutoScalingGroupProps
Example:
Cluster cluster;
cluster.addAutoScalingGroupCapacity("BottlerocketNodes", AutoScalingGroupCapacityOptions.builder()
.instanceType(new InstanceType("t3.small"))
.minCapacity(2)
.machineImageType(MachineImageType.BOTTLEROCKET)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
AutoScalingGroupCapacityOptions.Builder
A builder for
AutoScalingGroupCapacityOptions |
static class |
AutoScalingGroupCapacityOptions.Jsii$Proxy
An implementation for
AutoScalingGroupCapacityOptions |
| Modifier and Type | Method and Description |
|---|---|
static AutoScalingGroupCapacityOptions.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()
EKS node bootstrapping options.
|
InstanceType |
getInstanceType()
Instance type of the instances to start.
|
default MachineImageType |
getMachineImageType()
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.
|
getAllowAllOutbound, getAssociatePublicIpAddress, getAutoScalingGroupName, getBlockDevices, getCooldown, getDesiredCapacity, getGroupMetrics, getHealthCheck, getIgnoreUnmodifiedSizeProperties, getInstanceMonitoring, getKeyName, getMaxCapacity, getMaxInstanceLifetime, getMinCapacity, getNewInstancesProtectedFromScaleIn, getNotifications, getSignals, getSpotPrice, getTerminationPolicies, getUpdatePolicy, getVpcSubnets@Stability(value=Stable) @NotNull InstanceType getInstanceType()
@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: - none
@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 used.
Default: true
@Stability(value=Stable) static AutoScalingGroupCapacityOptions.Builder builder()
builder in interface CommonAutoScalingGroupPropsAutoScalingGroupCapacityOptions.Builder of AutoScalingGroupCapacityOptionsCopyright © 2022. All rights reserved.