@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(FargateProfileOptions defaultProfile,
Map<String,String> clusterHandlerEnvironment,
CoreDnsComputeType coreDnsComputeType,
EndpointAccess endpointAccess,
Map<String,String> kubectlEnvironment,
ILayerVersion kubectlLayer,
Size kubectlMemory,
IRole mastersRole,
Boolean outputMastersRoleArn,
Boolean placeClusterHandlerInVpc,
Boolean prune,
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
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) |
Map<String,String> |
getClusterHandlerEnvironment()
Custom environment variables when interacting with the EKS endpoint to manage the cluster lifecycle.
|
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.
|
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.
|
ISecurityGroup |
getSecurityGroup()
Security Group to use for Control Plane ENIs.
|
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(FargateProfileOptions defaultProfile, Map<String,String> clusterHandlerEnvironment, CoreDnsComputeType coreDnsComputeType, EndpointAccess endpointAccess, Map<String,String> kubectlEnvironment, ILayerVersion kubectlLayer, Size kubectlMemory, IRole mastersRole, Boolean outputMastersRoleArn, Boolean placeClusterHandlerInVpc, Boolean prune, KubernetesVersion version, String clusterName, Boolean outputClusterName, Boolean outputConfigCommand, IRole role, ISecurityGroup securityGroup, IVpc vpc, List<? extends SubnetSelection> vpcSubnets)
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 Map<String,String> getClusterHandlerEnvironment()
ClusterOptionsDefault: - No environment variables.
getClusterHandlerEnvironment 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 ClusterOptionshttps://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.htmlpublic 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:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Object layer = LayerVersion.Builder.create(this, "kubectl-layer")
.code(lambda.Code.fromAsset(String.format("%s/layer.zip", __dirname)))
.build();
Object compatibleRuntimes;
Default: - the layer provided by the `aws-lambda-layer-kubectl` SAR app.
getKubectlLayer in interface ClusterOptionshttps://github.com/aws-samples/aws-lambda-layer-kubectlpublic 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 ClusterOptionshttps://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindingspublic 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 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:
// 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.JsiiSerializableCopyright © 2021. All rights reserved.