Macie2 / Client / batch_update_automated_discovery_accounts

batch_update_automated_discovery_accounts#

Macie2.Client.batch_update_automated_discovery_accounts(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.batch_update_automated_discovery_accounts(
    accounts=[
        {
            'accountId': 'string',
            'status': 'ENABLED'|'DISABLED'
        },
    ]
)
Parameters:

accounts (list) –

An array of objects, one for each account to change the status of automated sensitive data discovery for. Each object specifies the Amazon Web Services account ID for an account and a new status for that account.

  • (dict) –

    Changes 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 new status of automated sensitive data discovery for the account. Valid 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.

Return type:

dict

Returns:

Response Syntax

{
    'errors': [
        {
            'accountId': 'string',
            'errorCode': 'ACCOUNT_PAUSED'|'ACCOUNT_NOT_FOUND'
        },
    ]
}

Response Structure

  • (dict) –

    The request succeeded. However, the update might have failed for one or more accounts.

    • errors (list) –

      An array of objects, one for each account whose status wasn’t changed. Each object identifies the account and explains why the status of automated sensitive data discovery wasn’t changed for the account. This value is null if the request succeeded for all specified accounts.

      • (dict) –

        Provides information about a request that failed to change the status of automated sensitive data discovery for an Amazon Macie account.

        • accountId (string) –

          The Amazon Web Services account ID for the account that the request applied to.

        • errorCode (string) –

          The error code for the error that caused the request to fail for the account (accountId). Possible values are: ACCOUNT_NOT_FOUND, the account doesn’t exist or you’re not the Amazon Macie administrator for the account; and, ACCOUNT_PAUSED, Macie isn’t enabled for the account in the current Amazon Web Services Region.

Exceptions

  • Macie2.Client.exceptions.ThrottlingException

  • Macie2.Client.exceptions.ValidationException

  • Macie2.Client.exceptions.InternalServerException

  • Macie2.Client.exceptions.ConflictException

  • Macie2.Client.exceptions.AccessDeniedException