Class CfnRouteTable
A CloudFormation AWS::EC2::RouteTable
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnRouteTable : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnRouteTable
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Specifies a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
For more information, see Route Tables in the Amazon VPC User Guide .
CloudformationResource: AWS::EC2::RouteTable
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routetable.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 cfnRouteTable = new CfnRouteTable(this, "MyCfnRouteTable", new CfnRouteTableProps {
VpcId = "vpcId",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnRouteTable(Construct, String, ICfnRouteTableProps) | Create a new |
CfnRouteTable(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRouteTable(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrRouteTableId | The ID of the route table. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Tags | Any tags assigned to the route table. |
VpcId | The ID of the VPC. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnRouteTable(Construct, String, ICfnRouteTableProps)
Create a new AWS::EC2::RouteTable
.
public CfnRouteTable(Construct scope, string id, ICfnRouteTableProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnRouteTableProps
- resource properties.
CfnRouteTable(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRouteTable(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRouteTable(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRouteTable(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrRouteTableId
The ID of the route table.
public virtual string AttrRouteTableId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: RouteTableId
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
Tags
Any tags assigned to the route table.
public virtual TagManager Tags { get; }
Property Value
Remarks
VpcId
The ID of the VPC.
public virtual string VpcId { get; set; }
Property Value
System.String
Remarks
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>