interface CfnTransitGatewayRouteProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnTransitGatewayRouteProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTransitGatewayRouteProps |
![]() | software.amazon.awscdk.services.ec2.CfnTransitGatewayRouteProps |
![]() | aws_cdk.aws_ec2.CfnTransitGatewayRouteProps |
![]() | 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 | The ID of the transit gateway route table. |
blackhole? | boolean | IResolvable | Indicates whether to drop traffic that matches this route. |
transit | string | The ID of the attachment. |
destinationCidrBlock
Type:
string
The CIDR block used for destination matches.
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.
transitGatewayAttachmentId?
Type:
string
(optional)
The ID of the attachment.