aws-cdk-lib.aws_ec2.CfnTransitGatewayRouteProps

interface CfnTransitGatewayRouteProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnTransitGatewayRouteProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTransitGatewayRouteProps
Javasoftware.amazon.awscdk.services.ec2.CfnTransitGatewayRouteProps
Pythonaws_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 = {
  transitGatewayRouteTableId: 'transitGatewayRouteTableId',

  // the properties below are optional
  blackhole: false,
  destinationCidrBlock: 'destinationCidrBlock',
  transitGatewayAttachmentId: 'transitGatewayAttachmentId',
};

Properties

NameTypeDescription
transitGatewayRouteTableIdstringThe ID of the transit gateway route table.
blackhole?boolean | IResolvableIndicates whether to drop traffic that matches this route.
destinationCidrBlock?stringThe CIDR block used for destination matches.
transitGatewayAttachmentId?stringThe 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.