VPNGatewayV2Props
- class aws_cdk.aws_ec2_alpha.VPNGatewayV2Props(*, type, amazon_side_asn=None, vpn_gateway_name=None, vpn_route_propagation=None, vpc)
Bases:
VPNGatewayV2Options
(experimental) Properties to define a VPN gateway.
- Parameters:
type (
VpnConnectionType
) – (experimental) The type of VPN connection the virtual private gateway supports.amazon_side_asn (
Union
[int
,float
,None
]) – (experimental) The private Autonomous System Number (ASN) for the Amazon side of a BGP session. Default: - no ASN set for BGP sessionvpn_gateway_name (
Optional
[str
]) – (experimental) The resource name of the VPN gateway. Default: - resource provisioned without any namevpn_route_propagation (
Optional
[Sequence
[Union
[SubnetSelection
,Dict
[str
,Any
]]]]) – (experimental) Subnets where the route propagation should be added. Default: - no propogation for routesvpc (
IVpcV2
) – (experimental) The ID of the VPC for which to create the VPN gateway.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2_alpha as ec2_alpha from aws_cdk import aws_ec2 as ec2 # subnet: ec2.Subnet # subnet_filter: ec2.SubnetFilter # vpc_v2: ec2_alpha.VpcV2 v_pNGateway_v2_props = ec2_alpha.VPNGatewayV2Props( type=ec2.VpnConnectionType.IPSEC_1, vpc=vpc_v2, # the properties below are optional amazon_side_asn=123, vpn_gateway_name="vpnGatewayName", vpn_route_propagation=[ec2.SubnetSelection( availability_zones=["availabilityZones"], one_per_az=False, subnet_filters=[subnet_filter], subnet_group_name="subnetGroupName", subnets=[subnet], subnet_type=ec2.SubnetType.PRIVATE_ISOLATED )] )
Attributes
- amazon_side_asn
(experimental) The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
- Default:
no ASN set for BGP session
- Stability:
experimental
- type
(experimental) The type of VPN connection the virtual private gateway supports.
- vpc
(experimental) The ID of the VPC for which to create the VPN gateway.
- Stability:
experimental
- vpn_gateway_name
(experimental) The resource name of the VPN gateway.
- Default:
resource provisioned without any name
- Stability:
experimental
- vpn_route_propagation
(experimental) Subnets where the route propagation should be added.
- Default:
no propogation for routes
- Stability:
experimental