Class VPNGatewayV2
(experimental) Creates a virtual private gateway.
Inherited Members
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class VPNGatewayV2 : Resource, IResource, IConstruct, IRouteTarget, IDependable
Syntax (vb)
Public Class VPNGatewayV2 Inherits Resource Implements IResource, IConstruct, IRouteTarget, IDependable
Remarks
Stability: Experimental
Resource: AWS::EC2::VPNGateway
ExampleMetadata: infused
Examples
var stack = new Stack();
var myVpc = new VpcV2(this, "Vpc");
var vpnGateway = myVpc.EnableVpnGatewayV2(new VPNGatewayV2Options {
VpnRoutePropagation = new [] { new SubnetSelection { SubnetType = SubnetType.PUBLIC } },
Type = VpnConnectionType.IPSEC_1
});
var routeTable = new RouteTable(stack, "routeTable", new RouteTableProps {
Vpc = myVpc
});
new Route(stack, "route", new RouteProps {
Destination = "172.31.0.0/24",
Target = new Dictionary<string, IRouteTarget?> { { "gateway", vpnGateway } },
RouteTable = routeTable
});
Synopsis
Constructors
VPNGatewayV2(Construct, string, IVPNGatewayV2Props) | (experimental) Creates a virtual private gateway. |
Properties
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Resource | (experimental) The VPN gateway CFN resource. |
RouterTargetId | (experimental) The ID of the route target. |
RouterType | (experimental) The type of router used in the route. |
VpcId | (experimental) The ID of the VPC for which to create the VPN gateway. |
Constructors
VPNGatewayV2(Construct, string, IVPNGatewayV2Props)
(experimental) Creates a virtual private gateway.
public VPNGatewayV2(Construct scope, string id, IVPNGatewayV2Props props)
Parameters
- scope Construct
- id string
- props IVPNGatewayV2Props
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Resource
(experimental) The VPN gateway CFN resource.
public virtual CfnVPNGateway Resource { get; }
Property Value
Remarks
Stability: Experimental
RouterTargetId
(experimental) The ID of the route target.
public virtual string RouterTargetId { get; }
Property Value
Remarks
Stability: Experimental
RouterType
(experimental) The type of router used in the route.
public virtual RouterType RouterType { get; }
Property Value
Remarks
Stability: Experimental
VpcId
(experimental) The ID of the VPC for which to create the VPN gateway.
public virtual string VpcId { get; }
Property Value
Remarks
Stability: Experimental