AWS::EC2::RouteTableSpecifies 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](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Route_Tables.html) in the *Amazon VPC User Guide* .
import { CfnRouteTable } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnRouteTableConfiguration passed to the constructor as CfnRouteTableProps.
vpcIdRequiredstring | IVPCRefThe ID of the VPC.
tagsOptionalCfnTag[]Any tags assigned to the route table.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::RouteTable