libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics
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.IoTAnalytics.Types.Message

Description

 
Synopsis

Documentation

data Message Source #

Information about a message.

See: newMessage smart constructor.

Constructors

Message' 

Fields

  • messageId :: Text

    The ID you want to assign to the message. Each messageId must be unique within each batch sent.

  • payload :: Base64

    The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

Methods

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

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

Read Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

Show Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

Generic Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.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.IoTAnalytics.Types.Message

Methods

rnf :: Message -> () #

Hashable Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

Methods

hashWithSalt :: Int -> Message -> Int #

hash :: Message -> Int #

ToJSON Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

type Rep Message Source # 
Instance details

Defined in Amazonka.IoTAnalytics.Types.Message

type Rep Message = D1 ('MetaData "Message" "Amazonka.IoTAnalytics.Types.Message" "libZSservicesZSamazonka-iot-analyticsZSamazonka-iot-analytics" 'False) (C1 ('MetaCons "Message'" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") '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:messageId:Message', message_messageId - The ID you want to assign to the message. Each messageId must be unique within each batch sent.

$sel:payload:Message', message_payload - The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.-- -- 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_messageId :: Lens' Message Text Source #

The ID you want to assign to the message. Each messageId must be unique within each batch sent.

message_payload :: Lens' Message ByteString Source #

The payload of the message. This can be a JSON string or a base64-encoded string representing binary data, in which case you must decode it by means of a pipeline activity.-- -- 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.