Skip to content

Feature request: provide custom functions for JMESPath expressions #1298

Closed
@saragerion

Description

@saragerion

Use case

When making their functions idempotent, users can apply JMESPath selectors that will be used to filter the event payload and/or perform validations.

In Powertools for Python, the Idempotency utility features some helper functions that allow to extend the JMESPath spec and apply transformations to the result of a selection:

image

The functions are defined here and used in the search here. Powertools for Python also exposes a number of common payload expressions which require the functions and are related to AWS Lambda events.

Solution/User Experience

N/A

Alternative solutions

No response

Acknowledgment

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityjmespathThis item relates to the JMESPath Utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions