AWS Serverless Application Model (SAM) -- Is there a versionFunctions equivalent?

I'm using AWS Lambda and it often exceeds the code storage limit because there are too many old version. I want to prevent Lambda to generate a new version for each deployment.

I found in serverless framework, you can achieve this by set the versionFunctions to false in serverless.yml. However, I found my application use SAM. Is there an equivalent or other way to do this in SAM?