Skip to main content

certificate_authority_audit_reports

Creates, updates, deletes, gets or lists a certificate_authority_audit_reports resource.

Overview

Namecertificate_authority_audit_reports
TypeResource
Idaws.acm_pca.certificate_authority_audit_reports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
audit_report_statusstringSpecifies whether report creation is in progress, has succeeded, or has failed. (CREATING, SUCCESS, FAILED)
created_atstring (date-time)The date and time at which the report was created.
s3_bucket_namestringName of the S3 bucket that contains the report.
s3_keystringS3 key that uniquely identifies the report file in your S3 bucket.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_certificate_authority_audit_reportselectregionLists 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.
create_certificate_authority_audit_reportinsertregion, CertificateAuthorityArn, S3BucketName, AuditReportResponseFormatCreates an audit report that lists every time that your CA private key is used to issue a certificate. The IssueCertificate and RevokeCertificate 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
audit_report_status,
created_at,
s3_bucket_name,
s3_key
FROM aws.acm_pca.certificate_authority_audit_reports
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an audit report that lists every time that your CA private key is used to issue a certificate. The IssueCertificate and RevokeCertificate 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.

INSERT INTO aws.acm_pca.certificate_authority_audit_reports (
CertificateAuthorityArn,
S3BucketName,
AuditReportResponseFormat,
region
)
SELECT
'{{ CertificateAuthorityArn }}' /* required */,
'{{ S3BucketName }}' /* required */,
'{{ AuditReportResponseFormat }}' /* required */,
'{{ region }}'
RETURNING
audit_report_id,
s3_key
;