Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

This parameters template demonstrates the Send SQS Message action:

Insert excerpt
_JSONEscapingRequirements
_JSONEscapingRequirements
nopaneltrue

Send SQS Message parameters example (Atlassian Workflow Event – escaped manually)

Code Block
languagejs
linenumberstrue
{
  "QueueUrl": "https://sqs.ap-southeast-2.amazonaws.com/123456789012/sample-AutomationWithAWSQuickstartSQSQueue-1NAIZP8U9XJ1X",
  "MessageBody": "{ \"event\": \"$event.simpleName\", \"timestamp\": \"$event.timestamp\", \"traceId\": \"$event.traceId\" }"
}

Send SQS Message parameters example (Atlassian Workflow Event – escaped with utility function)

Code Block
languagejslinenumberstrue
{
  "QueueUrl": "https://sqs.ap-southeast-2.amazonaws.com/123456789012/sample-AutomationWithAWSQuickstartSQSQueue-1NAIZP8U9XJ1X",
  "MessageBody": "$util.escapeJson('{
    "event": "$event.simpleName",
    "timestamp": "$event.timestamp",
    "traceId": "$event.traceId"
  }')"
}

...