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:

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.
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.

See:

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.

See:

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.

See:

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.

See:

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