enable_ldaps
async
¶
enable_ldaps(
directory_id: DirectoryId,
type: LDAPSType,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
) -> EnableLDAPSResult
Activates the switch for the specific directory to always use LDAP secure calls.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory.
-
type(LDAPSType) –The type of LDAP security to enable. Currently only the value
Clientis supported.
Raises:
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
InvalidLDAPSStatusException–The LDAP activities could not be performed because they are limited by the LDAPS status.
-
InvalidParameterException–One or more parameters are not valid.
-
NoAvailableCertificateException–Client authentication setup could not be completed because at least one valid certificate must be registered in the system.
-
ServiceException–An exception has occurred in Directory Service.
-
UnsupportedOperationException–The operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_directory_service/_services/async_directory_service.py
4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 | |