Serverless-aws-resource-names - Unexpected “name” function configuration

I have followed the steps mentioned in Serverless Framework: Plugins to create custom resource names. When i package, getting below error,

“Unexpected “name” function configuration: Expected object received ‘serverless-training-local-lambdaName’)”