libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data
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.IoTEventsData.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

Information about a message.

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • timestamp :: Maybe TimestampValue

    The timestamp associated with the message.

  • messageId :: Text

    The ID to assign to the message. Within each batch sent, each "messageId" must be unique.

  • inputName :: Text

    The name of the input into which the message payload is transformed.

  • payload :: Base64

    The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Methods

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

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

Read Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

NFData Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Methods

rnf :: Message -> () #

Hashable Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

ToJSON Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

type Rep Message Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.IoTEventsData.Types.Message" "libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TimestampValue)) :*: S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "inputName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Base64))))

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:timestamp:Message', message_timestamp - The timestamp associated with the message.

$sel:messageId:Message', message_messageId - The ID to assign to the message. Within each batch sent, each "messageId" must be unique.

$sel:inputName:Message', message_inputName - The name of the input into which the message payload is transformed.

$sel:payload:Message', message_payload - The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

message_timestamp :: Lens' Message (Maybe TimestampValue) Source #

The timestamp associated with the message.

message_messageId :: Lens' Message Text Source #

The ID to assign to the message. Within each batch sent, each "messageId" must be unique.

message_inputName :: Lens' Message Text Source #

The name of the input into which the message payload is transformed.

message_payload :: Lens' Message ByteString Source #

The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.