Replaces an existing route within a route table in a VPC
Source:R/ec2_operations.R
ec2_replace_route.RdReplaces an existing route within a route table in a VPC.
See https://www.paws-r-sdk.com/docs/ec2_replace_route/ for full documentation.
Usage
ec2_replace_route(
DestinationPrefixListId = NULL,
VpcEndpointId = NULL,
LocalTarget = NULL,
TransitGatewayId = NULL,
LocalGatewayId = NULL,
CarrierGatewayId = NULL,
CoreNetworkArn = NULL,
OdbNetworkArn = NULL,
DryRun = NULL,
RouteTableId,
DestinationCidrBlock = NULL,
GatewayId = NULL,
DestinationIpv6CidrBlock = NULL,
EgressOnlyInternetGatewayId = NULL,
InstanceId = NULL,
NetworkInterfaceId = NULL,
VpcPeeringConnectionId = NULL,
NatGatewayId = NULL
)Arguments
- DestinationPrefixListId
The ID of the prefix list for the route.
- VpcEndpointId
The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.
- LocalTarget
Specifies whether to reset the local route to its default target (
local).- TransitGatewayId
The ID of a transit gateway.
- LocalGatewayId
The ID of the local gateway.
- CarrierGatewayId
[IPv4 traffic only] The ID of a carrier gateway.
- CoreNetworkArn
The Amazon Resource Name (ARN) of the core network.
- OdbNetworkArn
The Amazon Resource Name (ARN) of the ODB network.
- DryRun
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 isUnauthorizedOperation.- RouteTableId
[required] The ID of the route table.
- DestinationCidrBlock
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.
- GatewayId
The ID of an internet gateway or virtual private gateway.
- DestinationIpv6CidrBlock
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.
- EgressOnlyInternetGatewayId
[IPv6 traffic only] The ID of an egress-only internet gateway.
- InstanceId
The ID of a NAT instance in your VPC.
- NetworkInterfaceId
The ID of a network interface.
- VpcPeeringConnectionId
The ID of a VPC peering connection.
- NatGatewayId
[IPv4 traffic only] The ID of a NAT gateway.