@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Function isRetentionDays

    • Type guard for RetentionDays enum. Validates that the value is a valid CloudWatch Logs retention period.

      Parameters

      • logging: unknown

        Value to check

      Returns logging is RetentionDays | undefined

      true if the value is a valid RetentionDays or undefined

      Error if logging is a number but not a valid RetentionDays value