@Stability(value=Experimental) public static final class LegacyCluster.Builder extends Object implements software.amazon.jsii.Builder<LegacyCluster>
LegacyCluster.| Modifier and Type | Method and Description |
|---|---|
LegacyCluster |
build() |
LegacyCluster.Builder |
clusterName(String clusterName)
(experimental) Name for the cluster.
|
static LegacyCluster.Builder |
create(software.constructs.Construct scope,
String id) |
LegacyCluster.Builder |
defaultCapacity(Number defaultCapacity)
(experimental) Number of instances to allocate as an initial capacity for this cluster.
|
LegacyCluster.Builder |
defaultCapacityInstance(InstanceType defaultCapacityInstance)
(experimental) The instance type to use for the default capacity.
|
LegacyCluster.Builder |
defaultCapacityType(DefaultCapacityType defaultCapacityType)
(experimental) The default capacity type for the cluster.
|
LegacyCluster.Builder |
outputClusterName(Boolean outputClusterName)
(experimental) Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
LegacyCluster.Builder |
outputConfigCommand(Boolean outputConfigCommand)
(experimental) Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
LegacyCluster.Builder |
role(IRole role)
(experimental) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
LegacyCluster.Builder |
secretsEncryptionKey(IKey secretsEncryptionKey)
(experimental) KMS secret for envelope encryption for Kubernetes secrets.
|
LegacyCluster.Builder |
securityGroup(ISecurityGroup securityGroup)
(experimental) Security Group to use for Control Plane ENIs.
|
LegacyCluster.Builder |
version(KubernetesVersion version)
(experimental) The Kubernetes version to run in the cluster.
|
LegacyCluster.Builder |
vpc(IVpc vpc)
(experimental) The VPC in which to create the Cluster.
|
LegacyCluster.Builder |
vpcSubnets(List<? extends SubnetSelection> vpcSubnets)
(experimental) Where to place EKS Control Plane ENIs.
|
@Stability(value=Experimental) public static LegacyCluster.Builder create(software.constructs.Construct scope, String id)
scope - a Construct, most likely a cdk.Stack created. This parameter is required.id - This parameter is required.LegacyCluster.Builder.@Stability(value=Experimental) public LegacyCluster.Builder version(KubernetesVersion version)
version - The Kubernetes version to run in the cluster. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder clusterName(String clusterName)
Default: - Automatically generated name
clusterName - Name for the cluster. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder outputClusterName(Boolean outputClusterName)
Default: false
outputClusterName - Determines whether a CloudFormation output with the name of the cluster will be synthesized. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder outputConfigCommand(Boolean outputConfigCommand)
This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
outputConfigCommand - Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder role(IRole role)
Default: - A role is automatically created for you
role - Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder securityGroup(ISecurityGroup securityGroup)
Default: - A security group is automatically created
securityGroup - Security Group to use for Control Plane ENIs. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder vpc(IVpc vpc)
Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
vpc - The VPC in which to create the Cluster. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder vpcSubnets(List<? extends SubnetSelection> vpcSubnets)
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 }
]
Default: - All public and private subnets
vpcSubnets - Where to place EKS Control Plane ENIs. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder defaultCapacity(Number defaultCapacity)
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.
Default: 2
defaultCapacity - Number of instances to allocate as an initial capacity for this cluster. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder defaultCapacityInstance(InstanceType defaultCapacityInstance)
This will only be taken
into account if defaultCapacity is > 0.
Default: m5.large
defaultCapacityInstance - The instance type to use for the default capacity. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder defaultCapacityType(DefaultCapacityType defaultCapacityType)
Default: NODEGROUP
defaultCapacityType - The default capacity type for the cluster. This parameter is required.this@Stability(value=Experimental) public LegacyCluster.Builder secretsEncryptionKey(IKey secretsEncryptionKey)
Default: - By default, Kubernetes stores all secret object data within etcd and all etcd volumes used by Amazon EKS are encrypted at the disk-level using AWS-Managed encryption keys.
secretsEncryptionKey - KMS secret for envelope encryption for Kubernetes secrets. This parameter is required.this@Stability(value=Experimental) public LegacyCluster build()
build in interface software.amazon.jsii.Builder<LegacyCluster>Copyright © 2020. All rights reserved.