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:
IClientVpnEndpointRef,IEnvironmentAware,IResource,IClientVpnEndpoint,IConnectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:09.155Z")
@Stability(Stable)
public class ClientVpnEndpoint
extends Resource
implements IClientVpnEndpoint
A client VPN connection.
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());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IClientVpnEndpoint
IClientVpnEndpoint.Jsii$Default, IClientVpnEndpoint.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientVpnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedClientVpnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) ClientVpnEndpoint(software.constructs.Construct scope, String id, ClientVpnEndpointProps props) -
Method Summary
Modifier and TypeMethodDescriptionAdds an authorization rule to this endpoint.addRoute(String id, ClientVpnRouteOptions props) Adds a route to this endpoint.static IClientVpnEndpointfromEndpointAttributes(software.constructs.Construct scope, String id, ClientVpnEndpointAttributes attrs) Import an existing client VPN endpoint.A reference to a ClientVpnEndpoint resource.Allows specify security group connections for the endpoint.The endpoint ID.software.constructs.IDependableDependable that can be depended upon to force target networks associations.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.ec2.IClientVpnEndpoint
getEnv, getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
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.
-
getClientVpnEndpointRef
A reference to a ClientVpnEndpoint resource.- Specified by:
getClientVpnEndpointRefin interfaceIClientVpnEndpointRef
-
getConnections
Allows specify security group connections for the endpoint.- Specified by:
getConnectionsin interfaceIConnectable
-
getEndpointId
The endpoint ID.- Specified by:
getEndpointIdin interfaceIClientVpnEndpoint
-
getTargetNetworksAssociated
@Stability(Stable) @NotNull public software.constructs.IDependable getTargetNetworksAssociated()Dependable that can be depended upon to force target networks associations.- Specified by:
getTargetNetworksAssociatedin interfaceIClientVpnEndpoint
-