VpnGateway

class aws_cdk.aws_ec2.VpnGateway(scope, id, *, type, amazon_side_asn=None)

Bases: aws_cdk.core.Resource

The VPN Gateway that shall be added to the VPC.

resource: :resource:: AWS::EC2::VPNGateway

__init__(scope, id, *, type, amazon_side_asn=None)
Parameters
  • scope (Construct) –

  • id (str) –

  • type (str) – Default type ipsec.1.

  • amazon_side_asn (Union[int, float, None]) – Explicitely specify an Asn or let aws pick an Asn for you. Default: 65000

Return type

None

Methods

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

gateway_id

The virtual private gateway Id.

Return type

str

node

The construct tree node associated with this construct.

Return type

ConstructNode

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool