Class CfnGatewayRouteTableAssociation
Associates a virtual private gateway or internet gateway with a route table.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGatewayRouteTableAssociation : CfnResource, IInspectable
Syntax (vb)
Public Class CfnGatewayRouteTableAssociation
Inherits CfnResource
Implements IInspectable
Remarks
The gateway and route table must be in the same VPC. This association causes the incoming traffic to the gateway to be routed according to the routes in the route table.
CloudformationResource: AWS::EC2::GatewayRouteTableAssociation
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 cfnGatewayRouteTableAssociation = new CfnGatewayRouteTableAssociation(this, "MyCfnGatewayRouteTableAssociation", new CfnGatewayRouteTableAssociationProps {
GatewayId = "gatewayId",
RouteTableId = "routeTableId"
});
Synopsis
Constructors
CfnGatewayRouteTableAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnGatewayRouteTableAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnGatewayRouteTableAssociation(Construct, String, ICfnGatewayRouteTableAssociationProps) |
Properties
AttrAssociationId | The ID of the route table association. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
GatewayId | The ID of the gateway. |
RouteTableId | The ID of the route table. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnGatewayRouteTableAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnGatewayRouteTableAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnGatewayRouteTableAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnGatewayRouteTableAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnGatewayRouteTableAssociation(Construct, String, ICfnGatewayRouteTableAssociationProps)
public CfnGatewayRouteTableAssociation(Construct scope, string id, ICfnGatewayRouteTableAssociationProps 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 ICfnGatewayRouteTableAssociationProps
Resource properties.
Properties
AttrAssociationId
The ID of the route table association.
public virtual string AttrAssociationId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AssociationId
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
GatewayId
The ID of the gateway.
public virtual string GatewayId { get; set; }
Property Value
System.String
RouteTableId
The ID of the route table.
public virtual string RouteTableId { 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>