CfnVPNConnectionProps
- class aws_cdk.aws_ec2.CfnVPNConnectionProps(*, customer_gateway_id, type, enable_acceleration=None, local_ipv4_network_cidr=None, local_ipv6_network_cidr=None, outside_ip_address_type=None, remote_ipv4_network_cidr=None, remote_ipv6_network_cidr=None, static_routes_only=None, tags=None, transit_gateway_id=None, transport_transit_gateway_attachment_id=None, tunnel_inside_ip_version=None, vpn_gateway_id=None, vpn_tunnel_options_specifications=None)
Bases:
object
Properties for defining a
CfnVPNConnection
.- Parameters:
customer_gateway_id (
str
) – The ID of the customer gateway at your end of the VPN connection.type (
str
) – The type of VPN connection.enable_acceleration (
Union
[bool
,IResolvable
,None
]) – Indicate whether to enable acceleration for the VPN connection. Default:false
local_ipv4_network_cidr (
Optional
[str
]) –local_ipv6_network_cidr (
Optional
[str
]) –outside_ip_address_type (
Optional
[str
]) –remote_ipv4_network_cidr (
Optional
[str
]) –remote_ipv6_network_cidr (
Optional
[str
]) –static_routes_only (
Union
[bool
,IResolvable
,None
]) – 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 specifytrue
.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – Any tags assigned to the VPN connection.transit_gateway_id (
Optional
[str
]) – The ID of the transit gateway associated with the VPN connection. You must specify eitherTransitGatewayId
orVpnGatewayId
, but not both.transport_transit_gateway_attachment_id (
Optional
[str
]) –tunnel_inside_ip_version (
Optional
[str
]) –vpn_gateway_id (
Optional
[str
]) – The ID of the virtual private gateway at the AWS side of the VPN connection. You must specify eitherTransitGatewayId
orVpnGatewayId
, but not both.vpn_tunnel_options_specifications (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,VpnTunnelOptionsSpecificationProperty
,Dict
[str
,Any
]]],None
]) – The tunnel options for the VPN connection.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_vPNConnection_props = ec2.CfnVPNConnectionProps( customer_gateway_id="customerGatewayId", type="type", # the properties below are optional enable_acceleration=False, local_ipv4_network_cidr="localIpv4NetworkCidr", local_ipv6_network_cidr="localIpv6NetworkCidr", outside_ip_address_type="outsideIpAddressType", remote_ipv4_network_cidr="remoteIpv4NetworkCidr", remote_ipv6_network_cidr="remoteIpv6NetworkCidr", static_routes_only=False, tags=[CfnTag( key="key", value="value" )], transit_gateway_id="transitGatewayId", transport_transit_gateway_attachment_id="transportTransitGatewayAttachmentId", tunnel_inside_ip_version="tunnelInsideIpVersion", vpn_gateway_id="vpnGatewayId", vpn_tunnel_options_specifications=[ec2.CfnVPNConnection.VpnTunnelOptionsSpecificationProperty( pre_shared_key="preSharedKey", tunnel_inside_cidr="tunnelInsideCidr" )] )
Attributes
- customer_gateway_id
The ID of the customer gateway at your end of the VPN connection.
- enable_acceleration
Indicate whether to enable acceleration for the VPN connection.
Default:
false
- local_ipv4_network_cidr
-
- Type:
see
- local_ipv6_network_cidr
-
- Type:
see
- outside_ip_address_type
-
- Type:
see
- remote_ipv4_network_cidr
-
- Type:
see
- remote_ipv6_network_cidr
-
- Type:
see
- static_routes_only
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
.
- tags
Any tags assigned to the VPN connection.
- transit_gateway_id
The ID of the transit gateway associated with the VPN connection.
You must specify either
TransitGatewayId
orVpnGatewayId
, but not both.
- transport_transit_gateway_attachment_id
-
- Type:
see
- tunnel_inside_ip_version
-
- Type:
see
- type
The type of VPN connection.
- vpn_gateway_id
The ID of the virtual private gateway at the AWS side of the VPN connection.
You must specify either
TransitGatewayId
orVpnGatewayId
, but not both.
- vpn_tunnel_options_specifications
The tunnel options for the VPN connection.