| 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.GetDirectory
Description
Retrieves metadata about a directory.
Synopsis
- data GetDirectory = GetDirectory' {
- directoryArn :: Text
- newGetDirectory :: Text -> GetDirectory
- getDirectory_directoryArn :: Lens' GetDirectory Text
- data GetDirectoryResponse = GetDirectoryResponse' {
- httpStatus :: Int
- directory :: Directory
- newGetDirectoryResponse :: Int -> Directory -> GetDirectoryResponse
- getDirectoryResponse_httpStatus :: Lens' GetDirectoryResponse Int
- getDirectoryResponse_directory :: Lens' GetDirectoryResponse Directory
Creating a Request
data GetDirectory Source #
See: newGetDirectory smart constructor.
Constructors
| GetDirectory' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetDirectory |
Create a value of GetDirectory 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:
GetDirectory, getDirectory_directoryArn - The ARN of the directory.
Request Lenses
getDirectory_directoryArn :: Lens' GetDirectory Text Source #
The ARN of the directory.
Destructuring the Response
data GetDirectoryResponse Source #
See: newGetDirectoryResponse smart constructor.
Constructors
| GetDirectoryResponse' | |
Fields
| |
Instances
newGetDirectoryResponse Source #
Arguments
| :: Int | |
| -> Directory | |
| -> GetDirectoryResponse |
Create a value of GetDirectoryResponse 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:GetDirectoryResponse', getDirectoryResponse_httpStatus - The response's http status code.
$sel:directory:GetDirectoryResponse', getDirectoryResponse_directory - Metadata about the directory.
Response Lenses
getDirectoryResponse_httpStatus :: Lens' GetDirectoryResponse Int Source #
The response's http status code.
getDirectoryResponse_directory :: Lens' GetDirectoryResponse Directory Source #
Metadata about the directory.