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 = '{{ region }}' 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 }}'
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_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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.customerprofiles.event_streams
WHERE
Identifier = '{{ domain_name }}|{{ event_stream_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_streams resource, the following permissions are required:

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