Class ICluster.Jsii$Proxy
- All Implemented Interfaces:
IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IConnectable,IConnectable.Jsii$Default,ICluster,ICluster.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
ICluster
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.eks.ICluster
ICluster.Jsii$Default, ICluster.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal KubernetesManifestaddCdk8sChart(String id, software.constructs.Construct chart) Defines a CDK8s chart in this cluster.final KubernetesManifestaddCdk8sChart(String id, software.constructs.Construct chart, KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.final HelmChartaddHelmChart(String id, HelmChartOptions options) Defines a Helm chart in this cluster.final KubernetesManifestaddManifest(String id, Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.final ServiceAccountCreates a new service account with corresponding IAM Role (IRSA).final ServiceAccountaddServiceAccount(String id, ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final voidconnectAutoScalingGroupCapacity(AutoScalingGroup autoScalingGroup, AutoScalingGroupOptions options) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.final AuthenticationModeThe authentication mode for the cluster.final ILayerVersionAn AWS Lambda layer that contains theawsCLI.final StringThe unique ARN assigned to the service by AWS in the form of arn:aws:eks:.final StringThe certificate-authority-data for your cluster.final StringAmazon Resource Name (ARN) or alias of the customer master key (CMK).final StringThe API Server endpoint URL.final ISecurityGroupA security group to associate with the Cluster Handler's Lambdas.final StringThe physical name of the Cluster.final ISecurityGroupThe cluster security group that was created by Amazon EKS for the cluster.final StringThe id of the cluster security group that was created by Amazon EKS for the cluster.final ConnectionsThe network connections associated with this resource.final IAddonThe EKS Pod Identity Agent addon for the EKS cluster.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final IpFamilySpecify which IP family is used to assign Kubernetes pod and service IP addresses.Custom environment variables when runningkubectlagainst this cluster.final IRoleAn IAM role that can perform kubectl operations against this cluster.final ILayerVersionAn AWS Lambda layer that includeskubectlandhelm.final SizeAmount of memory to allocate to the provider's lambda function.Subnets to host thekubectlcompute resources.final IKubectlProviderKubectl Provider for issuing kubectl commands against it.final IRoleAn IAM role that can perform kubectl operations against this cluster.final ISecurityGroupA security group to use forkubectlexecution.final software.constructs.NodegetNode()The tree node.final ILayerVersionAn AWS Lambda layer that includes the NPM dependencyproxy-agent.final IOpenIdConnectProviderThe Open ID Connect Provider of the cluster used to configure Service Accounts.final BooleangetPrune()Indicates whether Kubernetes resources can be automatically pruned.final StackgetStack()The stack in which this resource is defined.final IVpcgetVpc()The VPC in which this Cluster was created.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfaceICluster.Jsii$Default- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceICluster.Jsii$Default- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceICluster.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnectionsin interfaceICluster.Jsii$Default- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin interfaceIConnectable.Jsii$Default
-
getClusterArn
The unique ARN assigned to the service by AWS in the form of arn:aws:eks:.- Specified by:
getClusterArnin interfaceICluster- Specified by:
getClusterArnin interfaceICluster.Jsii$Default
-
getClusterCertificateAuthorityData
The certificate-authority-data for your cluster.- Specified by:
getClusterCertificateAuthorityDatain interfaceICluster- Specified by:
getClusterCertificateAuthorityDatain interfaceICluster.Jsii$Default
-
getClusterEncryptionConfigKeyArn
Amazon Resource Name (ARN) or alias of the customer master key (CMK).- Specified by:
getClusterEncryptionConfigKeyArnin interfaceICluster- Specified by:
getClusterEncryptionConfigKeyArnin interfaceICluster.Jsii$Default
-
getClusterEndpoint
The API Server endpoint URL.- Specified by:
getClusterEndpointin interfaceICluster- Specified by:
getClusterEndpointin interfaceICluster.Jsii$Default
-
getClusterName
The physical name of the Cluster.- Specified by:
getClusterNamein interfaceICluster- Specified by:
getClusterNamein interfaceICluster.Jsii$Default
-
getClusterSecurityGroup
The cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroupin interfaceICluster- Specified by:
getClusterSecurityGroupin interfaceICluster.Jsii$Default
-
getClusterSecurityGroupId
The id of the cluster security group that was created by Amazon EKS for the cluster.- Specified by:
getClusterSecurityGroupIdin interfaceICluster- Specified by:
getClusterSecurityGroupIdin interfaceICluster.Jsii$Default
-
getOpenIdConnectProvider
The Open ID Connect Provider of the cluster used to configure Service Accounts.- Specified by:
getOpenIdConnectProviderin interfaceICluster- Specified by:
getOpenIdConnectProviderin interfaceICluster.Jsii$Default
-
getPrune
Indicates whether Kubernetes resources 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 applyoperation with the--pruneswitch.- Specified by:
getPrunein interfaceICluster- Specified by:
getPrunein interfaceICluster.Jsii$Default
-
getVpc
The VPC in which this Cluster was created.- Specified by:
getVpcin interfaceICluster- Specified by:
getVpcin interfaceICluster.Jsii$Default
-
getAuthenticationMode
The authentication mode for the cluster.Default: AuthenticationMode.CONFIG_MAP
- Specified by:
getAuthenticationModein interfaceICluster- Specified by:
getAuthenticationModein interfaceICluster.Jsii$Default
-
getAwscliLayer
An AWS Lambda layer that contains theawsCLI.If not defined, a default layer will be used containing the AWS CLI 1.x.
- Specified by:
getAwscliLayerin interfaceICluster- Specified by:
getAwscliLayerin interfaceICluster.Jsii$Default
-
getClusterHandlerSecurityGroup
A security group to associate with the Cluster Handler's Lambdas.The Cluster Handler's Lambdas are responsible for calling AWS's EKS API.
Requires
placeClusterHandlerInVpcto be set to true.Default: - No security group.
- Specified by:
getClusterHandlerSecurityGroupin interfaceICluster- Specified by:
getClusterHandlerSecurityGroupin interfaceICluster.Jsii$Default
-
getEksPodIdentityAgent
The EKS Pod Identity Agent addon for the EKS cluster.The EKS Pod Identity Agent is responsible for managing the temporary credentials used by pods in the cluster to access AWS resources. It runs as a DaemonSet on each node and provides the necessary credentials to the pods based on their associated service account.
This property returns the
CfnAddonresource representing the EKS Pod Identity Agent addon. If the addon has not been created yet, it will be created and returned.- Specified by:
getEksPodIdentityAgentin interfaceICluster- Specified by:
getEksPodIdentityAgentin interfaceICluster.Jsii$Default
-
getIpFamily
Specify which IP family is used to assign Kubernetes pod and service IP addresses.Default: - IpFamily.IP_V4
- Specified by:
getIpFamilyin interfaceICluster- Specified by:
getIpFamilyin interfaceICluster.Jsii$Default- See Also:
-
getKubectlEnvironment
Custom environment variables when runningkubectlagainst this cluster.- Specified by:
getKubectlEnvironmentin interfaceICluster- Specified by:
getKubectlEnvironmentin interfaceICluster.Jsii$Default
-
getKubectlLambdaRole
An IAM role that can perform kubectl operations against this cluster.The role should be mapped to the
system:mastersKubernetes RBAC role.This role is directly passed to the lambda handler that sends Kube Ctl commands to the cluster.
- Specified by:
getKubectlLambdaRolein interfaceICluster- Specified by:
getKubectlLambdaRolein interfaceICluster.Jsii$Default
-
getKubectlLayer
An AWS Lambda layer that includeskubectlandhelm.- Specified by:
getKubectlLayerin interfaceICluster- Specified by:
getKubectlLayerin interfaceICluster.Jsii$Default
-
getKubectlMemory
Amount of memory to allocate to the provider's lambda function.- Specified by:
getKubectlMemoryin interfaceICluster- Specified by:
getKubectlMemoryin interfaceICluster.Jsii$Default
-
getKubectlPrivateSubnets
Subnets to host thekubectlcompute resources.If this is undefined, the k8s endpoint is expected to be accessible publicly.
- Specified by:
getKubectlPrivateSubnetsin interfaceICluster- Specified by:
getKubectlPrivateSubnetsin interfaceICluster.Jsii$Default
-
getKubectlProvider
Kubectl Provider for issuing kubectl commands against it.If not defined, a default provider will be used
- Specified by:
getKubectlProviderin interfaceICluster- Specified by:
getKubectlProviderin interfaceICluster.Jsii$Default
-
getKubectlRole
An IAM role that can perform kubectl operations against this cluster.The role should be mapped to the
system:mastersKubernetes RBAC role.- Specified by:
getKubectlRolein interfaceICluster- Specified by:
getKubectlRolein interfaceICluster.Jsii$Default
-
getKubectlSecurityGroup
A security group to use forkubectlexecution.If this is undefined, the k8s endpoint is expected to be accessible publicly.
- Specified by:
getKubectlSecurityGroupin interfaceICluster- Specified by:
getKubectlSecurityGroupin interfaceICluster.Jsii$Default
-
getOnEventLayer
An AWS Lambda layer that includes the NPM dependencyproxy-agent.If not defined, a default layer will be used.
- Specified by:
getOnEventLayerin interfaceICluster- Specified by:
getOnEventLayerin interfaceICluster.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.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).- Specified by:
applyRemovalPolicyin interfaceICluster.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addCdk8sChart
@Stability(Stable) @NotNull public final KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart, @Nullable KubernetesManifestOptions options) Defines a CDK8s chart in this cluster.- Specified by:
addCdk8sChartin interfaceICluster- Specified by:
addCdk8sChartin interfaceICluster.Jsii$Default- Parameters:
id- logical id of this chart. This parameter is required.chart- the cdk8s chart. This parameter is required.options-- Returns:
- a
KubernetesManifestconstruct representing the chart.
-
addCdk8sChart
@Stability(Stable) @NotNull public final KubernetesManifest addCdk8sChart(@NotNull String id, @NotNull software.constructs.Construct chart) Defines a CDK8s chart in this cluster.- Specified by:
addCdk8sChartin interfaceICluster- Parameters:
id- logical id of this chart. This parameter is required.chart- the cdk8s chart. This parameter is required.- Returns:
- a
KubernetesManifestconstruct representing the chart.
-
addHelmChart
@Stability(Stable) @NotNull public final HelmChart addHelmChart(@NotNull String id, @NotNull HelmChartOptions options) Defines a Helm chart in this cluster.- Specified by:
addHelmChartin interfaceICluster- Specified by:
addHelmChartin interfaceICluster.Jsii$Default- Parameters:
id- logical id of this chart. This parameter is required.options- options of this chart. This parameter is required.- Returns:
- a
HelmChartconstruct
-
addManifest
@Stability(Stable) @NotNull public final KubernetesManifest addManifest(@NotNull String id, @NotNull Map<String, Object>... manifest) Defines a Kubernetes resource in this cluster.The manifest will be applied/deleted using kubectl as needed.
- Specified by:
addManifestin interfaceICluster- Specified by:
addManifestin interfaceICluster.Jsii$Default- Parameters:
id- logical id of this manifest. This parameter is required.manifest- a list of Kubernetes resource specifications. This parameter is required.- Returns:
- a
KubernetesManifestobject.
-
addServiceAccount
@Stability(Stable) @NotNull public final ServiceAccount addServiceAccount(@NotNull String id, @Nullable ServiceAccountOptions options) Creates a new service account with corresponding IAM Role (IRSA).- Specified by:
addServiceAccountin interfaceICluster- Specified by:
addServiceAccountin interfaceICluster.Jsii$Default- Parameters:
id- logical id of service account. This parameter is required.options- service account options.
-
addServiceAccount
Creates a new service account with corresponding IAM Role (IRSA).- Specified by:
addServiceAccountin interfaceICluster- Parameters:
id- logical id of service account. This parameter is required.
-
connectAutoScalingGroupCapacity
@Stability(Stable) public final void connectAutoScalingGroupCapacity(@NotNull AutoScalingGroup autoScalingGroup, @NotNull AutoScalingGroupOptions options) Connect capacity in the form of an existing AutoScalingGroup to the EKS cluster.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=Ec2Spotand tainted withPreferNoSchedule. 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
addAutoScalingGroupCapacityif possible.- Specified by:
connectAutoScalingGroupCapacityin interfaceICluster- Specified by:
connectAutoScalingGroupCapacityin interfaceICluster.Jsii$Default- Parameters:
autoScalingGroup- [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.- See Also:
-