v1

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

Creates a static route for the specified local gateway route table. You must specify one of the following targets:

  • LocalGatewayVirtualInterfaceGroupId

  • NetworkInterfaceId

get/#Action=CreateLocalGatewayRoute

Query parameters

DestinationCidrBlockstring

The CIDR range used for destination matches. Routing decisions are based on the most specific match.

LocalGatewayRouteTableIdstring required

The ID of the local gateway route table.

LocalGatewayVirtualInterfaceGroupIdstring

The ID of the virtual interface group.

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>.

NetworkInterfaceIdstring

The ID of the network interface.

DestinationPrefixListIdstring

The ID of the prefix list. Use a prefix list in place of <code>DestinationCidrBlock</code>. You cannot use <code>DestinationPrefixListId</code> and <code>DestinationCidrBlock</code> in the same request.

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

Response

Success