@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonWorkMailMessageFlow
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonWorkMailMessageFlow
instead.
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetRawMessageContentResult |
getRawMessageContent(GetRawMessageContentRequest getRawMessageContentRequest)
Retrieves the raw content of an in-transit email message, in MIME format.
|
PutRawMessageContentResult |
putRawMessageContent(PutRawMessageContentRequest putRawMessageContentRequest)
Updates the raw content of an in-transit email message, in MIME format.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
GetRawMessageContentResult getRawMessageContent(GetRawMessageContentRequest getRawMessageContentRequest)
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentRequest
- ResourceNotFoundException
- The requested email message is not found.PutRawMessageContentResult putRawMessageContent(PutRawMessageContentRequest putRawMessageContentRequest)
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.
putRawMessageContentRequest
- ResourceNotFoundException
- The requested email message is not found.InvalidContentLocationException
- WorkMail could not access the updated email content. Possible reasons:
You made the request in a region other than your S3 bucket region.
The S3 bucket owner is not the same as the calling AWS account.
You have an incomplete or missing S3 bucket policy. For more information about policies, see Updating message content with AWS Lambda in the WorkMail Administrator Guide.
MessageRejectedException
- The requested email could not be updated due to an error in the MIME content. Check the error message for
more information about what caused the error.MessageFrozenException
- The requested email is not eligible for update. This is usually the case for a redirected email.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.