Closed
Description
Use case
I'd like to have a method that will return the current value of the coldStart
field of the Utility
class without changing the value. Right now both isColdStart
and getColdStart
changes the value when called. As mentioned in #3278 we can't access the flag without changing it.
Solution/User Experience
I propose to change isColdStart
to return the coldStart
value without changing it which would also reflect its meaning.
Alternative solutions
Change `coldstart` field to protected.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Shipped