Protected
_deleteProtected
_getProtected
_putProtected
_updateInitialize the base persistence layer from the configuration settings
configuration object for the persistence layer
Deletes a record from the persistence store for the persistence key generated from the data passed in.
the data payload that will be hashed to create the hash portion of the idempotency key
Retrieves idempotency key for the provided data and fetches data for that key from the persistence store
the data payload that will be hashed to create the hash portion of the idempotency key
Saves a record indicating that the function's execution is currently in progress
the data payload that will be hashed to create the hash portion of the idempotency key
Optional
remainingTimeInMillis: numberthe remaining time left in the lambda execution context
Generated using TypeDoc
DynamoDB persistence layer for idempotency records.
This class uses the AWS SDK for JavaScript v3 to write and read idempotency records from DynamoDB.
There are various options to configure the persistence layer, such as the table name, the key attribute, the status attribute, etc.
With default configuration you don't need to create the client beforehand, the persistence layer will create it for you. You can also bring your own AWS SDK V3 client, or configure the client with the
clientConfig
option.See the Idempotency documentation for more details on the IAM permissions and DynamoDB table configuration.
Example
See
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-dynamodb/index.html
Implements