:doc:`SecurityHub <../../securityhub>` / Client / get_invitations_count

*********************
get_invitations_count
*********************



.. py:method:: 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 <https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-accounts-orgs.html>`__ 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 <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInvitationsCount>`_  


  **Request Syntax**
  ::

    response = client.get_invitations_count()
    
    
  
  :rtype: 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**
  
  *   :py:class:`SecurityHub.Client.exceptions.InternalException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidInputException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidAccessException`

  
  *   :py:class:`SecurityHub.Client.exceptions.LimitExceededException`

  