1 Answer
- Newest
- Most votes
- Most comments
1
The Message
property can be a text to send a message to all transport protocols, or a json to send different text for each transport protocol when you set the property MessageStructure
to json. See the Publish API.
If you don't define a property for a specific protocol, the information in the default
property is used. As you are sending to SQS, only the information in the default
property is being sent and the info
property doesn't map to any transport protocol, so it isn't sent.
For your use case, don't sent the MessageStructure
and remove the in object JSON.stringify, as:
var params = { TopicArn: "arn:aws:sns:us-east-1:321363201397:sendNotification.fifo", Message: JSON.stringify({ default: "I am the default", info: {data: { message: "hello 123"} } }), MessageGroupId: "PID-112" };
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
This answer worked! Thank you for the help!