Reference Lambda function role

I would like to reference the ARN of the role that is automatically generated for a function according to its iamRoleStatements. The reason I want to do this is so that I can add it to an ElasticSearch AccessPolicy. I know that I can define the role as a separate resource and reference it in both places but I would prefer not to do it. Is there any way I can achieve what I want?