While not supported as it, there are workarounds: https://github.com/awslabs/serverless-application-model/issues/228#issuecomment-356090271