| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTEventsData.Types.Message
Description
Synopsis
- data Message = Message' {}
- newMessage :: Text -> Text -> ByteString -> Message
- message_timestamp :: Lens' Message (Maybe TimestampValue)
- message_messageId :: Lens' Message Text
- message_inputName :: Lens' Message Text
- message_payload :: Lens' Message ByteString
Documentation
Information about a message.
See: newMessage smart constructor.
Constructors
| Message' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ByteString | |
| -> Message |
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.