@perform/lambda-powertools-lambda-client

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

Moved to @dazn/lambda-powertools-lambda-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-lambda-client 
SYNC missed versions from official npm registry.

lambda-powertools-lambda-client

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

Main features:

  • auto-injects correlation IDs into the invocation payload when you call invoke or invokeAsync

  • direct replacement for AWS.Lambda client

Getting Started

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

API

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

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

const invoke = async () => {
  const invokeReq = {
    FunctionName: 'my-function',
    InvocationType: 'Event',
    Payload: JSON.stringify({ message: 'hello lambda' })
  }

  await Lambda.invoke(invokeReq).promise()

  const invokeAsyncReq = {
    FunctionName: 'my-function',
    InvokeArgs: JSON.stringify({ message: 'hello lambda' })
  }

  await Lambda.invokeAsync(invokeAsyncReq).promise()
}

Current Tags

  • 1.8.0                                ...           latest (a year ago)

22 Versions

  • 1.8.0 [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.1 [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
  • 0.6.4 [deprecated]           ...           2 years ago
  • 0.6.3 [deprecated]           ...           2 years ago
  • 0.6.2 [deprecated]           ...           2 years ago
  • 0.6.0 [deprecated]           ...           2 years ago
  • 0.5.0 [deprecated]           ...           2 years ago
  • 0.4.0 [deprecated]           ...           2 years ago
  • 0.3.0 [deprecated]           ...           2 years ago
Maintainers (325)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |