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.

Response Elements#

  • requestId — The request ID.

    • Type: String

  • transitGateway — Information about the transit gateway.

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