Interface CfnClientVpnRouteProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnClientVpnRouteProps.Jsii$Proxy
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnClientVpnRouteProps
static final class
An 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. -
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
- 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
. -
getDescription
A brief description of the route. -
builder
- Returns:
- a
CfnClientVpnRouteProps.Builder
ofCfnClientVpnRouteProps
-