@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:46.695Z") @Stability(value=Stable) public interface CommonClusterOptions 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.ec2.*;
import software.amazon.awscdk.services.eks.*;
import software.amazon.awscdk.services.iam.*;
KubernetesVersion kubernetesVersion;
Role role;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
CommonClusterOptions commonClusterOptions = CommonClusterOptions.builder()
.version(kubernetesVersion)
// the properties below are optional
.clusterName("clusterName")
.outputClusterName(false)
.outputConfigCommand(false)
.role(role)
.securityGroup(securityGroup)
.vpc(vpc)
.vpcSubnets(List.of(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CommonClusterOptions.Builder
A builder for
CommonClusterOptions |
static class |
CommonClusterOptions.Jsii$Proxy
An implementation for
CommonClusterOptions |
| Modifier and Type | Method and Description |
|---|---|
static CommonClusterOptions.Builder |
builder() |
default String |
getClusterName()
Name for the cluster.
|
default Boolean |
getOutputClusterName()
Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
default Boolean |
getOutputConfigCommand()
Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
default IRole |
getRole()
Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
default ISecurityGroup |
getSecurityGroup()
Security Group to use for Control Plane ENIs.
|
KubernetesVersion |
getVersion()
The Kubernetes version to run in the cluster.
|
default IVpc |
getVpc()
The VPC in which to create the Cluster.
|
default List<SubnetSelection> |
getVpcSubnets()
Where to place EKS Control Plane ENIs.
|
@Stability(value=Stable) @NotNull KubernetesVersion getVersion()
@Stability(value=Stable) @Nullable default String getClusterName()
Default: - Automatically generated name
@Stability(value=Stable) @Nullable default Boolean getOutputClusterName()
Default: false
@Stability(value=Stable) @Nullable default Boolean getOutputConfigCommand()
This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
@Stability(value=Stable) @Nullable default IRole getRole()
Default: - A role is automatically created for you
@Stability(value=Stable) @Nullable default ISecurityGroup getSecurityGroup()
Default: - A security group is automatically created
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
@Stability(value=Stable) @Nullable default List<SubnetSelection> getVpcSubnets()
If you want to create public load balancers, this must include public subnets.
For example, to only select private subnets, supply the following:
vpcSubnets: [{ subnetType: ec2.SubnetType.PRIVATE_WITH_NAT }]
Default: - All public and private subnets
@Stability(value=Stable) static CommonClusterOptions.Builder builder()
CommonClusterOptions.Builder of CommonClusterOptionsCopyright © 2022. All rights reserved.