Skip to main content

events

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

Overview

Nameevents
TypeResource
Idaws.frauddetector.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
current_labelstringThe label associated with the event.
entitiesarrayThe event entities.
event_idstringThe event ID.
event_timestampstringThe timestamp that defines when the event under evaluation occurred. The timestamp must be specified using ISO 8601 standard in UTC.
event_type_namestringThe event type.
event_variablesobjectNames of the event type's variables you defined in Amazon Fraud Detector to represent data elements and their corresponding values for the event you are sending for evaluation.
label_timestampstringThe timestamp associated with the label to update. The timestamp must be specified using ISO 8601 standard in UTC.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_eventselectregionRetrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.
delete_eventdeleteregionDeletes the specified event. When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector. If deleteAuditHistory is True, event data is available through search for up to 30 seconds after the delete operation is completed.

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

Retrieves details of events stored with Amazon Fraud Detector. This action does not retrieve prediction results.

SELECT
current_label,
entities,
event_id,
event_timestamp,
event_type_name,
event_variables,
label_timestamp
FROM aws.frauddetector.events
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the specified event. When you delete an event, Amazon Fraud Detector permanently deletes that event and the event data is no longer stored in Amazon Fraud Detector. If deleteAuditHistory is True, event data is available through search for up to 30 seconds after the delete operation is completed.

DELETE FROM aws.frauddetector.events
WHERE region = '{{ region }}' --required
;