deleteCertificate method
Deletes the certificate that's specified in the CertificateId
parameter.
May throw InternalServiceError.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter certificateId :
The identifier of the certificate object that you are deleting.
Implementation
Future<void> deleteCertificate({
required String certificateId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'TransferService.DeleteCertificate'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CertificateId': certificateId,
},
);
}