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

*************
create_member
*************



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

  

  Associates an account with an Amazon Macie administrator account.

  

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


  **Request Syntax**
  ::

    response = client.create_member(
        account={
            'accountId': 'string',
            'email': 'string'
        },
        tags={
            'string': 'string'
        }
    )
    
  :type account: dict
  :param account: **[REQUIRED]** 

    The details of the account to associate with the administrator account.

    

  
    - **accountId** *(string) --* **[REQUIRED]** 

      The Amazon Web Services account ID for the account.

      

    
    - **email** *(string) --* **[REQUIRED]** 

      The email address for the account.

      

    
  
  :type tags: dict
  :param tags: 

    A map of key-value pairs that specifies the tags to associate with the account in Amazon Macie.

     

    An account can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

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

    

    - *(dict) --* 

      The request succeeded.

      
      

      - **arn** *(string) --* 

        The Amazon Resource Name (ARN) of the account that was associated with the administrator account.

        
  
  **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`

  