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 |
Lists directories created within an account.
This operation returns paginated results.
Synopsis
- data ListDirectories = ListDirectories' {}
- newListDirectories :: ListDirectories
- listDirectories_state :: Lens' ListDirectories (Maybe DirectoryState)
- listDirectories_nextToken :: Lens' ListDirectories (Maybe Text)
- listDirectories_maxResults :: Lens' ListDirectories (Maybe Natural)
- data ListDirectoriesResponse = ListDirectoriesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- directories :: [Directory]
- newListDirectoriesResponse :: Int -> ListDirectoriesResponse
- listDirectoriesResponse_nextToken :: Lens' ListDirectoriesResponse (Maybe Text)
- listDirectoriesResponse_httpStatus :: Lens' ListDirectoriesResponse Int
- listDirectoriesResponse_directories :: Lens' ListDirectoriesResponse [Directory]
Creating a Request
data ListDirectories Source #
See: newListDirectories
smart constructor.
ListDirectories' | |
|
Instances
newListDirectories :: ListDirectories Source #
Create a value of ListDirectories
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:state:ListDirectories'
, listDirectories_state
- The state of the directories in the list. Can be either Enabled,
Disabled, or Deleted.
$sel:nextToken:ListDirectories'
, listDirectories_nextToken
- The pagination token.
$sel:maxResults:ListDirectories'
, listDirectories_maxResults
- The maximum number of results to retrieve.
Request Lenses
listDirectories_state :: Lens' ListDirectories (Maybe DirectoryState) Source #
The state of the directories in the list. Can be either Enabled, Disabled, or Deleted.
listDirectories_nextToken :: Lens' ListDirectories (Maybe Text) Source #
The pagination token.
listDirectories_maxResults :: Lens' ListDirectories (Maybe Natural) Source #
The maximum number of results to retrieve.
Destructuring the Response
data ListDirectoriesResponse Source #
See: newListDirectoriesResponse
smart constructor.
ListDirectoriesResponse' | |
|
Instances
newListDirectoriesResponse Source #
Create a value of ListDirectoriesResponse
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:nextToken:ListDirectories'
, listDirectoriesResponse_nextToken
- The pagination token.
$sel:httpStatus:ListDirectoriesResponse'
, listDirectoriesResponse_httpStatus
- The response's http status code.
$sel:directories:ListDirectoriesResponse'
, listDirectoriesResponse_directories
- Lists all directories that are associated with your account in
pagination fashion.
Response Lenses
listDirectoriesResponse_nextToken :: Lens' ListDirectoriesResponse (Maybe Text) Source #
The pagination token.
listDirectoriesResponse_httpStatus :: Lens' ListDirectoriesResponse Int Source #
The response's http status code.
listDirectoriesResponse_directories :: Lens' ListDirectoriesResponse [Directory] Source #
Lists all directories that are associated with your account in pagination fashion.