{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.workmailmessageflow#GetRawMessageContent": { "type": "operation", "input": { "target": "com.amazonaws.workmailmessageflow#GetRawMessageContentRequest" }, "output": { "target": "com.amazonaws.workmailmessageflow#GetRawMessageContentResponse" }, "errors": [ { "target": "com.amazonaws.workmailmessageflow#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "
Retrieves the raw content of an in-transit email message, in MIME format.
", "smithy.api#http": { "method": "GET", "uri": "/messages/{messageId}", "code": 200 } } }, "com.amazonaws.workmailmessageflow#GetRawMessageContentRequest": { "type": "structure", "members": { "messageId": { "target": "com.amazonaws.workmailmessageflow#messageIdType", "traits": { "smithy.api#documentation": "The identifier of the email message to retrieve.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } } } }, "com.amazonaws.workmailmessageflow#GetRawMessageContentResponse": { "type": "structure", "members": { "messageContent": { "target": "com.amazonaws.workmailmessageflow#messageContentBlob", "traits": { "smithy.api#documentation": "The raw content of the email message, in MIME format.
", "smithy.api#httpPayload": {}, "smithy.api#required": {} } } } }, "com.amazonaws.workmailmessageflow#GiraffeMessageInTransitService": { "type": "service", "version": "2019-05-01", "operations": [ { "target": "com.amazonaws.workmailmessageflow#GetRawMessageContent" }, { "target": "com.amazonaws.workmailmessageflow#PutRawMessageContent" } ], "traits": { "aws.api#service": { "sdkId": "WorkMailMessageFlow", "arnNamespace": "workmailmessageflow", "cloudFormationName": "WorkMailMessageFlow", "cloudTrailEventSource": "workmailmessageflow.amazonaws.com", "endpointPrefix": "workmailmessageflow" }, "aws.auth#sigv4": { "name": "workmailmessageflow" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "The WorkMail Message Flow API provides access to email messages as they are\n being\n sent and received by\n a\n WorkMail organization.
", "smithy.api#title": "Amazon WorkMail Message Flow" } }, "com.amazonaws.workmailmessageflow#InvalidContentLocation": { "type": "structure", "members": { "message": { "target": "com.amazonaws.workmailmessageflow#errorMessage" } }, "traits": { "smithy.api#documentation": "WorkMail could not access the updated email content. Possible reasons:
\nYou made the request in a region other than your S3 bucket region.
\nThe S3 bucket owner is not the \n same as the calling AWS account.
\nYou have an incomplete or missing S3 bucket policy. For more information about policies, see \n \n Updating message content with AWS Lambda\n in the WorkMail Administrator\n Guide.
\nThe requested email is not eligible for update. This is usually the case for a redirected email.
", "smithy.api#error": "client" } }, "com.amazonaws.workmailmessageflow#MessageRejected": { "type": "structure", "members": { "message": { "target": "com.amazonaws.workmailmessageflow#errorMessage" } }, "traits": { "smithy.api#documentation": "The requested email could not be updated due to an error in the MIME content. Check the error message for more information about \n what caused the error.
", "smithy.api#error": "client" } }, "com.amazonaws.workmailmessageflow#PutRawMessageContent": { "type": "operation", "input": { "target": "com.amazonaws.workmailmessageflow#PutRawMessageContentRequest" }, "output": { "target": "com.amazonaws.workmailmessageflow#PutRawMessageContentResponse" }, "errors": [ { "target": "com.amazonaws.workmailmessageflow#InvalidContentLocation" }, { "target": "com.amazonaws.workmailmessageflow#MessageFrozen" }, { "target": "com.amazonaws.workmailmessageflow#MessageRejected" }, { "target": "com.amazonaws.workmailmessageflow#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "Updates the raw content of an in-transit email message, in MIME format.
\nThis example describes how to update in-transit email message. For more information and examples for using this API, see \n \n Updating message content with AWS Lambda.
\n \n \nUpdates to an in-transit message only appear when you call PutRawMessageContent
from an AWS Lambda function \n configured with a synchronous \n Run Lambda rule. If you call PutRawMessageContent
on a delivered or sent message, the message remains unchanged,\n even though GetRawMessageContent returns an updated \n message.\n
The identifier of the email message being updated.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } }, "content": { "target": "com.amazonaws.workmailmessageflow#RawMessageContent", "traits": { "smithy.api#documentation": "Describes the raw message content of the updated email message.
", "smithy.api#required": {} } } } }, "com.amazonaws.workmailmessageflow#PutRawMessageContentResponse": { "type": "structure", "members": {} }, "com.amazonaws.workmailmessageflow#RawMessageContent": { "type": "structure", "members": { "s3Reference": { "target": "com.amazonaws.workmailmessageflow#S3Reference", "traits": { "smithy.api#documentation": "The S3 reference of an email message.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following criteria:
\nEach part of a multipart MIME message must be formatted properly.
\nAttachments must be of a content type that Amazon SES supports. For more information, see \n Unsupported Attachment Types.
\nIf any of the MIME parts in a message contain content that is outside of the 7-bit ASCII character range, we recommend \n encoding that content.
\nPer RFC 5321, the maximum length of each line of \n text, including the
The message must contain all the required header fields. Check the returned error message for more information.
\nThe value of immutable headers must remain unchanged. Check the returned error message for more information.
\nCertain unique headers can only appear once. Check the returned error message for more information.
\nThe requested email message is not found.
", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.workmailmessageflow#S3Reference": { "type": "structure", "members": { "bucket": { "target": "com.amazonaws.workmailmessageflow#s3BucketIdType", "traits": { "smithy.api#documentation": "The S3 bucket name.
", "smithy.api#required": {} } }, "key": { "target": "com.amazonaws.workmailmessageflow#s3KeyIdType", "traits": { "smithy.api#documentation": "The S3 key object name.
", "smithy.api#required": {} } }, "objectVersion": { "target": "com.amazonaws.workmailmessageflow#s3VersionType", "traits": { "smithy.api#documentation": "If you enable versioning for the bucket, you can specify the object version.
" } } }, "traits": { "smithy.api#documentation": "Amazon S3 object representing the updated message content, in MIME format.
\nThe region for the S3 bucket containing the S3 object must match the region used for WorkMail operations. Also, for WorkMail to process \n an S3 object, it must have permission to access that object. For more information, see \n \n Updating message content with AWS Lambda.
\n