Is there a way to use data bag item value in an attribute directly

I am calling data bag item value in a recipe but is there a way to use directly the data bag item value in an attribute