:doc:`Macie2 <../../macie2>` / Client / accept_invitation

*****************
accept_invitation
*****************



.. py:method:: Macie2.Client.accept_invitation(**kwargs)

  

  Accepts an Amazon Macie membership invitation that was received from a specific account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AcceptInvitation>`_  


  **Request Syntax**
  ::

    response = client.accept_invitation(
        administratorAccountId='string',
        invitationId='string',
        masterAccount='string'
    )
    
  :type administratorAccountId: string
  :param administratorAccountId: 

    The Amazon Web Services account ID for the account that sent the invitation.

    

  
  :type invitationId: string
  :param invitationId: **[REQUIRED]** 

    The unique identifier for the invitation to accept.

    

  
  :type masterAccount: string
  :param masterAccount: 

    (Deprecated) The Amazon Web Services account ID for the account that sent the invitation. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded and there isn't any content to include in the body of the response (No Content).

      
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`Macie2.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ThrottlingException`

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

  