SecurityHub / Client / delete_invitations

delete_invitations#

SecurityHub.Client.delete_invitations(**kwargs)#

Deletes invitations received by the Amazon Web Services account to become a member account.

A Security Hub administrator account can use this operation to delete invitations sent to one or more member accounts.

This operation is only used to delete invitations that are sent to member accounts that aren’t part of an organization. Organization accounts don’t receive invitations.

See also: AWS API Documentation

Request Syntax

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

AccountIds (list) –

[REQUIRED]

The list of member account IDs that received the invitations you want 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 for which the invitations 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