Creating a policy for the Lambda function