SecurityHub / Client / get_invitations_count

get_invitations_count#

SecurityHub.Client.get_invitations_count()#

Note

We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.

See also: AWS API Documentation

Request Syntax

response = client.get_invitations_count()
Return type:

dict

Returns:

Response Syntax

{
    'InvitationsCount': 123
}

Response Structure

  • (dict) –

    • InvitationsCount (integer) –

      The number of all membership invitations sent to this Security Hub member account, not including the currently accepted invitation.

Exceptions