Skip to content

Feature request: Custom Config - Payload validation #1296

Closed
@saragerion

Description

@saragerion

Use case

When making their functions idempotent, customers should be able to enable payload validation. This validation is performed any time a record is retrieved from the persistence layer and it compares the hash of the data passed during call and the record previously stored.

Payload validation supports JMESPath selectors and is enabled whenever validationKeyJmesPath is passed to IdempotencyConfig during initialization.

Solution/User Experience

import { IdempotencyConfig } from '@aws-lambda-powertools/idempotency';

const config = new IdempotencyConfig({
  validationKeyJmesPath: 'foo', // This will select the `foo` field in the data
});

References:

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 utilityidempotencyThis item relates to the Idempotency Utility

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions