Skip to content
v2.274.0

Experimental

@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TransitGatewayRouteProps Struct ​

Common properties for a Transit Gateway Route.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';

declare const transitGatewayAttachment: ec2_alpha.ITransitGatewayAttachment;
declare const transitGatewayRouteTable: ec2_alpha.TransitGatewayRouteTable;
const transitGatewayRouteProps: ec2_alpha.TransitGatewayRouteProps = {
  destinationCidrBlock: 'destinationCidrBlock',
  transitGatewayAttachment: transitGatewayAttachment,
  transitGatewayRouteTable: transitGatewayRouteTable,

  // the properties below are optional
  transitGatewayRouteName: 'transitGatewayRouteName',
};

Properties ​

destinationCidrBlockstringdestination_cidr_blockstrdestinationCidrBlockStringDestinationCidrBlockstringDestinationCidrBlock*stringrequired#
The destination CIDR block for this route.

Destination Cidr cannot overlap for static routes but is allowed for propagated routes. When overlapping occurs, static routes take precedence over propagated routes.

transitGatewayAttachmentITransitGatewayAttachmenttransit_gateway_attachmentITransitGatewayAttachmenttransitGatewayAttachmentITransitGatewayAttachmentTransitGatewayAttachmentITransitGatewayAttachmentTransitGatewayAttachmentITransitGatewayAttachmentrequired#
The transit gateway attachment to route the traffic to.
transitGatewayRouteNamestringtransit_gateway_route_namestrtransitGatewayRouteNameStringTransitGatewayRouteNamestringTransitGatewayRouteName*string#
Physical name of this Transit Gateway Route.

Default: Assigned by CloudFormation.

transitGatewayRouteTableITransitGatewayRouteTabletransit_gateway_route_tableITransitGatewayRouteTabletransitGatewayRouteTableITransitGatewayRouteTableTransitGatewayRouteTableITransitGatewayRouteTableTransitGatewayRouteTableITransitGatewayRouteTablerequired#
The transit gateway route table you want to install this route into.