Skip to main content

event_types

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

Overview

Nameevent_types
TypeResource
Idaws.frauddetector.event_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_typesarrayAn array of event types.
next_tokenstringThe next page token.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_typesselectregionGets all event types or a specific event type if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.
put_event_typereplaceregion, name, eventVariables, entityTypesCreates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.
delete_event_typedeleteregionDeletes an event type. You cannot delete an event type that is used in a detector or a model. When you delete an event type, Amazon Fraud Detector permanently deletes that event type and the data is no longer stored in Amazon Fraud Detector.
delete_events_by_event_typedeleteregionDeletes all events of a particular event type.
send_eventexecregion, eventId, eventTypeName, eventTimestamp, eventVariables, entitiesStores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.

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

Gets all event types or a specific event type if name is provided. This is a paginated API. If you provide a null maxResults, this action retrieves a maximum of 10 records per page. If you provide a maxResults, the value must be between 5 and 10. To get the next page results, provide the pagination token from the GetEventTypesResponse as part of your request. A null pagination token fetches the records from the beginning.

SELECT
event_types,
next_token
FROM aws.frauddetector.event_types
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Creates or updates an event type. An event is a business activity that is evaluated for fraud risk. With Amazon Fraud Detector, you generate fraud predictions for events. An event type defines the structure for an event sent to Amazon Fraud Detector. This includes the variables sent as part of the event, the entity performing the event (such as a customer), and the labels that classify the event. Example event types include online payment transactions, account registrations, and authentications.

REPLACE aws.frauddetector.event_types
SET
name = '{{ name }}',
description = '{{ description }}',
eventVariables = '{{ eventVariables }}',
labels = '{{ labels }}',
entityTypes = '{{ entityTypes }}',
eventIngestion = '{{ eventIngestion }}',
tags = '{{ tags }}',
eventOrchestration = '{{ eventOrchestration }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND eventVariables = '{{ eventVariables }}' --required
AND entityTypes = '{{ entityTypes }}' --required;

DELETE examples

Deletes an event type. You cannot delete an event type that is used in a detector or a model. When you delete an event type, Amazon Fraud Detector permanently deletes that event type and the data is no longer stored in Amazon Fraud Detector.

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

Lifecycle Methods

Stores events in Amazon Fraud Detector without generating fraud predictions for those events. For example, you can use SendEvent to upload a historical dataset, which you can then later use to train a model.

EXEC aws.frauddetector.event_types.send_event
@region='{{ region }}' --required
@@json=
'{
"eventId": "{{ eventId }}",
"eventTypeName": "{{ eventTypeName }}",
"eventTimestamp": "{{ eventTimestamp }}",
"eventVariables": "{{ eventVariables }}",
"assignedLabel": "{{ assignedLabel }}",
"labelTimestamp": "{{ labelTimestamp }}",
"entities": "{{ entities }}"
}'
;