Class EndpointAccess
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Example:
Cluster cluster = Cluster.Builder.create(this, "hello-eks")
.version(KubernetesVersion.V1_21)
.endpointAccess(EndpointAccess.PRIVATE)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EndpointAccessThe cluster endpoint is only accessible through your VPC.static final EndpointAccessThe cluster endpoint is accessible from outside of your VPC.static final EndpointAccessThe cluster endpoint is accessible from outside of your VPC. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEndpointAccess(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEndpointAccess(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, 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
-
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.onlyFrommethod. 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.onlyFrommethod. 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.
-