@Generated(value="jsii-pacmak/1.14.1 (build 828de8a)", date="2020-11-24T22:28:23.718Z") @Stability(value=Experimental) public interface ClusterOptions extends software.amazon.jsii.JsiiSerializable, CommonClusterOptions
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterOptions.Builder
A builder for
ClusterOptions |
static class |
ClusterOptions.Jsii$Proxy
An implementation for
ClusterOptions |
| Modifier and Type | Method and Description |
|---|---|
static ClusterOptions.Builder |
builder() |
default 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.
|
default EndpointAccess |
getEndpointAccess()
(experimental) Configure access to the Kubernetes API server endpoint..
|
default Map<String,String> |
getKubectlEnvironment()
(experimental) Environment variables for the kubectl execution.
|
default ILayerVersion |
getKubectlLayer()
(experimental) An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
default IRole |
getMastersRole()
(experimental) An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
default Boolean |
getOutputMastersRoleArn()
(experimental) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
getClusterName, getOutputClusterName, getOutputConfigCommand, getRole, getSecurityGroup, getVersion, getVpc, getVpcSubnets@Stability(value=Experimental) @Nullable default CoreDnsComputeType getCoreDnsComputeType()
Default: CoreDnsComputeType.EC2 (for `FargateCluster` the default is FARGATE)
@Stability(value=Experimental) @Nullable default EndpointAccess getEndpointAccess()
Default: EndpointAccess.PUBLIC_AND_PRIVATE
https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html@Stability(value=Experimental) @Nullable default Map<String,String> getKubectlEnvironment()
Only relevant for kubectl enabled clusters.
Default: - No environment variables.
@Stability(value=Experimental) @Nullable default ILayerVersion getKubectlLayer()
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
var layer = LayerVersion.Builder.create(this, "kubectl-layer")
.code(lambda.Code.fromAsset(__dirname + "/layer.zip"))
.build();
var compatibleRuntimes = ;
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
https://github.com/aws-samples/aws-lambda-layer-kubectl@Stability(value=Experimental) @Nullable default IRole getMastersRole()
Default: - a role that assumable by anyone with permissions in the same account will automatically be defined
https://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings@Stability(value=Experimental) @Nullable default Boolean getOutputMastersRoleArn()
Default: false
@Stability(value=Experimental) static ClusterOptions.Builder builder()
builder in interface CommonClusterOptionsClusterOptions.Builder of ClusterOptionsCopyright © 2020. All rights reserved.