delete_route_table
async
¶
delete_route_table(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
route_table_id: Optional[RouteTableId] = None,
) -> None
Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.
Parameters:
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete a route table This example deletes the specified route table.
Source code in docs_src/capo_ec2/_services/async_ec2.py
18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 | |