Class CfnClientVpnRoute.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnRoute>
- Enclosing class:
CfnClientVpnRoute
@Stability(Stable)
public static final class CfnClientVpnRoute.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnRoute>
A fluent builder for
CfnClientVpnRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clientVpnEndpointId
(String clientVpnEndpointId) The ID of the Client VPN endpoint to which to add the route.static CfnClientVpnRoute.Builder
description
(String description) A brief description of the route.destinationCidrBlock
(String destinationCidrBlock) The IPv4 address range, in CIDR notation, of the route destination.targetVpcSubnetId
(String targetVpcSubnetId) The ID of the subnet through which you want to route traffic.
-
Method Details
-
create
@Stability(Stable) public static CfnClientVpnRoute.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnClientVpnRoute.Builder
.
-
clientVpnEndpointId
The ID of the Client VPN endpoint to which to add the route.- Parameters:
clientVpnEndpointId
- The ID of the Client VPN endpoint to which to add the route. This parameter is required.- Returns:
this
- See Also:
-
destinationCidrBlock
@Stability(Stable) public CfnClientVpnRoute.Builder destinationCidrBlock(String destinationCidrBlock) 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
- Parameters:
destinationCidrBlock
- The IPv4 address range, in CIDR notation, of the route destination. For example:. This parameter is required.- Returns:
this
- See Also:
- To add a route for Internet access, enter
-
targetVpcSubnetId
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
.- Parameters:
targetVpcSubnetId
- The ID of the subnet through which you want to route traffic. This parameter is required.- Returns:
this
- See Also:
-
description
A brief description of the route.- Parameters:
description
- A brief description of the route. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClientVpnRoute>
- Returns:
- a newly built instance of
CfnClientVpnRoute
.
-