Class CfnCustomerGatewayProps
Properties for defining a CfnCustomerGateway.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCustomerGatewayProps : ICfnCustomerGatewayProps
Syntax (vb)
Public Class CfnCustomerGatewayProps Implements ICfnCustomerGatewayProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.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 cfnCustomerGatewayProps = new CfnCustomerGatewayProps {
IpAddress = "ipAddress",
Type = "type",
// the properties below are optional
BgpAsn = 123,
BgpAsnExtended = 123,
CertificateArn = "certificateArn",
DeviceName = "deviceName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
| CfnCustomerGatewayProps() | Properties for defining a |
Properties
| BgpAsn | For customer gateway devices that support BGP, specify the device's ASN. |
| BgpAsnExtended | For customer gateway devices that support BGP, specify the device's ASN. |
| CertificateArn | The Amazon Resource Name (ARN) for the customer gateway certificate. |
| DeviceName | The name of customer gateway device. |
| IpAddress | The IP address for the customer gateway device's outside interface. |
| Tags | One or more tags for the customer gateway. |
| Type | The type of VPN connection that this customer gateway supports ( |
Constructors
CfnCustomerGatewayProps()
Properties for defining a CfnCustomerGateway.
public CfnCustomerGatewayProps()
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.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 cfnCustomerGatewayProps = new CfnCustomerGatewayProps {
IpAddress = "ipAddress",
Type = "type",
// the properties below are optional
BgpAsn = 123,
BgpAsnExtended = 123,
CertificateArn = "certificateArn",
DeviceName = "deviceName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Properties
BgpAsn
For customer gateway devices that support BGP, specify the device's ASN.
public double? BgpAsn { get; set; }
Property Value
Remarks
You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647 , you must use BgpAsnExtended .
Default: 65000
Valid values: 1 to 2,147,483,647
Default: - 65000
BgpAsnExtended
For customer gateway devices that support BGP, specify the device's ASN.
public double? BgpAsnExtended { get; set; }
Property Value
Remarks
You must specify either BgpAsn or BgpAsnExtended when creating the customer gateway. If the ASN is larger than 2,147,483,647 , you must use BgpAsnExtended .
Valid values: 2,147,483,648 to 4,294,967,295
CertificateArn
The Amazon Resource Name (ARN) for the customer gateway certificate.
public string? CertificateArn { get; set; }
Property Value
Remarks
DeviceName
The name of customer gateway device.
public string? DeviceName { get; set; }
Property Value
Remarks
IpAddress
The IP address for the customer gateway device's outside interface.
public string IpAddress { get; set; }
Property Value
Remarks
The address must be static. If OutsideIpAddressType in your VPN connection options is set to PrivateIpv4 , you can use an RFC6598 or RFC1918 private IPv4 address. If OutsideIpAddressType is set to Ipv6 , you can use an IPv6 address.
Tags
One or more tags for the customer gateway.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
Type
The type of VPN connection that this customer gateway supports ( ipsec.1 ).
public string Type { get; set; }