@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.215Z") @Stability(value=Experimental) public interface CapacityOptions extends software.amazon.jsii.JsiiSerializable, CommonAutoScalingGroupProps
Example:
Cluster cluster;
cluster.addCapacity("frontend-nodes", CapacityOptions.builder()
.instanceType(new InstanceType("t2.medium"))
.desiredCapacity(3)
.vpcSubnets(SubnetSelection.builder().subnetType(SubnetType.PUBLIC).build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
CapacityOptions.Builder
A builder for
CapacityOptions |
static class |
CapacityOptions.Jsii$Proxy
An implementation for
CapacityOptions |
| Modifier and Type | Method and Description |
|---|---|
static CapacityOptions.Builder |
builder() |
default Boolean |
getBootstrapEnabled()
(experimental) 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()
(experimental) EKS node bootstrapping options.
|
InstanceType |
getInstanceType()
(experimental) Instance type of the instances to start.
|
default Boolean |
getMapRole()
(experimental) Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
|
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@Stability(value=Experimental) @NotNull InstanceType getInstanceType()
@Stability(value=Experimental) @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=Experimental) @Nullable default BootstrapOptions getBootstrapOptions()
Default: - none
@Stability(value=Experimental) @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=Experimental) static CapacityOptions.Builder builder()
builder in interface CommonAutoScalingGroupPropsCapacityOptions.Builder of CapacityOptionsCopyright © 2022. All rights reserved.