Closed as not planned
Description
Use case
Executing jmespath on every request just to select part of the payload seems like overkill. It would be easier to express this selector with a simple function instead and would avoid the overhead of jmespath
Solution/User Experience
Allow passing a function to select the idempotency key instead of using jmespath
The example from the docs could be easily expressed as
const config = new IdempotencyConfig({
eventKeyFn: payload => payload?.headers?.['X-Idempotency-Key'],
});
Ideally make jmespath an optional dependency too.
Alternative solutions
No response
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed