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 |
Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.
Synopsis
Creating a Request
data DeleteSubnet Source #
See: newDeleteSubnet
smart constructor.
DeleteSubnet' | |
|
Instances
Create a value of DeleteSubnet
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:DeleteSubnet'
, deleteSubnet_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
.
DeleteSubnet
, deleteSubnet_subnetId
- The ID of the subnet.
Request Lenses
deleteSubnet_dryRun :: Lens' DeleteSubnet (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
.
deleteSubnet_subnetId :: Lens' DeleteSubnet Text Source #
The ID of the subnet.
Destructuring the Response
data DeleteSubnetResponse Source #
See: newDeleteSubnetResponse
smart constructor.
Instances
Generic DeleteSubnetResponse Source # | |
Defined in Amazonka.EC2.DeleteSubnet type Rep DeleteSubnetResponse :: Type -> Type # from :: DeleteSubnetResponse -> Rep DeleteSubnetResponse x # to :: Rep DeleteSubnetResponse x -> DeleteSubnetResponse # | |
Read DeleteSubnetResponse Source # | |
Defined in Amazonka.EC2.DeleteSubnet | |
Show DeleteSubnetResponse Source # | |
Defined in Amazonka.EC2.DeleteSubnet showsPrec :: Int -> DeleteSubnetResponse -> ShowS # show :: DeleteSubnetResponse -> String # showList :: [DeleteSubnetResponse] -> ShowS # | |
NFData DeleteSubnetResponse Source # | |
Defined in Amazonka.EC2.DeleteSubnet rnf :: DeleteSubnetResponse -> () # | |
Eq DeleteSubnetResponse Source # | |
Defined in Amazonka.EC2.DeleteSubnet (==) :: DeleteSubnetResponse -> DeleteSubnetResponse -> Bool # (/=) :: DeleteSubnetResponse -> DeleteSubnetResponse -> Bool # | |
type Rep DeleteSubnetResponse Source # | |
newDeleteSubnetResponse :: DeleteSubnetResponse Source #
Create a value of DeleteSubnetResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.