@Stability(value=Stable) public static final class VpnConnection.Builder extends Object
VpnConnection
.Modifier and Type | Method and Description |
---|---|
VpnConnection.Builder |
asn(Number asn)
The ASN of the customer gateway.
|
VpnConnection |
build() |
static VpnConnection.Builder |
create(Construct scope,
String id) |
VpnConnection.Builder |
ip(String ip)
The ip address of the customer gateway.
|
VpnConnection.Builder |
staticRoutes(List<String> staticRoutes)
The static routes to be routed from the VPN gateway to the customer gateway.
|
VpnConnection.Builder |
tunnelOptions(List<VpnTunnelOption> tunnelOptions)
The tunnel options for the VPN connection.
|
VpnConnection.Builder |
vpc(IVpc vpc)
The VPC to connect to.
|
@Stability(value=Stable) public static VpnConnection.Builder create(Construct scope, String id)
scope
- This parameter is required.id
- This parameter is required.VpnConnection.Builder
.@Stability(value=Stable) public VpnConnection.Builder ip(String ip)
ip
- The ip address of the customer gateway. This parameter is required.this
@Stability(value=Stable) public VpnConnection.Builder asn(Number asn)
Default: 65000
asn
- The ASN of the customer gateway. This parameter is required.this
@Stability(value=Stable) public VpnConnection.Builder staticRoutes(List<String> staticRoutes)
Default: Dynamic routing (BGP)
staticRoutes
- The static routes to be routed from the VPN gateway to the customer gateway. This parameter is required.this
@Stability(value=Stable) public VpnConnection.Builder tunnelOptions(List<VpnTunnelOption> tunnelOptions)
At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
tunnelOptions
- The tunnel options for the VPN connection. This parameter is required.this
@Stability(value=Stable) public VpnConnection.Builder vpc(IVpc vpc)
vpc
- The VPC to connect to. This parameter is required.this
@Stability(value=Stable) public VpnConnection build()
Copyright © 2020. All rights reserved.