Skip to content

feat(notifications): support InputPath and InputTransformer on notification targets#698

Merged
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:feat-609-notification-input-path
Mar 26, 2026
Merged

feat(notifications): support InputPath and InputTransformer on notification targets#698
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:feat-609-notification-input-path

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

Summary

  • Adds inputPath and inputTransformer as optional fields on all notification targets
  • Both are passed through to the generated AWS::Events::Rule target as InputPath / InputTransformer
  • Schema updated to validate the new fields

Example

notifications:
  FAILED:
    - sns: !Ref MyTopic
      inputTransformer:
        inputPathsMap:
          status: '$.detail.status'
          name: '$.detail.name'
        inputTemplate: '"State machine <name> finished with status <status>"'
    - sqs: MY_QUEUE_ARN
      inputPath: '$.detail'

Test plan

  • npx mocha lib/deploy/stepFunctions/compileNotifications.test.js passes

Closes #609

🤖 Generated with Claude Code

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@698

commit: 214603f

@zirkelc
Copy link
Copy Markdown
Collaborator

zirkelc commented Mar 23, 2026

This probably needs to be added to the README?

…cation targets

Allows users to customise the event payload sent to notification targets
by specifying inputPath or inputTransformer alongside the target ARN.

Closes serverless-operations#609

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@VirtueMe VirtueMe force-pushed the feat-609-notification-input-path branch from 0186573 to 214603f Compare March 23, 2026 08:30
@VirtueMe
Copy link
Copy Markdown
Collaborator Author

VirtueMe commented Mar 23, 2026

Added the missing README section documenting inputPath and inputTransformer on notification targets, with a YAML example.

@zirkelc zirkelc merged commit 1c0b9bc into serverless-operations:master Mar 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow adding InputPath and InputTransformer for notification targets

2 participants