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 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 7달 전
- AWS 공식업데이트됨 일 년 전
This answer worked! Thank you for the help!