event_actions
Creates, updates, deletes, gets or lists an event_actions resource.
Overview
| Name | event_actions |
| Type | Resource |
| Id | aws.dataexchange.event_actions |
Fields
The following fields are returned by SELECT queries:
- get_event_action
- list_event_actions
| Name | Datatype | Description |
|---|---|---|
action | object | What occurs after a certain event. |
arn | string | The ARN for the event action. |
created_at | string (date-time) | The date and time that the event action was created, in ISO 8601 format. |
event | object | What occurs to start an action. |
id | string | The unique identifier for the event action. (pattern: <code>[a-zA-Z0-9]{30,40}</code>) |
tags | object | The tags for the event action. |
updated_at | string (date-time) | The date and time that the event action was last updated, in ISO 8601 format. |
| Name | Datatype | Description |
|---|---|---|
action | object | What occurs after a certain event. |
arn | string | The Amazon Resource Name (ARN) for the event action. |
created_at | string (date-time) | The date and time that the event action was created, in ISO 8601 format. |
event | object | What occurs to start an action. |
id | string | The unique identifier for the event action. (pattern: <code>[a-zA-Z0-9]{30,40}</code>) |
updated_at | string (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_event_action | select | event_action_id, region | This operation retrieves information about an event action. | |
list_event_actions | select | region | eventSourceId, maxResults, nextToken | This operation lists your event actions. |
create_event_action | insert | region | This operation creates an event action. | |
update_event_action | update | event_action_id, region | This operation updates the event action. | |
delete_event_action | delete | event_action_id, region | This 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.
| Name | Datatype | Description |
|---|---|---|
event_action_id | string | The unique identifier for the event action. |
region | string | AWS region (default: us-east-1) |
eventSourceId | string | The unique identifier for the event source. |
maxResults | integer | The maximum number of results returned by a single call. |
nextToken | string | The token value retrieved from a previous call to access the next page of results. |
SELECT examples
- get_event_action
- list_event_actions
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
;
This operation lists your event actions.
SELECT
action,
arn,
created_at,
event,
id,
updated_at
FROM aws.dataexchange.event_actions
WHERE region = '{{ region }}' -- required
AND eventSourceId = '{{ eventSourceId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;
INSERT examples
- create_event_action
- Manifest
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
;
# Description fields are for documentation purposes
- name: event_actions
props:
- name: region
value: "{{ region }}"
description: Required parameter for the event_actions resource.
- name: Action
description: |
What occurs after a certain event.
value:
ExportRevisionToS3:
Encryption:
KmsKeyArn: "{{ KmsKeyArn }}"
Type: "{{ Type }}"
RevisionDestination:
Bucket: "{{ Bucket }}"
KeyPattern: "{{ KeyPattern }}"
- name: Event
description: |
What occurs to start an action.
value:
RevisionPublished:
DataSetId: "{{ DataSetId }}"
- name: Tags
value: "{{ Tags }}"
UPDATE examples
- update_event_action
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
- delete_event_action
This operation deletes the event action.
DELETE FROM aws.dataexchange.event_actions
WHERE event_action_id = '{{ event_action_id }}' --required
AND region = '{{ region }}' --required
;