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

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

Methods

NameResourceAccessible byRequired Params
create_resourceevent_streamsINSERTDomainName, EventStreamName, Uri, region
delete_resourceevent_streamsDELETEIdentifier, region
update_resourceevent_streamsUPDATEIdentifier, PatchDocument, region
list_resourcesevent_streams_list_onlySELECTregion
get_resourceevent_streamsSELECTIdentifier, region

SELECT examples

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 awscc.customerprofiles.event_streams
WHERE
region = 'us-east-1' AND
Identifier = '{{ domain_name }}|{{ event_stream_name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.customerprofiles.event_streams
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ domain_name }}|{{ event_stream_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.event_streams
WHERE
Identifier = '{{ domain_name }}|{{ event_stream_name }}' AND
region = 'us-east-1';

Permissions

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

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