| 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.CloudDirectory.DeleteDirectory
Description
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.
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_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.
Constructors
| DeleteDirectoryResponse' | |
Fields
| |
Instances
newDeleteDirectoryResponse Source #
Arguments
| :: 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.
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.