This page provides a comprehensive reference for aws sqs actions available in the workflow automation actions catalog. These actions enable you to sqs queue operations.
Prerequisites
Before using AWS actions in workflow automation, ensure you have:
- An AWS account with appropriate permissions.
- AWS credentials configured (IAM user credentials, IAM role ARN, or session credentials).
- The necessary IAM permissions for the specific AWS services you plan to use.
See Set up AWS credentials for information on how to create IAM users and IAM roles, and set up static and session AWS credentials for integration with workflow automation AWS actions.
Sends a message to a specified Amazon SQS queue.
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
queueUrl | Required | String | " |
messageBody | Required | String |
|
messageDeduplicationId | Optional | String |
|
messageGroupId | Optional | String |
|
messageAttributes | Optional | Map | |
delaySeconds | Optional | Int |
|
Output Field | Type | Example |
|---|---|---|
response | object | Response syntax can be referred to SQS send_message - Boto3 documentation |
success | Boolean |
|
errorMessage | String |
|
Workflow example |
|---|
|
Retrieves one or more messages, from the specified queue
Input Field | Optionality | Type | Example |
|---|---|---|---|
awsRoleArn | Optional | String |
|
awsAccessKeyId | Optional | String |
|
awsSecretAccessKey | Optional | String |
|
awsSessionToken | Optional | String |
|
region | Required | String |
|
queueUrl | Required | String | " |
maxNumberOfMessages | Optional | Int |
|
waitTimeSeconds | Optional | Int |
|
VisibilityTimeout | Optional | Int |
|
AttributeNames | Optional | List | |
messageAttributeNames | Optional | List | |
messageSystemAttributeNames | Optional | List |
|
receiveRequestAttemptId | Optional | String |
|
Output Field | Type | Example |
|---|---|---|
response | object |
Response syntax can be referred to receive_message - Boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sqs/client/receive_message.html) |
success | Boolean |
|
errorMessage | String |
|
name: sqs-receive-message-testdescription: 'Receives a message from an SQS queue'steps: - name: aws_sqs_receiveMessage_1 type: action action: aws.sqs.receiveMessage version: '1' inputs: awsRoleArn: ${{ :secrets:awsRoleArn }} region: us-east-1 queueUrl: https://sqs.us-east-1.amazonaws.com/123456789012/workflow-test-queue waitTimeSeconds: 5 maxNumberOfMessages: 10 messageAttributeNames: ['message_attribute_name'],