@Stability(value=Experimental) public static final class VpnConnection.Builder extends Object implements software.amazon.jsii.Builder<VpnConnection>
VpnConnection.| Modifier and Type | Method and Description |
|---|---|
VpnConnection.Builder |
asn(Number asn)
(experimental) The ASN of the customer gateway.
|
VpnConnection |
build() |
static VpnConnection.Builder |
create(software.constructs.Construct scope,
String id) |
VpnConnection.Builder |
ip(String ip)
(experimental) The ip address of the customer gateway.
|
VpnConnection.Builder |
staticRoutes(List<String> staticRoutes)
(experimental) The static routes to be routed from the VPN gateway to the customer gateway.
|
VpnConnection.Builder |
tunnelOptions(List<? extends VpnTunnelOption> tunnelOptions)
(experimental) The tunnel options for the VPN connection.
|
VpnConnection.Builder |
vpc(IVpc vpc)
(experimental) The VPC to connect to.
|
@Stability(value=Experimental) public static VpnConnection.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.VpnConnection.Builder.@Stability(value=Experimental) public VpnConnection.Builder ip(String ip)
ip - The ip address of the customer gateway. This parameter is required.this@Stability(value=Experimental) public VpnConnection.Builder asn(Number asn)
Default: 65000
asn - The ASN of the customer gateway. This parameter is required.this@Stability(value=Experimental) 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=Experimental) public VpnConnection.Builder tunnelOptions(List<? extends 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=Experimental) public VpnConnection.Builder vpc(IVpc vpc)
vpc - The VPC to connect to. This parameter is required.this@Stability(value=Experimental) public VpnConnection build()
build in interface software.amazon.jsii.Builder<VpnConnection>Copyright © 2021. All rights reserved.