Interface CfnClientVpnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnClientVpnRouteProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:09.124Z")
@Stability(Stable)
public interface CfnClientVpnRouteProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnClientVpnRoute.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnClientVpnRouteProps cfnClientVpnRouteProps = CfnClientVpnRouteProps.builder()
.clientVpnEndpointId("clientVpnEndpointId")
.destinationCidrBlock("destinationCidrBlock")
.targetVpcSubnetId("targetVpcSubnetId")
// the properties below are optional
.description("description")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnClientVpnRoutePropsstatic final classAn implementation forCfnClientVpnRouteProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getClientVpnEndpointId
The ID of the Client VPN endpoint to which to add the route.- See Also:
-
getDestinationCidrBlock
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
- See Also:
- To add a route for Internet access, enter
-
getTargetVpcSubnetId
The ID of the subnet through which you want to route traffic.The specified subnet must be an existing target network of the Client VPN endpoint.
Alternatively, if you're adding a route for the local network, specify
local.- See Also:
-
getDescription
A brief description of the route.- See Also:
-
builder
- Returns:
- a
CfnClientVpnRouteProps.BuilderofCfnClientVpnRouteProps
-