New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dazn/lambda-powertools-eventbridge-client

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dazn/lambda-powertools-eventbridge-client

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

  • 1.28.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by17.02%
Maintainers
6
Weekly downloads
 
Created
Source

lambda-powertools-eventbridge-client

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

Main features:

  • auto-injects correlation IDs into the EventBridge events when you call putEvents

  • direct replacement for AWS.EventBridge client

Getting Started

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

API

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

const EventBridge = require('@dazn/lambda-powertools-eventbridge-client')

const publishEvents = async () => {
  const putEventsReq = {
    Entries: [
      {
        Source: "my-source",
        "Detail-Type": "my-type",
        Detail: JSON.stringify({ message: 'hello eventbridge' })
      },
      {
        Source: "my-source",
        "Detail-Type": "my-type",
        Detail: JSON.stringify({ message: 'hello lambda-powertools' })
      }
    ]
  }

  await EventBridge.putEvents(putEventsReq).promise()
}

FAQs

Package last updated on 10 Dec 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