Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Message = Message' {}
- newMessage :: Text -> ByteString -> Message
- message_messageId :: Lens' Message Text
- message_payload :: Lens' Message ByteString
Documentation
Information about a message.
See: newMessage
smart constructor.
Message' | |
|
Instances
Eq Message Source # | |
Read Message Source # | |
Show Message Source # | |
Generic Message Source # | |
NFData Message Source # | |
Defined in Amazonka.IoTAnalytics.Types.Message | |
Hashable Message Source # | |
Defined in Amazonka.IoTAnalytics.Types.Message | |
ToJSON Message Source # | |
Defined in Amazonka.IoTAnalytics.Types.Message | |
type Rep Message Source # | |
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))) |
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.