Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
DeleteDirectory' | |
|
Instances
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:
$sel:directoryId: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.
DeleteDirectoryResponse' | |
|
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:
$sel:directoryId: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.