Skip to main content

message_insights

Creates, updates, deletes, gets or lists a message_insights resource.

Overview

Namemessage_insights
TypeResource
Idaws.sesv2.message_insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
email_tagsarrayA 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_addressstringThe from address used to send the message.
insightsarrayA set of insights associated with the message.
message_idstringA unique identifier for the message.
subjectstringThe subject line of the message.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_message_insightsselectmessage_id, regionProvides 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.

NameDatatypeDescription
message_idstringA MessageId is a unique identifier for a message, and is returned when sending emails through Amazon SES.
regionstringAWS region (default: us-east-1)

SELECT examples

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
;