/*
* 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.Threading;
using System.Threading.Tasks;
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);
///
/// Retrieves the raw content of an in-transit email message, in MIME format.
///
/// Container for the necessary parameters to execute the GetRawMessageContent service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetRawMessageContent service method, as returned by WorkMailMessageFlow.
///
/// The requested email message is not found.
///
/// REST API Reference for GetRawMessageContent Operation
Task GetRawMessageContentAsync(GetRawMessageContentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#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:
///
/// -
///
/// 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.
///
///
/// 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);
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutRawMessageContent service method, as returned by WorkMailMessageFlow.
///
/// 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.
///
///
/// 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
Task PutRawMessageContentAsync(PutRawMessageContentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}