| Package | Description |
|---|---|
| software.amazon.lambda.powertools.idempotency |
| Modifier and Type | Method and Description |
|---|---|
static IdempotencyConfig.Builder |
IdempotencyConfig.builder()
Create a builder that can be used to configure and create a
IdempotencyConfig. |
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withEventKeyJMESPath(java.lang.String eventKeyJMESPath)
A JMESPath expression to extract the idempotency key from the event record.
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withExpiration(java.time.Duration expiration)
The number of seconds to wait before a record is expired
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withHashFunction(java.lang.String hashFunction)
Function to use for calculating hashes, by default MD5.
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withLocalCacheMaxItems(int localCacheMaxItems)
Set the maximum number of items to store in local cache, by default 256
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withPayloadValidationJMESPath(java.lang.String payloadValidationJMESPath)
A JMESPath expression to extract the payload to be validated from the event record.
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withThrowOnNoIdempotencyKey()
Throw an exception if no idempotency key was found in the request.
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withThrowOnNoIdempotencyKey(boolean throwOnNoIdempotencyKey)
Whether to throw an exception if no idempotency key was found in the request, by default false
|
IdempotencyConfig.Builder |
IdempotencyConfig.Builder.withUseLocalCache(boolean useLocalCache)
Whether to locally cache idempotency results, by default false
|
Copyright © 2023. All rights reserved.