Class CfnCustomerGateway
Specifies a customer gateway.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCustomerGateway : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnCustomerGateway
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-customergateway.html
CloudformationResource: AWS::EC2::CustomerGateway
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 cfnCustomerGateway = new CfnCustomerGateway(this, "MyCfnCustomerGateway", 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
CfnCustomerGateway(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnCustomerGateway(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnCustomerGateway(Construct, String, ICfnCustomerGatewayProps) |
Properties
AttrCustomerGatewayId | The ID of the customer gateway. |
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. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DeviceName | The name of customer gateway device. |
IpAddress | IPv4 address for the customer gateway device's outside interface. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | One or more tags for the customer gateway. |
Type | The type of VPN connection that this customer gateway supports ( |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnCustomerGateway(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnCustomerGateway(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnCustomerGateway(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnCustomerGateway(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnCustomerGateway(Construct, String, ICfnCustomerGatewayProps)
public CfnCustomerGateway(Construct scope, string id, ICfnCustomerGatewayProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnCustomerGatewayProps
Resource properties.
Properties
AttrCustomerGatewayId
The ID of the customer gateway.
public virtual string AttrCustomerGatewayId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CustomerGatewayId
BgpAsn
For customer gateway devices that support BGP, specify the device's ASN.
public virtual Nullable<double> BgpAsn { get; set; }
Property Value
System.Nullable<System.Double>
BgpAsnExtended
For customer gateway devices that support BGP, specify the device's ASN.
public virtual Nullable<double> BgpAsnExtended { get; set; }
Property Value
System.Nullable<System.Double>
CertificateArn
The Amazon Resource Name (ARN) for the customer gateway certificate.
public virtual string CertificateArn { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DeviceName
The name of customer gateway device.
public virtual string DeviceName { get; set; }
Property Value
System.String
IpAddress
IPv4 address for the customer gateway device's outside interface.
public virtual string IpAddress { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
One or more tags for the customer gateway.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Type
The type of VPN connection that this customer gateway supports ( ipsec.1
).
public virtual string Type { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>