@Internal public static final class ICluster.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ICluster.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeICluster.Jsii$Default, ICluster.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
KubernetesManifest |
addCdk8sChart(String id,
software.constructs.Construct chart)
Defines a CDK8s chart in this cluster.
|
KubernetesManifest |
addCdk8sChart(String id,
software.constructs.Construct chart,
KubernetesManifestOptions options)
Defines a CDK8s chart in this cluster.
|
HelmChart |
addHelmChart(String id,
HelmChartOptions options)
Defines a Helm chart in this cluster.
|
KubernetesManifest |
addManifest(String id,
Map<String,Object>... manifest)
Defines a Kubernetes resource in this cluster.
|
ServiceAccount |
addServiceAccount(String id)
Creates a new service account with corresponding IAM Role (IRSA).
|
ServiceAccount |
addServiceAccount(String id,
ServiceAccountOptions options)
Creates a new service account with corresponding IAM Role (IRSA).
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
void |
connectAutoScalingGroupCapacity(AutoScalingGroup autoScalingGroup,
AutoScalingGroupOptions options)
Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.
|
String |
getClusterArn()
The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.
|
String |
getClusterCertificateAuthorityData()
The certificate-authority-data for your cluster.
|
String |
getClusterEncryptionConfigKeyArn()
Amazon Resource Name (ARN) or alias of the customer master key (CMK).
|
String |
getClusterEndpoint()
The API Server endpoint URL.
|
ISecurityGroup |
getClusterHandlerSecurityGroup()
A security group to associate with the Cluster Handler's Lambdas.
|
String |
getClusterName()
The physical name of the Cluster.
|
ISecurityGroup |
getClusterSecurityGroup()
The cluster security group that was created by Amazon EKS for the cluster.
|
String |
getClusterSecurityGroupId()
The id of the cluster security group that was created by Amazon EKS for the cluster.
|
Connections |
getConnections()
The network connections associated with this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
Map<String,String> |
getKubectlEnvironment()
Custom environment variables when running `kubectl` against this cluster.
|
IRole |
getKubectlLambdaRole()
An IAM role that can perform kubectl operations against this cluster.
|
ILayerVersion |
getKubectlLayer()
An AWS Lambda layer that includes `kubectl`, `helm` and the `aws` CLI.
|
Size |
getKubectlMemory()
Amount of memory to allocate to the provider's lambda function.
|
List<ISubnet> |
getKubectlPrivateSubnets()
Subnets to host the `kubectl` compute resources.
|
IKubectlProvider |
getKubectlProvider()
Kubectl Provider for issuing kubectl commands against it.
|
IRole |
getKubectlRole()
An IAM role that can perform kubectl operations against this cluster.
|
ISecurityGroup |
getKubectlSecurityGroup()
A security group to use for `kubectl` execution.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
ILayerVersion |
getOnEventLayer()
An AWS Lambda layer that includes the NPM dependency `proxy-agent`.
|
IOpenIdConnectProvider |
getOpenIdConnectProvider()
The Open ID Connect Provider of the cluster used to configure Service Accounts.
|
Boolean |
getPrune()
Indicates whether Kubernetes resources can be automatically pruned.
|
Stack |
getStack()
The stack in which this resource is defined.
|
IVpc |
getVpc()
The VPC in which this Cluster was created.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final ConstructNode getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final Connections getConnections()
getConnections in interface IConnectablegetConnections in interface IConnectable.Jsii$DefaultgetConnections in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterArn()
getClusterArn in interface IClustergetClusterArn in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterCertificateAuthorityData()
getClusterCertificateAuthorityData in interface IClustergetClusterCertificateAuthorityData in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterEncryptionConfigKeyArn()
getClusterEncryptionConfigKeyArn in interface IClustergetClusterEncryptionConfigKeyArn in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterEndpoint()
getClusterEndpoint in interface IClustergetClusterEndpoint in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterName()
getClusterName in interface IClustergetClusterName in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final ISecurityGroup getClusterSecurityGroup()
getClusterSecurityGroup in interface IClustergetClusterSecurityGroup in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final String getClusterSecurityGroupId()
getClusterSecurityGroupId in interface IClustergetClusterSecurityGroupId in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final IOpenIdConnectProvider getOpenIdConnectProvider()
getOpenIdConnectProvider in interface IClustergetOpenIdConnectProvider in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final 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.
getPrune in interface IClustergetPrune in interface ICluster.Jsii$Default@Stability(value=Stable) @NotNull public final IVpc getVpc()
getVpc in interface IClustergetVpc in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final ISecurityGroup getClusterHandlerSecurityGroup()
The Cluster Handler's Lambdas are responsible for calling AWS's EKS API.
Requires placeClusterHandlerInVpc to be set to true.
Default: - No security group.
getClusterHandlerSecurityGroup in interface IClustergetClusterHandlerSecurityGroup in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final Map<String,String> getKubectlEnvironment()
getKubectlEnvironment in interface IClustergetKubectlEnvironment in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final 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.
getKubectlLambdaRole in interface IClustergetKubectlLambdaRole in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final ILayerVersion getKubectlLayer()
If not defined, a default layer will be used.
getKubectlLayer in interface IClustergetKubectlLayer in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final Size getKubectlMemory()
getKubectlMemory in interface IClustergetKubectlMemory in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final List<ISubnet> getKubectlPrivateSubnets()
If this is undefined, the k8s endpoint is expected to be accessible publicly.
getKubectlPrivateSubnets in interface IClustergetKubectlPrivateSubnets in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final IKubectlProvider getKubectlProvider()
If not defined, a default provider will be used
getKubectlProvider in interface IClustergetKubectlProvider in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final IRole getKubectlRole()
The role should be mapped to the system:masters Kubernetes RBAC role.
getKubectlRole in interface IClustergetKubectlRole in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final ISecurityGroup getKubectlSecurityGroup()
If this is undefined, the k8s endpoint is expected to be accessible publicly.
getKubectlSecurityGroup in interface IClustergetKubectlSecurityGroup in interface ICluster.Jsii$Default@Stability(value=Stable) @Nullable public final ILayerVersion getOnEventLayer()
If not defined, a default layer will be used.
getOnEventLayer in interface IClustergetOnEventLayer in interface ICluster.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface ICluster.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart, @Nullable KubernetesManifestOptions options)
addCdk8sChart in interface IClusteraddCdk8sChart in interface ICluster.Jsii$Defaultid - logical id of this chart. This parameter is required.chart - the cdk8s chart. This parameter is required.options - @Stability(value=Stable) @NotNull public final KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart)
addCdk8sChart in interface IClusterid - logical id of this chart. This parameter is required.chart - the cdk8s chart. This parameter is required.@Stability(value=Stable) @NotNull public final HelmChart addHelmChart(@NotNull String id, @NotNull HelmChartOptions options)
addHelmChart in interface IClusteraddHelmChart in interface ICluster.Jsii$Defaultid - logical id of this chart. This parameter is required.options - options of this chart. This parameter is required.@Stability(value=Stable) @NotNull public final KubernetesManifest addManifest(@NotNull String id, @NotNull Map<String,Object>... manifest)
The manifest will be applied/deleted using kubectl as needed.
addManifest in interface IClusteraddManifest in interface ICluster.Jsii$Defaultid - logical id of this manifest. This parameter is required.manifest - a list of Kubernetes resource specifications. This parameter is required.@Stability(value=Stable) @NotNull public final ServiceAccount addServiceAccount(@NotNull String id, @Nullable ServiceAccountOptions options)
addServiceAccount in interface IClusteraddServiceAccount in interface ICluster.Jsii$Defaultid - logical id of service account. This parameter is required.options - service account options.@Stability(value=Stable) @NotNull public final ServiceAccount addServiceAccount(@NotNull String id)
addServiceAccount in interface IClusterid - logical id of service account. This parameter is required.@Stability(value=Stable)
public final void connectAutoScalingGroupCapacity(@NotNull
AutoScalingGroup autoScalingGroup,
@NotNull
AutoScalingGroupOptions options)
The AutoScalingGroup must be running an EKS-optimized AMI containing the /etc/eks/bootstrap.sh script. This method will configure Security Groups, add the right policies to the instance role, apply the right tags, and add the required user data to the instance's launch configuration.
Spot instances will be labeled lifecycle=Ec2Spot and tainted with PreferNoSchedule.
If kubectl is enabled, the
spot interrupt handler
daemon will be installed on all spot instances to handle
EC2 Spot Instance Termination Notices.
Prefer to use addAutoScalingGroupCapacity if possible.
connectAutoScalingGroupCapacity in interface IClusterconnectAutoScalingGroupCapacity in interface ICluster.Jsii$DefaultautoScalingGroup - [disable-awslint:ref-via-interface]. This parameter is required.options - options for adding auto scaling groups, like customizing the bootstrap script. This parameter is required.Copyright © 2022. All rights reserved.