ACMPCA / Client / create_certificate_authority_audit_report

create_certificate_authority_audit_report#

ACMPCA.Client.create_certificate_authority_audit_report(**kwargs)#

Creates an audit report that lists every time that your CA private key is used. The report is saved in the Amazon S3 bucket that you specify on input. The IssueCertificate and RevokeCertificate actions use the private key.

Note

Both Amazon Web Services Private CA and the IAM principal must have permission to write to the S3 bucket that you specify. If the IAM principal making the call does not have permission to write to the bucket, then an exception is thrown. For more information, see Access policies for CRLs in Amazon S3.

Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected with encryption. For more information, see Encrypting Your Audit Reports.

Note

You can generate a maximum of one report every 30 minutes.

See also: AWS API Documentation

Request Syntax

response = client.create_certificate_authority_audit_report(
    CertificateAuthorityArn='string',
    S3BucketName='string',
    AuditReportResponseFormat='JSON'|'CSV'
)
Parameters:
  • CertificateAuthorityArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the CA to be audited. This is of the form:

    ``arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 ``.

  • S3BucketName (string) –

    [REQUIRED]

    The name of the S3 bucket that will contain the audit report.

  • AuditReportResponseFormat (string) –

    [REQUIRED]

    The format in which to create the report. This can be either JSON or CSV.

Return type:

dict

Returns:

Response Syntax

{
    'AuditReportId': 'string',
    'S3Key': 'string'
}

Response Structure

  • (dict) –

    • AuditReportId (string) –

      An alphanumeric string that contains a report identifier.

    • S3Key (string) –

      The key that uniquely identifies the report file in your S3 bucket.

Exceptions