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

.NET
Java
Python
TypeScript