Class IdempotencyConfig

java.lang.Object
software.amazon.lambda.powertools.idempotency.IdempotencyConfig

public class IdempotencyConfig extends Object
Configuration of the idempotency feature. Use the IdempotencyConfig.Builder to create an instance.
  • Method Details

    • builder

      public static IdempotencyConfig.Builder builder()
      Create a builder that can be used to configure and create a IdempotencyConfig.
      Returns:
      a new instance of IdempotencyConfig.Builder
    • getLocalCacheMaxItems

      public int getLocalCacheMaxItems()
    • useLocalCache

      public boolean useLocalCache()
    • getExpirationInSeconds

      public long getExpirationInSeconds()
    • getEventKeyJMESPath

      public String getEventKeyJMESPath()
    • getPayloadValidationJMESPath

      public String getPayloadValidationJMESPath()
    • throwOnNoIdempotencyKey

      public boolean throwOnNoIdempotencyKey()
    • getHashFunction

      public String getHashFunction()
    • getLambdaContext

      public com.amazonaws.services.lambda.runtime.Context getLambdaContext()
    • setLambdaContext

      public void setLambdaContext(com.amazonaws.services.lambda.runtime.Context lambdaContext)
    • getResponseHook

      public BiFunction<Object,DataRecord,Object> getResponseHook()