public static final class CfnClientVpnRoute.Builder
extends java.lang.Object
CfnClientVpnRoute
.Modifier and Type | Method and Description |
---|---|
CfnClientVpnRoute |
build() |
CfnClientVpnRoute.Builder |
clientVpnEndpointId(java.lang.String clientVpnEndpointId)
The ID of the Client VPN endpoint to which to add the route.
|
static CfnClientVpnRoute.Builder |
create(Construct scope,
java.lang.String id) |
CfnClientVpnRoute.Builder |
description(java.lang.String description)
A brief description of the route.
|
CfnClientVpnRoute.Builder |
destinationCidrBlock(java.lang.String destinationCidrBlock)
The IPv4 address range, in CIDR notation, of the route destination.
|
CfnClientVpnRoute.Builder |
targetVpcSubnetId(java.lang.String targetVpcSubnetId)
The ID of the subnet through which you want to route traffic.
|
public static CfnClientVpnRoute.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnClientVpnRoute.Builder
.public CfnClientVpnRoute.Builder clientVpnEndpointId(java.lang.String clientVpnEndpointId)
clientVpnEndpointId
- The ID of the Client VPN endpoint to which to add the route. This parameter is required.this
public CfnClientVpnRoute.Builder destinationCidrBlock(java.lang.String destinationCidrBlock)
0.0.0.0/0
destinationCidrBlock
- The IPv4 address range, in CIDR notation, of the route destination. For example:. This parameter is required.this
public CfnClientVpnRoute.Builder targetVpcSubnetId(java.lang.String targetVpcSubnetId)
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
.
targetVpcSubnetId
- The ID of the subnet through which you want to route traffic. This parameter is required.this
public CfnClientVpnRoute.Builder description(java.lang.String description)
description
- A brief description of the route. This parameter is required.this
public CfnClientVpnRoute build()