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

******************
update_domain_unit
******************



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

  

  Updates the domain unit.

  

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


  **Request Syntax**
  ::

    response = client.update_domain_unit(
        domainIdentifier='string',
        identifier='string',
        description='string',
        name='string'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain where you want to update a domain unit.

    

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

    The ID of the domain unit that you want to update.

    

  
  :type description: string
  :param description: 

    The description of the domain unit that you want to update.

    

  
  :type name: string
  :param name: 

    The name of the domain unit that you want to update.

    

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

    
    ::

      {
          'id': 'string',
          'domainId': 'string',
          'name': 'string',
          'owners': [
              {
                  'user': {
                      'userId': 'string'
                  },
                  'group': {
                      'groupId': 'string'
                  }
              },
          ],
          'description': 'string',
          'parentDomainUnitId': 'string',
          'createdAt': datetime(2015, 1, 1),
          'lastUpdatedAt': datetime(2015, 1, 1),
          'createdBy': 'string',
          'lastUpdatedBy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        The ID of the domain unit that you want to update.

        
      

      - **domainId** *(string) --* 

        The ID of the domain where you want to update the domain unit.

        
      

      - **name** *(string) --* 

        The name of the domain unit that you want to update.

        
      

      - **owners** *(list) --* 

        The owners of the domain unit that you want to update.

        
        

        - *(dict) --* 

          The properties of the domain unit owner.

          .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``user``, ``group``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                    'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


        
          

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

            Indicates that the domain unit owner is a user.

            
            

            - **userId** *(string) --* 

              The ID of teh domain unit user.

              
        
          

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

            Indicates that the domain unit owner is a group.

            
            

            - **groupId** *(string) --* 

              The ID of the domain unit group.

              
        
      
    
      

      - **description** *(string) --* 

        The description of the domain unit that you want to update.

        
      

      - **parentDomainUnitId** *(string) --* 

        The ID of the parent domain unit.

        
      

      - **createdAt** *(datetime) --* 

        The time stamp at which the domain unit that you want to update was created.

        
      

      - **lastUpdatedAt** *(datetime) --* 

        The timestamp at which the domain unit was last updated.

        
      

      - **createdBy** *(string) --* 

        The user who created the domain unit that you want to update.

        
      

      - **lastUpdatedBy** *(string) --* 

        The user who last updated the domain unit.

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

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

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

  