Skip to main content

event_streams

Creates, updates, deletes or gets an event_stream resource or lists event_streams in a region

Overview

Nameevent_streams
TypeResource
DescriptionAn Event Stream resource of Amazon Connect Customer Profiles
Idaws.customerprofiles.event_streams

Fields

NameDatatypeDescription
domain_namestringThe unique name of the domain.
event_stream_namestringThe name of the event stream.
uristringThe StreamARN of the destination to deliver profile events to. For example, arn:aws:kinesis:region:account-id:stream/stream-name
event_stream_arnstringA unique identifier for the event stream.
tagsarrayThe tags used to organize, track, or control access for this resource.
created_atstringThe timestamp of when the export was created.
statestringThe operational state of destination stream for export.
destination_detailsobjectDetails regarding the Kinesis stream.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainName, EventStreamName, Uri, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all event_streams in a region.

SELECT
region,
domain_name,
event_stream_name,
uri,
event_stream_arn,
tags,
created_at,
state,
destination_details
FROM aws.customerprofiles.event_streams
WHERE region = 'us-east-1';

Gets all properties from an individual event_stream.

SELECT
region,
domain_name,
event_stream_name,
uri,
event_stream_arn,
tags,
created_at,
state,
destination_details
FROM aws.customerprofiles.event_streams
WHERE region = 'us-east-1' AND data__Identifier = '<DomainName>|<EventStreamName>';

INSERT example

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

/*+ create */
INSERT INTO aws.customerprofiles.event_streams (
DomainName,
EventStreamName,
Uri,
region
)
SELECT
'{{ DomainName }}',
'{{ EventStreamName }}',
'{{ Uri }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

profile:CreateEventStream,
iam:PutRolePolicy,
kinesis:DescribeStreamSummary,
profile:TagResource

Read

profile:GetEventStream,
kinesis:DescribeStreamSummary

Update

kinesis:DescribeStreamSummary,
profile:GetEventStream,
profile:UntagResource,
profile:TagResource

Delete

profile:DeleteEventStream,
iam:DeleteRolePolicy

List

profile:ListEventStreams