deleteCertificate method
Deletes the specified certificate.
May throw InvalidResourceStateFault.
May throw ResourceNotFoundFault.
Parameter certificateArn :
The Amazon Resource Name (ARN) of the certificate.
Implementation
Future<DeleteCertificateResponse> deleteCertificate({
required String certificateArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonDMSv20160101.DeleteCertificate'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CertificateArn': certificateArn,
},
);
return DeleteCertificateResponse.fromJson(jsonResponse.body);
}