1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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" };
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 5 mesi fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
This answer worked! Thank you for the help!