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

*******************************
accept_administrator_invitation
*******************************



.. py:method:: GuardDuty.Client.accept_administrator_invitation(**kwargs)

  

  Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.

  

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


  **Request Syntax**
  ::

    response = client.accept_administrator_invitation(
        DetectorId='string',
        AdministratorId='string',
        InvitationId='string'
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The unique ID of the detector of the GuardDuty member account.

    

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

    The account ID of the GuardDuty administrator account whose invitation you're accepting.

    

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

    The value that is used to validate the administrator account to the member account.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

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

  