Skip to main content

event_subscriptions

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

Overview​

Nameevent_subscriptions
TypeResource
Idaws.inspector.event_subscriptions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_subscriptionsarrayThe list of existing event subscriptions.
resource_arnstringThe ARN of the assessment template that is used during the event for which the SNS notification is sent.
topic_arnstringThe ARN of the Amazon Simple Notification Service (SNS) topic to which the SNS notifications are sent.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_event_subscriptionsselectregionLists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.

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​

Lists all the event subscriptions for the assessment template that is specified by the ARN of the assessment template. For more information, see SubscribeToEvent and UnsubscribeFromEvent.

SELECT
event_subscriptions,
resource_arn,
topic_arn
FROM aws.inspector.event_subscriptions
WHERE region = '{{ region }}' -- required
;