enableLDAPS method

Future<void> enableLDAPS({
  1. required String directoryId,
  2. required LDAPSType type,
})

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

May throw ClientException. May throw DirectoryDoesNotExistException. May throw DirectoryUnavailableException. May throw InvalidLDAPSStatusException. May throw InvalidParameterException. May throw NoAvailableCertificateException. May throw ServiceException. May throw UnsupportedOperationException.

Parameter directoryId : The identifier of the directory.

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

Implementation

Future<void> enableLDAPS({
  required String directoryId,
  required LDAPSType type,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DirectoryService_20150416.EnableLDAPS'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DirectoryId': directoryId,
      'Type': type.value,
    },
  );
}