:doc:`Inspector2 <../../inspector2>` / Client / associate_member

****************
associate_member
****************



.. py:method:: Inspector2.Client.associate_member(**kwargs)

  

  Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using `ListMembers <https://docs.aws.amazon.com/inspector/v2/APIReference/API_ListMembers.html>`__ for multiple accounts or `GetMembers <https://docs.aws.amazon.com/inspector/v2/APIReference/API_GetMember.html>`__ for a single account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/AssociateMember>`_  


  **Request Syntax**
  ::

    response = client.associate_member(
        accountId='string'
    )
    
  :type accountId: string
  :param accountId: **[REQUIRED]** 

    The Amazon Web Services account ID of the member account to be associated.

    

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

    
    ::

      {
          'accountId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accountId** *(string) --* 

        The Amazon Web Services account ID of the successfully associated member account.

        
  
  **Exceptions**
  
  *   :py:class:`Inspector2.Client.exceptions.ServiceQuotaExceededException`

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

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

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

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

  