ModifyTransitGateway
In this article:
ModifyTransitGateway#
Description#
Request to modify a transit gateway. The changes will only affect new transit gateway attachments. Current attachments will not be modified.
Request Parameters#
Required parameters#
TransitGatewayId — The ID of the transit gateway.
Type: String
Required: Yes
Optional parameters#
Description — A description of the transit gateway.
Required: No
Type: String
Length constraints: Up to 255 ASCII characters
Options — Transit gateway options.
Required: No
Type: ModifyTransitGatewayOptions object
Response Elements#
requestId — The request ID.
Type: String
transitGateway — Information about the transit gateway.
Type: TransitGateway object
Examples#
c2-ec2 ModifyTransitGateway TransitGatewayId tgw-12345678 Options.DefaultRouteTableAssociation enable Options.AssociationDefaultRouteTableId tgw-rtb-12345678
c2-ec2 ModifyTransitGateway TransitGatewayId tgw-12345678 Options.DefaultRouteTableAssociation disable
c2-ec2 ModifyTransitGateway Options.AddSharedOwners.0 user@company Options.RemoveSharedOwners.0 user@company