Publish SNS Message - structured JSON format
This parameters template demonstrates publishing a SNS message in structured JSON format with the Publish SNS Message action:
JSON Message Generator
The AWS Management Console features a JSON Message Generator that eases composition of the required JSON message structure, refer to section Create Different Messages for Each Protocol for within Publish to a topic for details.
Publish SNS Message parameters example (structured JSON format – escaped manually)
{
"TopicArn": "arn:aws:sns:ap-southeast-2:123456789012:sample-AutomationWithAWSQuickstartSNSTopic-15EO7TT8O93XT",
"Message": "{ \"default\": \"$event.simpleName with trace ID $event.traceId triggered at $event.timestamp\"}",
"MessageStructure": "json",
"Subject": "Automation with AWS: $event.simpleName triggered at $event.timestamp"
}
Publish SNS Message parameters example (structured JSON format – escaped with utility function)
{
"TopicArn": "arn:aws:sns:ap-southeast-2:123456789012:sample-AutomationWithAWSQuickstartSNSTopic-15EO7TT8O93XT",
"Message": "$util.escapeJson('{
"default": "$event.simpleName with trace ID $event.traceId triggered at $event.timestamp"
}')",
"MessageStructure": "json",
"Subject": "Automation with AWS: $event.simpleName triggered at $event.timestamp"
}
Atlassian®, Atlassian Bamboo®, Bitbucket®, Atlassian Crowd®, Confluence®, Jira®, Jira Service Management™, Opsgenie®, and Statuspage™ are registered trademarks of Atlassian.
Amazon Web Services™, AWS™ and the “Powered by Amazon Web Services” logo are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.
Amazon Web Services™, AWS™ and the “Powered by Amazon Web Services” logo are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.
Utoolity® is a registered trademark of Utoolity GmbH.
© 2024 Utoolity GmbH. All rights reserved.