Class VpnGateway
The VPN Gateway that shall be added to the VPC.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VpnGateway : Resource, IVpnGateway, IResource, IVPNGatewayRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class VpnGateway Inherits Resource Implements IVpnGateway, IResource, IVPNGatewayRef, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::EC2::VPNGateway
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var vpnGateway = new VpnGateway(this, "MyVpnGateway", new VpnGatewayProps {
Type = "type",
// the properties below are optional
AmazonSideAsn = 123
});
Synopsis
Constructors
| VpnGateway(Construct, string, IVpnGatewayProps) | The VPN Gateway that shall be added to the VPC. |
Properties
| GatewayId | The virtual private gateway Id. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
| VpnGatewayRef | A reference to a VPNGateway resource. |
Constructors
VpnGateway(Construct, string, IVpnGatewayProps)
The VPN Gateway that shall be added to the VPC.
public VpnGateway(Construct scope, string id, IVpnGatewayProps props)
Parameters
- scope Construct
- id string
- props IVpnGatewayProps
Remarks
Resource: AWS::EC2::VPNGateway
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var vpnGateway = new VpnGateway(this, "MyVpnGateway", new VpnGatewayProps {
Type = "type",
// the properties below are optional
AmazonSideAsn = 123
});
Properties
GatewayId
The virtual private gateway Id.
public virtual string GatewayId { get; }
Property Value
Remarks
Resource: AWS::EC2::VPNGateway
ExampleMetadata: fixture=_generated
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::EC2::VPNGateway
ExampleMetadata: fixture=_generated
VpnGatewayRef
A reference to a VPNGateway resource.
public virtual IVPNGatewayReference VpnGatewayRef { get; }
Property Value
Remarks
Resource: AWS::EC2::VPNGateway
ExampleMetadata: fixture=_generated
Implements
Constructs.IConstruct
Constructs.IDependable