Uses of Class
software.amazon.lambda.powertools.idempotency.IdempotencyConfig.Builder
Packages that use IdempotencyConfig.Builder
-
Uses of IdempotencyConfig.Builder in software.amazon.lambda.powertools.idempotency
Methods in software.amazon.lambda.powertools.idempotency that return IdempotencyConfig.BuilderModifier and TypeMethodDescriptionstatic IdempotencyConfig.BuilderIdempotencyConfig.builder()Create a builder that can be used to configure and create aIdempotencyConfig.IdempotencyConfig.Builder.withEventKeyJMESPath(String eventKeyJMESPath) A JMESPath expression to extract the idempotency key from the event record.IdempotencyConfig.Builder.withExpiration(Duration expiration) The number of seconds to wait before a record is expiredIdempotencyConfig.Builder.withHashFunction(String hashFunction) Function to use for calculating hashes, by default MD5.IdempotencyConfig.Builder.withLocalCacheMaxItems(int localCacheMaxItems) Set the maximum number of items to store in local cache, by default 256IdempotencyConfig.Builder.withPayloadValidationJMESPath(String payloadValidationJMESPath) A JMESPath expression to extract the payload to be validated from the event record.IdempotencyConfig.Builder.withResponseHook(BiFunction<Object, DataRecord, Object> responseHook) Response hook that will be called for each idempotent response.IdempotencyConfig.Builder.withThrowOnNoIdempotencyKey()Throw an exception if no idempotency key was found in the request.IdempotencyConfig.Builder.withThrowOnNoIdempotencyKey(boolean throwOnNoIdempotencyKey) Whether to throw an exception if no idempotency key was found in the request, by default falseIdempotencyConfig.Builder.withUseLocalCache(boolean useLocalCache) Whether to locally cache idempotency results, by default false