@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.
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 = ;
Or;you;can;use;the;standard;layer;like;this();with options
tocustomize;the;version;and;SAR;application;ID;
```ts
const layer = new eks.KubectlLayer(this, 'KubectlLayer');;
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 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 © 2020. All rights reserved.