deregisterCertificate method
Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.
May throw CertificateDoesNotExistException.
May throw CertificateInUseException.
May throw ClientException.
May throw DirectoryDoesNotExistException.
May throw DirectoryUnavailableException.
May throw InvalidParameterException.
May throw ServiceException.
May throw UnsupportedOperationException.
Parameter certificateId :
The identifier of the certificate.
Parameter directoryId :
The identifier of the directory.
Implementation
Future<void> deregisterCertificate({
required String certificateId,
required String directoryId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'DirectoryService_20150416.DeregisterCertificate'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CertificateId': certificateId,
'DirectoryId': directoryId,
},
);
}