@Stability(value=Experimental) public static final class LegacyClusterProps.Builder extends Object implements software.amazon.jsii.Builder<LegacyClusterProps>
LegacyClusterProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public LegacyClusterProps.Builder defaultCapacity(Number defaultCapacity)
LegacyClusterProps.getDefaultCapacity()defaultCapacity - Number of instances to allocate as an initial capacity for this cluster.
Instance type can be configured through defaultCapacityInstanceType,
which defaults to m5.large.
Use cluster.addCapacity to add additional customized capacity. Set this
to 0 is you wish to avoid the initial capacity allocation.
this@Stability(value=Experimental) public LegacyClusterProps.Builder defaultCapacityInstance(InstanceType defaultCapacityInstance)
LegacyClusterProps.getDefaultCapacityInstance()defaultCapacityInstance - The instance type to use for the default capacity.
This will only be taken
into account if defaultCapacity is > 0.this@Stability(value=Experimental) public LegacyClusterProps.Builder defaultCapacityType(DefaultCapacityType defaultCapacityType)
LegacyClusterProps.getDefaultCapacityType()defaultCapacityType - The default capacity type for the cluster.this@Stability(value=Experimental) public LegacyClusterProps.Builder secretsEncryptionKey(IKey secretsEncryptionKey)
LegacyClusterProps.getSecretsEncryptionKey()secretsEncryptionKey - KMS secret for envelope encryption for Kubernetes secrets.this@Stability(value=Experimental) public LegacyClusterProps.Builder version(KubernetesVersion version)
CommonClusterOptions.getVersion()version - The Kubernetes version to run in the cluster. This parameter is required.this@Stability(value=Experimental) public LegacyClusterProps.Builder clusterName(String clusterName)
CommonClusterOptions.getClusterName()clusterName - Name for the cluster.this@Stability(value=Experimental) public LegacyClusterProps.Builder outputClusterName(Boolean outputClusterName)
CommonClusterOptions.getOutputClusterName()outputClusterName - Determines whether a CloudFormation output with the name of the cluster will be synthesized.this@Stability(value=Experimental) public LegacyClusterProps.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=Experimental) public LegacyClusterProps.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=Experimental) public LegacyClusterProps.Builder securityGroup(ISecurityGroup securityGroup)
CommonClusterOptions.getSecurityGroup()securityGroup - Security Group to use for Control Plane ENIs.this@Stability(value=Experimental) public LegacyClusterProps.Builder vpc(IVpc vpc)
CommonClusterOptions.getVpc()vpc - The VPC in which to create the Cluster.this@Stability(value=Experimental) public LegacyClusterProps.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:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
vpcSubnets: [
{ subnetType: ec2.SubnetType.Private }
]
this@Stability(value=Experimental) public LegacyClusterProps build()
build in interface software.amazon.jsii.Builder<LegacyClusterProps>LegacyClusterPropsNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.