@Stability(value=Experimental) @Internal public static final class ClusterProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterProps
ClusterPropssoftware.amazon.jsii.JsiiObject.InitializationModeClusterProps.Builder, ClusterProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(String clusterName,
Number defaultCapacity,
InstanceType defaultCapacityInstance,
Boolean kubectlEnabled,
IRole mastersRole,
Boolean outputClusterName,
Boolean outputConfigCommand,
Boolean outputMastersRoleArn,
IRole role,
ISecurityGroup securityGroup,
String version,
IVpc vpc,
List<? extends SubnetSelection> vpcSubnets)
Constructor that initializes the object based on literal property values passed by the
ClusterProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getClusterName()
(experimental) Name for the cluster.
|
Number |
getDefaultCapacity()
(experimental) Number of instances to allocate as an initial capacity for this cluster.
|
InstanceType |
getDefaultCapacityInstance()
(experimental) The instance type to use for the default capacity.
|
Boolean |
getKubectlEnabled()
(experimental) Allows defining `kubectrl`-related resources on this cluster.
|
IRole |
getMastersRole()
(experimental) An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
Boolean |
getOutputClusterName()
(experimental) Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
Boolean |
getOutputConfigCommand()
(experimental) Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
Boolean |
getOutputMastersRoleArn()
(experimental) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
IRole |
getRole()
(experimental) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
ISecurityGroup |
getSecurityGroup()
(experimental) Security Group to use for Control Plane ENIs.
|
String |
getVersion()
(experimental) The Kubernetes version to run in the cluster.
|
IVpc |
getVpc()
(experimental) The VPC in which to create the Cluster.
|
List<SubnetSelection> |
getVpcSubnets()
(experimental) Where to place EKS Control Plane ENIs.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(String clusterName, Number defaultCapacity, InstanceType defaultCapacityInstance, Boolean kubectlEnabled, IRole mastersRole, Boolean outputClusterName, Boolean outputConfigCommand, Boolean outputMastersRoleArn, IRole role, ISecurityGroup securityGroup, String version, IVpc vpc, List<? extends SubnetSelection> vpcSubnets)
ClusterProps.Builder.public final String getClusterName()
ClusterPropsDefault: - Automatically generated name
getClusterName in interface ClusterPropspublic final 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 ClusterPropspublic final InstanceType getDefaultCapacityInstance()
ClusterProps
This will only be taken
into account if defaultCapacity is > 0.
Default: m5.large
getDefaultCapacityInstance in interface ClusterPropspublic final Boolean getKubectlEnabled()
ClusterPropsIf this is disabled, it will not be possible to use the following capabilities:
addResourceaddRoleMappingaddUserMappingaddMastersRole 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 ClusterPropspublic final IRole getMastersRole()
ClusterPropsDefault: - 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 ClusterPropshttps://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindingspublic final Boolean getOutputClusterName()
ClusterPropsDefault: false
getOutputClusterName in interface ClusterPropspublic final Boolean getOutputConfigCommand()
ClusterPropsThis command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
getOutputConfigCommand in interface ClusterPropspublic final Boolean getOutputMastersRoleArn()
ClusterPropsDefault: false
getOutputMastersRoleArn in interface ClusterPropspublic final IRole getRole()
ClusterPropsDefault: - A role is automatically created for you
getRole in interface ClusterPropspublic final ISecurityGroup getSecurityGroup()
ClusterPropsDefault: - A security group is automatically created
getSecurityGroup in interface ClusterPropspublic final String getVersion()
ClusterPropsDefault: - If not supplied, will use Amazon default version
getVersion in interface ClusterPropspublic final IVpc getVpc()
ClusterPropsDefault: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
getVpc in interface ClusterPropspublic final List<SubnetSelection> getVpcSubnets()
ClusterPropsIf 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
getVpcSubnets in interface ClusterProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.