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, IRouteTarget
Syntax (vb)
Public Class VPNGatewayV2
Inherits Resource
Implements IResource, IRouteTarget
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VPNGatewayV2(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
VPNGatewayV2(Construct, String, IVPNGatewayV2Props) |
Properties
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(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected VPNGatewayV2(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
VPNGatewayV2(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected VPNGatewayV2(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
VPNGatewayV2(Construct, String, IVPNGatewayV2Props)
public VPNGatewayV2(Construct scope, string id, IVPNGatewayV2Props props)
Parameters
- scope Constructs.Construct
- id System.String
- props IVPNGatewayV2Props
Remarks
Stability: Experimental
Properties
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
System.String
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
System.String
Remarks
Stability: Experimental