Skip to main content

audit_events

Creates, updates, deletes, gets or lists an audit_events resource.

Overview

Nameaudit_events
TypeResource
Idaws.cloudtrail_data.audit_events

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
put_audit_eventsreplacechannelArn, region, auditEventsexternalIdIngests your application events into CloudTrail Lake. A required parameter, auditEvents, accepts the JSON records (also called payload) of events that you want CloudTrail to ingest. You can add up to 100 of these events (or up to 1 MB) per PutAuditEvents request.

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
channelArnstringThe ARN or ID (the ARN suffix) of a channel.
regionstringAWS region (default: us-east-1)
externalIdstringA unique identifier that is conditionally required when the channel's resource policy includes an external ID. This value can be any string, such as a passphrase or account number.

REPLACE examples

Ingests your application events into CloudTrail Lake. A required parameter, auditEvents, accepts the JSON records (also called payload) of events that you want CloudTrail to ingest. You can add up to 100 of these events (or up to 1 MB) per PutAuditEvents request.

REPLACE aws.cloudtrail_data.audit_events
SET
auditEvents = '{{ auditEvents }}'
WHERE
channelArn = '{{ channelArn }}' --required
AND region = '{{ region }}' --required
AND auditEvents = '{{ auditEvents }}' --required
AND externalId = '{{ externalId}}'
RETURNING
failed,
successful;