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
5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 | |