Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-sqs-push

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sqs-push

Push messages to an AWS (FIFO) SQS queue

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
160
decreased by-2.44%
Maintainers
1
Weekly downloads
 
Created
Source

aws-sqs-push Build Status

Push messages to an AWS SQS (FIFO) queue

Small wrapper around the getQueueUrl and sendMessage from the AWS SQS SDK. This will automatically retrieve the queue url when sending a message. This is useful when you only have the queue name.

Requirements

  • Node >= 8.

Install

$ npm install --save aws-sqs-push

Usage

const sqsPush = require('aws-sqs-push');

const request = {
	MessageBody: JSON.stringify({message: 'foo'});
	DelaySeconds: 10
}

sqsPush('QueueName', request, '123456789101').then(sendMessageResponse => {
    // ...
});

const fifoRequest = {
	messageDeduplicationId: '12312333331323'
	messageGroupId: '8875gyukjdsioop90123',
	MessageBody: JSON.stringify({message: 'FIFO'});
}

sqsPush('QueueName.fifo', fifoRequest).then(sendMessageResponse => {
	// ...
});

API

sqsPush(queueName, request, [awsAccountId])

Result is the response of the AWS SQS sendMessage API

queueName

Required: true Type: string

Name of the queue you want to push a message to. This can be a cross account queue but permissions must be granted to able to push on that queue.

request

Required: true Type: object

Request properties are defined in the documentation of the sendMessage method of the AWS SDK

awsAccountId

Required: false Type: string

AWS account id of the owner of the queue. This optional parameter allows to push on cross account queue.

License

MIT © Simon Jang

Keywords

FAQs

Package last updated on 04 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc