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 |
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.
GetDirectory' | |
|
Instances
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:
$sel:directoryArn: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.
GetDirectoryResponse' | |
|
Instances
newGetDirectoryResponse Source #
:: 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.