GET /#Action=ReplaceRoute

Replaces an existing route within a route table in a VPC.

You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list, or reset the local route to its default target.

For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.

Servers

Request headers

Name Type Required Description
X-Amz-Content-Sha256 String No
X-Amz-Credential String No
X-Amz-Date String No
X-Amz-Algorithm String No
X-Amz-SignedHeaders String No
X-Amz-Security-Token String No
X-Amz-Signature String No

Query parameters

Name Type Required Description
DestinationCidrBlock String No

The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

Version String Yes

Possible values:

  • "2016-11-15"
CoreNetworkArn String No

The Amazon Resource Name (ARN) of the core network.

GatewayId String No

The ID of an internet gateway or virtual private gateway.

VpcPeeringConnectionId String No

The ID of a VPC peering connection.

DestinationPrefixListId String No

The ID of the prefix list for the route.

InstanceId String No

The ID of a NAT instance in your VPC.

NatGatewayId String No

[IPv4 traffic only] The ID of a NAT gateway.

CarrierGatewayId String No

[IPv4 traffic only] The ID of a carrier gateway.

NetworkInterfaceId String No

The ID of a network interface.

RouteTableId String Yes

The ID of the route table.

EgressOnlyInternetGatewayId String No

[IPv6 traffic only] The ID of an egress-only internet gateway.

VpcEndpointId String No

The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.

LocalTarget Boolean No

Specifies whether to reset the local route to its default target (local).

LocalGatewayId String No

The ID of the local gateway.

DestinationIpv6CidrBlock String No

The IPv6 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

DryRun Boolean No

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

TransitGatewayId String No

The ID of a transit gateway.

Action String Yes

Possible values:

  • "ReplaceRoute"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.