Macie2 / Client / list_automated_discovery_accounts

list_automated_discovery_accounts#

Macie2.Client.list_automated_discovery_accounts(**kwargs)#

Retrieves the status of automated sensitive data discovery for one or more accounts.

See also: AWS API Documentation

Request Syntax

response = client.list_automated_discovery_accounts(
    accountIds=[
        'string',
    ],
    maxResults=123,
    nextToken='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) –

  • maxResults (integer) – The maximum number of items to include in each page of a paginated response.

  • nextToken (string) – The nextToken string that specifies which page of results to return in a paginated 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) –

      The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

Exceptions

  • Macie2.Client.exceptions.ResourceNotFoundException

  • Macie2.Client.exceptions.ThrottlingException

  • Macie2.Client.exceptions.ValidationException

  • Macie2.Client.exceptions.InternalServerException

  • Macie2.Client.exceptions.AccessDeniedException