Cloudformation has this feature where you can set a TTL which triggers a command that deletes the stack: https://aws.amazon.com/blogs/devops/scheduling-automatic-deletion-of-application-environments/
Is there a way to do something similar with AWS lambda SAM template? I want some dev lambdas to be automatically deleted after an expiration period I set.