@Stability(value=Stable) public static final class CommonClusterOptions.Builder extends Object implements software.amazon.jsii.Builder<CommonClusterOptions>
CommonClusterOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CommonClusterOptions.Builder version(KubernetesVersion version)
CommonClusterOptions.getVersion()version - The Kubernetes version to run in the cluster. This parameter is required.this@Stability(value=Stable) public CommonClusterOptions.Builder clusterName(String clusterName)
CommonClusterOptions.getClusterName()clusterName - Name for the cluster.this@Stability(value=Stable) public CommonClusterOptions.Builder outputClusterName(Boolean outputClusterName)
CommonClusterOptions.getOutputClusterName()outputClusterName - Determines whether a CloudFormation output with the name of the cluster will be synthesized.this@Stability(value=Stable) public CommonClusterOptions.Builder outputConfigCommand(Boolean outputConfigCommand)
CommonClusterOptions.getOutputConfigCommand()outputConfigCommand - Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
This command will include
the cluster name and, if applicable, the ARN of the masters IAM role.this@Stability(value=Stable) public CommonClusterOptions.Builder role(IRole role)
CommonClusterOptions.getRole()role - Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.this@Stability(value=Stable) public CommonClusterOptions.Builder securityGroup(ISecurityGroup securityGroup)
CommonClusterOptions.getSecurityGroup()securityGroup - Security Group to use for Control Plane ENIs.this@Stability(value=Stable) public CommonClusterOptions.Builder vpc(IVpc vpc)
CommonClusterOptions.getVpc()vpc - The VPC in which to create the Cluster.this@Stability(value=Stable) public CommonClusterOptions.Builder vpcSubnets(List<? extends SubnetSelection> vpcSubnets)
CommonClusterOptions.getVpcSubnets()vpcSubnets - Where to place EKS Control Plane ENIs.
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 }]
this@Stability(value=Stable) public CommonClusterOptions build()
build in interface software.amazon.jsii.Builder<CommonClusterOptions>CommonClusterOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.