disassociate_route_table
¶
disassociate_route_table(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
40333 40334 40335 40336 40337 40338 40339 40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 40354 40355 40356 40357 40358 40359 40360 40361 40362 40363 40364 40365 40366 40367 40368 40369 40370 40371 40372 40373 40374 40375 40376 40377 40378 40379 40380 40381 40382 40383 40384 40385 | |