interface CfnTransitGatewayRouteProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnTransitGatewayRouteProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTransitGatewayRouteProps |
Java | software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteProps |
Python | aws_cdk.aws_ec2.CfnTransitGatewayRouteProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnTransitGatewayRouteProps |
Properties for defining a CfnTransitGatewayRoute.
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 cfnTransitGatewayRouteProps: ec2.CfnTransitGatewayRouteProps = {
destinationCidrBlock: 'destinationCidrBlock',
transitGatewayRouteTableId: 'transitGatewayRouteTableId',
// the properties below are optional
blackhole: false,
transitGatewayAttachmentId: 'transitGatewayAttachmentId',
};
Properties
| Name | Type | Description |
|---|---|---|
| destination | string | The CIDR block used for destination matches. |
| transit | string | ITransit | The ID of the transit gateway route table. |
| blackhole? | boolean | IResolvable | Indicates whether to drop traffic that matches this route. |
| transit | string | ITransit | ITransit | The ID of the attachment. |
destinationCidrBlock
Type:
string
The CIDR block used for destination matches.
transitGatewayRouteTableId
Type:
string | ITransit
The ID of the transit gateway route table.
blackhole?
Type:
boolean | IResolvable
(optional)
Indicates whether to drop traffic that matches this route.
transitGatewayAttachmentId?
Type:
string | ITransit | ITransit
(optional)
The ID of the attachment.

.NET
Go
Java
Python
TypeScript