message_insights
Creates, updates, deletes, gets or lists a message_insights resource.
Overview
| Name | message_insights |
| Type | Resource |
| Id | aws.sesv2.message_insights |
Fields
The following fields are returned by SELECT queries:
- get_message_insights
| Name | Datatype | Description |
|---|---|---|
email_tags | array | A list of tags, in the form of name/value pairs, that were applied to the email you sent, along with Amazon SES Auto-Tags. |
from_email_address | string | The from address used to send the message. |
insights | array | A set of insights associated with the message. |
message_id | string | A unique identifier for the message. |
subject | string | The subject line of the message. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_message_insights | select | message_id, region | Provides information about a specific message, including the from address, the subject, the recipient address, email tags, as well as events associated with the message. You can execute this operation no more than once per second. |
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 |
|---|---|---|
message_id | string | A MessageId is a unique identifier for a message, and is returned when sending emails through Amazon SES. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_message_insights
Provides information about a specific message, including the from address, the subject, the recipient address, email tags, as well as events associated with the message. You can execute this operation no more than once per second.
SELECT
email_tags,
from_email_address,
insights,
message_id,
subject
FROM aws.sesv2.message_insights
WHERE message_id = '{{ message_id }}' -- required
AND region = '{{ region }}' -- required
;