:doc:`Detective <../../detective>` / Client / reject_invitation

*****************
reject_invitation
*****************



.. py:method:: Detective.Client.reject_invitation(**kwargs)

  

  Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by an invited member account that has the ``INVITED`` status.

   

  ``RejectInvitation`` cannot be called by an organization account in the organization behavior graph. In the organization behavior graph, organization accounts do not receive an invitation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/RejectInvitation>`_  


  **Request Syntax**
  ::

    response = client.reject_invitation(
        GraphArn='string'
    )
    
  :type GraphArn: string
  :param GraphArn: **[REQUIRED]** 

    The ARN of the behavior graph to reject the invitation to.

     

    The member account's current member status in the behavior graph must be ``INVITED``.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Detective.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Detective.Client.exceptions.ConflictException`

  
  *   :py:class:`Detective.Client.exceptions.InternalServerException`

  
  *   :py:class:`Detective.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Detective.Client.exceptions.ValidationException`

  