CfnTransitGatewayRouteProps

class aws_cdk.aws_ec2.CfnTransitGatewayRouteProps(*, transit_gateway_route_table_id, blackhole=None, destination_cidr_block=None, transit_gateway_attachment_id=None)

Bases: object

Properties for defining a CfnTransitGatewayRoute.

Parameters:
  • 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.

  • destination_cidr_block (Optional[str]) – The CIDR block used for destination matches.

  • transit_gateway_attachment_id (Optional[str]) – The ID of the attachment.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_transit_gateway_route_props = ec2.CfnTransitGatewayRouteProps(
    transit_gateway_route_table_id="transitGatewayRouteTableId",

    # the properties below are optional
    blackhole=False,
    destination_cidr_block="destinationCidrBlock",
    transit_gateway_attachment_id="transitGatewayAttachmentId"
)

Attributes

blackhole

Indicates whether to drop traffic that matches this route.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html#cfn-ec2-transitgatewayroute-blackhole

destination_cidr_block

The CIDR block used for destination matches.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html#cfn-ec2-transitgatewayroute-destinationcidrblock

transit_gateway_attachment_id

The ID of the attachment.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html#cfn-ec2-transitgatewayroute-transitgatewayattachmentid

transit_gateway_route_table_id

The ID of the transit gateway route table.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroute.html#cfn-ec2-transitgatewayroute-transitgatewayroutetableid