aws ec2 replace-route
Replaces an existing route within a route table in a VPC. AWS CLI reference
18 options Its page in the AWS CLI reference
Options
--carrier-gateway-id[IPv4 traffic only] The ID of a carrier gateway.--core-network-arnThe Amazon Resource Name (ARN) of the core network.--destination-cidr-blockThe IPv4 CIDR address block used for the destination match.--destination-ipv6-cidr-blockThe IPv6 CIDR address block used for the destination match.--destination-prefix-list-idThe ID of the prefix list for the route.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--egress-only-internet-gateway-id[IPv6 traffic only] The ID of an egress-only internet gateway.--gateway-idThe ID of an internet gateway or virtual private gateway.--instance-idThe ID of a NAT instance in your VPC.--local-gateway-idThe ID of the local gateway.--local-targetSpecifies whether to reset the local route to its default target (local).--nat-gateway-id[IPv4 traffic only] The ID of a NAT gateway.--network-interface-idThe ID of a network interface.--odb-network-arnThe Amazon Resource Name (ARN) of the ODB network.--route-table-idThe ID of the route table.--transit-gateway-idThe ID of a transit gateway.--vpc-endpoint-idThe ID of a VPC endpoint.--vpc-peering-connection-idThe ID of a VPC peering connection.