Class CfnVPNConnection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPNConnection>
- Enclosing class:
CfnVPNConnection
CfnVPNConnection
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnVPNConnection.Builder
customerGatewayId
(String customerGatewayId) The ID of the customer gateway at your end of the VPN connection.enableAcceleration
(Boolean enableAcceleration) Indicate whether to enable acceleration for the VPN connection.enableAcceleration
(IResolvable enableAcceleration) Indicate whether to enable acceleration for the VPN connection.localIpv4NetworkCidr
(String localIpv4NetworkCidr) The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.localIpv6NetworkCidr
(String localIpv6NetworkCidr) The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.outsideIpAddressType
(String outsideIpAddressType) The type of IPv4 address assigned to the outside interface of the customer gateway device.remoteIpv4NetworkCidr
(String remoteIpv4NetworkCidr) The IPv4 CIDR on the AWS side of the VPN connection.remoteIpv6NetworkCidr
(String remoteIpv6NetworkCidr) The IPv6 CIDR on the AWS side of the VPN connection.staticRoutesOnly
(Boolean staticRoutesOnly) Indicates whether the VPN connection uses static routes only.staticRoutesOnly
(IResolvable staticRoutesOnly) Indicates whether the VPN connection uses static routes only.Any tags assigned to the VPN connection.transitGatewayId
(String transitGatewayId) The ID of the transit gateway associated with the VPN connection.transportTransitGatewayAttachmentId
(String transportTransitGatewayAttachmentId) The transit gateway attachment ID to use for the VPN tunnel.tunnelInsideIpVersion
(String tunnelInsideIpVersion) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.The type of VPN connection.vpnGatewayId
(String vpnGatewayId) The ID of the virtual private gateway at the AWS side of the VPN connection.vpnTunnelOptionsSpecifications
(List<? extends Object> vpnTunnelOptionsSpecifications) The tunnel options for the VPN connection.vpnTunnelOptionsSpecifications
(IResolvable vpnTunnelOptionsSpecifications) The tunnel options for the VPN connection.
-
Method Details
-
create
@Stability(Stable) public static CfnVPNConnection.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVPNConnection.Builder
.
-
customerGatewayId
The ID of the customer gateway at your end of the VPN connection.- Parameters:
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
type
The type of VPN connection.- Parameters:
type
- The type of VPN connection. This parameter is required.- Returns:
this
- See Also:
-
enableAcceleration
Indicate whether to enable acceleration for the VPN connection.Default:
false
- Parameters:
enableAcceleration
- Indicate whether to enable acceleration for the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
enableAcceleration
@Stability(Stable) public CfnVPNConnection.Builder enableAcceleration(IResolvable enableAcceleration) Indicate whether to enable acceleration for the VPN connection.Default:
false
- Parameters:
enableAcceleration
- Indicate whether to enable acceleration for the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
localIpv4NetworkCidr
@Stability(Stable) public CfnVPNConnection.Builder localIpv4NetworkCidr(String localIpv4NetworkCidr) The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection.Default:
0.0.0.0/0
- Parameters:
localIpv4NetworkCidr
- The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
localIpv6NetworkCidr
@Stability(Stable) public CfnVPNConnection.Builder localIpv6NetworkCidr(String localIpv6NetworkCidr) The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection.Default:
::/0
- Parameters:
localIpv6NetworkCidr
- The IPv6 CIDR on the customer gateway (on-premises) side of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
outsideIpAddressType
@Stability(Stable) public CfnVPNConnection.Builder outsideIpAddressType(String outsideIpAddressType) The type of IPv4 address assigned to the outside interface of the customer gateway device.Valid values:
PrivateIpv4
|PublicIpv4
Default:
PublicIpv4
- Parameters:
outsideIpAddressType
- The type of IPv4 address assigned to the outside interface of the customer gateway device. This parameter is required.- Returns:
this
- See Also:
-
remoteIpv4NetworkCidr
@Stability(Stable) public CfnVPNConnection.Builder remoteIpv4NetworkCidr(String remoteIpv4NetworkCidr) The IPv4 CIDR on the AWS side of the VPN connection.Default:
0.0.0.0/0
- Parameters:
remoteIpv4NetworkCidr
- The IPv4 CIDR on the AWS side of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
remoteIpv6NetworkCidr
@Stability(Stable) public CfnVPNConnection.Builder remoteIpv6NetworkCidr(String remoteIpv6NetworkCidr) The IPv6 CIDR on the AWS side of the VPN connection.Default:
::/0
- Parameters:
remoteIpv6NetworkCidr
- The IPv6 CIDR on the AWS side of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
staticRoutesOnly
Indicates whether the VPN connection uses static routes only.Static routes must be used for devices that don't support BGP.
If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify
true
.- Parameters:
staticRoutesOnly
- Indicates whether the VPN connection uses static routes only. This parameter is required.- Returns:
this
- See Also:
-
staticRoutesOnly
Indicates whether the VPN connection uses static routes only.Static routes must be used for devices that don't support BGP.
If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify
true
.- Parameters:
staticRoutesOnly
- Indicates whether the VPN connection uses static routes only. This parameter is required.- Returns:
this
- See Also:
-
tags
Any tags assigned to the VPN connection.- Parameters:
tags
- Any tags assigned to the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
transitGatewayId
The ID of the transit gateway associated with the VPN connection.You must specify either
TransitGatewayId
orVpnGatewayId
, but not both.- Parameters:
transitGatewayId
- The ID of the transit gateway associated with the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
transportTransitGatewayAttachmentId
@Stability(Stable) public CfnVPNConnection.Builder transportTransitGatewayAttachmentId(String transportTransitGatewayAttachmentId) The transit gateway attachment ID to use for the VPN tunnel.Required if
OutsideIpAddressType
is set toPrivateIpv4
.- Parameters:
transportTransitGatewayAttachmentId
- The transit gateway attachment ID to use for the VPN tunnel. This parameter is required.- Returns:
this
- See Also:
-
tunnelInsideIpVersion
@Stability(Stable) public CfnVPNConnection.Builder tunnelInsideIpVersion(String tunnelInsideIpVersion) Indicate whether the VPN tunnels process IPv4 or IPv6 traffic.Default:
ipv4
- Parameters:
tunnelInsideIpVersion
- Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. This parameter is required.- Returns:
this
- See Also:
-
vpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.You must specify either
TransitGatewayId
orVpnGatewayId
, but not both.- Parameters:
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
vpnTunnelOptionsSpecifications
@Stability(Stable) public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications) The tunnel options for the VPN connection.- Parameters:
vpnTunnelOptionsSpecifications
- The tunnel options for the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
vpnTunnelOptionsSpecifications
@Stability(Stable) public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(List<? extends Object> vpnTunnelOptionsSpecifications) The tunnel options for the VPN connection.- Parameters:
vpnTunnelOptionsSpecifications
- The tunnel options for the VPN connection. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPNConnection>
- Returns:
- a newly built instance of
CfnVPNConnection
.
-