@Deprecated public static final class ClusterProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterProps
ClusterProps
ClusterProps.Builder, ClusterProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Deprecated.
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson()
Deprecated.
|
boolean |
equals(java.lang.Object o)
Deprecated.
|
java.lang.String |
getClusterName()
Deprecated.
(deprecated) Name for the cluster.
|
java.lang.Number |
getDefaultCapacity()
Deprecated.
(deprecated) Number of instances to allocate as an initial capacity for this cluster.
|
InstanceType |
getDefaultCapacityInstance()
Deprecated.
(deprecated) The instance type to use for the default capacity.
|
java.lang.Boolean |
getKubectlEnabled()
Deprecated.
(deprecated) Allows defining `kubectrl`-related resources on this cluster.
|
IRole |
getMastersRole()
Deprecated.
(deprecated) An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
java.lang.Boolean |
getOutputClusterName()
Deprecated.
(deprecated) Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
java.lang.Boolean |
getOutputConfigCommand()
Deprecated.
(deprecated) Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
java.lang.Boolean |
getOutputMastersRoleArn()
Deprecated.
(deprecated) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
IRole |
getRole()
Deprecated.
(deprecated) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
ISecurityGroup |
getSecurityGroup()
Deprecated.
(deprecated) Security Group to use for Control Plane ENIs.
|
java.lang.String |
getVersion()
Deprecated.
(deprecated) The Kubernetes version to run in the cluster.
|
IVpc |
getVpc()
Deprecated.
(deprecated) The VPC in which to create the Cluster.
|
java.util.List<SubnetSelection> |
getVpcSubnets()
Deprecated.
(deprecated) Where to place EKS Control Plane ENIs.
|
int |
hashCode()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.String getClusterName()
ClusterProps
Default: - Automatically generated name
getClusterName
in interface ClusterProps
public final java.lang.Number getDefaultCapacity()
ClusterProps
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
getDefaultCapacity
in interface ClusterProps
public final InstanceType getDefaultCapacityInstance()
ClusterProps
This will only be taken
into account if defaultCapacity
is > 0.
Default: m5.large
getDefaultCapacityInstance
in interface ClusterProps
public final java.lang.Boolean getKubectlEnabled()
ClusterProps
If this is disabled, it will not be possible to use the following capabilities:
addResource
addRoleMapping
addUserMapping
addMastersRole
and props.mastersRole
If this is disabled, the cluster can only be managed by issuing kubectl
commands 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.
Default: true The cluster can be managed by the AWS CDK application.
getKubectlEnabled
in interface ClusterProps
public final IRole getMastersRole()
ClusterProps
Default: - By default, it will only possible to update this Kubernetes system by adding resources to this cluster via `addResource` or by defining `KubernetesResource` resources in your AWS CDK app. Use this if you wish to grant cluster administration privileges to another role.
getMastersRole
in interface ClusterProps
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings
public final java.lang.Boolean getOutputClusterName()
ClusterProps
Default: false
getOutputClusterName
in interface ClusterProps
public final java.lang.Boolean getOutputConfigCommand()
ClusterProps
This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
getOutputConfigCommand
in interface ClusterProps
public final java.lang.Boolean getOutputMastersRoleArn()
ClusterProps
Default: false
getOutputMastersRoleArn
in interface ClusterProps
public final IRole getRole()
ClusterProps
Default: - A role is automatically created for you
getRole
in interface ClusterProps
public final ISecurityGroup getSecurityGroup()
ClusterProps
Default: - A security group is automatically created
getSecurityGroup
in interface ClusterProps
public final java.lang.String getVersion()
ClusterProps
Default: - If not supplied, will use Amazon default version
getVersion
in interface ClusterProps
public final IVpc getVpc()
ClusterProps
Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
getVpc
in interface ClusterProps
public final java.util.List<SubnetSelection> getVpcSubnets()
ClusterProps
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));
Default: - All public and private subnets
getVpcSubnets
in interface ClusterProps
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()