SecurityHub / Client / delete_members

delete_members#

SecurityHub.Client.delete_members(**kwargs)#

Deletes the specified member accounts from Security Hub.

You can invoke this API only to delete accounts that became members through invitation. You can’t invoke this API to delete accounts that belong to an Organizations organization.

See also: AWS API Documentation

Request Syntax

response = client.delete_members(
    AccountIds=[
        'string',
    ]
)
Parameters:

AccountIds (list) –

[REQUIRED]

The list of account IDs for the member accounts to delete.

  • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'UnprocessedAccounts': [
        {
            'AccountId': 'string',
            'ProcessingResult': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • UnprocessedAccounts (list) –

      The list of Amazon Web Services accounts that were not deleted. For each account, the list includes the account ID and the email address.

      • (dict) –

        Details about the account that was not processed.

        • AccountId (string) –

          An Amazon Web Services account ID of the account that was not processed.

        • ProcessingResult (string) –

          The reason that the account was not processed.

Exceptions

  • SecurityHub.Client.exceptions.InternalException

  • SecurityHub.Client.exceptions.InvalidInputException

  • SecurityHub.Client.exceptions.InvalidAccessException

  • SecurityHub.Client.exceptions.LimitExceededException

  • SecurityHub.Client.exceptions.ResourceNotFoundException