Interface VpnConnectionOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
VpnConnectionProps
- All Known Implementing Classes:
VpnConnectionOptions.Jsii$Proxy
,VpnConnectionProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.593Z")
@Stability(Stable)
public interface VpnConnectionOptions
extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc = Vpc.Builder.create(this, "MyVpc") .vpnConnections(Map.of( "dynamic", VpnConnectionOptions.builder() // Dynamic routing (BGP) .ip("1.2.3.4").build(), "static", VpnConnectionOptions.builder() // Static routing .ip("4.5.6.7") .staticRoutes(List.of("192.168.10.0/24", "192.168.20.0/24")).build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVpnConnectionOptions
static final class
An implementation forVpnConnectionOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpnConnectionOptions.Builder
builder()
default Number
getAsn()
The ASN of the customer gateway.getIp()
The ip address of the customer gateway.The static routes to be routed from the VPN gateway to the customer gateway.default List<VpnTunnelOption>
The tunnel options for the VPN connection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIp
The ip address of the customer gateway. -
getAsn
The ASN of the customer gateway.Default: 65000
-
getStaticRoutes
The static routes to be routed from the VPN gateway to the customer gateway.Default: Dynamic routing (BGP)
-
getTunnelOptions
The tunnel options for the VPN connection.At most two elements (one per tunnel). Duplicates not allowed.
Default: Amazon generated tunnel options
-
builder
- Returns:
- a
VpnConnectionOptions.Builder
ofVpnConnectionOptions
-