Class EndpointAccess

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.eks.EndpointAccess
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.908Z") @Stability(Stable) public class EndpointAccess extends software.amazon.jsii.JsiiObject
Endpoint access characteristics.

Example:

 Cluster cluster = Cluster.Builder.create(this, "hello-eks")
         .version(KubernetesVersion.V1_29)
         .endpointAccess(EndpointAccess.PRIVATE)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    EndpointAccess(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    EndpointAccess(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    onlyFrom(@NotNull String... cidr)
    Restrict 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

      @Stability(Stable) public static final EndpointAccess PRIVATE
      The cluster endpoint is only accessible through your VPC.

      Worker node traffic to the endpoint will stay within your VPC.

    • PUBLIC

      @Stability(Stable) public static final EndpointAccess 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

      @Stability(Stable) public static final EndpointAccess 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

      @Stability(Stable) @NotNull public EndpointAccess onlyFrom(@NotNull @NotNull String... cidr)
      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.