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
VPNGateway |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
VPNGateway |
Used by jsii to construct an instance of this class from DeputyProps |
VPNGateway |
Properties
Resource | (experimental) The VPN gateway CFN resource. |
Router |
(experimental) The ID of the route target. |
Router |
(experimental) The type of router used in the route. |
Vpc |
(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. By Ref Value 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. Deputy Base. Deputy Props The deputy props
VPNGatewayV2(Construct, String, IVPNGatewayV2Props)
public VPNGatewayV2(Construct scope, string id, IVPNGatewayV2Props props)
Parameters
- scope Constructs.
Construct - id System.
String - props IVPNGateway
V2Props
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.
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.
Remarks
Stability: Experimental