deregister_certificate
async
¶
deregister_certificate(
directory_id: DirectoryId,
certificate_id: CertificateId,
*,
config_overrides: Optional[AsyncDirectoryServiceClientConfig] = None,
) -> DeregisterCertificateResult
Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.
Parameters:
-
directory_id(DirectoryId) –The identifier of the directory.
-
certificate_id(CertificateId) –The identifier of the certificate.
Raises:
-
CertificateDoesNotExistException–The certificate is not present in the system for describe or deregister activities.
-
CertificateInUseException–The certificate is being used for the LDAP security connection and cannot be removed without disabling LDAP security.
-
ClientException–A client exception has occurred.
-
DirectoryDoesNotExistException–The specified directory does not exist in the system.
-
DirectoryUnavailableException–The specified directory is unavailable.
-
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
2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 | |