amazonka-ses-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SES.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

Represents the message to be sent, composed of a subject and a body.

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • subject :: Content

    The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

  • body :: Body

    The message body.

Instances

Instances details
ToQuery Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

Read Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

NFData Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

rnf :: Message -> () #

Eq Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Hashable Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

type Rep Message Source # 
Instance details

Defined in Amazonka.SES.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.SES.Types.Message" "amazonka-ses-2.0-Gc6VkOIX7Sd2eunWehphuf" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Content) :*: S1 ('MetaSel ('Just "body") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Body)))

newMessage Source #

Create a value of Message 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:subject:Message', message_subject - The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

$sel:body:Message', message_body - The message body.

message_subject :: Lens' Message Content Source #

The subject of the message: A short summary of the content, which will appear in the recipient's inbox.

message_body :: Lens' Message Body Source #

The message body.