CfnTransitGatewayProps Struct
Properties for defining a CfnTransitGateway.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnTransitGatewayProps: ec2.CfnTransitGatewayProps = {
amazonSideAsn: 123,
associationDefaultRouteTableId: 'associationDefaultRouteTableId',
autoAcceptSharedAttachments: 'autoAcceptSharedAttachments',
defaultRouteTableAssociation: 'defaultRouteTableAssociation',
defaultRouteTablePropagation: 'defaultRouteTablePropagation',
description: 'description',
dnsSupport: 'dnsSupport',
encryptionSupport: 'encryptionSupport',
multicastSupport: 'multicastSupport',
propagationDefaultRouteTableId: 'propagationDefaultRouteTableId',
securityGroupReferencingSupport: 'securityGroupReferencingSupport',
tags: [{
key: 'key',
value: 'value',
}],
transitGatewayCidrBlocks: ['transitGatewayCidrBlocks'],
vpnEcmpSupport: 'vpnEcmpSupport',
};
Properties
amazonSideAsnnumberamazon_side_asnint | floatamazonSideAsnNumberAmazonSideAsndoubleAmazonSideAsn*float64#The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.
associationDefaultRouteTableIdstringassociation_default_route_table_idstrassociationDefaultRouteTableIdStringAssociationDefaultRouteTableIdstringAssociationDefaultRouteTableId*string#defaultRouteTableAssociationstringdefault_route_table_associationstrdefaultRouteTableAssociationStringDefaultRouteTableAssociationstringDefaultRouteTableAssociation*string#Enabled by default. If DefaultRouteTableAssociation is set to enable, AWS Transit Gateway will create the default transit gateway route table.
defaultRouteTablePropagationstringdefault_route_table_propagationstrdefaultRouteTablePropagationStringDefaultRouteTablePropagationstringDefaultRouteTablePropagation*string#Enabled by default. If DefaultRouteTablePropagation is set to enable, AWS Transit Gateway will create the default transit gateway route table.
Enabled by default.
encryptionSupportstringencryption_supportstrencryptionSupportStringEncryptionSupportstringEncryptionSupport*string#Disabled by default.
multicastSupportstringmulticast_supportstrmulticastSupportStringMulticastSupportstringMulticastSupport*string#propagationDefaultRouteTableIdstringpropagation_default_route_table_idstrpropagationDefaultRouteTableIdStringPropagationDefaultRouteTableIdstringPropagationDefaultRouteTableId*string#securityGroupReferencingSupportstringsecurity_group_referencing_supportstrsecurityGroupReferencingSupportStringSecurityGroupReferencingSupportstringSecurityGroupReferencingSupport*string#notes
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 .
transitGatewayCidrBlocksstring[]transit_gateway_cidr_blockstyping.List[str]transitGatewayCidrBlocksList<String>TransitGatewayCidrBlocksstring[]TransitGatewayCidrBlocks*[]*string#vpnEcmpSupportstringvpn_ecmp_supportstrvpnEcmpSupportStringVpnEcmpSupportstringVpnEcmpSupport*string#Enabled by default.