Class ClientVpnEndpoint

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.ClientVpnEndpoint
All Implemented Interfaces:
IResource, IClientVpnEndpoint, IConnectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:07.053Z") @Stability(Stable) public class ClientVpnEndpoint extends Resource implements IClientVpnEndpoint
A client VPN connnection.

Example:

 ClientVpnEndpoint endpoint = vpc.addClientVpnEndpoint("Endpoint", ClientVpnEndpointOptions.builder()
         .cidr("10.100.0.0/16")
         .serverCertificateArn("arn:aws:acm:us-east-1:123456789012:certificate/server-certificate-id")
         .userBasedAuthentication(ClientVpnUserBasedAuthentication.federated(samlProvider))
         .authorizeAllUsersToVpcCidr(false)
         .build());
 endpoint.addAuthorizationRule("Rule", ClientVpnAuthorizationRuleOptions.builder()
         .cidr("10.0.10.0/32")
         .groupId("group-id")
         .build());
 
  • Constructor Details

    • ClientVpnEndpoint

      protected ClientVpnEndpoint(software.amazon.jsii.JsiiObjectRef objRef)
    • ClientVpnEndpoint

      protected ClientVpnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ClientVpnEndpoint

      @Stability(Stable) public ClientVpnEndpoint(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClientVpnEndpointProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromEndpointAttributes

      @Stability(Stable) @NotNull public static IClientVpnEndpoint fromEndpointAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClientVpnEndpointAttributes attrs)
      Import an existing client VPN endpoint.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • addAuthorizationRule

      @Stability(Stable) @NotNull public ClientVpnAuthorizationRule addAuthorizationRule(@NotNull String id, @NotNull ClientVpnAuthorizationRuleOptions props)
      Adds an authorization rule to this endpoint.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.
    • addRoute

      @Stability(Stable) @NotNull public ClientVpnRoute addRoute(@NotNull String id, @NotNull ClientVpnRouteOptions props)
      Adds a route to this endpoint.

      Parameters:
      id - This parameter is required.
      props - This parameter is required.
    • getConnections

      @Stability(Stable) @NotNull public Connections getConnections()
      Allows specify security group connections for the endpoint.
      Specified by:
      getConnections in interface IConnectable
    • getEndpointId

      @Stability(Stable) @NotNull public String getEndpointId()
      The endpoint ID.
      Specified by:
      getEndpointId in interface IClientVpnEndpoint
    • getTargetNetworksAssociated

      @Stability(Stable) @NotNull public software.constructs.IDependable getTargetNetworksAssociated()
      Dependable that can be depended upon to force target networks associations.
      Specified by:
      getTargetNetworksAssociated in interface IClientVpnEndpoint