EndpointAccess

class aws_cdk.aws_eks.EndpointAccess(*args: Any, **kwargs)

Bases: object

Endpoint access characteristics.

ExampleMetadata:

infused

Example:

cluster = eks.Cluster(self, "hello-eks",
    version=eks.KubernetesVersion.V1_31,
    endpoint_access=eks.EndpointAccess.PRIVATE
)

Methods

only_from(*cidr)

Restrict public access to specific CIDR blocks.

If public access is disabled, this method will result in an error.

Parameters:

cidr (str) – CIDR blocks.

Return type:

EndpointAccess

Attributes

PRIVATE = <aws_cdk.aws_eks.EndpointAccess object>
PUBLIC = <aws_cdk.aws_eks.EndpointAccess object>
PUBLIC_AND_PRIVATE = <aws_cdk.aws_eks.EndpointAccess object>