Class CfnVPNConnectionProps
Properties for defining a CfnVPNConnection
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPNConnectionProps : Object, ICfnVPNConnectionProps
Syntax (vb)
Public Class CfnVPNConnectionProps
Inherits Object
Implements ICfnVPNConnectionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html
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 cfnVPNConnectionProps = new CfnVPNConnectionProps {
CustomerGatewayId = "customerGatewayId",
Type = "type",
// the properties below are optional
StaticRoutesOnly = false,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TransitGatewayId = "transitGatewayId",
VpnGatewayId = "vpnGatewayId",
VpnTunnelOptionsSpecifications = new [] { new VpnTunnelOptionsSpecificationProperty {
PreSharedKey = "preSharedKey",
TunnelInsideCidr = "tunnelInsideCidr"
} }
};
Synopsis
Constructors
CfnVPNConnectionProps() |
Properties
CustomerGatewayId | The ID of the customer gateway at your end of the VPN connection. |
StaticRoutesOnly | Indicates whether the VPN connection uses static routes only. |
Tags | Any tags assigned to the VPN connection. |
TransitGatewayId | The ID of the transit gateway associated with the VPN connection. |
Type | The type of VPN connection. |
VpnGatewayId | The ID of the virtual private gateway at the AWS side of the VPN connection. |
VpnTunnelOptionsSpecifications | The tunnel options for the VPN connection. |
Constructors
CfnVPNConnectionProps()
public CfnVPNConnectionProps()
Properties
CustomerGatewayId
The ID of the customer gateway at your end of the VPN connection.
public string CustomerGatewayId { get; set; }
Property Value
System.String
Remarks
StaticRoutesOnly
Indicates whether the VPN connection uses static routes only.
public object StaticRoutesOnly { get; set; }
Property Value
System.Object
Remarks
Static routes must be used for devices that don't support BGP.
If you are creating a VPN connection for a device that does not support Border Gateway Protocol (BGP), you must specify true
.
Tags
Any tags assigned to the VPN connection.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
TransitGatewayId
The ID of the transit gateway associated with the VPN connection.
public string TransitGatewayId { get; set; }
Property Value
System.String
Remarks
You must specify either TransitGatewayId
or VpnGatewayId
, but not both.
Type
The type of VPN connection.
public string Type { get; set; }
Property Value
System.String
Remarks
VpnGatewayId
The ID of the virtual private gateway at the AWS side of the VPN connection.
public string VpnGatewayId { get; set; }
Property Value
System.String
Remarks
You must specify either TransitGatewayId
or VpnGatewayId
, but not both.
VpnTunnelOptionsSpecifications
The tunnel options for the VPN connection.
public object VpnTunnelOptionsSpecifications { get; set; }
Property Value
System.Object