Class EndpointAccess
(experimental) Endpoint access characteristics.
Inheritance
Namespace: Amazon.CDK.AWS.Eks.V2.Alpha
Assembly: Amazon.CDK.AWS.Eks.V2.Alpha.dll
Syntax (csharp)
public class EndpointAccess : DeputyBase
Syntax (vb)
Public Class EndpointAccess
Inherits DeputyBase
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
var cluster = new Cluster(this, "hello-eks", new ClusterProps {
Version = KubernetesVersion.V1_32,
EndpointAccess = EndpointAccess.PRIVATE
});
Synopsis
Constructors
Endpoint |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Endpoint |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
PRIVATE | (experimental) The cluster endpoint is only accessible through your VPC. |
PUBLIC | (experimental) The cluster endpoint is accessible from outside of your VPC. |
PUBLIC_AND_PRIVATE | (experimental) The cluster endpoint is accessible from outside of your VPC. |
Methods
Only |
(experimental) Restrict public access to specific CIDR blocks. |
Constructors
EndpointAccess(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected EndpointAccess(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
EndpointAccess(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected EndpointAccess(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
Properties
PRIVATE
(experimental) The cluster endpoint is only accessible through your VPC.
public static EndpointAccess PRIVATE { get; }
Property Value
Remarks
Worker node traffic to the endpoint will stay within your VPC.
Stability: Experimental
PUBLIC
(experimental) The cluster endpoint is accessible from outside of your VPC.
public static EndpointAccess PUBLIC { get; }
Property Value
Remarks
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.
Stability: Experimental
PUBLIC_AND_PRIVATE
(experimental) The cluster endpoint is accessible from outside of your VPC.
public static EndpointAccess PUBLIC_AND_PRIVATE { get; }
Property Value
Remarks
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.
Stability: Experimental
Methods
OnlyFrom(String[])
(experimental) Restrict public access to specific CIDR blocks.
public virtual EndpointAccess OnlyFrom(params string[] cidr)
Parameters
- cidr System.
String [] CIDR blocks.
Returns
Remarks
If public access is disabled, this method will result in an error.
Stability: Experimental