Skip to main content

event_streams

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

Overview

Nameevent_streams
TypeResource
Idaws.customer_profiles.event_streams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the export was created.
destination_detailsobjectDetails regarding the Kinesis stream.
domain_namestringThe unique name of the domain. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
event_stream_arnstringA unique identifier for the event stream.
statestringThe operational state of destination stream for export. (RUNNING, STOPPED)
stopped_sincestring (date-time)The timestamp when the State changed to STOPPED.
tagsobjectThe tags used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_streamselectdomain_name, event_stream_name, regionReturns information about the specified event stream in a specific domain.
list_event_streamsselectdomain_name, regionnext-token, max-resultsReturns a list of all the event streams in a specific domain.
create_event_streaminsertdomain_name, event_stream_name, region, UriCreates an event stream, which is a subscription to real-time events, such as when profiles are created and updated through Connect Customer Customer Profiles. Each event stream can be associated with only one Kinesis Data Stream destination in the same region and Amazon Web Services account as the customer profiles domain
delete_event_streamdeletedomain_name, event_stream_name, regionDisables and deletes the specified event stream.

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_stream_namestringThe name of the event stream
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of objects returned per page.
next-tokenstringIdentifies the next page of results to return.

SELECT examples

Returns information about the specified event stream in a specific domain.

SELECT
created_at,
destination_details,
domain_name,
event_stream_arn,
state,
stopped_since,
tags
FROM aws.customer_profiles.event_streams
WHERE domain_name = '{{ domain_name }}' -- required
AND event_stream_name = '{{ event_stream_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an event stream, which is a subscription to real-time events, such as when profiles are created and updated through Connect Customer Customer Profiles. Each event stream can be associated with only one Kinesis Data Stream destination in the same region and Amazon Web Services account as the customer profiles domain

INSERT INTO aws.customer_profiles.event_streams (
Uri,
Tags,
domain_name,
event_stream_name,
region
)
SELECT
'{{ Uri }}' /* required */,
'{{ Tags }}',
'{{ domain_name }}',
'{{ event_stream_name }}',
'{{ region }}'
RETURNING
event_stream_arn,
tags
;

DELETE examples

Disables and deletes the specified event stream.

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