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, security_group_referencing_support=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.security_group_referencing_support (
Optional
[str
]) – Enables you to reference a security group across VPCs attached to a transit gateway (TGW). Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature. For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .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.
- See:
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. from aws_cdk import 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", security_group_referencing_support="securityGroupReferencingSupport", 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.
- association_default_route_table_id
The ID of the default association route table.
Enable or disable automatic acceptance of attachment requests.
Disabled by default.
- default_route_table_association
Enable or disable automatic association with the default association route table.
Enabled by default.
- default_route_table_propagation
Enable or disable automatic propagation of routes to the default propagation route table.
Enabled by default.
- description
The description of the transit gateway.
- dns_support
Enable or disable DNS support.
Enabled by default.
- multicast_support
Indicates whether multicast is enabled on the transit gateway.
- propagation_default_route_table_id
The ID of the default propagation route table.
- security_group_referencing_support
Enables you to reference a security group across VPCs attached to a transit gateway (TGW).
Use this option to simplify security group management and control of instance-to-instance traffic across VPCs that are connected by transit gateway. You can also use this option to migrate from VPC peering (which was the only option that supported security group referencing) to transit gateways (which now also support security group referencing). This option is disabled by default and there are no additional costs to use this feature.
For important information about this feature, see Create a transit gateway in the AWS Transit Gateway Guide .
- tags
The tags for the transit gateway.
- transit_gateway_cidr_blocks
The transit gateway CIDR blocks.
- vpn_ecmp_support
Enable or disable Equal Cost Multipath Protocol support.
Enabled by default.