| 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.DirectoryService.DeleteDirectory
Description
Deletes an Directory Service directory.
Before you call DeleteDirectory, ensure that all of the required
permissions have been explicitly granted through a policy. For details
about what permissions are required to run the DeleteDirectory
operation, see
Directory Service API Permissions: Actions, Resources, and Conditions Reference.
Synopsis
- data DeleteDirectory = DeleteDirectory' {
- directoryId :: Text
- newDeleteDirectory :: Text -> DeleteDirectory
- deleteDirectory_directoryId :: Lens' DeleteDirectory Text
- data DeleteDirectoryResponse = DeleteDirectoryResponse' {
- directoryId :: Maybe Text
- httpStatus :: Int
- newDeleteDirectoryResponse :: Int -> DeleteDirectoryResponse
- deleteDirectoryResponse_directoryId :: Lens' DeleteDirectoryResponse (Maybe Text)
- deleteDirectoryResponse_httpStatus :: Lens' DeleteDirectoryResponse Int
Creating a Request
data DeleteDirectory Source #
Contains the inputs for the DeleteDirectory operation.
See: newDeleteDirectory smart constructor.
Constructors
| DeleteDirectory' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteDirectory |
Create a value of DeleteDirectory 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:
DeleteDirectory, deleteDirectory_directoryId - The identifier of the directory to delete.
Request Lenses
deleteDirectory_directoryId :: Lens' DeleteDirectory Text Source #
The identifier of the directory to delete.
Destructuring the Response
data DeleteDirectoryResponse Source #
Contains the results of the DeleteDirectory operation.
See: newDeleteDirectoryResponse smart constructor.
Constructors
| DeleteDirectoryResponse' | |
Fields
| |
Instances
newDeleteDirectoryResponse Source #
Create a value of DeleteDirectoryResponse 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:
DeleteDirectory, deleteDirectoryResponse_directoryId - The directory identifier.
$sel:httpStatus:DeleteDirectoryResponse', deleteDirectoryResponse_httpStatus - The response's http status code.
Response Lenses
deleteDirectoryResponse_directoryId :: Lens' DeleteDirectoryResponse (Maybe Text) Source #
The directory identifier.
deleteDirectoryResponse_httpStatus :: Lens' DeleteDirectoryResponse Int Source #
The response's http status code.