libZSservicesZSamazonka-workmailmessageflowZSamazonka-workmailmessageflow
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkMailMessageFlow.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2019-05-01 of the Amazon WorkMail Message Flow SDK configuration.

Errors

_MessageRejected :: AsError a => Getting (First ServiceError) a ServiceError Source #

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.

_InvalidContentLocation :: AsError a => Getting (First ServiceError) a ServiceError Source #

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.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The requested email message is not found.

_MessageFrozen :: AsError a => Getting (First ServiceError) a ServiceError Source #

The requested email is not eligible for update. This is usually the case for a redirected email.

RawMessageContent

data RawMessageContent Source #

Provides the MIME content of the updated email message as an S3 object. All MIME content must meet the following criteria:

  • Each part of a multipart MIME message must be formatted properly.
  • Attachments must be of a content type that Amazon SES supports. For more information, see Unsupported Attachment Types.
  • If any of the MIME parts in a message contain content that is outside of the 7-bit ASCII character range, we recommend encoding that content.
  • Per RFC 5321, the maximum length of each line of text, including the <CRLF>, must not exceed 1,000 characters.
  • The message must contain all the required header fields. Check the returned error message for more information.
  • The value of immutable headers must remain unchanged. Check the returned error message for more information.
  • Certain unique headers can only appear once. Check the returned error message for more information.

See: newRawMessageContent smart constructor.

Constructors

RawMessageContent' 

Fields

Instances

Instances details
Eq RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

Read RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

Show RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

Generic RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

Associated Types

type Rep RawMessageContent :: Type -> Type #

NFData RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

Methods

rnf :: RawMessageContent -> () #

Hashable RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

ToJSON RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

type Rep RawMessageContent Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.RawMessageContent

type Rep RawMessageContent = D1 ('MetaData "RawMessageContent" "Amazonka.WorkMailMessageFlow.Types.RawMessageContent" "libZSservicesZSamazonka-workmailmessageflowZSamazonka-workmailmessageflow" 'False) (C1 ('MetaCons "RawMessageContent'" 'PrefixI 'True) (S1 ('MetaSel ('Just "s3Reference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3Reference)))

newRawMessageContent Source #

Create a value of RawMessageContent with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:s3Reference:RawMessageContent', rawMessageContent_s3Reference - The S3 reference of an email message.

S3Reference

data S3Reference Source #

Amazon S3 object representing the updated message content, in MIME format.

The region for the S3 bucket containing the S3 object must match the region used for WorkMail operations. Also, for WorkMail to process an S3 object, it must have permission to access that object. For more information, see Updating message content with AWS Lambda.

See: newS3Reference smart constructor.

Constructors

S3Reference' 

Fields

Instances

Instances details
Eq S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

Read S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

Show S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

Generic S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

Associated Types

type Rep S3Reference :: Type -> Type #

NFData S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

Methods

rnf :: S3Reference -> () #

Hashable S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

ToJSON S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

type Rep S3Reference Source # 
Instance details

Defined in Amazonka.WorkMailMessageFlow.Types.S3Reference

type Rep S3Reference = D1 ('MetaData "S3Reference" "Amazonka.WorkMailMessageFlow.Types.S3Reference" "libZSservicesZSamazonka-workmailmessageflowZSamazonka-workmailmessageflow" 'False) (C1 ('MetaCons "S3Reference'" 'PrefixI 'True) (S1 ('MetaSel ('Just "objectVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newS3Reference Source #

Create a value of S3Reference with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:objectVersion:S3Reference', s3Reference_objectVersion - If you enable versioning for the bucket, you can specify the object version.

$sel:bucket:S3Reference', s3Reference_bucket - The S3 bucket name.

$sel:key:S3Reference', s3Reference_key - The S3 key object name.

s3Reference_objectVersion :: Lens' S3Reference (Maybe Text) Source #

If you enable versioning for the bucket, you can specify the object version.

s3Reference_key :: Lens' S3Reference Text Source #

The S3 key object name.