Skip to main content

event_streams

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

Overview

Nameevent_streams
TypeResource
Idaws.pinpoint.event_streams

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application to publish event data for.
destination_stream_arnstringThe Amazon Resource Name (ARN) of the Amazon Kinesis data stream or Amazon Kinesis Data Firehose delivery stream to publish event data to. For a Kinesis data stream, the ARN format is: arn:aws:kinesis:region:account-id:stream/stream_name For a Kinesis Data Firehose delivery stream, the ARN format is: arn:aws:firehose:region:account-id:deliverystream/stream_name
external_idstring(Deprecated) Your AWS account ID, which you assigned to an external ID key in an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM role when publishing event data, but we removed this requirement. We don't recommend use of external IDs for IAM roles that are assumed by Amazon Pinpoint.
last_modified_datestringThe date, in ISO 8601 format, when the event stream was last modified.
last_updated_bystringThe IAM user who last modified the event stream.
role_arnstringThe AWS Identity and Access Management (IAM) role that authorizes Amazon Pinpoint to publish event data to the stream in your AWS account.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_streamselectapplication-id, regionRetrieves information about the event stream settings for an application.
put_event_streamreplaceapplication-id, region, WriteEventStreamCreates a new event stream for an application or updates the settings of an existing event stream for an application.
delete_event_streamdeleteapplication-id, regionDeletes the event stream for an application.

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
application-idstringThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about the event stream settings for an application.

SELECT
application_id,
destination_stream_arn,
external_id,
last_modified_date,
last_updated_by,
role_arn
FROM aws.pinpoint.event_streams
WHERE `application-id` = '{{ application-id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Creates a new event stream for an application or updates the settings of an existing event stream for an application.

REPLACE aws.pinpoint.event_streams
SET
WriteEventStream = '{{ WriteEventStream }}'
WHERE
`application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
AND WriteEventStream = '{{ WriteEventStream }}' --required
RETURNING
event_stream;

DELETE examples

Deletes the event stream for an application.

DELETE FROM aws.pinpoint.event_streams
WHERE `application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
;