@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:06.211Z") @Stability(value=Experimental) public interface AutoScalingGroupOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.legacy.*;
AutoScalingGroupOptions autoScalingGroupOptions = AutoScalingGroupOptions.builder()
.bootstrapEnabled(false)
.bootstrapOptions(BootstrapOptions.builder()
.additionalArgs("additionalArgs")
.awsApiRetryAttempts(123)
.dockerConfigJson("dockerConfigJson")
.enableDockerBridge(false)
.kubeletExtraArgs("kubeletExtraArgs")
.useMaxPods(false)
.build())
.mapRole(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AutoScalingGroupOptions.Builder
A builder for
AutoScalingGroupOptions |
static class |
AutoScalingGroupOptions.Jsii$Proxy
An implementation for
AutoScalingGroupOptions |
| Modifier and Type | Method and Description |
|---|---|
static AutoScalingGroupOptions.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) Allows options for node bootstrapping through EC2 user data.
|
default Boolean |
getMapRole()
(experimental) Will automatically update the aws-auth ConfigMap to map the IAM instance role to RBAC.
|
@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()
@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 AutoScalingGroupOptions.Builder builder()
AutoScalingGroupOptions.Builder of AutoScalingGroupOptionsCopyright © 2022. All rights reserved.