Skip to main content

event_triggers

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

Overview

Nameevent_triggers
TypeResource
Idaws.customer_profiles.event_triggers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the event trigger was created.
descriptionstringThe description of the event trigger.
event_trigger_conditionsarrayA list of conditions that determine when an event should trigger the destination.
event_trigger_limitsobjectDefines limits controlling whether an event triggers the destination, based on ingestion latency and the number of invocations per profile over specific time periods.
event_trigger_namestringThe unique name of the event trigger. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
last_updated_atstring (date-time)The timestamp of when the event trigger was most recently updated.
object_type_namestringThe unique name of the object type. (pattern: <code>^[a-zA-Z_][a-zA-Z_0-9-]*$</code>)
segment_filterstringThe destination is triggered only for profiles that meet the criteria of a segment definition. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
tagsobjectAn array of key-value pairs to apply to this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_triggerselectdomain_name, event_trigger_name, regionGet a specific Event Trigger from the domain.
list_event_triggersselectdomain_name, regionnext-token, max-resultsList all Event Triggers under a domain.
create_event_triggerinsertdomain_name, event_trigger_name, region, ObjectTypeName, EventTriggerConditionsCreates an event trigger, which specifies the rules when to perform action based on customer's ingested data. Each event stream can be associated with only one integration in the same region and AWS account as the event stream.
update_event_triggerupdatedomain_name, event_trigger_name, regionUpdate the properties of an Event Trigger.
delete_event_triggerdeletedomain_name, event_trigger_name, regionDisable and deletes the Event Trigger. You cannot delete an Event Trigger with an active Integration associated.

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
domain_namestringThe unique name of the domain.
event_trigger_namestringThe unique name of the event trigger.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of results to return per page.
next-tokenstringThe pagination token to use with ListEventTriggers.

SELECT examples

Get a specific Event Trigger from the domain.

SELECT
created_at,
description,
event_trigger_conditions,
event_trigger_limits,
event_trigger_name,
last_updated_at,
object_type_name,
segment_filter,
tags
FROM aws.customer_profiles.event_triggers
WHERE domain_name = '{{ domain_name }}' -- required
AND event_trigger_name = '{{ event_trigger_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an event trigger, which specifies the rules when to perform action based on customer's ingested data. Each event stream can be associated with only one integration in the same region and AWS account as the event stream.

INSERT INTO aws.customer_profiles.event_triggers (
ObjectTypeName,
Description,
EventTriggerConditions,
SegmentFilter,
EventTriggerLimits,
Tags,
domain_name,
event_trigger_name,
region
)
SELECT
'{{ ObjectTypeName }}' /* required */,
'{{ Description }}',
'{{ EventTriggerConditions }}' /* required */,
'{{ SegmentFilter }}',
'{{ EventTriggerLimits }}',
'{{ Tags }}',
'{{ domain_name }}',
'{{ event_trigger_name }}',
'{{ region }}'
RETURNING
created_at,
description,
event_trigger_conditions,
event_trigger_limits,
event_trigger_name,
last_updated_at,
object_type_name,
segment_filter,
tags
;

UPDATE examples

Update the properties of an Event Trigger.

UPDATE aws.customer_profiles.event_triggers
SET
ObjectTypeName = '{{ ObjectTypeName }}',
Description = '{{ Description }}',
EventTriggerConditions = '{{ EventTriggerConditions }}',
SegmentFilter = '{{ SegmentFilter }}',
EventTriggerLimits = '{{ EventTriggerLimits }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND event_trigger_name = '{{ event_trigger_name }}' --required
AND region = '{{ region }}' --required
RETURNING
created_at,
description,
event_trigger_conditions,
event_trigger_limits,
event_trigger_name,
last_updated_at,
object_type_name,
segment_filter,
tags;

DELETE examples

Disable and deletes the Event Trigger. You cannot delete an Event Trigger with an active Integration associated.

DELETE FROM aws.customer_profiles.event_triggers
WHERE domain_name = '{{ domain_name }}' --required
AND event_trigger_name = '{{ event_trigger_name }}' --required
AND region = '{{ region }}' --required
;