POST /#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
- https://ec2.{region}.amazonaws.com
- https://ec2.amazonaws.com
- https://ec2.{region}.amazonaws.com.cn
Request headers
Name | Type | Required | Description |
---|---|---|---|
X-Amz-Content-Sha256 |
String | No | |
X-Amz-Credential |
String | No | |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "text/xml" |
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 |
---|---|---|---|
Version |
String | Yes |
Possible values:
|
Action |
String | Yes |
Possible values:
|
Request body fields
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. |
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 ( |
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 |
TransitGatewayId |
String | No |
The ID of a transit gateway. |
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.