AWS::EC2::TransitGatewayRouteSpecifies a static route for a transit gateway route table.
import { CfnTransitGatewayRoute } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTransitGatewayRouteConfiguration passed to the constructor as CfnTransitGatewayRouteProps.
destinationCidrBlockRequiredstringThe CIDR block used for destination matches.
transitGatewayRouteTableIdRequiredstring | ITransitGatewayRouteTableRefThe ID of the transit gateway route table.
blackholeOptionalboolean | IResolvableIndicates whether to drop traffic that matches this route.
transitGatewayAttachmentIdOptionalstring | ITransitGatewayAttachmentRef | ITransitGatewayPeeringAttachmentRefThe ID of the attachment.
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::TransitGatewayRoute