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 a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories.
Synopsis
- data DeleteDirectory = DeleteDirectory' {
- directoryArn :: Text
- newDeleteDirectory :: Text -> DeleteDirectory
- deleteDirectory_directoryArn :: Lens' DeleteDirectory Text
- data DeleteDirectoryResponse = DeleteDirectoryResponse' {
- httpStatus :: Int
- directoryArn :: Text
- newDeleteDirectoryResponse :: Int -> Text -> DeleteDirectoryResponse
- deleteDirectoryResponse_httpStatus :: Lens' DeleteDirectoryResponse Int
- deleteDirectoryResponse_directoryArn :: Lens' DeleteDirectoryResponse Text
Creating a Request
data DeleteDirectory Source #
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:directoryArn:DeleteDirectory'
, deleteDirectory_directoryArn
- The ARN of the directory to delete.
Request Lenses
deleteDirectory_directoryArn :: Lens' DeleteDirectory Text Source #
The ARN of the directory to delete.
Destructuring the Response
data DeleteDirectoryResponse Source #
See: newDeleteDirectoryResponse
smart constructor.
DeleteDirectoryResponse' | |
|
Instances
newDeleteDirectoryResponse Source #
:: Int | |
-> Text | |
-> DeleteDirectoryResponse |
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:httpStatus:DeleteDirectoryResponse'
, deleteDirectoryResponse_httpStatus
- The response's http status code.
$sel:directoryArn:DeleteDirectory'
, deleteDirectoryResponse_directoryArn
- The ARN of the deleted directory.
Response Lenses
deleteDirectoryResponse_httpStatus :: Lens' DeleteDirectoryResponse Int Source #
The response's http status code.
deleteDirectoryResponse_directoryArn :: Lens' DeleteDirectoryResponse Text Source #
The ARN of the deleted directory.