aws-cdk-lib.aws_ec2.CfnRouteTableProps

interface CfnRouteTableProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnRouteTableProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnRouteTableProps
Javasoftware.amazon.awscdk.services.ec2.CfnRouteTableProps
Pythonaws_cdk.aws_ec2.CfnRouteTableProps
TypeScript aws-cdk-lib » aws_ec2 » CfnRouteTableProps

Properties for defining a CfnRouteTable.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnRouteTableProps: ec2.CfnRouteTableProps = {
  vpcId: 'vpcId',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
vpcIdstringThe ID of the VPC.
tags?CfnTag[]Any tags assigned to the route table.

vpcId

Type: string

The ID of the VPC.


tags?

Type: CfnTag[] (optional)

Any tags assigned to the route table.