delete_route
async
¶
delete_route(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 | |