amazonka-ds-1.3.3.1: Amazon Directory Service SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DirectoryService.DescribeDirectories

Contents

Description

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

See: AWS API Reference for DescribeDirectories.

Synopsis

Creating a Request

describeDirectories :: DescribeDirectories Source

Creates a value of DescribeDirectories with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ddNextToken :: Lens' DescribeDirectories (Maybe Text) Source

The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

ddDirectoryIds :: Lens' DescribeDirectories [Text] Source

A list of identifiers of the directories to obtain the information for. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

ddLimit :: Lens' DescribeDirectories (Maybe Natural) Source

The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

Destructuring the Response

describeDirectoriesResponse Source

Creates a value of DescribeDirectoriesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

ddrsDirectoryDescriptions :: Lens' DescribeDirectoriesResponse [DirectoryDescription] Source

The list of DirectoryDescription objects that were retrieved.

It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

ddrsNextToken :: Lens' DescribeDirectoriesResponse (Maybe Text) Source

If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.