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());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IClientVpnEndpoint
IClientVpnEndpoint.Jsii$Default, IClientVpnEndpoint.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
ClientVpnEndpoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ClientVpnEndpoint
(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 IClientVpnEndpoint
fromEndpointAttributes
(software.constructs.Construct scope, String id, ClientVpnEndpointAttributes attrs) Import an existing client VPN endpoint.Allows specify security group connections for the endpoint.The endpoint ID.software.constructs.IDependable
Dependable 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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
Allows specify security group connections for the endpoint.- Specified by:
getConnections
in interfaceIConnectable
-
getEndpointId
The endpoint ID.- Specified by:
getEndpointId
in interfaceIClientVpnEndpoint
-
getTargetNetworksAssociated
@Stability(Stable) @NotNull public software.constructs.IDependable getTargetNetworksAssociated()Dependable that can be depended upon to force target networks associations.- Specified by:
getTargetNetworksAssociated
in interfaceIClientVpnEndpoint
-