The AWS SQS object containing all necessary information
A promise that resolves to a success message
This method requires valid AWS credentials and SQS queue information. For enhanced security, it's strongly recommended to store these credentials using TagoIO Secrets rather than hardcoding them.
const environment = Utils.envToJson(context.environment);
const sqsService = new Services({ token: context.token }).aws_sqs;
const result = await sqsService.sendMessage({
sqs_secret: environment.AWS_SQS_TAGOIO_SECRET,
data: { variable: "temperature", value: 1 }
});
console.log(result);
Send a message to Amazon SQS