Interface ClientVpnRouteOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ClientVpnRouteProps
- All Known Implementing Classes:
ClientVpnRouteOptions.Jsii$Proxy,ClientVpnRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.355Z")
@Stability(Stable)
public interface ClientVpnRouteOptions
extends software.amazon.jsii.JsiiSerializable
Options for a ClientVpnRoute.
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))
.build());
// Client-to-client access
endpoint.addRoute("Route", ClientVpnRouteOptions.builder()
.cidr("10.100.0.0/16")
.target(ClientVpnRouteTarget.local())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forClientVpnRouteOptionsstatic final classAn implementation forClientVpnRouteOptions -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCidr
The IPv4 address range, in CIDR notation, of the route destination.For example:
- To add a route for Internet access, enter 0.0.0.0/0
- To add a route for a peered VPC, enter the peered VPC's IPv4 CIDR range
- To add a route for an on-premises network, enter the AWS Site-to-Site VPN connection's IPv4 CIDR range
- To add a route for the local network, enter the client CIDR range
-
getTarget
The target for the route. -
getDescription
A brief description of the authorization rule.Default: - no description
-
builder
- Returns:
- a
ClientVpnRouteOptions.BuilderofClientVpnRouteOptions
-