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

***************
update_settings
***************



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

  

  Updates the configurable settings for the specified directory.

  

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


  **Request Syntax**
  ::

    response = client.update_settings(
        DirectoryId='string',
        Settings=[
            {
                'Name': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The identifier of the directory for which to update settings.

    

  
  :type Settings: list
  :param Settings: **[REQUIRED]** 

    The list of  Setting objects.

    

  
    - *(dict) --* 

      Contains information about the configurable settings for a directory.

      

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

        The name of the directory setting. For example:

         

        ``TLS_1_0``

        

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

        The value of the directory setting for which to retrieve information. For example, for ``TLS_1_0``, the valid values are: ``Enable`` and ``Disable``.

        

      
    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **DirectoryId** *(string) --* 

        The identifier of the directory.

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

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

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

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

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

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

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

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

  