CfnTransitGatewayRouteProps

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

Bases: object

Properties for defining a AWS::EC2::TransitGatewayRoute.

Parameters
  • blackhole (Union[bool, IResolvable, None]) – AWS::EC2::TransitGatewayRoute.Blackhole.

  • destination_cidr_block (Optional[str]) – AWS::EC2::TransitGatewayRoute.DestinationCidrBlock.

  • transit_gateway_attachment_id (Optional[str]) – AWS::EC2::TransitGatewayRoute.TransitGatewayAttachmentId.

  • transit_gateway_route_table_id (str) – AWS::EC2::TransitGatewayRoute.TransitGatewayRouteTableId.

Link

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

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

AWS::EC2::TransitGatewayRoute.Blackhole.

Link

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

Return type

Union[bool, IResolvable, None]

destination_cidr_block

AWS::EC2::TransitGatewayRoute.DestinationCidrBlock.

Link

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

Return type

Optional[str]

transit_gateway_attachment_id

AWS::EC2::TransitGatewayRoute.TransitGatewayAttachmentId.

Link

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

Return type

Optional[str]

transit_gateway_route_table_id

AWS::EC2::TransitGatewayRoute.TransitGatewayRouteTableId.

Link

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

Return type

str