Skip to main content

event_actions

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

Overview

Nameevent_actions
TypeResource
Idaws.dataexchange.event_actions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionobjectWhat occurs after a certain event.
arnstringThe ARN for the event action.
created_atstring (date-time)The date and time that the event action was created, in ISO 8601 format.
eventobjectWhat occurs to start an action.
idstringThe unique identifier for the event action. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
tagsobjectThe tags for the event action.
updated_atstring (date-time)The date and time that the event action was last updated, in ISO 8601 format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_event_actionselectevent_action_id, regionThis operation retrieves information about an event action.
list_event_actionsselectregioneventSourceId, maxResults, nextTokenThis operation lists your event actions.
create_event_actioninsertregionThis operation creates an event action.
update_event_actionupdateevent_action_id, regionThis operation updates the event action.
delete_event_actiondeleteevent_action_id, regionThis operation deletes the event action.

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
event_action_idstringThe unique identifier for the event action.
regionstringAWS region (default: us-east-1)
eventSourceIdstringThe unique identifier for the event source.
maxResultsintegerThe maximum number of results returned by a single call.
nextTokenstringThe token value retrieved from a previous call to access the next page of results.

SELECT examples

This operation retrieves information about an event action.

SELECT
action,
arn,
created_at,
event,
id,
tags,
updated_at
FROM aws.dataexchange.event_actions
WHERE event_action_id = '{{ event_action_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This operation creates an event action.

INSERT INTO aws.dataexchange.event_actions (
Action,
Event,
Tags,
region
)
SELECT
'{{ Action }}',
'{{ Event }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
action,
arn,
created_at,
event,
id,
tags,
updated_at
;

UPDATE examples

This operation updates the event action.

UPDATE aws.dataexchange.event_actions
SET
Action = '{{ Action }}'
WHERE
event_action_id = '{{ event_action_id }}' --required
AND region = '{{ region }}' --required
RETURNING
action,
arn,
created_at,
event,
id,
updated_at;

DELETE examples

This operation deletes the event action.

DELETE FROM aws.dataexchange.event_actions
WHERE event_action_id = '{{ event_action_id }}' --required
AND region = '{{ region }}' --required
;