# 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**](https://docs.thingsup.io/connections/aws-connection). 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](https://365492316-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7aTljSjWsfbXZ_OP_9%2Fuploads%2FA6x22jvbPQ9MtOjXG4Nd%2FAwsSqsSendMsgAction.png?alt=media\&token=27caff08-2545-48a5-8aa8-024997e72223)

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 %}
