Skip to main content

event_topics

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

Overview

Nameevent_topics
TypeResource
Idaws.ds.event_topics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_topicsarrayA list of Amazon SNS topic names that receive status messages from the specified Directory ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_event_topicsselectregionObtains information about which Amazon SNS topics receive status messages from the specified directory. If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.
register_event_topicinsertregion, DirectoryId, TopicNameAssociates a directory with an Amazon SNS topic. This establishes the directory as a publisher to the specified Amazon SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.
deregister_event_topicdeleteregionRemoves the specified directory as a publisher to the specified Amazon SNS topic.

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

Obtains information about which Amazon SNS topics receive status messages from the specified directory. If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

SELECT
event_topics
FROM aws.ds.event_topics
WHERE region = '{{ region }}' -- required
;

INSERT examples

Associates a directory with an Amazon SNS topic. This establishes the directory as a publisher to the specified Amazon SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

INSERT INTO aws.ds.event_topics (
DirectoryId,
TopicName,
region
)
SELECT
'{{ DirectoryId }}' /* required */,
'{{ TopicName }}' /* required */,
'{{ region }}'
;

DELETE examples

Removes the specified directory as a publisher to the specified Amazon SNS topic.

DELETE FROM aws.ds.event_topics
WHERE region = '{{ region }}' --required
;