Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SqsMessage a = SqsMessage {
- senderId :: !(Maybe Text)
- messageId :: !(Maybe Text)
- md5OfBody :: !(Maybe Text)
- receiptHandle :: !(Maybe ReceiptHandle)
- sendTimestamp :: !(Maybe Text)
- approximateReceiveCount :: !(Maybe Text)
- approximateFirstReceiveTimestamp :: !(Maybe Text)
- body :: !a
- data Message
- mBody :: Lens' Message (Maybe Text)
- data QueueUrl
- fromMessage :: FromJSON a => Message -> SqsMessage (Maybe a)
- fromMessageMaybe :: FromJSON a => Message -> Maybe (SqsMessage a)
- decodeBody :: FromJSON a => Message -> Maybe a
Documentation
data SqsMessage a Source #
SqsMessage | |
|
Instances
An Amazon SQS message.
See: message
smart constructor.
Instances
Instances
Eq QueueUrl Source # | |
Show QueueUrl Source # | |
IsString QueueUrl Source # | |
Defined in Antiope.SQS.Types fromString :: String -> QueueUrl # | |
Generic QueueUrl Source # | |
ToText QueueUrl Source # | |
Defined in Antiope.SQS.Types | |
FromText QueueUrl Source # | |
Defined in Antiope.SQS.Types | |
type Rep QueueUrl Source # | |
Defined in Antiope.SQS.Types |
fromMessage :: FromJSON a => Message -> SqsMessage (Maybe a) Source #
Converts a Message
into SqsMessage
fromMessageMaybe :: FromJSON a => Message -> Maybe (SqsMessage a) Source #
Converts Message
into SqsMessage
if its body is decodable as a