CfnTransitGatewayRouteProps
- class aws_cdk.aws_ec2.CfnTransitGatewayRouteProps(*, destination_cidr_block, transit_gateway_route_table_id, blackhole=None, transit_gateway_attachment_id=None)
Bases:
object
Properties for defining a
CfnTransitGatewayRoute
.- Parameters:
destination_cidr_block (
str
) – The CIDR block used for destination matches.transit_gateway_route_table_id (
str
) – The ID of the transit gateway route table.blackhole (
Union
[bool
,IResolvable
,None
]) – Indicates whether to drop traffic that matches this route.transit_gateway_attachment_id (
Optional
[str
]) – The ID of the attachment.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_transit_gateway_route_props = ec2.CfnTransitGatewayRouteProps( destination_cidr_block="destinationCidrBlock", transit_gateway_route_table_id="transitGatewayRouteTableId", # the properties below are optional blackhole=False, transit_gateway_attachment_id="transitGatewayAttachmentId" )
Attributes
- blackhole
Indicates whether to drop traffic that matches this route.
- destination_cidr_block
The CIDR block used for destination matches.
- transit_gateway_attachment_id
The ID of the attachment.
- transit_gateway_route_table_id
The ID of the transit gateway route table.