@buyerassist/dazn-lambda-powertools-eventbridge-client
TypeScript icon, indicating that this package has built-in type declarations

1.29.9 • Public • Published

lambda-powertools-eventbridge-client

EventBridge client wrapper that knows how to forward correlation IDs (captured via @buyerassist/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 @buyerassist/dazn-lambda-powertools-eventbridge-client

API

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

const EventBridge = require("@buyerassist/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();
};

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.29.917latest

Version History

VersionDownloads (Last 7 Days)Published
1.29.917
1.29.81
1.29.51
1.29.41
1.29.31
1.29.11
1.28.12

Package Sidebar

Install

npm i @buyerassist/dazn-lambda-powertools-eventbridge-client

Weekly Downloads

24

Version

1.29.9

License

MIT

Unpacked Size

12.3 kB

Total Files

7

Last publish

Collaborators

  • amitdugar