CfnRouteTableProps

class aws_cdk.aws_ec2.CfnRouteTableProps(*, vpc_id, tags=None)

Bases: object

Properties for defining a CfnRouteTable.

Parameters
  • vpc_id (str) – The ID of the VPC.

  • tags (Optional[Sequence[CfnTag]]) – Any tags assigned to the route table.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routetable.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_route_table_props = ec2.CfnRouteTableProps(
    vpc_id="vpcId",

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

tags

Any tags assigned to the route table.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routetable.html#cfn-ec2-routetable-tags

Return type

Optional[List[CfnTag]]

vpc_id

The ID of the VPC.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routetable.html#cfn-ec2-routetable-vpcid

Return type

str