Skip to main content

event_sources

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

Overview

Nameevent_sources
TypeResource
Idaws.events.event_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the partner event source.
created_bystringThe name of the SaaS partner that created the event source.
creation_timestring (date-time)The date and time that the event source was created.
expiration_timestring (date-time)The date and time that the event source will expire if you do not create a matching event bus.
namestringThe name of the partner event source.
statestringThe state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted. (PENDING, ACTIVE, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_event_sourceselectregionThis operation lists details about a partner event source that is shared with your account.
list_event_sourcesexecregionYou can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.

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
regionstringAWS region (default: us-east-1)

SELECT examples

This operation lists details about a partner event source that is shared with your account.

SELECT
arn,
created_by,
creation_time,
expiration_time,
name,
state
FROM aws.events.event_sources
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

You can use this to see all the partner event sources that have been shared with your Amazon Web Services account. For more information about partner event sources, see CreateEventBus.

EXEC aws.events.event_sources.list_event_sources
@region='{{ region }}' --required
@@json=
'{
"NamePrefix": "{{ NamePrefix }}",
"NextToken": "{{ NextToken }}",
"Limit": {{ Limit }}
}'
;