npm

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

1.28.1 • Public • Published

lambda-powertools-step-functions-client

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

Main features:

  • auto-injects correlation IDs into the invocation payload when you call startExecution

  • direct replacement for AWS.StepFunctions client

Getting Started

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

API

It's exactly the same as the Step Functions (SFN) client from the AWS SDK.

const SFN = require('@dazn/lambda-powertools-step-functions-client')

const publishMessage = async () => {
  const req = {
    stateMachineArn: 'my-state-machine',
    input: JSON.stringify({ message: 'hello sfn' }),
    name: 'test'
  }

  await SFN.startExecution(req).promise()
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dazn/lambda-powertools-step-functions-client

Weekly Downloads

105

Version

1.28.1

License

MIT

Unpacked Size

14.1 kB

Total Files

7

Last publish

Collaborators

  • gideonparanoid
  • davidrv87
  • gabriela_nowicka
  • dazn.builder.frontend
  • automation-drone
  • m.bazalik
  • dazn.oss.lambda.powertools