| Copyright | (c) 2013-2017 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 |
| Language | Haskell2010 |
Network.AWS.WorkSpaces.DescribeWorkspaceDirectories
Description
Retrieves information about the AWS Directory Service directories in the region that are registered with Amazon WorkSpaces and are available to your account.
This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the NextToken response member contains a token that you pass in the next call to this operation to retrieve the next set of items.
This operation returns paginated results.
- describeWorkspaceDirectories :: DescribeWorkspaceDirectories
- data DescribeWorkspaceDirectories
- dwdNextToken :: Lens' DescribeWorkspaceDirectories (Maybe Text)
- dwdDirectoryIds :: Lens' DescribeWorkspaceDirectories (Maybe (NonEmpty Text))
- describeWorkspaceDirectoriesResponse :: Int -> DescribeWorkspaceDirectoriesResponse
- data DescribeWorkspaceDirectoriesResponse
- dwdrsDirectories :: Lens' DescribeWorkspaceDirectoriesResponse [WorkspaceDirectory]
- dwdrsNextToken :: Lens' DescribeWorkspaceDirectoriesResponse (Maybe Text)
- dwdrsResponseStatus :: Lens' DescribeWorkspaceDirectoriesResponse Int
Creating a Request
describeWorkspaceDirectories :: DescribeWorkspaceDirectories Source #
Creates a value of DescribeWorkspaceDirectories with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwdNextToken- TheNextTokenvalue from a previous call to this operation. Pass null if this is the first call.dwdDirectoryIds- An array of strings that contains the directory identifiers to retrieve information for. If this member is null, all directories are retrieved.
data DescribeWorkspaceDirectories Source #
Contains the inputs for the DescribeWorkspaceDirectories operation.
See: describeWorkspaceDirectories smart constructor.
Instances
Request Lenses
dwdNextToken :: Lens' DescribeWorkspaceDirectories (Maybe Text) Source #
The NextToken value from a previous call to this operation. Pass null if this is the first call.
dwdDirectoryIds :: Lens' DescribeWorkspaceDirectories (Maybe (NonEmpty Text)) Source #
An array of strings that contains the directory identifiers to retrieve information for. If this member is null, all directories are retrieved.
Destructuring the Response
describeWorkspaceDirectoriesResponse Source #
Arguments
| :: Int | |
| -> DescribeWorkspaceDirectoriesResponse |
Creates a value of DescribeWorkspaceDirectoriesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dwdrsDirectories- An array of structures that contain information about the directories.dwdrsNextToken- If not null, more results are available. Pass this value for theNextTokenparameter in a subsequent call to this operation to retrieve the next set of items. This token is valid for one day and must be used within that time frame.dwdrsResponseStatus- -- | The response status code.
data DescribeWorkspaceDirectoriesResponse Source #
Contains the results of the DescribeWorkspaceDirectories operation.
See: describeWorkspaceDirectoriesResponse smart constructor.
Instances
Response Lenses
dwdrsDirectories :: Lens' DescribeWorkspaceDirectoriesResponse [WorkspaceDirectory] Source #
An array of structures that contain information about the directories.
dwdrsNextToken :: Lens' DescribeWorkspaceDirectoriesResponse (Maybe Text) Source #
If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to this operation to retrieve the next set of items. This token is valid for one day and must be used within that time frame.
dwdrsResponseStatus :: Lens' DescribeWorkspaceDirectoriesResponse Int Source #
- - | The response status code.