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

Amazonka.DirectoryService.DescribeDirectories

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.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeDirectories Source #

Contains the inputs for the DescribeDirectories operation.

See: newDescribeDirectories smart constructor.

Constructors

DescribeDirectories' 

Fields

  • nextToken :: Maybe Text

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

  • directoryIds :: Maybe [Text]

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

    An empty list results in an InvalidParameterException being thrown.

  • limit :: Maybe Natural

    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.

Instances

Instances details
Eq DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Read DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Show DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Generic DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Associated Types

type Rep DescribeDirectories :: Type -> Type #

NFData DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Methods

rnf :: DescribeDirectories -> () #

Hashable DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

ToJSON DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

AWSPager DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

AWSRequest DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Associated Types

type AWSResponse DescribeDirectories #

ToHeaders DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

ToPath DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

ToQuery DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

type Rep DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

type Rep DescribeDirectories = D1 ('MetaData "DescribeDirectories" "Amazonka.DirectoryService.DescribeDirectories" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "DescribeDirectories'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "directoryIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeDirectories Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

newDescribeDirectories :: DescribeDirectories Source #

Create a value of DescribeDirectories 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:DescribeDirectories', describeDirectories_nextToken - The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

$sel:directoryIds:DescribeDirectories', describeDirectories_directoryIds - A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

An empty list results in an InvalidParameterException being thrown.

$sel:limit:DescribeDirectories', describeDirectories_limit - 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.

Request Lenses

describeDirectories_nextToken :: Lens' DescribeDirectories (Maybe Text) Source #

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

describeDirectories_directoryIds :: Lens' DescribeDirectories (Maybe [Text]) Source #

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

An empty list results in an InvalidParameterException being thrown.

describeDirectories_limit :: 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

data DescribeDirectoriesResponse Source #

Contains the results of the DescribeDirectories operation.

See: newDescribeDirectoriesResponse smart constructor.

Constructors

DescribeDirectoriesResponse' 

Fields

  • directoryDescriptions :: Maybe [DirectoryDescription]

    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.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeDirectoriesResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Show DescribeDirectoriesResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Generic DescribeDirectoriesResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

Associated Types

type Rep DescribeDirectoriesResponse :: Type -> Type #

NFData DescribeDirectoriesResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

type Rep DescribeDirectoriesResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.DescribeDirectories

type Rep DescribeDirectoriesResponse = D1 ('MetaData "DescribeDirectoriesResponse" "Amazonka.DirectoryService.DescribeDirectories" "libZSservicesZSamazonka-dsZSamazonka-ds" 'False) (C1 ('MetaCons "DescribeDirectoriesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryDescriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DirectoryDescription])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeDirectoriesResponse Source #

Create a value of DescribeDirectoriesResponse 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:directoryDescriptions:DescribeDirectoriesResponse', describeDirectoriesResponse_directoryDescriptions - 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.

$sel:nextToken:DescribeDirectories', describeDirectoriesResponse_nextToken - 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.

$sel:httpStatus:DescribeDirectoriesResponse', describeDirectoriesResponse_httpStatus - The response's http status code.

Response Lenses

describeDirectoriesResponse_directoryDescriptions :: Lens' DescribeDirectoriesResponse (Maybe [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.

describeDirectoriesResponse_nextToken :: 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.