public static final class AutoScalingGroupOptions.Builder
extends java.lang.Object
AutoScalingGroupOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AutoScalingGroupOptions.Builder |
bootstrapEnabled(java.lang.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(java.lang.Boolean mapRole)
Sets the value of
AutoScalingGroupOptions.getMapRole() |
AutoScalingGroupOptions.Builder |
spotInterruptHandler(java.lang.Boolean spotInterruptHandler)
Sets the value of
AutoScalingGroupOptions.getSpotInterruptHandler() |
public AutoScalingGroupOptions.Builder bootstrapEnabled(java.lang.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
public AutoScalingGroupOptions.Builder bootstrapOptions(BootstrapOptions bootstrapOptions)
AutoScalingGroupOptions.getBootstrapOptions()
bootstrapOptions
- Allows options for node bootstrapping through EC2 user data.this
public AutoScalingGroupOptions.Builder machineImageType(MachineImageType machineImageType)
AutoScalingGroupOptions.getMachineImageType()
machineImageType
- Allow options to specify different machine image type.this
public AutoScalingGroupOptions.Builder mapRole(java.lang.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
public AutoScalingGroupOptions.Builder spotInterruptHandler(java.lang.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
public AutoScalingGroupOptions build()
AutoScalingGroupOptions
java.lang.NullPointerException
- if any required attribute was not provided