/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the workmailmessageflow-2019-05-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.WorkMailMessageFlow.Model; namespace Amazon.WorkMailMessageFlow { /// /// Interface for accessing WorkMailMessageFlow /// /// The WorkMail Message Flow API provides access to email messages as they are being /// sent and received by a WorkMail organization. /// public partial interface IAmazonWorkMailMessageFlow : IAmazonService, IDisposable { #region GetRawMessageContent /// /// Retrieves the raw content of an in-transit email message, in MIME format. /// /// Container for the necessary parameters to execute the GetRawMessageContent service method. /// /// The response from the GetRawMessageContent service method, as returned by WorkMailMessageFlow. /// /// The requested email message is not found. /// /// REST API Reference for GetRawMessageContent Operation GetRawMessageContentResponse GetRawMessageContent(GetRawMessageContentRequest request); /// /// Initiates the asynchronous execution of the GetRawMessageContent operation. /// /// /// Container for the necessary parameters to execute the GetRawMessageContent operation on AmazonWorkMailMessageFlowClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetRawMessageContent /// operation. /// REST API Reference for GetRawMessageContent Operation IAsyncResult BeginGetRawMessageContent(GetRawMessageContentRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the GetRawMessageContent operation. /// /// /// The IAsyncResult returned by the call to BeginGetRawMessageContent. /// /// Returns a GetRawMessageContentResult from WorkMailMessageFlow. /// REST API Reference for GetRawMessageContent Operation GetRawMessageContentResponse EndGetRawMessageContent(IAsyncResult asyncResult); #endregion #region 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. /// /// /// /// Container for the necessary parameters to execute the PutRawMessageContent service method. /// /// The response from the PutRawMessageContent service method, as returned by WorkMailMessageFlow. /// /// WorkMail could not access the updated email content. Possible reasons: /// /// /// /// /// The requested email is not eligible for update. This is usually the case for a redirected /// email. /// /// /// 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. /// /// /// The requested email message is not found. /// /// REST API Reference for PutRawMessageContent Operation PutRawMessageContentResponse PutRawMessageContent(PutRawMessageContentRequest request); /// /// Initiates the asynchronous execution of the PutRawMessageContent operation. /// /// /// Container for the necessary parameters to execute the PutRawMessageContent operation on AmazonWorkMailMessageFlowClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutRawMessageContent /// operation. /// REST API Reference for PutRawMessageContent Operation IAsyncResult BeginPutRawMessageContent(PutRawMessageContentRequest request, AsyncCallback callback, object state); /// /// Finishes the asynchronous execution of the PutRawMessageContent operation. /// /// /// The IAsyncResult returned by the call to BeginPutRawMessageContent. /// /// Returns a PutRawMessageContentResult from WorkMailMessageFlow. /// REST API Reference for PutRawMessageContent Operation PutRawMessageContentResponse EndPutRawMessageContent(IAsyncResult asyncResult); #endregion } }