Class VpnConnection.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.VpnConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VpnConnection>
- Enclosing class:
VpnConnection
@Stability(Stable)
public static final class VpnConnection.Builder
extends Object
implements software.amazon.jsii.Builder<VpnConnection>
A fluent builder for
VpnConnection
.-
Method Summary
Modifier and TypeMethodDescriptionThe ASN of the customer gateway.build()
static VpnConnection.Builder
The ip address of the customer gateway.staticRoutes
(List<String> staticRoutes) The static routes to be routed from the VPN gateway to the customer gateway.tunnelOptions
(List<? extends VpnTunnelOption> tunnelOptions) The tunnel options for the VPN connection.The VPC to connect to.
-
Method Details
-
create
@Stability(Stable) public static VpnConnection.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
VpnConnection.Builder
.
-
ip
The ip address of the customer gateway.- Parameters:
ip
- The ip address of the customer gateway. This parameter is required.- Returns:
this
-
asn
The ASN of the customer gateway.Default: 65000
- Parameters:
asn
- The ASN of the customer gateway. This parameter is required.- Returns:
this
-
staticRoutes
The static routes to be routed from the VPN gateway to the customer gateway.Default: Dynamic routing (BGP)
- Parameters:
staticRoutes
- The static routes to be routed from the VPN gateway to the customer gateway. This parameter is required.- Returns:
this
-
tunnelOptions
@Stability(Stable) public VpnConnection.Builder tunnelOptions(List<? extends VpnTunnelOption> tunnelOptions) The tunnel options for the VPN connection.At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
- Parameters:
tunnelOptions
- The tunnel options for the VPN connection. This parameter is required.- Returns:
this
-
vpc
The VPC to connect to.- Parameters:
vpc
- The VPC to connect to. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VpnConnection>
- Returns:
- a newly built instance of
VpnConnection
.
-