Skip to main content

raw_message_contents

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

Overview

Nameraw_message_contents
TypeResource
Idaws.workmailmessageflow.raw_message_contents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
message_contentstring (byte)The raw content of the email message, in MIME format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_raw_message_contentselectmessage_id, regionRetrieves the raw content of an in-transit email message, in MIME format.
put_raw_message_contentreplacemessage_id, region, contentUpdates the raw content of an in-transit email message, in MIME format. This example describes how to update in-transit email message. For more information and examples for using this API, see Updating message content with AWS Lambda. Updates to an in-transit message only appear when you call PutRawMessageContent from an AWS Lambda function configured with a synchronous Run Lambda rule. If you call PutRawMessageContent on a delivered or sent message, the message remains unchanged, even though GetRawMessageContent returns an updated message.

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_idstringThe identifier of the email message being updated.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the raw content of an in-transit email message, in MIME format.

SELECT
message_content
FROM aws.workmailmessageflow.raw_message_contents
WHERE message_id = '{{ message_id }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Updates the raw content of an in-transit email message, in MIME format. This example describes how to update in-transit email message. For more information and examples for using this API, see Updating message content with AWS Lambda. Updates to an in-transit message only appear when you call PutRawMessageContent from an AWS Lambda function configured with a synchronous Run Lambda rule. If you call PutRawMessageContent on a delivered or sent message, the message remains unchanged, even though GetRawMessageContent returns an updated message.

REPLACE aws.workmailmessageflow.raw_message_contents
SET
content = '{{ content }}'
WHERE
message_id = '{{ message_id }}' --required
AND region = '{{ region }}' --required
AND content = '{{ content }}' --required;