delete_route
¶
delete_route(
*,
config_overrides: Optional[EC2ClientConfig] = None,
destination_prefix_list_id: Optional[PrefixListResourceId] = None,
dry_run: Optional[Boolean] = None,
route_table_id: Optional[RouteTableId] = None,
destination_cidr_block: Optional[String] = None,
destination_ipv6_cidr_block: Optional[String] = None,
) -> None
Deletes the specified route from the specified route table.
Parameters:
-
destination_prefix_list_id(Optional[PrefixListResourceId], default:None) –The ID of the prefix list for the route.
-
dry_run(Optional[Boolean], default:None) –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. -
route_table_id(Optional[RouteTableId], default:None) –The ID of the route table.
-
destination_cidr_block(Optional[String], default:None) –The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.
-
destination_ipv6_cidr_block(Optional[String], default:None) –The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a route This example deletes the specified route from the specified route table.
Source code in docs_src/capo_ec2/_services/ec2.py
18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 | |