Show / Hide Table of Contents

Class VPNGatewayV2

(experimental) Creates a virtual private gateway.

Inheritance
object
Resource
VPNGatewayV2
Implements
IResource
IConstruct
IRouteTarget
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

Stability: Experimental

Resource

(experimental) The VPN gateway CFN resource.

public virtual CfnVPNGateway Resource { get; }
Property Value

CfnVPNGateway

Remarks

Stability: Experimental

RouterTargetId

(experimental) The ID of the route target.

public virtual string RouterTargetId { get; }
Property Value

string

Remarks

Stability: Experimental

RouterType

(experimental) The type of router used in the route.

public virtual RouterType RouterType { get; }
Property Value

RouterType

Remarks

Stability: Experimental

VpcId

(experimental) The ID of the VPC for which to create the VPN gateway.

public virtual string VpcId { get; }
Property Value

string

Remarks

Stability: Experimental

Implements

IResource
Constructs.IConstruct
IRouteTarget
Constructs.IDependable
Back to top Generated by DocFX