The AWS region tied to your SQS queue, e.g us-east-1 or us-west-2
A variable reference to the event data you want to send to the event bus (e.g. event.body)
async
(params, auths) => {
}
const AWS = require('aws-sdk')
const { accessKeyId, secretAccessKey } = auths.aws
const { region, QueueUrl, eventData } = params
const sqs = new AWS.SQS({
accessKeyId,
secretAccessKey,
region
})
// This sends the payload to the SQS queue, and assumes the payload is JSON.
// Please modify the code accordingly if your data is in a different format
const sqsParams = {
MessageBody: JSON.stringify(eventData),
QueueUrl,
}
this.res = await sqs.sendMessage(sqsParams).promise()