> For the complete documentation index, see [llms.txt](https://docs.thingsup.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thingsup.io/actions/aws-sqs-send-messsage-action.md).

# AWS SQS Send Messsage Action

This provides a way to send message AWS SQS. Before adding AWS SQS message Action, user has to define a [**AWS Connection**](/connections/aws-connection.md). User need to provide following parameters to invode AWS SQS send message action.

#### QueryURL

* &#x20;User need to provide AWS SQS queue url.

#### DeletionInSeconds

User need to provide delay in seconds for FIFO queues, Keep '-1' for normal queue.

#### Function

* Javascript code to supply dynamic data to SQS message.
* "MessageBody","MessageAttributes" and "payload" objects are available in this code, function can be used to set message body and attributes from payload before sending to SQS.

```
//Example 1

MessageBody = payload;
MessageAttributes = { "From":Thingsup" };
```

#### Connection ID

User need to provide a Connection ID of AWS connection.

![Add AWS SQS Send Action](/files/r7S3lshCdRfQn7nPMNtE)

Please note the following points:

{% hint style="info" %}

* "payload" object is supplied from Action Trigger like Rules, Action Command etc.
* Data Response from AWS SQS will be available as Action Response.
  {% endhint %}
