Class ClientVpnEndpoint
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.ec2.ClientVpnEndpoint
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IClientVpnEndpoint
,IConnectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.258Z")
@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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.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.Dependable that can be depended upon to force target networks associations.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
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.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.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
Dependable that can be depended upon to force target networks associations.- Specified by:
getTargetNetworksAssociated
in interfaceIClientVpnEndpoint
-