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
Idawscc.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

NameResourceAccessible byRequired Params
create_resourceevent_triggersINSERTDomainName, EventTriggerName, ObjectTypeName, EventTriggerConditions, region
delete_resourceevent_triggersDELETEIdentifier, region
update_resourceevent_triggersUPDATEIdentifier, PatchDocument, region
list_resourcesevent_triggers_list_onlySELECTregion
get_resourceevent_triggersSELECTIdentifier, region

SELECT examples

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 awscc.customerprofiles.event_triggers
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}|{{ event_trigger_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.customerprofiles.event_triggers (
DomainName,
EventTriggerName,
ObjectTypeName,
EventTriggerConditions,
region
)
SELECT
'{{ domain_name }}',
'{{ event_trigger_name }}',
'{{ object_type_name }}',
'{{ event_trigger_conditions }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.customerprofiles.event_triggers
SET PatchDocument = string('{{ {
"ObjectTypeName": object_type_name,
"Description": description,
"EventTriggerConditions": event_trigger_conditions,
"EventTriggerLimits": event_trigger_limits,
"SegmentFilter": segment_filter,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}|{{ event_trigger_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.event_triggers
WHERE
Identifier = '{{ domain_name }}|{{ event_trigger_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

profile:CreateEventTrigger,
profile:TagResource