Table of Contents
A low-level client representing Amazon WorkMail Message Flow:
client = session.create_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.
Client exceptions are available on a client instance via the exceptions property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.
The available client exceptions are:
The requested email message is not found.
Example
try:
...
except client.exceptions.ResourceNotFoundException as e:
print(e.response)
The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.
Syntax
{
'message': 'string',
'Error': {
'Code': 'string',
'Message': 'string'
}
}
Structure
(dict) --
The requested email message is not found.
The available paginators are: