Class EndpointAccess
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster = Cluster.Builder.create(this, "hello-eks") .version(KubernetesVersion.V1_30) .endpointAccess(EndpointAccess.PRIVATE) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EndpointAccess
The cluster endpoint is only accessible through your VPC.static final EndpointAccess
The cluster endpoint is accessible from outside of your VPC.static final EndpointAccess
The cluster endpoint is accessible from outside of your VPC. -
Constructor Summary
ModifierConstructorDescriptionprotected
EndpointAccess
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
EndpointAccess
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionRestrict public access to specific CIDR blocks.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PRIVATE
The cluster endpoint is only accessible through your VPC.Worker node traffic to the endpoint will stay within your VPC.
-
PUBLIC
The cluster endpoint is accessible from outside of your VPC.Worker node traffic will leave your VPC to connect to the endpoint.
By default, the endpoint is exposed to all adresses. You can optionally limit the CIDR blocks that can access the public endpoint using the
PUBLIC.onlyFrom
method. If you limit access to specific CIDR blocks, you must ensure that the CIDR blocks that you specify include the addresses that worker nodes and Fargate pods (if you use them) access the public endpoint from. -
PUBLIC_AND_PRIVATE
The cluster endpoint is accessible from outside of your VPC.Worker node traffic to the endpoint will stay within your VPC.
By default, the endpoint is exposed to all adresses. You can optionally limit the CIDR blocks that can access the public endpoint using the
PUBLIC_AND_PRIVATE.onlyFrom
method. If you limit access to specific CIDR blocks, you must ensure that the CIDR blocks that you specify include the addresses that worker nodes and Fargate pods (if you use them) access the public endpoint from.
-
-
Constructor Details
-
EndpointAccess
protected EndpointAccess(software.amazon.jsii.JsiiObjectRef objRef) -
EndpointAccess
protected EndpointAccess(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
onlyFrom
Restrict public access to specific CIDR blocks.If public access is disabled, this method will result in an error.
- Parameters:
cidr
- CIDR blocks. This parameter is required.
-