@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:28:00.834Z") public interface AutoScalingGroupCapacityOptions extends 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 java.lang.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 java.lang.Boolean |
getMapRole()
Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
|
default java.lang.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, getNotificationsTopic, getReplacingUpdateMinSuccessfulInstancesPercent, getResourceSignalCount, getResourceSignalTimeout, getRollingUpdateConfiguration, getSignals, getSpotPrice, getTerminationPolicies, getUpdatePolicy, getUpdateType, getVpcSubnets
InstanceType getInstanceType()
default java.lang.Boolean getBootstrapEnabled()
If you wish to provide a custom user data script, set this to false
and
manually invoke autoscalingGroup.addUserData()
.
Default: true
default BootstrapOptions getBootstrapOptions()
Default: - none
default MachineImageType getMachineImageType()
Default: MachineImageType.AMAZON_LINUX_2
default java.lang.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).
default java.lang.Boolean getSpotInterruptHandler()
Only relevant if spotPrice
is used.
Default: true
static AutoScalingGroupCapacityOptions.Builder builder()
builder
in interface CommonAutoScalingGroupProps
AutoScalingGroupCapacityOptions.Builder
of AutoScalingGroupCapacityOptions