event_subscriptions
Creates, updates, deletes, gets or lists an event_subscriptions resource.
Overview
| Name | event_subscriptions |
| Type | Resource |
| Id | aws.inspector.event_subscriptions |
Fields
The following fields are returned by SELECT queries:
- list_event_subscriptions
| Name | Datatype | Description |
|---|---|---|
event_subscriptions | array | The list of existing event subscriptions. |
resource_arn | string | The ARN of the assessment template that is used during the event for which the SNS notification is sent. |
topic_arn | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_event_subscriptions | select | region | 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. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_event_subscriptions
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
;