v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.

get/#Action=ModifyTransitGateway

Query parameters

TransitGatewayIdstring required

The ID of the transit gateway.

Descriptionstring

The description for the transit gateway.

AddTransitGatewayCidrBlocksstring[]

Adds IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6.

RemoveTransitGatewayCidrBlocksstring[]

Removes CIDR blocks for the transit gateway.

VpnEcmpSupport'enable' | 'disable'

Enable or disable Equal Cost Multipath Protocol support.

DnsSupport'enable' | 'disable'

Enable or disable DNS support.

AutoAcceptSharedAttachments'enable' | 'disable'

Enable or disable automatic acceptance of attachment requests.

DefaultRouteTableAssociation'enable' | 'disable'

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

AssociationDefaultRouteTableIdstring

The ID of the default association route table.

DefaultRouteTablePropagation'enable' | 'disable'

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

PropagationDefaultRouteTableIdstring

The ID of the default propagation route table.

AmazonSideAsninteger
<p>A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for 32-bit ASNs.</p> <p>The modify ASN operation is not allowed on a transit gateway with active BGP sessions. You must first delete all transit gateway attachments that have BGP configured prior to modifying the ASN on the transit gateway.</p>

The options to modify.

DryRunboolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.

Action'ModifyTransitGateway' required
Version'2016-11-15' required

Response

Success