@perform/lambda-powertools-sqs-client

SQS client wrapper that knows how to forward correlation IDs (captured via @perform/lambda-powertools-correlation-ids)

Moved to @dazn/lambda-powertools-sqs-client - please migrate to the new package by Tuesday 20th August 2019 as this package will be made private.
Last updated a year ago by automation-drone .
MIT · Original npm · Tarball · package.json
$ cnpm install @perform/lambda-powertools-sqs-client 
SYNC missed versions from official npm registry.

lambda-powertools-sqs-client

SQS client wrapper that knows how to forward correlation IDs (captured via @perform/lambda-powertools-correlation-ids).

Main features:

  • direct replacement for AWS.SQS client
  • auto-injects correlation IDs into SQS message when you call sendMessage or sendMessageBatch
  • allow correlation IDs to be overriden with sendMessageWithCorrelationIds and sendMessageBatchWithCorrelationIds (useful when processing batch-based event sources such as SQS and Kinesis, where every record has its own set of correlation IDs)

Getting Started

Install from NPM: npm install @perform/lambda-powertools-sqs-client

API

It's exactly the same as the SQS client from the AWS SDK.

const SQS = require('@perform/lambda-powertools-sqs-client')

const sendMessage = async () => {
  const req = {
    MessageBody: JSON.stringify({ message: 'hello sqs' }),
    QueueUrl: 'my-sqs-queue'
  }

  await SQS.sendMessage(req).promise()
}

Current Tags

  • 1.8.0                                ...           latest (a year ago)

15 Versions

  • 1.8.0 [deprecated]           ...           a year ago
  • 1.5.1 [deprecated]           ...           a year ago
  • 1.5.0 [deprecated]           ...           a year ago
  • 1.3.0 [deprecated]           ...           a year ago
  • 1.1.7 [deprecated]           ...           2 years ago
  • 1.0.0 [deprecated]           ...           2 years ago
  • 0.10.5 [deprecated]           ...           2 years ago
  • 0.10.4 [deprecated]           ...           2 years ago
  • 0.10.3 [deprecated]           ...           2 years ago
  • 0.10.2 [deprecated]           ...           2 years ago
  • 0.10.1 [deprecated]           ...           2 years ago
  • 0.10.0 [deprecated]           ...           2 years ago
  • 0.9.0 [deprecated]           ...           2 years ago
  • 0.8.0 [deprecated]           ...           2 years ago
  • 0.7.0 [deprecated]           ...           2 years ago
Maintainers (325)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |