1 個回答
- 最新
- 最多得票
- 最多評論
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" };
已回答 2 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 個月前
This answer worked! Thank you for the help!