public static final class CfnVPNConnection.Builder
extends java.lang.Object
CfnVPNConnection
.Modifier and Type | Method and Description |
---|---|
CfnVPNConnection |
build() |
static CfnVPNConnection.Builder |
create(Construct scope,
java.lang.String id) |
CfnVPNConnection.Builder |
customerGatewayId(java.lang.String customerGatewayId)
The ID of the customer gateway at your end of the VPN connection.
|
CfnVPNConnection.Builder |
staticRoutesOnly(java.lang.Boolean staticRoutesOnly)
Indicates whether the VPN connection uses static routes only.
|
CfnVPNConnection.Builder |
staticRoutesOnly(IResolvable staticRoutesOnly)
Indicates whether the VPN connection uses static routes only.
|
CfnVPNConnection.Builder |
tags(java.util.List<? extends CfnTag> tags)
Any tags assigned to the VPN connection.
|
CfnVPNConnection.Builder |
transitGatewayId(java.lang.String transitGatewayId)
The ID of the transit gateway associated with the VPN connection.
|
CfnVPNConnection.Builder |
type(java.lang.String type)
The type of VPN connection.
|
CfnVPNConnection.Builder |
vpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway at the AWS side of the VPN connection.
|
CfnVPNConnection.Builder |
vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications)
The tunnel options for the VPN connection.
|
CfnVPNConnection.Builder |
vpnTunnelOptionsSpecifications(java.util.List<? extends java.lang.Object> vpnTunnelOptionsSpecifications)
The tunnel options for the VPN connection.
|
public static CfnVPNConnection.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnVPNConnection.VpnTunnelOptionsSpecificationProperty.Builder
.public CfnVPNConnection.Builder customerGatewayId(java.lang.String customerGatewayId)
customerGatewayId
- The ID of the customer gateway at your end of the VPN connection. This parameter is required.this
public CfnVPNConnection.Builder type(java.lang.String type)
type
- The type of VPN connection. This parameter is required.this
public CfnVPNConnection.Builder staticRoutesOnly(java.lang.Boolean staticRoutesOnly)
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
.
staticRoutesOnly
- Indicates whether the VPN connection uses static routes only. This parameter is required.this
public CfnVPNConnection.Builder staticRoutesOnly(IResolvable staticRoutesOnly)
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
.
staticRoutesOnly
- Indicates whether the VPN connection uses static routes only. This parameter is required.this
public CfnVPNConnection.Builder tags(java.util.List<? extends CfnTag> tags)
tags
- Any tags assigned to the VPN connection. This parameter is required.this
public CfnVPNConnection.Builder transitGatewayId(java.lang.String transitGatewayId)
You must specify either TransitGatewayId
or VpnGatewayId
, but not both.
transitGatewayId
- The ID of the transit gateway associated with the VPN connection. This parameter is required.this
public CfnVPNConnection.Builder vpnGatewayId(java.lang.String vpnGatewayId)
You must specify either TransitGatewayId
or VpnGatewayId
, but not both.
vpnGatewayId
- The ID of the virtual private gateway at the AWS side of the VPN connection. This parameter is required.this
public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(IResolvable vpnTunnelOptionsSpecifications)
vpnTunnelOptionsSpecifications
- The tunnel options for the VPN connection. This parameter is required.this
public CfnVPNConnection.Builder vpnTunnelOptionsSpecifications(java.util.List<? extends java.lang.Object> vpnTunnelOptionsSpecifications)
vpnTunnelOptionsSpecifications
- The tunnel options for the VPN connection. This parameter is required.this
public CfnVPNConnection build()