disassociate_route_table
async
¶
disassociate_route_table(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
association_id: Optional[RouteTableAssociationId] = None,
) -> None
Disassociates a subnet or gateway from a route table.
After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC's main route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.
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. -
association_id(Optional[RouteTableAssociationId], default:None) –The association ID representing the current association between the route table and subnet or gateway.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To disassociate a route table This example disassociates the specified route table from its associated subnet.
Source code in docs_src/capo_ec2/_services/async_ec2.py
40876 40877 40878 40879 40880 40881 40882 40883 40884 40885 40886 40887 40888 40889 40890 40891 40892 40893 40894 40895 40896 40897 40898 40899 40900 40901 40902 40903 40904 40905 40906 40907 40908 40909 40910 40911 40912 40913 40914 40915 40916 40917 40918 40919 40920 40921 40922 40923 40924 40925 40926 40927 40928 40929 | |