Skip to main content

event_triggers

Creates, updates, deletes or gets an event_trigger resource or lists event_triggers in a region

Overview

Nameevent_triggers
TypeResource
DescriptionAn event trigger resource of Amazon Connect Customer Profiles
Idaws.customerprofiles.event_triggers

Fields

NameDatatypeDescription
domain_namestringThe unique name of the domain.
event_trigger_namestringThe unique name of the event trigger.
object_type_namestringThe unique name of the object type.
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.
segment_filterstringThe destination is triggered only for profiles that meet the criteria of a segment definition.
created_atstringThe timestamp of when the event trigger was created.
last_updated_atstringThe timestamp of when the event trigger was most recently updated.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::CustomerProfiles::EventTrigger.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainName, EventTriggerName, ObjectTypeName, EventTriggerConditions, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all event_triggers in a region.

SELECT
region,
domain_name,
event_trigger_name,
object_type_name,
description,
event_trigger_conditions,
event_trigger_limits,
segment_filter,
created_at,
last_updated_at,
tags
FROM aws.customerprofiles.event_triggers
WHERE region = 'us-east-1';

Gets all properties from an individual event_trigger.

SELECT
region,
domain_name,
event_trigger_name,
object_type_name,
description,
event_trigger_conditions,
event_trigger_limits,
segment_filter,
created_at,
last_updated_at,
tags
FROM aws.customerprofiles.event_triggers
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>|<EventTriggerName>';

INSERT example

Use the following StackQL query and manifest file to create a new event_trigger resource, using stack-deploy.

/*+ create */
INSERT INTO aws.customerprofiles.event_triggers (
DomainName,
EventTriggerName,
ObjectTypeName,
EventTriggerConditions,
region
)
SELECT
'{{ DomainName }}',
'{{ EventTriggerName }}',
'{{ ObjectTypeName }}',
'{{ EventTriggerConditions }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.customerprofiles.event_triggers
WHERE data__Identifier = '<DomainName|EventTriggerName>'
AND region = 'us-east-1';

Permissions

To operate on the event_triggers resource, the following permissions are required:

Create

profile:CreateEventTrigger,
profile:TagResource

Read

profile:GetEventTrigger

Update

profile:GetEventTrigger,
profile:UpdateEventTrigger,
profile:UntagResource,
profile:TagResource

Delete

profile:DeleteEventTrigger

List

profile:ListEventTriggers