@Stability(value=Stable) public static final class AutoScalingGroupOptions.Builder extends Object implements software.amazon.jsii.Builder<AutoScalingGroupOptions>
AutoScalingGroupOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AutoScalingGroupOptions.Builder |
bootstrapEnabled(Boolean bootstrapEnabled)
Sets the value of
AutoScalingGroupOptions.getBootstrapEnabled() |
AutoScalingGroupOptions.Builder |
bootstrapOptions(BootstrapOptions bootstrapOptions)
Sets the value of
AutoScalingGroupOptions.getBootstrapOptions() |
AutoScalingGroupOptions |
build()
Builds the configured instance.
|
AutoScalingGroupOptions.Builder |
machineImageType(MachineImageType machineImageType)
Sets the value of
AutoScalingGroupOptions.getMachineImageType() |
AutoScalingGroupOptions.Builder |
mapRole(Boolean mapRole)
Sets the value of
AutoScalingGroupOptions.getMapRole() |
AutoScalingGroupOptions.Builder |
spotInterruptHandler(Boolean spotInterruptHandler)
Sets the value of
AutoScalingGroupOptions.getSpotInterruptHandler() |
@Stability(value=Stable) public AutoScalingGroupOptions.Builder bootstrapEnabled(Boolean bootstrapEnabled)
AutoScalingGroupOptions.getBootstrapEnabled()bootstrapEnabled - 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 false and
manually invoke autoscalingGroup.addUserData().this@Stability(value=Stable) public AutoScalingGroupOptions.Builder bootstrapOptions(BootstrapOptions bootstrapOptions)
AutoScalingGroupOptions.getBootstrapOptions()bootstrapOptions - Allows options for node bootstrapping through EC2 user data.this@Stability(value=Stable) public AutoScalingGroupOptions.Builder machineImageType(MachineImageType machineImageType)
AutoScalingGroupOptions.getMachineImageType()machineImageType - Allow options to specify different machine image type.this@Stability(value=Stable) public AutoScalingGroupOptions.Builder mapRole(Boolean mapRole)
AutoScalingGroupOptions.getMapRole()mapRole - Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
This cannot be explicitly set to true if the cluster has kubectl disabled.this@Stability(value=Stable) public AutoScalingGroupOptions.Builder spotInterruptHandler(Boolean spotInterruptHandler)
AutoScalingGroupOptions.getSpotInterruptHandler()spotInterruptHandler - Installs the AWS spot instance interrupt handler on the cluster if it's not already added.
Only relevant if spotPrice is configured on the auto-scaling group.this@Stability(value=Stable) public AutoScalingGroupOptions build()
build in interface software.amazon.jsii.Builder<AutoScalingGroupOptions>AutoScalingGroupOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.