:doc:`DataZone <../../datazone>` / Client / add_entity_owner

****************
add_entity_owner
****************



.. py:method:: DataZone.Client.add_entity_owner(**kwargs)

  

  Adds the owner of an entity (a domain unit).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/AddEntityOwner>`_  


  **Request Syntax**
  ::

    response = client.add_entity_owner(
        domainIdentifier='string',
        entityType='DOMAIN_UNIT',
        entityIdentifier='string',
        owner={
            'user': {
                'userIdentifier': 'string'
            },
            'group': {
                'groupIdentifier': 'string'
            }
        },
        clientToken='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain in which you want to add the entity owner.

    

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

    The type of an entity.

    

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

    The ID of the entity to which you want to add an owner.

    

  
  :type owner: dict
  :param owner: **[REQUIRED]** 

    The owner that you want to add to the entity.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``user``, ``group``. 

  
    - **user** *(dict) --* 

      Specifies that the domain unit owner is a user.

      

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

        The ID of the owner user.

        

      
    
    - **group** *(dict) --* 

      Specifies that the domain unit owner is a group.

      

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

        The ID of the domain unit owners group.

        

      
    
  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  