@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.925Z") @Stability(value=Stable) public interface ClusterAttributes extends software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster;
AutoScalingGroup asg;
ICluster importedCluster = Cluster.fromClusterAttributes(this, "ImportedCluster", ClusterAttributes.builder()
.clusterName(cluster.getClusterName())
.clusterSecurityGroupId(cluster.getClusterSecurityGroupId())
.build());
importedCluster.connectAutoScalingGroupCapacity(asg, AutoScalingGroupOptions.builder().build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterAttributes.Builder
A builder for
ClusterAttributes |
static class |
ClusterAttributes.Jsii$Proxy
An implementation for
ClusterAttributes |
| Modifier and Type | Method and Description |
|---|---|
static ClusterAttributes.Builder |
builder() |
default String |
getClusterCertificateAuthorityData()
The certificate-authority-data for your cluster.
|
default String |
getClusterEncryptionConfigKeyArn()
Amazon Resource Name (ARN) or alias of the customer master key (CMK).
|
default String |
getClusterEndpoint()
The API Server endpoint URL.
|
default String |
getClusterHandlerSecurityGroupId()
A security group id to associate with the Cluster Handler's Lambdas.
|
String |
getClusterName()
The physical name of the Cluster.
|
default String |
getClusterSecurityGroupId()
The cluster security group that was created by Amazon EKS for the cluster.
|
default Map<String,String> |
getKubectlEnvironment()
Environment variables to use when running `kubectl` against this cluster.
|
default IRole |
getKubectlLambdaRole()
An IAM role that can perform kubectl operations against this cluster.
|
default ILayerVersion |
getKubectlLayer()
An AWS Lambda Layer which includes `kubectl`, Helm and the AWS CLI.
|
default Size |
getKubectlMemory()
Amount of memory to allocate to the provider's lambda function.
|
default List<String> |
getKubectlPrivateSubnetIds()
Subnets to host the `kubectl` compute resources.
|
default IKubectlProvider |
getKubectlProvider()
KubectlProvider for issuing kubectl commands.
|
default String |
getKubectlRoleArn()
An IAM role with cluster administrator and "system:masters" permissions.
|
default String |
getKubectlSecurityGroupId()
A security group to use for `kubectl` execution.
|
default ILayerVersion |
getOnEventLayer()
An AWS Lambda Layer which includes the NPM dependency `proxy-agent`.
|
default IOpenIdConnectProvider |
getOpenIdConnectProvider()
An Open ID Connect provider for this cluster that can be used to configure service accounts.
|
default Boolean |
getPrune()
Indicates whether Kubernetes resources added through `addManifest()` can be automatically pruned.
|
default List<String> |
getSecurityGroupIds()
Additional security groups associated with this cluster.
|
default IVpc |
getVpc()
The VPC in which this Cluster was created.
|
@Stability(value=Stable) @NotNull String getClusterName()
@Stability(value=Stable) @Nullable default String getClusterCertificateAuthorityData()
Default: - if not specified `cluster.clusterCertificateAuthorityData` will throw an error
@Stability(value=Stable) @Nullable default String getClusterEncryptionConfigKeyArn()
Default: - if not specified `cluster.clusterEncryptionConfigKeyArn` will throw an error
@Stability(value=Stable) @Nullable default String getClusterEndpoint()
Default: - if not specified `cluster.clusterEndpoint` will throw an error.
@Stability(value=Stable) @Nullable default String getClusterHandlerSecurityGroupId()
The Cluster Handler's Lambdas are responsible for calling AWS's EKS API.
Default: - No security group.
@Stability(value=Stable) @Nullable default String getClusterSecurityGroupId()
Default: - if not specified `cluster.clusterSecurityGroupId` will throw an error
@Stability(value=Stable) @Nullable default Map<String,String> getKubectlEnvironment()
Default: - no additional variables
@Stability(value=Stable) @Nullable default IRole getKubectlLambdaRole()
The role should be mapped to the system:masters Kubernetes RBAC role.
This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.
Default: - if not specified, the default role created by a lambda function will be used.
@Stability(value=Stable) @Nullable default ILayerVersion getKubectlLayer()
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
Default: - a layer bundled with this module.
@Stability(value=Stable) @Nullable default Size getKubectlMemory()
Default: Size.gibibytes(1)
@Stability(value=Stable) @Nullable default List<String> getKubectlPrivateSubnetIds()
If not specified, the k8s endpoint is expected to be accessible publicly.
Default: - k8s endpoint is expected to be accessible publicly
@Stability(value=Stable) @Nullable default IKubectlProvider getKubectlProvider()
Default: - Default CDK provider
@Stability(value=Stable) @Nullable default String getKubectlRoleArn()
Default: - if not specified, it not be possible to issue `kubectl` commands against an imported cluster.
@Stability(value=Stable) @Nullable default String getKubectlSecurityGroupId()
If not specified, the k8s endpoint is expected to be accessible publicly.
Default: - k8s endpoint is expected to be accessible publicly
@Stability(value=Stable) @Nullable default ILayerVersion getOnEventLayer()
This layer is used by the onEvent handler to route AWS SDK requests through a proxy.
The handler expects the layer to include the following node_modules:
proxy-agent
Default: - a layer bundled with this module.
@Stability(value=Stable) @Nullable default IOpenIdConnectProvider getOpenIdConnectProvider()
You can either import an existing provider using iam.OpenIdConnectProvider.fromProviderArn,
or create a new provider using new eks.OpenIdConnectProvider
Default: - if not specified `cluster.openIdConnectProvider` and `cluster.addServiceAccount` will throw an error.
@Stability(value=Stable) @Nullable default Boolean getPrune()
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
@Stability(value=Stable) @Nullable default List<String> getSecurityGroupIds()
Default: - if not specified, no additional security groups will be considered in `cluster.connections`.
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - if not specified `cluster.vpc` will throw an error
@Stability(value=Stable) static ClusterAttributes.Builder builder()
ClusterAttributes.Builder of ClusterAttributesCopyright © 2022. All rights reserved.