Macie2 / Paginator / ListAutomatedDiscoveryAccounts

ListAutomatedDiscoveryAccounts#

class Macie2.Paginator.ListAutomatedDiscoveryAccounts#
paginator = client.get_paginator('list_automated_discovery_accounts')
paginate(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    accountIds=[
        'string',
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • accountIds (list) –

    The Amazon Web Services account ID for each account, for as many as 50 accounts. To retrieve the status for multiple accounts, append the accountIds parameter and argument for each account, separated by an ampersand (&). To retrieve the status for all the accounts in an organization, omit this parameter.

    • (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

{
    'items': [
        {
            'accountId': 'string',
            'status': 'ENABLED'|'DISABLED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    The request succeeded.

    • items (list) –

      An array of objects, one for each account specified in the request. Each object specifies the Amazon Web Services account ID for an account and the current status of automated sensitive data discovery for that account.

      • (dict) –

        Provides information about the status of automated sensitive data discovery for an Amazon Macie account.

        • accountId (string) –

          The Amazon Web Services account ID for the account.

        • status (string) –

          The current status of automated sensitive data discovery for the account. Possible values are: ENABLED, perform automated sensitive data discovery activities for the account; and, DISABLED, don’t perform automated sensitive data discovery activities for the account.

    • NextToken (string) –

      A token to resume pagination.