@Stability(value=Experimental) public static final class ClusterAttributes.Builder extends Object implements software.amazon.jsii.Builder<ClusterAttributes>
ClusterAttributes| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public ClusterAttributes.Builder clusterName(String clusterName)
ClusterAttributes.getClusterName()clusterName - The physical name of the Cluster. This parameter is required.this@Stability(value=Experimental) public ClusterAttributes.Builder clusterCertificateAuthorityData(String clusterCertificateAuthorityData)
ClusterAttributes.getClusterCertificateAuthorityData()clusterCertificateAuthorityData - The certificate-authority-data for your cluster.this@Stability(value=Experimental) public ClusterAttributes.Builder clusterEncryptionConfigKeyArn(String clusterEncryptionConfigKeyArn)
ClusterAttributes.getClusterEncryptionConfigKeyArn()clusterEncryptionConfigKeyArn - Amazon Resource Name (ARN) or alias of the customer master key (CMK).this@Stability(value=Experimental) public ClusterAttributes.Builder clusterEndpoint(String clusterEndpoint)
ClusterAttributes.getClusterEndpoint()clusterEndpoint - The API Server endpoint URL.this@Stability(value=Experimental) public ClusterAttributes.Builder clusterSecurityGroupId(String clusterSecurityGroupId)
ClusterAttributes.getClusterSecurityGroupId()clusterSecurityGroupId - The cluster security group that was created by Amazon EKS for the cluster.this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlEnvironment(Map<String,String> kubectlEnvironment)
ClusterAttributes.getKubectlEnvironment()kubectlEnvironment - Environment variables to use when running `kubectl` against this cluster.this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlLayer(ILayerVersion kubectlLayer)
ClusterAttributes.getKubectlLayer()kubectlLayer - An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
This layer
is used by the kubectl handler to apply manifests and install helm charts.
The handler expects the layer to include the following executables:
helm/helm
kubectl/kubectl
awscli/aws
this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlMemory(Size kubectlMemory)
ClusterAttributes.getKubectlMemory()kubectlMemory - Amount of memory to allocate to the provider's lambda function.this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlPrivateSubnetIds(List<String> kubectlPrivateSubnetIds)
ClusterAttributes.getKubectlPrivateSubnetIds()kubectlPrivateSubnetIds - Subnets to host the `kubectl` compute resources.
If not specified, the k8s
endpoint is expected to be accessible publicly.this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlRoleArn(String kubectlRoleArn)
ClusterAttributes.getKubectlRoleArn()kubectlRoleArn - An IAM role with cluster administrator and "system:masters" permissions.this@Stability(value=Experimental) public ClusterAttributes.Builder kubectlSecurityGroupId(String kubectlSecurityGroupId)
ClusterAttributes.getKubectlSecurityGroupId()kubectlSecurityGroupId - A security group to use for `kubectl` execution.
If not specified, the k8s
endpoint is expected to be accessible publicly.this@Stability(value=Experimental) public ClusterAttributes.Builder openIdConnectProvider(IOpenIdConnectProvider openIdConnectProvider)
ClusterAttributes.getOpenIdConnectProvider()openIdConnectProvider - An Open ID Connect provider for this cluster that can be used to configure service accounts.
You can either import an existing provider using iam.OpenIdConnectProvider.fromProviderArn,
or create a new provider using new eks.OpenIdConnectProviderthis@Stability(value=Experimental) public ClusterAttributes.Builder prune(Boolean prune)
ClusterAttributes.getPrune()prune - Indicates whether Kubernetes resources added through `addManifest()` can be automatically pruned.
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.this@Stability(value=Experimental) public ClusterAttributes.Builder securityGroupIds(List<String> securityGroupIds)
ClusterAttributes.getSecurityGroupIds()securityGroupIds - Additional security groups associated with this cluster.this@Stability(value=Experimental) public ClusterAttributes.Builder vpc(IVpc vpc)
ClusterAttributes.getVpc()vpc - The VPC in which this Cluster was created.this@Stability(value=Experimental) public ClusterAttributes build()
build in interface software.amazon.jsii.Builder<ClusterAttributes>ClusterAttributesNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.