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年前
関連するコンテンツ
- AWS公式更新しました 2年前
- AWS公式更新しました 7ヶ月前
This answer worked! Thank you for the help!