Skip to content
v2.276.0

Experimental

@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TransitGatewayProps Struct ​

Common properties for creating a Transit Gateway resource.

Example ​

ts
const transitGateway = new TransitGateway(this, 'MyTransitGateway', {
  defaultRouteTableAssociation: false,
  defaultRouteTablePropagation: false,
});
python
transit_gateway = TransitGateway(self, "MyTransitGateway",
    default_route_table_association=False,
    default_route_table_propagation=False
)
java
TransitGateway transitGateway = TransitGateway.Builder.create(this, "MyTransitGateway")
        .defaultRouteTableAssociation(false)
        .defaultRouteTablePropagation(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.ec2.Alpha
var transitGateway = new TransitGateway(this, "MyTransitGateway", new TransitGatewayProps {
    DefaultRouteTableAssociation = false,
    DefaultRouteTablePropagation = false
});
go
// Install: go get github.com/aws/aws-cdk-go/awsec2alpha/v2
transitGateway := awsec2alpha.NewTransitGateway(this, jsii.String("MyTransitGateway"), &TransitGatewayProps{
	DefaultRouteTableAssociation: jsii.Boolean(false),
	DefaultRouteTablePropagation: jsii.Boolean(false),
})

Properties ​

amazonSideAsnoptionalnumberamazon_side_asnoptionalint | floatamazonSideAsnoptionalNumberAmazonSideAsnoptionaldoubleAmazonSideAsnoptional*float64#
A private Autonomous System Number (ASN) for the Amazon side of a BGP session.

Default: undefined, 64512 is assigned by CloudFormation.

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

autoAcceptSharedAttachmentsoptionalbooleanauto_accept_shared_attachmentsoptionalboolautoAcceptSharedAttachmentsoptionalBooleanAutoAcceptSharedAttachmentsoptionalboolAutoAcceptSharedAttachmentsoptional*bool#
Enable or disable automatic acceptance of cross-account attachment requests.

Default: disable (false)

defaultRouteTableAssociationoptionalbooleandefault_route_table_associationoptionalbooldefaultRouteTableAssociationoptionalBooleanDefaultRouteTableAssociationoptionalboolDefaultRouteTableAssociationoptional*bool#
Enable or disable automatic association with the default association route table.

Default: enable (true)

defaultRouteTablePropagationoptionalbooleandefault_route_table_propagationoptionalbooldefaultRouteTablePropagationoptionalBooleanDefaultRouteTablePropagationoptionalboolDefaultRouteTablePropagationoptional*bool#
Enable or disable automatic propagation of routes to the default propagation route table.

Default: enable (true)

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the transit gateway.

Default: no description

dnsSupportoptionalbooleandns_supportoptionalbooldnsSupportoptionalBooleanDnsSupportoptionalboolDnsSupportoptional*bool#
Enable or disable DNS support.

Default: enable (true)

If dnsSupport is enabled on a VPC Attachment, this also needs to be enabled for the feature to work. Otherwise the resources will still deploy but the feature will not work.

securityGroupReferencingSupportoptionalbooleansecurity_group_referencing_supportoptionalboolsecurityGroupReferencingSupportoptionalBooleanSecurityGroupReferencingSupportoptionalboolSecurityGroupReferencingSupportoptional*bool#
Enable or disable security group referencing support.

Default: disable (false)

If securityGroupReferencingSupport is enabled on a VPC Attachment, this also needs to be enabled for the feature to work. Otherwise the resources will still deploy but the feature will not work.

transitGatewayCidrBlocksoptionalstring[]transit_gateway_cidr_blocksoptionaltyping.List[str]transitGatewayCidrBlocksoptionalList<String>TransitGatewayCidrBlocksoptionalstring[]TransitGatewayCidrBlocksoptional*[]*string= none#
The transit gateway CIDR blocks.
transitGatewayNameoptionalstringtransit_gateway_nameoptionalstrtransitGatewayNameoptionalStringTransitGatewayNameoptionalstringTransitGatewayNameoptional*string#
Physical name of this Transit Gateway.

Default: Assigned by CloudFormation.