Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.EC2.DeleteRouteTable
Description
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.
Synopsis
- data DeleteRouteTable = DeleteRouteTable' {
- dryRun :: Maybe Bool
- routeTableId :: Text
- newDeleteRouteTable :: Text -> DeleteRouteTable
- deleteRouteTable_dryRun :: Lens' DeleteRouteTable (Maybe Bool)
- deleteRouteTable_routeTableId :: Lens' DeleteRouteTable Text
- data DeleteRouteTableResponse = DeleteRouteTableResponse' {
- newDeleteRouteTableResponse :: DeleteRouteTableResponse
Creating a Request
data DeleteRouteTable Source #
See: newDeleteRouteTable
smart constructor.
Constructors
DeleteRouteTable' | |
Fields
|
Instances
Arguments
:: Text | |
-> DeleteRouteTable |
Create a value of DeleteRouteTable
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DeleteRouteTable'
, deleteRouteTable_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 DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
DeleteRouteTable
, deleteRouteTable_routeTableId
- The ID of the route table.
Request Lenses
deleteRouteTable_dryRun :: 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
.
deleteRouteTable_routeTableId :: Lens' DeleteRouteTable Text Source #
The ID of the route table.
Destructuring the Response
data DeleteRouteTableResponse Source #
See: newDeleteRouteTableResponse
smart constructor.
Constructors
DeleteRouteTableResponse' | |
Instances
newDeleteRouteTableResponse :: DeleteRouteTableResponse Source #
Create a value of DeleteRouteTableResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.