:doc:`DirectoryService <../../ds>` / Client / update_trust

************
update_trust
************



.. py:method:: DirectoryService.Client.update_trust(**kwargs)

  

  Updates the trust that has been set up between your Managed Microsoft AD directory and an self-managed Active Directory.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust>`_  


  **Request Syntax**
  ::

    response = client.update_trust(
        TrustId='string',
        SelectiveAuth='Enabled'|'Disabled'
    )
    
  :type TrustId: string
  :param TrustId: **[REQUIRED]** 

    Identifier of the trust relationship.

    

  
  :type SelectiveAuth: string
  :param SelectiveAuth: 

    Updates selective authentication for the trust.

    

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

    
    ::

      {
          'RequestId': 'string',
          'TrustId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request identifier.

        
      

      - **TrustId** *(string) --* 

        Identifier of the trust relationship.

        
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  