amazonka-ec2-1.3.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




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.

See: AWS API Reference for DeleteRouteTable.


Creating a Request

deleteRouteTable Source

Creates a value of DeleteRouteTable with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

drtrDryRun :: Lens' DeleteRouteTable (Maybe Bool) Source

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 is UnauthorizedOperation.

drtrRouteTableId :: Lens' DeleteRouteTable Text Source

The ID of the route table.

Destructuring the Response

deleteRouteTableResponse :: DeleteRouteTableResponse Source

Creates a value of DeleteRouteTableResponse with the minimum fields required to make a request.