aristidb / aws

Amazon Web Services for Haskell
BSD 3-Clause "New" or "Revised" License
239 stars 108 forks source link

Receive SQS Message with UserMessageAttributes #229

Open jtdawso opened 7 years ago

jtdawso commented 7 years ago

@aristidb Is there an example of getting a message with its UserMessageAttributes?

I have a message in SQS with UserMessageAttributes, if I have the following ReceiveMessage: (delay, MessageAttributes, #messages, UserMessageAttributeName, queueName, wait time in seconds) ReceiveMessage (Just 2) [] (Just 10) [] name (Just 20) I am able to recieve the messages but without any UserMessageAttributes or MessageAttributes. When I do the following:

ReceiveMessage (Just 2) [MessageAll] (Just 10) [] name (Just 20) I get all the message Attributes as expected, however if I put "All" or ".*" or the attribute that I am looking for in the UserMessageAttribute list, I get the following error:

XmlException {xmlErrorMessage = \"Missing DataType\"}"