Table of Contents
A low-level client representing Amazon WorkMail Message Flow
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
import boto3
client = boto3.client('workmailmessageflow')
These are the available methods:
Check if an operation can be paginated.
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Retrieves the raw content of an in-transit email message, in MIME format.
See also: AWS API Documentation
Request Syntax
response = client.get_raw_message_content(
messageId='string'
)
[REQUIRED]
The identifier of the email message to retrieve.
{
'messageContent': StreamingBody()
}
Response Structure
The raw content of the email message, in MIME format.
Exceptions
Returns an object that can wait for some condition.
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 .
Note
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.
See also: AWS API Documentation
Request Syntax
response = client.put_raw_message_content(
messageId='string',
content={
's3Reference': {
'bucket': 'string',
'key': 'string',
'objectVersion': 'string'
}
}
)
[REQUIRED]
The identifier of the email message being updated.
[REQUIRED]
Describes the raw message content of the updated email message.
The S3 reference of an email message.
The S3 bucket name.
The S3 key object name.
If you enable versioning for the bucket, you can specify the object version.
dict
Response Syntax
{}
Response Structure
Exceptions
The available paginators are: