@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkMailMessageFlowClient extends AmazonWebServiceClient implements AmazonWorkMailMessageFlow
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonWorkMailMessageFlowClientBuilder |
builder() |
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 request)
Retrieves the raw content of an in-transit email message, in MIME format.
|
PutRawMessageContentResult |
putRawMessageContent(PutRawMessageContentRequest request)
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.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonWorkMailMessageFlowClientBuilder builder()
public GetRawMessageContentResult getRawMessageContent(GetRawMessageContentRequest request)
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContent
in interface AmazonWorkMailMessageFlow
getRawMessageContentRequest
- ResourceNotFoundException
- The requested email message is not found.public PutRawMessageContentResult putRawMessageContent(PutRawMessageContentRequest request)
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.
putRawMessageContent
in interface AmazonWorkMailMessageFlow
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.public 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 the request.
getCachedResponseMetadata
in interface AmazonWorkMailMessageFlow
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonWorkMailMessageFlow
shutdown
in class AmazonWebServiceClient