@Stability(value=Experimental) @Internal public static final class ClusterOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ClusterOptions
ClusterOptions
software.amazon.jsii.JsiiObject.InitializationMode
ClusterOptions.Builder, ClusterOptions.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(Map<String,String> clusterHandlerEnvironment,
CoreDnsComputeType coreDnsComputeType,
EndpointAccess endpointAccess,
Map<String,String> kubectlEnvironment,
ILayerVersion kubectlLayer,
Size kubectlMemory,
IRole mastersRole,
Boolean outputMastersRoleArn,
Boolean placeClusterHandlerInVpc,
Boolean prune,
IKey secretsEncryptionKey,
KubernetesVersion version,
String clusterName,
Boolean outputClusterName,
Boolean outputConfigCommand,
IRole role,
ISecurityGroup securityGroup,
IVpc vpc,
List<? extends SubnetSelection> vpcSubnets)
Constructor that initializes the object based on literal property values passed by the
ClusterOptions.Builder . |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Map<String,String> |
getClusterHandlerEnvironment()
(experimental) Custom environment variables when interacting with the EKS endpoint to manage the cluster lifecycle.
|
String |
getClusterName()
(experimental) Name for the cluster.
|
CoreDnsComputeType |
getCoreDnsComputeType()
(experimental) Controls the "eks.amazonaws.com/compute-type" annotation in the CoreDNS configuration on your cluster to determine which compute type to use for CoreDNS.
|
EndpointAccess |
getEndpointAccess()
(experimental) Configure access to the Kubernetes API server endpoint..
|
Map<String,String> |
getKubectlEnvironment()
(experimental) Environment variables for the kubectl execution.
|
ILayerVersion |
getKubectlLayer()
(experimental) An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
Size |
getKubectlMemory()
(experimental) Amount of memory to allocate to the provider's lambda function.
|
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).
|
Boolean |
getPlaceClusterHandlerInVpc()
(experimental) If set to true, the cluster handler functions will be placed in the private subnets of the cluster vpc, subject to the `vpcSubnets` selection strategy.
|
Boolean |
getPrune()
(experimental) Indicates whether Kubernetes resources added through `addManifest()` can be automatically pruned.
|
IRole |
getRole()
(experimental) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
IKey |
getSecretsEncryptionKey()
(experimental) KMS secret for envelope encryption for Kubernetes secrets.
|
ISecurityGroup |
getSecurityGroup()
(experimental) Security Group to use for Control Plane ENIs.
|
KubernetesVersion |
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, jsiiStaticSet
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.protected Jsii$Proxy(Map<String,String> clusterHandlerEnvironment, CoreDnsComputeType coreDnsComputeType, EndpointAccess endpointAccess, Map<String,String> kubectlEnvironment, ILayerVersion kubectlLayer, Size kubectlMemory, IRole mastersRole, Boolean outputMastersRoleArn, Boolean placeClusterHandlerInVpc, Boolean prune, IKey secretsEncryptionKey, KubernetesVersion version, String clusterName, Boolean outputClusterName, Boolean outputConfigCommand, IRole role, ISecurityGroup securityGroup, IVpc vpc, List<? extends SubnetSelection> vpcSubnets)
ClusterOptions.Builder
.public final Map<String,String> getClusterHandlerEnvironment()
ClusterOptions
Default: - No environment variables.
getClusterHandlerEnvironment
in interface ClusterOptions
public final CoreDnsComputeType getCoreDnsComputeType()
ClusterOptions
Default: CoreDnsComputeType.EC2 (for `FargateCluster` the default is FARGATE)
getCoreDnsComputeType
in interface ClusterOptions
public final EndpointAccess getEndpointAccess()
ClusterOptions
Default: EndpointAccess.PUBLIC_AND_PRIVATE
getEndpointAccess
in interface ClusterOptions
https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html
public final Map<String,String> getKubectlEnvironment()
ClusterOptions
Only relevant for kubectl enabled clusters.
Default: - No environment variables.
getKubectlEnvironment
in interface ClusterOptions
public final ILayerVersion getKubectlLayer()
ClusterOptions
By default, the provider will use the layer included in the "aws-lambda-layer-kubectl" SAR application which is available in all commercial regions.
To deploy the layer locally, visit https://github.com/aws-samples/aws-lambda-layer-kubectl/blob/master/cdk/README.md for instructions on how to prepare the .zip file and then define it in your app as follows:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 LayerVersion layer = new LayerVersion(this, "kubectl-layer", new LayerVersionProps() .code(lambda.Code.fromAsset(String.format("%s/layer.zip", __dirname)))); Object compatibleRuntimes;
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
getKubectlLayer
in interface ClusterOptions
https://github.com/aws-samples/aws-lambda-layer-kubectl
public final Size getKubectlMemory()
ClusterOptions
Default: Size.gibibytes(1)
getKubectlMemory
in interface ClusterOptions
public final IRole getMastersRole()
ClusterOptions
Default: - a role that assumable by anyone with permissions in the same account will automatically be defined
getMastersRole
in interface ClusterOptions
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings
public final Boolean getOutputMastersRoleArn()
ClusterOptions
Default: false
getOutputMastersRoleArn
in interface ClusterOptions
public final Boolean getPlaceClusterHandlerInVpc()
ClusterOptions
Default: false
getPlaceClusterHandlerInVpc
in interface ClusterOptions
public final Boolean getPrune()
ClusterOptions
When this is enabled (default), prune labels will be
allocated and injected to each resource. These labels will then be used
when issuing the kubectl apply
operation with the --prune
switch.
Default: true
getPrune
in interface ClusterOptions
public final IKey getSecretsEncryptionKey()
ClusterOptions
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.
getSecretsEncryptionKey
in interface ClusterOptions
public final KubernetesVersion getVersion()
CommonClusterOptions
getVersion
in interface CommonClusterOptions
public final String getClusterName()
CommonClusterOptions
Default: - Automatically generated name
getClusterName
in interface CommonClusterOptions
public final Boolean getOutputClusterName()
CommonClusterOptions
Default: false
getOutputClusterName
in interface CommonClusterOptions
public final Boolean getOutputConfigCommand()
CommonClusterOptions
This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
getOutputConfigCommand
in interface CommonClusterOptions
public final IRole getRole()
CommonClusterOptions
Default: - A role is automatically created for you
getRole
in interface CommonClusterOptions
public final ISecurityGroup getSecurityGroup()
CommonClusterOptions
Default: - A security group is automatically created
getSecurityGroup
in interface CommonClusterOptions
public final IVpc getVpc()
CommonClusterOptions
Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
getVpc
in interface CommonClusterOptions
public final List<SubnetSelection> getVpcSubnets()
CommonClusterOptions
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
getVpcSubnets
in interface CommonClusterOptions
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.