@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Amazon WorkMail Message Flow
@version 2019-05-01
@auth AWS SigV4
@endpoints 2
@toc messages(2)

@endpoint GET /messages/{messageId}
@desc Retrieves the raw content of an in-transit email message, in MIME format.
@required {messageId: str}
@returns(200) {messageContent: bytes}

@endpoint POST /messages/{messageId}
@desc 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.
@required {messageId: str, content: RawMessageContent}

@end
