You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**expiryAttr**||`expiration`|Unix timestamp of when record expires |
625
+
|**inProgressExpiryAttr**||`in_progress_expiration`|Unix timestamp of when record expires while in progress (in case of the invocation times out) |
626
+
|**statusAttr**||`status`|Stores status of the lambda execution during and after invocation |
627
+
|**dataAttr**||`data`|Stores results of successfully executed Lambda handlers |
628
+
|**validationKeyAttr**||`validation`|Hashed representation of the parts of the event used for validation |
629
629
630
630
=== "Customizing CachePersistenceLayer"
631
631
@@ -639,17 +639,17 @@ When using Cache as a persistence layer, you can alter the attribute names by pa
639
639
640
640
Idempotent decorator can be further configured with **`IdempotencyConfig`** as seen in the previous examples. These are the available options for further configuration
||**eventKeyJmespath**|`''`|JMESPath expression to extract the idempotency key from the event record using [built-in functions](./jmespath.md#built-in-jmespath-functions){target="_blank"} ||
645
-
||**payloadValidationJmespath**|`''`|JMESPath expression to validate that the specified fields haven't changed across requests for the same idempotency key _e.g., payload tampering._||
646
-
||**jmesPathOptions**|`undefined`|Custom JMESPath functions to use when parsing the JMESPath expressions. See [Custom JMESPath Functions](idempotency.md#custom-jmespath-functions)||
647
-
||**throwOnNoIdempotencyKey**|`false`|Throw an error if no idempotency key was found in the request ||
648
-
||**expiresAfterSeconds**|3600 |The number of seconds to wait before a record is expired, allowing a new transaction with the same idempotency key ||
649
-
||**useLocalCache**|`false`|Whether to cache idempotency results in-memory to save on persistence storage latency and costs ||
650
-
||**localCacheMaxItems**|256 |Max number of items to store in local cache ||
651
-
||**hashFunction**|`md5`|Function to use for calculating hashes, as provided by the [crypto](https://nodejs.org/api/crypto.html#cryptocreatehashalgorithm-options){target="_blank"} module in the standard library. ||
652
-
||**responseHook**|`undefined`|Function to use for processing the stored Idempotent response. This function hook is called when an existing idempotent response is found. See [Manipulating The Idempotent Response](idempotency.md#manipulating-the-idempotent-response)||
|**eventKeyJmespath**|`''`|JMESPath expression to extract the idempotency key from the event record using [built-in functions](./jmespath.md#built-in-jmespath-functions){target="_blank"} |
645
+
|**payloadValidationJmespath**|`''`|JMESPath expression to validate that the specified fields haven't changed across requests for the same idempotency key _e.g., payload tampering._|
646
+
|**jmesPathOptions**|`undefined`|Custom JMESPath functions to use when parsing the JMESPath expressions. See [Custom JMESPath Functions](idempotency.md#custom-jmespath-functions)|
647
+
|**throwOnNoIdempotencyKey**|`false`|Throw an error if no idempotency key was found in the request |
648
+
|**expiresAfterSeconds**|3600 |The number of seconds to wait before a record is expired, allowing a new transaction with the same idempotency key |
649
+
|**useLocalCache**|`false`|Whether to cache idempotency results in-memory to save on persistence storage latency and costs |
650
+
|**localCacheMaxItems**|256 |Max number of items to store in local cache |
651
+
|**hashFunction**|`md5`|Function to use for calculating hashes, as provided by the [crypto](https://nodejs.org/api/crypto.html#cryptocreatehashalgorithm-options){target="_blank"} module in the standard library. |
652
+
|**responseHook**|`undefined`|Function to use for processing the stored Idempotent response. This function hook is called when an existing idempotent response is found. See [Manipulating The Idempotent Response](idempotency.md#manipulating-the-idempotent-response)|
653
653
654
654
### Handling concurrent executions with the same payload
655
655
@@ -843,11 +843,11 @@ You can optionally set a static value for the partition key using the `staticPkV
843
843
844
844
The example function above would cause data to be stored in DynamoDB like this:
0 commit comments