describeCertificateAuthorityAuditReport method
Lists information about a specific audit report created by calling the CreateCertificateAuthorityAuditReport action. Audit information is created every time the certificate authority (CA) private key is used. The private key is used when you call the IssueCertificate action or the RevokeCertificate action.
May throw ResourceNotFoundException. May throw InvalidArnException. May throw InvalidArgsException.
Parameter auditReportId
:
The report ID returned by calling the CreateCertificateAuthorityAuditReport
action.
Parameter certificateAuthorityArn
:
The Amazon Resource Name (ARN) of the private CA. This must be of the
form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
.
Implementation
Future<DescribeCertificateAuthorityAuditReportResponse>
describeCertificateAuthorityAuditReport({
required String auditReportId,
required String certificateAuthorityArn,
}) async {
ArgumentError.checkNotNull(auditReportId, 'auditReportId');
_s.validateStringLength(
'auditReportId',
auditReportId,
36,
36,
isRequired: true,
);
ArgumentError.checkNotNull(
certificateAuthorityArn, 'certificateAuthorityArn');
_s.validateStringLength(
'certificateAuthorityArn',
certificateAuthorityArn,
5,
200,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ACMPrivateCA.DescribeCertificateAuthorityAuditReport'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AuditReportId': auditReportId,
'CertificateAuthorityArn': certificateAuthorityArn,
},
);
return DescribeCertificateAuthorityAuditReportResponse.fromJson(
jsonResponse.body);
}