Class CfnClientVpnRoutePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnClientVpnRoutePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnRoutePropsMixin>
- Enclosing class:
CfnClientVpnRoutePropsMixin
@Stability(Stable)
public static final class CfnClientVpnRoutePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnRoutePropsMixin>
A fluent builder for
CfnClientVpnRoutePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()clientVpnEndpointId(String clientVpnEndpointId) The ID of the Client VPN endpoint to which to add the route.create()create(CfnPropertyMixinOptions options) 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 CfnClientVpnRoutePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnClientVpnRoutePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnClientVpnRoutePropsMixin.Builder.
-
clientVpnEndpointId
@Stability(Stable) public CfnClientVpnRoutePropsMixin.Builder clientVpnEndpointId(String 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:
-
description
A brief description of the route.- Parameters:
description- A brief description of the route. This parameter is required.- Returns:
this- See Also:
-
destinationCidrBlock
@Stability(Stable) public CfnClientVpnRoutePropsMixin.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
@Stability(Stable) public CfnClientVpnRoutePropsMixin.Builder targetVpcSubnetId(String 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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClientVpnRoutePropsMixin>- Returns:
- a newly built instance of
CfnClientVpnRoutePropsMixin.
-