'2.0', 'service' => '
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
', 'operations' => [ 'GetRawMessageContent' => 'Retrieves the raw content of an in-transit email message, in MIME format.
', 'PutRawMessageContent' => '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.
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.
The requested email is not eligible for update. This is usually the case for a redirected email.
', 'refs' => [], ], 'MessageRejected' => [ 'base' => '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.
', 'refs' => [], ], 'PutRawMessageContentRequest' => [ 'base' => NULL, 'refs' => [], ], 'PutRawMessageContentResponse' => [ 'base' => NULL, 'refs' => [], ], 'RawMessageContent' => [ 'base' => 'Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following criteria:
Each part of a multipart MIME message must be formatted properly.
Attachments must be of a content type that Amazon SES supports. For more information, see Unsupported Attachment Types.
If any of the MIME parts in a message contain content that is outside of the 7-bit ASCII character range, we recommend encoding that content.
Per RFC 5321, the maximum length of each line of text, including the <CRLF>, must not exceed 1,000 characters.
The message must contain all the required header fields. Check the returned error message for more information.
The value of immutable headers must remain unchanged. Check the returned error message for more information.
Certain unique headers can only appear once. Check the returned error message for more information.
Describes the raw message content of the updated email message.
', ], ], 'ResourceNotFoundException' => [ 'base' => 'The requested email message is not found.
', 'refs' => [], ], 'S3Reference' => [ 'base' => 'Amazon S3 object representing the updated message content, in MIME format.
The region for the S3 bucket containing the S3 object must match the region used for WorkMail operations. Also, for WorkMail to process an S3 object, it must have permission to access that object. For more information, see Updating message content with AWS Lambda.
The S3 reference of an email message.
', ], ], 'errorMessage' => [ 'base' => NULL, 'refs' => [ 'InvalidContentLocation$message' => NULL, 'MessageFrozen$message' => NULL, 'MessageRejected$message' => NULL, 'ResourceNotFoundException$message' => NULL, ], ], 'messageContentBlob' => [ 'base' => NULL, 'refs' => [ 'GetRawMessageContentResponse$messageContent' => 'The raw content of the email message, in MIME format.
', ], ], 'messageIdType' => [ 'base' => NULL, 'refs' => [ 'GetRawMessageContentRequest$messageId' => 'The identifier of the email message to retrieve.
', 'PutRawMessageContentRequest$messageId' => 'The identifier of the email message being updated.
', ], ], 's3BucketIdType' => [ 'base' => NULL, 'refs' => [ 'S3Reference$bucket' => 'The S3 bucket name.
', ], ], 's3KeyIdType' => [ 'base' => NULL, 'refs' => [ 'S3Reference$key' => 'The S3 key object name.
', ], ], 's3VersionType' => [ 'base' => NULL, 'refs' => [ 'S3Reference$objectVersion' => 'If you enable versioning for the bucket, you can specify the object version.
', ], ], ],];