@Stability(value=Stable) @Internal public static final class FargateClusterProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FargateClusterProps
FargateClusterPropssoftware.amazon.jsii.JsiiObject.InitializationModeFargateClusterProps.Builder, FargateClusterProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(FargateClusterProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
FargateClusterProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
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() |
boolean |
equals(Object o) |
AlbControllerOptions |
getAlbController()
Install the AWS Load Balancer Controller onto the cluster.
|
Map<String,String> |
getClusterHandlerEnvironment()
Custom environment variables when interacting with the EKS endpoint to manage the cluster lifecycle.
|
ISecurityGroup |
getClusterHandlerSecurityGroup()
A security group to associate with the Cluster Handler's Lambdas.
|
String |
getClusterName()
Name for the cluster.
|
CoreDnsComputeType |
getCoreDnsComputeType()
Controls the "eks.amazonaws.com/compute-type" annotation in the CoreDNS configuration on your cluster to determine which compute type to use for CoreDNS.
|
FargateProfileOptions |
getDefaultProfile()
Fargate Profile to create along with the cluster.
|
EndpointAccess |
getEndpointAccess()
Configure access to the Kubernetes API server endpoint..
|
Map<String,String> |
getKubectlEnvironment()
Environment variables for the kubectl execution.
|
ILayerVersion |
getKubectlLayer()
An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
Size |
getKubectlMemory()
Amount of memory to allocate to the provider's lambda function.
|
IRole |
getMastersRole()
An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
ILayerVersion |
getOnEventLayer()
An AWS Lambda Layer which includes the NPM dependency `proxy-agent`.
|
Boolean |
getOutputClusterName()
Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
Boolean |
getOutputConfigCommand()
Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
Boolean |
getOutputMastersRoleArn()
Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
Boolean |
getPlaceClusterHandlerInVpc()
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()
Indicates whether Kubernetes resources added through `addManifest()` can be automatically pruned.
|
IRole |
getRole()
Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
IKey |
getSecretsEncryptionKey()
KMS secret for envelope encryption for Kubernetes secrets.
|
ISecurityGroup |
getSecurityGroup()
Security Group to use for Control Plane ENIs.
|
String |
getServiceIpv4Cidr()
The CIDR block to assign Kubernetes service IP addresses from.
|
KubernetesVersion |
getVersion()
The Kubernetes version to run in the cluster.
|
IVpc |
getVpc()
The VPC in which to create the Cluster.
|
List<SubnetSelection> |
getVpcSubnets()
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(FargateClusterProps.Builder builder)
FargateClusterProps.Builder.public final FargateProfileOptions getDefaultProfile()
FargateClusterPropsDefault: - A profile called "default" with 'default' and 'kube-system' selectors will be created if this is left undefined.
getDefaultProfile in interface FargateClusterPropspublic final AlbControllerOptions getAlbController()
ClusterOptionsDefault: - The controller is not installed.
getAlbController in interface ClusterOptionspublic final Map<String,String> getClusterHandlerEnvironment()
ClusterOptionsDefault: - No environment variables.
getClusterHandlerEnvironment in interface ClusterOptionspublic final ISecurityGroup getClusterHandlerSecurityGroup()
ClusterOptionsThe Cluster Handler's Lambdas are responsible for calling AWS's EKS API.
Requires placeClusterHandlerInVpc to be set to true.
Default: - No security group.
getClusterHandlerSecurityGroup in interface ClusterOptionspublic final CoreDnsComputeType getCoreDnsComputeType()
ClusterOptionsDefault: CoreDnsComputeType.EC2 (for `FargateCluster` the default is FARGATE)
getCoreDnsComputeType in interface ClusterOptionspublic final EndpointAccess getEndpointAccess()
ClusterOptionsDefault: EndpointAccess.PUBLIC_AND_PRIVATE
getEndpointAccess in interface ClusterOptionspublic final Map<String,String> getKubectlEnvironment()
ClusterOptionsOnly relevant for kubectl enabled clusters.
Default: - No environment variables.
getKubectlEnvironment in interface ClusterOptionspublic final ILayerVersion getKubectlLayer()
ClusterOptionsBy 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:
LayerVersion layer = LayerVersion.Builder.create(this, "kubectl-layer")
.code(Code.fromAsset(String.format("%s/layer.zip", __dirname)))
.compatibleRuntimes(List.of(Runtime.PROVIDED))
.build();
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
getKubectlLayer in interface ClusterOptionspublic final Size getKubectlMemory()
ClusterOptionsDefault: Size.gibibytes(1)
getKubectlMemory in interface ClusterOptionspublic final IRole getMastersRole()
ClusterOptionsDefault: - a role that assumable by anyone with permissions in the same account will automatically be defined
getMastersRole in interface ClusterOptionspublic final ILayerVersion getOnEventLayer()
ClusterOptionsThis layer is used by the onEvent handler to route AWS SDK requests through a proxy.
By default, the provider will use the layer included in the "aws-lambda-layer-node-proxy-agent" SAR application which is available in all commercial regions.
To deploy the layer locally define it in your app as follows:
LayerVersion layer = LayerVersion.Builder.create(this, "proxy-agent-layer")
.code(Code.fromAsset(String.format("%s/layer.zip", __dirname)))
.compatibleRuntimes(List.of(Runtime.NODEJS_14_X))
.build();
Default: - a layer bundled with this module.
getOnEventLayer in interface ClusterOptionspublic final Boolean getOutputMastersRoleArn()
ClusterOptionsDefault: false
getOutputMastersRoleArn in interface ClusterOptionspublic final Boolean getPlaceClusterHandlerInVpc()
ClusterOptionsDefault: false
getPlaceClusterHandlerInVpc in interface ClusterOptionspublic 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 ClusterOptionspublic final IKey getSecretsEncryptionKey()
ClusterOptionsDefault: - 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 ClusterOptionspublic final String getServiceIpv4Cidr()
ClusterOptionsDefault: - Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks
public final KubernetesVersion getVersion()
CommonClusterOptionsgetVersion in interface CommonClusterOptionspublic final String getClusterName()
CommonClusterOptionsDefault: - Automatically generated name
getClusterName in interface CommonClusterOptionspublic final Boolean getOutputClusterName()
CommonClusterOptionsDefault: false
getOutputClusterName in interface CommonClusterOptionspublic final Boolean getOutputConfigCommand()
CommonClusterOptionsThis command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
getOutputConfigCommand in interface CommonClusterOptionspublic final IRole getRole()
CommonClusterOptionsDefault: - A role is automatically created for you
getRole in interface CommonClusterOptionspublic final ISecurityGroup getSecurityGroup()
CommonClusterOptionsDefault: - A security group is automatically created
getSecurityGroup in interface CommonClusterOptionspublic final IVpc getVpc()
CommonClusterOptionsDefault: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
getVpc in interface CommonClusterOptionspublic final List<SubnetSelection> getVpcSubnets()
CommonClusterOptionsIf you want to create public load balancers, this must include public subnets.
For example, to only select private subnets, supply the following:
vpcSubnets: [{ subnetType: ec2.SubnetType.PRIVATE_WITH_NAT }]
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.JsiiSerializableCopyright © 2022. All rights reserved.