{ "uuid": "3f45ad9c-45eb-48c1-aca9-a75697fc9598", "lastMigration": 29, "name": "Amazon WorkMail Message Flow", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "e51033c2-c8e6-4cda-8d31-62726d51a489", "documentation": "Retrieves the raw content of an in-transit email message, in MIME format.", "method": "get", "endpoint": "messages/:messageId", "responses": [ { "uuid": "5889d280-a1e5-43ad-bd8b-c2ede63f86f1", "body": "{\n \"messageContent\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3a8e6a26-c5f2-4a0c-9fd3-073a725f6bac", "body": "\"\"", "latency": 0, "statusCode": 480, "label": "ResourceNotFoundException", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "4f6ae2a2-bb22-4cce-85e8-b64be4127155", "documentation": "
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.