CfnTransitGatewayProps

class aws_cdk.aws_ec2.CfnTransitGatewayProps(*, amazon_side_asn=None, association_default_route_table_id=None, auto_accept_shared_attachments=None, default_route_table_association=None, default_route_table_propagation=None, description=None, dns_support=None, multicast_support=None, propagation_default_route_table_id=None, tags=None, transit_gateway_cidr_blocks=None, vpn_ecmp_support=None)

Bases: object

Properties for defining a CfnTransitGateway.

Parameters
  • amazon_side_asn (Union[int, float, None]) – A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.

  • association_default_route_table_id (Optional[str]) – The ID of the default association route table.

  • auto_accept_shared_attachments (Optional[str]) – Enable or disable automatic acceptance of attachment requests. Disabled by default.

  • default_route_table_association (Optional[str]) – Enable or disable automatic association with the default association route table. Enabled by default.

  • default_route_table_propagation (Optional[str]) – Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.

  • description (Optional[str]) – The description of the transit gateway.

  • dns_support (Optional[str]) – Enable or disable DNS support. Enabled by default.

  • multicast_support (Optional[str]) – Indicates whether multicast is enabled on the transit gateway.

  • propagation_default_route_table_id (Optional[str]) – The ID of the default propagation route table.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags for the transit gateway.

  • transit_gateway_cidr_blocks (Optional[Sequence[str]]) – The transit gateway CIDR blocks.

  • vpn_ecmp_support (Optional[str]) – Enable or disable Equal Cost Multipath Protocol support. Enabled by default.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgateway.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_props = ec2.CfnTransitGatewayProps(
    amazon_side_asn=123,
    association_default_route_table_id="associationDefaultRouteTableId",
    auto_accept_shared_attachments="autoAcceptSharedAttachments",
    default_route_table_association="defaultRouteTableAssociation",
    default_route_table_propagation="defaultRouteTablePropagation",
    description="description",
    dns_support="dnsSupport",
    multicast_support="multicastSupport",
    propagation_default_route_table_id="propagationDefaultRouteTableId",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    transit_gateway_cidr_blocks=["transitGatewayCidrBlocks"],
    vpn_ecmp_support="vpnEcmpSupport"
)

Attributes

amazon_side_asn

A private Autonomous System Number (ASN) for the Amazon side of a BGP session.

The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.

Link

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

Return type

Union[int, float, None]

association_default_route_table_id

The ID of the default association route table.

Link

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

Return type

Optional[str]

auto_accept_shared_attachments

Enable or disable automatic acceptance of attachment requests.

Disabled by default.

Link

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

Return type

Optional[str]

default_route_table_association

Enable or disable automatic association with the default association route table.

Enabled by default.

Link

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

Return type

Optional[str]

default_route_table_propagation

Enable or disable automatic propagation of routes to the default propagation route table.

Enabled by default.

Link

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

Return type

Optional[str]

description

The description of the transit gateway.

Link

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

Return type

Optional[str]

dns_support

Enable or disable DNS support.

Enabled by default.

Link

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

Return type

Optional[str]

multicast_support

Indicates whether multicast is enabled on the transit gateway.

Link

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

Return type

Optional[str]

propagation_default_route_table_id

The ID of the default propagation route table.

Link

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

Return type

Optional[str]

tags

The tags for the transit gateway.

Link

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

Return type

Optional[List[CfnTag]]

transit_gateway_cidr_blocks

The transit gateway CIDR blocks.

Link

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

Return type

Optional[List[str]]

vpn_ecmp_support

Enable or disable Equal Cost Multipath Protocol support.

Enabled by default.

Link

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

Return type

Optional[str]