@Stability(value=Experimental) public static final class FargateCluster.Builder extends Object implements software.amazon.jsii.Builder<FargateCluster>
FargateCluster.| Modifier and Type | Method and Description |
|---|---|
FargateCluster |
build() |
FargateCluster.Builder |
clusterName(String clusterName)
(experimental) Name for the cluster.
|
FargateCluster.Builder |
coreDnsComputeType(CoreDnsComputeType coreDnsComputeType)
(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.
|
static FargateCluster.Builder |
create(software.constructs.Construct scope,
String id) |
FargateCluster.Builder |
defaultProfile(FargateProfileOptions defaultProfile)
(experimental) Fargate Profile to create along with the cluster.
|
FargateCluster.Builder |
endpointAccess(EndpointAccess endpointAccess)
(experimental) Configure access to the Kubernetes API server endpoint..
|
FargateCluster.Builder |
kubectlEnvironment(Map<String,String> kubectlEnvironment)
(experimental) Environment variables for the kubectl execution.
|
FargateCluster.Builder |
kubectlLayer(ILayerVersion kubectlLayer)
(experimental) An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
FargateCluster.Builder |
mastersRole(IRole mastersRole)
(experimental) An IAM role that will be added to the `system:masters` Kubernetes RBAC group.
|
FargateCluster.Builder |
outputClusterName(Boolean outputClusterName)
(experimental) Determines whether a CloudFormation output with the name of the cluster will be synthesized.
|
FargateCluster.Builder |
outputConfigCommand(Boolean outputConfigCommand)
(experimental) Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized.
|
FargateCluster.Builder |
outputMastersRoleArn(Boolean outputMastersRoleArn)
(experimental) Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified).
|
FargateCluster.Builder |
role(IRole role)
(experimental) Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.
|
FargateCluster.Builder |
securityGroup(ISecurityGroup securityGroup)
(experimental) Security Group to use for Control Plane ENIs.
|
FargateCluster.Builder |
version(KubernetesVersion version)
(experimental) The Kubernetes version to run in the cluster.
|
FargateCluster.Builder |
vpc(IVpc vpc)
(experimental) The VPC in which to create the Cluster.
|
FargateCluster.Builder |
vpcSubnets(List<? extends SubnetSelection> vpcSubnets)
(experimental) Where to place EKS Control Plane ENIs.
|
@Stability(value=Experimental) public static FargateCluster.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.FargateCluster.Builder.@Stability(value=Experimental) public FargateCluster.Builder version(KubernetesVersion version)
version - The Kubernetes version to run in the cluster. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder clusterName(String clusterName)
Default: - Automatically generated name
clusterName - Name for the cluster. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder outputClusterName(Boolean outputClusterName)
Default: false
outputClusterName - Determines whether a CloudFormation output with the name of the cluster will be synthesized. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder outputConfigCommand(Boolean outputConfigCommand)
This command will include the cluster name and, if applicable, the ARN of the masters IAM role.
Default: true
outputConfigCommand - Determines whether a CloudFormation output with the `aws eks update-kubeconfig` command will be synthesized. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder role(IRole role)
Default: - A role is automatically created for you
role - Role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder securityGroup(ISecurityGroup securityGroup)
Default: - A security group is automatically created
securityGroup - Security Group to use for Control Plane ENIs. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder vpc(IVpc vpc)
Default: - a VPC with default configuration will be created and can be accessed through `cluster.vpc`.
vpc - The VPC in which to create the Cluster. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder vpcSubnets(List<? extends SubnetSelection> vpcSubnets)
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
vpcSubnets - Where to place EKS Control Plane ENIs. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder coreDnsComputeType(CoreDnsComputeType coreDnsComputeType)
Default: CoreDnsComputeType.EC2 (for `FargateCluster` the default is FARGATE)
coreDnsComputeType - Controls the "eks.amazonaws.com/compute-type" annotation in the CoreDNS configuration on your cluster to determine which compute type to use for CoreDNS. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder endpointAccess(EndpointAccess endpointAccess)
Default: EndpointAccess.PUBLIC_AND_PRIVATE
endpointAccess - Configure access to the Kubernetes API server endpoint.. This parameter is required.thishttps://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html@Stability(value=Experimental) public FargateCluster.Builder kubectlEnvironment(Map<String,String> kubectlEnvironment)
Only relevant for kubectl enabled clusters.
Default: - No environment variables.
kubectlEnvironment - Environment variables for the kubectl execution. This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder kubectlLayer(ILayerVersion kubectlLayer)
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.
kubectlLayer - An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI. This parameter is required.thishttps://github.com/aws-samples/aws-lambda-layer-kubectl@Stability(value=Experimental) public FargateCluster.Builder mastersRole(IRole mastersRole)
Default: - a role that assumable by anyone with permissions in the same account will automatically be defined
mastersRole - An IAM role that will be added to the `system:masters` Kubernetes RBAC group. This parameter is required.thishttps://kubernetes.io/docs/reference/access-authn-authz/rbac/#default-roles-and-role-bindings@Stability(value=Experimental) public FargateCluster.Builder outputMastersRoleArn(Boolean outputMastersRoleArn)
Default: false
outputMastersRoleArn - Determines whether a CloudFormation output with the ARN of the "masters" IAM role will be synthesized (if `mastersRole` is specified). This parameter is required.this@Stability(value=Experimental) public FargateCluster.Builder defaultProfile(FargateProfileOptions defaultProfile)
Default: - A profile called "default" with 'default' and 'kube-system' selectors will be created if this is left undefined.
defaultProfile - Fargate Profile to create along with the cluster. This parameter is required.this@Stability(value=Experimental) public FargateCluster build()
build in interface software.amazon.jsii.Builder<FargateCluster>Copyright © 2020. All rights reserved.