Class ClientVpnRoute.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnRoute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnRoute>
- Enclosing class:
ClientVpnRoute
@Stability(Stable)
public static final class ClientVpnRoute.Builder
extends Object
implements software.amazon.jsii.Builder<ClientVpnRoute>
A fluent builder for
ClientVpnRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The IPv4 address range, in CIDR notation, of the route destination.clientVpnEndoint
(IClientVpnEndpoint clientVpnEndoint) Deprecated.clientVpnEndpoint
(IClientVpnEndpoint clientVpnEndpoint) The client VPN endpoint to which to add the route.static ClientVpnRoute.Builder
description
(String description) A brief description of the authorization rule.target
(ClientVpnRouteTarget target) The target for the route.
-
Method Details
-
create
@Stability(Stable) public static ClientVpnRoute.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ClientVpnRoute.Builder
.
-
cidr
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:
cidr
- The IPv4 address range, in CIDR notation, of the route destination. This parameter is required.- Returns:
this
-
target
The target for the route.- Parameters:
target
- The target for the route. This parameter is required.- Returns:
this
-
description
A brief description of the authorization rule.Default: - no description
- Parameters:
description
- A brief description of the authorization rule. This parameter is required.- Returns:
this
-
clientVpnEndoint
@Stability(Deprecated) @Deprecated public ClientVpnRoute.Builder clientVpnEndoint(IClientVpnEndpoint clientVpnEndoint) Deprecated.UseclientVpnEndpoint
instead(deprecated) The client VPN endpoint to which to add the route.Default: clientVpnEndpoint is required
- Parameters:
clientVpnEndoint
- The client VPN endpoint to which to add the route. This parameter is required.- Returns:
this
-
clientVpnEndpoint
@Stability(Stable) public ClientVpnRoute.Builder clientVpnEndpoint(IClientVpnEndpoint clientVpnEndpoint) The client VPN endpoint to which to add the route.Default: clientVpnEndpoint is required
- Parameters:
clientVpnEndpoint
- The client VPN endpoint to which to add the route. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClientVpnRoute>
- Returns:
- a newly built instance of
ClientVpnRoute
.
-
clientVpnEndpoint
instead