import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { GetRawMessageContentCommand , GetRawMessageContentCommandInput , GetRawMessageContentCommandOutput , } from "./commands/GetRawMessageContentCommand" ; import { PutRawMessageContentCommand , PutRawMessageContentCommandInput , PutRawMessageContentCommandOutput , } from "./commands/PutRawMessageContentCommand" ; import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient" ; /**
 * <p>The WorkMail Message Flow API provides access to email messages as they are
 *       being
 *       sent and received by
 *       a
 *       WorkMail organization.</p>
 */ export class WorkMailMessageFlow extends WorkMailMessageFlowClient { /**
     * <p>Retrieves the raw content of an in-transit email message, in MIME format.</p>
     */ public getRawMessageContent ( args , options ? ) ; public getRawMessageContent ( args , cb ) ; public getRawMessageContent ( args , options , cb ) ; public getRawMessageContent ( args , optionsOrCb ? , cb ? ) { const command = new GetRawMessageContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * <p>Updates the raw content of an in-transit email message, in MIME format.</p>
     *          <p>This example describes how to update in-transit email message. For more information and examples for using this API, see
     *       <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/update-with-lambda.html">
     *         Updating message content with AWS Lambda</a>.</p>
     *
     *
     *          <note>
     *             <p>Updates to an in-transit message only appear when you call <code>PutRawMessageContent</code> from an AWS Lambda function
     *       configured with a  synchronous <a href="https://docs.aws.amazon.com/workmail/latest/adminguide/lambda.html#synchronous-rules">
     *         Run Lambda</a> rule. If you call <code>PutRawMessageContent</code> on a delivered or sent message, the message remains unchanged,
     *       even though <a href="https://docs.aws.amazon.com/workmail/latest/APIReference/API_messageflow_GetRawMessageContent.html">GetRawMessageContent</a> returns an updated
     *         message.
     *     </p>
     *          </note>
     */ public putRawMessageContent ( args , options ? ) ; public putRawMessageContent ( args , cb ) ; public putRawMessageContent ( args , options , cb ) ; public putRawMessageContent ( args , optionsOrCb ? , cb ? ) { const command = new PutRawMessageContentCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }