aws-cdk-lib.aws_ec2.CfnTransitGatewayProps

interface CfnTransitGatewayProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnTransitGatewayProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnTransitGatewayProps
Javasoftware.amazon.awscdk.services.ec2.CfnTransitGatewayProps
Pythonaws_cdk.aws_ec2.CfnTransitGatewayProps
TypeScript aws-cdk-lib » aws_ec2 » CfnTransitGatewayProps

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',
  multicastSupport: 'multicastSupport',
  propagationDefaultRouteTableId: 'propagationDefaultRouteTableId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  transitGatewayCidrBlocks: ['transitGatewayCidrBlocks'],
  vpnEcmpSupport: 'vpnEcmpSupport',
};

Properties

NameTypeDescription
amazonSideAsn?numberA private Autonomous System Number (ASN) for the Amazon side of a BGP session.
associationDefaultRouteTableId?stringThe ID of the default association route table.
autoAcceptSharedAttachments?stringEnable or disable automatic acceptance of attachment requests.
defaultRouteTableAssociation?stringEnable or disable automatic association with the default association route table.
defaultRouteTablePropagation?stringEnable or disable automatic propagation of routes to the default propagation route table.
description?stringThe description of the transit gateway.
dnsSupport?stringEnable or disable DNS support.
multicastSupport?stringIndicates whether multicast is enabled on the transit gateway.
propagationDefaultRouteTableId?stringThe ID of the default propagation route table.
tags?CfnTag[]The tags for the transit gateway.
transitGatewayCidrBlocks?string[]The transit gateway CIDR blocks.
vpnEcmpSupport?stringEnable or disable Equal Cost Multipath Protocol support.

amazonSideAsn?

Type: number (optional)

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.


associationDefaultRouteTableId?

Type: string (optional)

The ID of the default association route table.


autoAcceptSharedAttachments?

Type: string (optional)

Enable or disable automatic acceptance of attachment requests.

Disabled by default.


defaultRouteTableAssociation?

Type: string (optional)

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

Enabled by default.


defaultRouteTablePropagation?

Type: string (optional)

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

Enabled by default.


description?

Type: string (optional)

The description of the transit gateway.


dnsSupport?

Type: string (optional)

Enable or disable DNS support.

Enabled by default.


multicastSupport?

Type: string (optional)

Indicates whether multicast is enabled on the transit gateway.


propagationDefaultRouteTableId?

Type: string (optional)

The ID of the default propagation route table.


tags?

Type: CfnTag[] (optional)

The tags for the transit gateway.


transitGatewayCidrBlocks?

Type: string[] (optional)

The transit gateway CIDR blocks.


vpnEcmpSupport?

Type: string (optional)

Enable or disable Equal Cost Multipath Protocol support.

Enabled by default.