UNPKG

@aws-lambda-powertools/idempotency

Version:

The idempotency package for the Powertools for AWS Lambda (TypeScript) library. It provides options to make your Lambda functions idempotent and safe to retry.

22 lines 776 B
/** * Number of times to retry a request in case of `IdempotencyInconsistentStateError` * * Used in `IdempotencyHandler` and `makeHandlerIdempotent` * * @internal */ declare const MAX_RETRIES = 2; /** * Idempotency record status. * * A record is created when a request is received. The status is set to `INPROGRESS` and the request is processed. * After the request is processed, the status is set to `COMPLETED`. If the request is not processed within the * `inProgressExpiryTimestamp`, the status is set to `EXPIRED`. */ declare const IdempotencyRecordStatus: { readonly INPROGRESS: "INPROGRESS"; readonly COMPLETED: "COMPLETED"; readonly EXPIRED: "EXPIRED"; }; export { IdempotencyRecordStatus, MAX_RETRIES }; //# sourceMappingURL=constants.d.ts.map