DescribeTrusts

class DirectoryService.Paginator.DescribeTrusts
paginator = client.get_paginator('describe_trusts')
paginate(**kwargs)

Creates an iterator that will paginate through responses from DirectoryService.Client.describe_trusts().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    DirectoryId='string',
    TrustIds=[
        'string',
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • DirectoryId (string) -- The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.
  • TrustIds (list) --

    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.

    • (string) --
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'Trusts': [
        {
            'DirectoryId': 'string',
            'TrustId': 'string',
            'RemoteDomainName': 'string',
            'TrustType': 'Forest'|'External',
            'TrustDirection': 'One-Way: Outgoing'|'One-Way: Incoming'|'Two-Way',
            'TrustState': 'Creating'|'Created'|'Verifying'|'VerifyFailed'|'Verified'|'Updating'|'UpdateFailed'|'Updated'|'Deleting'|'Deleted'|'Failed',
            'CreatedDateTime': datetime(2015, 1, 1),
            'LastUpdatedDateTime': datetime(2015, 1, 1),
            'StateLastUpdatedDateTime': datetime(2015, 1, 1),
            'TrustStateReason': 'string',
            'SelectiveAuth': 'Enabled'|'Disabled'
        },
    ],

}

Response Structure

  • (dict) --

    The result of a DescribeTrust request.

    • Trusts (list) --

      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.

      • (dict) --

        Describes a trust relationship between an Managed Microsoft AD directory and an external domain.

        • DirectoryId (string) --

          The Directory ID of the Amazon Web Services directory involved in the trust relationship.

        • TrustId (string) --

          The unique ID of the trust relationship.

        • RemoteDomainName (string) --

          The Fully Qualified Domain Name (FQDN) of the external domain involved in the trust relationship.

        • TrustType (string) --

          The trust relationship type. Forest is the default.

        • TrustDirection (string) --

          The trust relationship direction.

        • TrustState (string) --

          The trust relationship state.

        • CreatedDateTime (datetime) --

          The date and time that the trust relationship was created.

        • LastUpdatedDateTime (datetime) --

          The date and time that the trust relationship was last updated.

        • StateLastUpdatedDateTime (datetime) --

          The date and time that the TrustState was last updated.

        • TrustStateReason (string) --

          The reason for the TrustState.

        • SelectiveAuth (string) --

          Current state of selective authentication for the trust.