Class ClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterProps>
- Enclosing interface:
- ClusterProps
ClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Deprecated.clusterName(String clusterName) Deprecated.defaultCapacity(Number defaultCapacity) Deprecated.defaultCapacityInstance(InstanceType defaultCapacityInstance) Deprecated.kubectlEnabled(Boolean kubectlEnabled) Deprecated.mastersRole(IRole mastersRole) Deprecated.outputClusterName(Boolean outputClusterName) Deprecated.outputConfigCommand(Boolean outputConfigCommand) Deprecated.outputMastersRoleArn(Boolean outputMastersRoleArn) Deprecated.Deprecated.securityGroup(ISecurityGroup securityGroup) Deprecated.Deprecated.Deprecated.vpcSubnets(List<? extends SubnetSelection> vpcSubnets) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
clusterName
Deprecated.Sets the value ofClusterProps.getClusterName()- Parameters:
clusterName- Name for the cluster.- Returns:
this
-
defaultCapacity
@Stability(Deprecated) @Deprecated public ClusterProps.Builder defaultCapacity(Number defaultCapacity) Deprecated.Sets the value ofClusterProps.getDefaultCapacity()- Parameters:
defaultCapacity- Number of instances to allocate as an initial capacity for this cluster. Instance type can be configured throughdefaultCapacityInstanceType, which defaults tom5.large.Use
cluster.addCapacityto add additional customized capacity. Set this to0is you wish to avoid the initial capacity allocation.- Returns:
this
-
defaultCapacityInstance
@Stability(Deprecated) @Deprecated public ClusterProps.Builder defaultCapacityInstance(InstanceType defaultCapacityInstance) Deprecated.Sets the value ofClusterProps.getDefaultCapacityInstance()- Parameters:
defaultCapacityInstance- The instance type to use for the default capacity. This will only be taken into account ifdefaultCapacityis > 0.- Returns:
this
-
kubectlEnabled
@Stability(Deprecated) @Deprecated public ClusterProps.Builder kubectlEnabled(Boolean kubectlEnabled) Deprecated.Sets the value ofClusterProps.getKubectlEnabled()- Parameters:
kubectlEnabled- Allows definingkubectrl-related resources on this cluster. If this is disabled, it will not be possible to use the following capabilities:addResourceaddRoleMappingaddUserMappingaddMastersRoleandprops.mastersRole
If this is disabled, the cluster can only be managed by issuing
kubectlcommands from a session that uses the IAM role/user that created the account.NOTE: changing this value will destoy the cluster. This is because a managable cluster must be created using an AWS CloudFormation custom resource which executes with an IAM role owned by the CDK app.
- Returns:
this
-
mastersRole
Deprecated.Sets the value ofClusterProps.getMastersRole()- Parameters:
mastersRole- An IAM role that will be added to thesystem:mastersKubernetes RBAC group.- Returns:
this
-
outputClusterName
@Stability(Deprecated) @Deprecated public ClusterProps.Builder outputClusterName(Boolean outputClusterName) Deprecated.Sets the value ofClusterProps.getOutputClusterName()- Parameters:
outputClusterName- Determines whether a CloudFormation output with the name of the cluster will be synthesized.- Returns:
this
-
outputConfigCommand
@Stability(Deprecated) @Deprecated public ClusterProps.Builder outputConfigCommand(Boolean outputConfigCommand) Deprecated.Sets the value ofClusterProps.getOutputConfigCommand()- Parameters:
outputConfigCommand- Determines whether a CloudFormation output with theaws eks update-kubeconfigcommand will be synthesized. This command will include the cluster name and, if applicable, the ARN of the masters IAM role.- Returns:
this
-
outputMastersRoleArn
@Stability(Deprecated) @Deprecated public ClusterProps.Builder outputMastersRoleArn(Boolean outputMastersRoleArn) Deprecated.Sets the value ofClusterProps.getOutputMastersRoleArn()- Parameters:
outputMastersRoleArn- Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (ifmastersRoleis specified).- Returns:
this
-
role
Deprecated.Sets the value ofClusterProps.getRole()- Parameters:
role- Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.- Returns:
this
-
securityGroup
@Stability(Deprecated) @Deprecated public ClusterProps.Builder securityGroup(ISecurityGroup securityGroup) Deprecated.Sets the value ofClusterProps.getSecurityGroup()- Parameters:
securityGroup- Security Group to use for Control Plane ENIs.- Returns:
this
-
version
Deprecated.Sets the value ofClusterProps.getVersion()- Parameters:
version- The Kubernetes version to run in the cluster.- Returns:
this
-
vpc
Deprecated.Sets the value ofClusterProps.getVpc()- Parameters:
vpc- The VPC in which to create the Cluster.- Returns:
this
-
vpcSubnets
@Stability(Deprecated) @Deprecated public ClusterProps.Builder vpcSubnets(List<? extends SubnetSelection> vpcSubnets) Deprecated.Sets the value ofClusterProps.getVpcSubnets()- Parameters:
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:
Map<String, SubnetType>[] vpcSubnets = List.of(Map.of("subnetType", SubnetType.PRIVATE_WITH_NAT));- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterProps>- Returns:
- a new instance of
ClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-