1 Answer
- Newest
- Most votes
- Most comments
0
Use a small VTL map, then JSON-encode + URL-encode it for SQS:
#set($wrapped = $util.parseJson("{}")) #set($wrapped.sourceType = "kind-1") #set($wrapped.rawBody = $util.parseJson($input.body))
Action=SendMessage&MessageBody=$util.urlEncode($util.toJson($wrapped))
Notes: Content-Type must be application/x-www-form-urlencoded. For FIFO queues add: &MessageGroupId=... (and &MessageDeduplicationId=... if not content-based).
answered a year ago
Relevant content
asked 4 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 9 months ago
