Class CfnVPNGatewayRoutePropagation
A CloudFormation AWS::EC2::VPNGatewayRoutePropagation
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnVPNGatewayRoutePropagation : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnVPNGatewayRoutePropagation
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
If you reference a VPN gateway that is in the same template as your VPN gateway route propagation, you must explicitly declare a dependency on the VPN gateway attachment. The AWS::EC2::VPNGatewayRoutePropagation
resource cannot use the VPN gateway until it has successfully attached to the VPC. Add a DependsOn Attribute in the AWS::EC2::VPNGatewayRoutePropagation
resource to explicitly declare a dependency on the VPN gateway attachment.
CloudformationResource: AWS::EC2::VPNGatewayRoutePropagation
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 cfnVPNGatewayRoutePropagation = new CfnVPNGatewayRoutePropagation(this, "MyCfnVPNGatewayRoutePropagation", new CfnVPNGatewayRoutePropagationProps {
RouteTableIds = new [] { "routeTableIds" },
VpnGatewayId = "vpnGatewayId"
});
Synopsis
Constructors
CfnVPNGatewayRoutePropagation(Construct, String, ICfnVPNGatewayRoutePropagationProps) | Create a new |
CfnVPNGatewayRoutePropagation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnVPNGatewayRoutePropagation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrId | The ID of the VPN gateway. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
RouteTableIds | The ID of the route table. |
VpnGatewayId | The ID of the virtual private gateway that is attached to a VPC. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnVPNGatewayRoutePropagation(Construct, String, ICfnVPNGatewayRoutePropagationProps)
Create a new AWS::EC2::VPNGatewayRoutePropagation
.
public CfnVPNGatewayRoutePropagation(Construct scope, string id, ICfnVPNGatewayRoutePropagationProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnVPNGatewayRoutePropagationProps
- resource properties.
CfnVPNGatewayRoutePropagation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnVPNGatewayRoutePropagation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnVPNGatewayRoutePropagation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnVPNGatewayRoutePropagation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrId
The ID of the VPN gateway.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
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
RouteTableIds
The ID of the route table.
public virtual string[] RouteTableIds { get; set; }
Property Value
System.String[]
Remarks
The routing table must be associated with the same VPC that the virtual private gateway is attached to.
VpnGatewayId
The ID of the virtual private gateway that is attached to a VPC.
public virtual string VpnGatewayId { get; set; }
Property Value
System.String
Remarks
The virtual private gateway must be attached to the same VPC that the routing tables are associated with.
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>