lambda function in yaml