@novo-x/aws-sqs
v1.0.8
Published
AWS SQS core
Downloads
4
Readme
AWS SQS Service
Available methods
- push: pushes message to the queue
Usage examples
yarn add @novo-x/aws-sqs
import {SQS} from "@novo-x/aws-sqs"
const MyService = new SQS({
apiVersion: 'latest',
region: 'eu-west-3',
endpoint: 'https://my-queue.com'
});
MyService.updateAwsConfig({
// ... AWS config
})
const msg = await MyService.push(
'some data', // body
{
"Some Atribute": {
DataType: "Some Type",
StringValue: 'someValue'
}
}, // message attributes
'https://my-queue.com' // queueUrl
);