Macie2 / Paginator / ListMembers

ListMembers#

class Macie2.Paginator.ListMembers#
paginator = client.get_paginator('list_members')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Macie2.Client.list_members().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    onlyAssociated='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • onlyAssociated (string) – Specifies which accounts to include in the response, based on the status of an account’s relationship with the administrator account. By default, the response includes only current member accounts. To include all accounts, set this value to false.

  • 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

{
    'members': [
        {
            'accountId': 'string',
            'administratorAccountId': 'string',
            'arn': 'string',
            'email': 'string',
            'invitedAt': datetime(2015, 1, 1),
            'masterAccountId': 'string',
            'relationshipStatus': 'Enabled'|'Paused'|'Invited'|'Created'|'Removed'|'Resigned'|'EmailVerificationInProgress'|'EmailVerificationFailed'|'RegionDisabled'|'AccountSuspended',
            'tags': {
                'string': 'string'
            },
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    The request succeeded.

    • members (list) –

      An array of objects, one for each account that’s associated with the administrator account and matches the criteria specified in the request.

      • (dict) –

        Provides information about an account that’s associated with an Amazon Macie administrator account.

        • accountId (string) –

          The Amazon Web Services account ID for the account.

        • administratorAccountId (string) –

          The Amazon Web Services account ID for the administrator account.

        • arn (string) –

          The Amazon Resource Name (ARN) of the account.

        • email (string) –

          The email address for the account. This value is null if the account is associated with the administrator account through Organizations.

        • invitedAt (datetime) –

          The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie membership invitation hasn’t been sent to the account.

        • masterAccountId (string) –

          (Deprecated) The Amazon Web Services account ID for the administrator account. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.

        • relationshipStatus (string) –

          The current status of the relationship between the account and the administrator account.

        • tags (dict) –

          A map of key-value pairs that specifies which tags (keys and values) are associated with the account in Amazon Macie.

          • (string) –

            • (string) –

        • updatedAt (datetime) –

          The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the administrator account.

    • NextToken (string) –

      A token to resume pagination.