deleteCertificate method
Deletes the specified certificate.
May throw ResourceNotFoundFault. May throw InvalidResourceStateFault.
Parameter certificateArn
:
The Amazon Resource Name (ARN) of the deleted certificate.
Implementation
Future<DeleteCertificateResponse> deleteCertificate({
required String certificateArn,
}) async {
ArgumentError.checkNotNull(certificateArn, 'certificateArn');
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);
}