Disassociate Route Table
ec2_disassociate_route_table | R Documentation |
Disassociates a subnet or gateway from a route table¶
Description¶
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.
Usage¶
ec2_disassociate_route_table(DryRun, AssociationId)
Arguments¶
DryRun |
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
|
AssociationId |
[required] The association ID representing the current association between the route table and subnet or gateway. |
Value¶
An empty list.
Request syntax¶
svc$disassociate_route_table(
DryRun = TRUE|FALSE,
AssociationId = "string"
)
Examples¶
## Not run:
# This example disassociates the specified route table from its associated
# subnet.
svc$disassociate_route_table(
AssociationId = "rtbassoc-781d0d1a"
)
## End(Not run)