AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::TransitGatewayRoute

CfnTransitGatewayRoute

Specifies a static route for a transit gateway route table.

Import

import { CfnTransitGatewayRoute } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTransitGatewayRoute

Properties

Configuration passed to the constructor as CfnTransitGatewayRouteProps.

destinationCidrBlockRequired
string

The CIDR block used for destination matches.

transitGatewayRouteTableIdRequired
string | ITransitGatewayRouteTableRef

The ID of the transit gateway route table.

blackholeOptional
boolean | IResolvable

Indicates whether to drop traffic that matches this route.

transitGatewayAttachmentIdOptional
string | ITransitGatewayAttachmentRef | ITransitGatewayPeeringAttachmentRef

The ID of the attachment.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic