:doc:`GuardDuty <../../guardduty>` / Client / get_invitations_count

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



.. py:method:: GuardDuty.Client.get_invitations_count()

  

  Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetInvitationsCount>`_  


  **Request Syntax**
  ::

    response = client.get_invitations_count()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'InvitationsCount': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InvitationsCount** *(integer) --* 

        The number of received invitations.

        
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  