| 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.DeleteSubnet
Description
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.
Constructors
| DeleteSubnet' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteSubnet |
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.
Constructors
| DeleteSubnetResponse' | |
Instances
newDeleteSubnetResponse :: DeleteSubnetResponse Source #
Create a value of DeleteSubnetResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.