deregisterCertificate method
Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.
May throw DirectoryUnavailableException. May throw DirectoryDoesNotExistException. May throw CertificateDoesNotExistException. May throw CertificateInUseException. May throw UnsupportedOperationException. May throw InvalidParameterException. May throw ClientException. May throw ServiceException.
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 {
ArgumentError.checkNotNull(certificateId, 'certificateId');
ArgumentError.checkNotNull(directoryId, 'directoryId');
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,
},
);
}