amazonka-ds-1.4.0: Amazon Directory Service SDK.

Copyright(c) 2013-2016 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.DescribeTrusts

Contents

Description

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

Synopsis

Creating a Request

describeTrusts :: DescribeTrusts Source

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

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

data DescribeTrusts Source

Describes the trust relationships for a particular Microsoft AD in the AWS cloud. If no input parameters are are provided, such as directory ID or trust ID, this request describes all the trust relationships.

See: describeTrusts smart constructor.

Request Lenses

dtDirectoryId :: Lens' DescribeTrusts (Maybe Text) Source

The Directory ID of the AWS directory that is a part of the requested trust relationship.

dtNextToken :: Lens' DescribeTrusts (Maybe Text) Source

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

dtTrustIds :: Lens' DescribeTrusts [Text] Source

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

An empty list results in an InvalidParameterException being thrown.

dtLimit :: Lens' DescribeTrusts (Maybe Natural) Source

The maximum number of objects to return.

Destructuring the Response

describeTrustsResponse Source

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

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

Response Lenses

dtrsNextToken :: Lens' DescribeTrustsResponse (Maybe Text) Source

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

dtrsTrusts :: Lens' DescribeTrustsResponse [Trust] Source

The list of Trust 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.