serverless-step-functions
serverless-step-functions copied to clipboard
Add content filtering to event patterns
This is a (Feature Proposal)
Description
For feature proposals:
- What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
Add content filtering in the event patterns. This will help us to filter the events using more flexible patterns.
I would like to add filters to the event patterns of my step functions, maybe something like this: ...
stepFunctions:
validate: true
stateMachines:
mymachine:
type: EXPRESS
id: "${self:custom.state-machine-id}"
name: ${self:service}-${opt:stage}-state-machine
events:
- eventBridge:
eventBusName: !Ref EventBusName
event:
detail:
appName:
- "myappname"
eventName:
- prefix: "superevent"
orderId:
- numeric:
- ">"
- 0
- "<="
- 100
definition:
${file(resources/step-functions/definition.yaml)}
... You can take a look to the events definitions for lambda functions in the serverless documentation to get an idea about my proposal.
Additional Data
- Serverless Framework Core Version you're using: [email protected]
- The Plugin Version you're using:
- Operating System: linux
- Stack Trace:
- Provider Error messages: