Skip to content

Create Certificate Authority Audit Report

acmpca_create_certificate_authority_audit_report R Documentation

Creates an audit report that lists every time that your CA private key is used to issue a certificate

Description

Creates an audit report that lists every time that your CA private key is used to issue a certificate. The issue_certificate and revoke_certificate actions use the private key.

To save the audit report to your designated Amazon S3 bucket, you must create a bucket policy that grants Amazon Web Services Private CA permission to access and write to it. For an example policy, see Prepare an Amazon S3 bucket for audit reports.

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.

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

Usage

acmpca_create_certificate_authority_audit_report(
  CertificateAuthorityArn, S3BucketName, AuditReportResponseFormat)

Arguments

CertificateAuthorityArn

[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

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

AuditReportResponseFormat

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

Value

A list with the following syntax:

list(
  AuditReportId = "string",
  S3Key = "string"
)

Request syntax

svc$create_certificate_authority_audit_report(
  CertificateAuthorityArn = "string",
  S3BucketName = "string",
  AuditReportResponseFormat = "JSON"|"CSV"
)