register_certificate
async
¶
register_certificate(
directory_id: DirectoryId,
certificate_data: CertificateData,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
type: Optional[CertificateType] = None,
client_cert_auth_settings: Optional[ClientCertAuthSettings] = None,
) -> RegisterCertificateResult
Registers a certificate for a secure LDAP or client certificate authentication.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory.
-
certificate_data(CertificateData) –The certificate PEM string that needs to be registered.
-
type(Optional[CertificateType], default:None) –The function that the registered certificate performs. Valid values include
ClientLDAPSorClientCertAuth. The default value isClientLDAPS. -
client_cert_auth_settings(Optional[ClientCertAuthSettings], default:None) –A
ClientCertAuthSettingsobject that contains client certificate authentication settings.
Raises:
-
CertificateAlreadyExistsException–The certificate has already been registered into the system.
-
CertificateLimitExceededException–The certificate could not be added because the certificate limit has been reached.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
InvalidCertificateException–The certificate PEM that was provided has incorrect encoding.
-
InvalidParameterException–One or more parameters are not valid.
-
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
4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 | |