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

************
enable_ldaps
************



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

  

  Activates the switch for the specific directory to always use LDAP secure calls.

  

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


  **Request Syntax**
  ::

    response = client.enable_ldaps(
        DirectoryId='string',
        Type='Client'
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The identifier of the directory.

    

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

    The type of LDAP security to enable. Currently only the value ``Client`` is supported.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryUnavailableException`

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

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

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

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

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

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

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

  