toRetentionDays
toRetentionDays(
days):RetentionDays
Defined in: packages/constructs/src/lambda/factory.ts:69
Map an integer number of days to the nearest CDK RetentionDays enum value. CDK only supports specific values — we round up to the next supported value. 0 = INFINITE (never expire — not recommended in prod).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”RetentionDays
© 2026 Axis Tech. Powered by axis-tech.co.