VpnConnectionProps

class aws_cdk.aws_ec2.VpnConnectionProps(*, ip, asn=None, static_routes=None, tunnel_options=None, vpc)

Bases: aws_cdk.aws_ec2.VpnConnectionOptions

__init__(*, ip, asn=None, static_routes=None, tunnel_options=None, vpc)
Parameters
  • ip (str) – The ip address of the customer gateway.

  • asn (Union[int, float, None]) – The ASN of the customer gateway. Default: 65000

  • static_routes (Optional[List[str]]) – The static routes to be routed from the VPN gateway to the customer gateway. Default: Dynamic routing (BGP)

  • tunnel_options (Optional[List[VpnTunnelOption]]) – The tunnel options for the VPN connection. At most two elements (one per tunnel). Duplicates not allowed. Default: Amazon generated tunnel options

  • vpc (IVpc) – The VPC to connect to.

Attributes

asn

The ASN of the customer gateway.

default :default: 65000

Return type

Union[int, float, None]

ip

The ip address of the customer gateway.

Return type

str

static_routes

The static routes to be routed from the VPN gateway to the customer gateway.

default :default: Dynamic routing (BGP)

Return type

Optional[List[str]]

tunnel_options

The tunnel options for the VPN connection.

At most two elements (one per tunnel). Duplicates not allowed.

default :default: Amazon generated tunnel options

Return type

Optional[List[VpnTunnelOption]]

vpc

The VPC to connect to.

Return type

IVpc