There are no straight up examples. Best to run a policy to capture resources of what you are looking for and build a filter based upon what you find in the resources.json file. Below is some sample code to get you started along your path. Try running the custodian policy with no filter defined, just the resource then look at the resources.json contents..
policies:
- name: purge-lambda-after-7-days
resource: lambda
filters:
- type: value
value: ec2
key: FunctionName
value_type: normalize
op: not_in
Example resources.json file;
[
{
"FunctionName": "EC2_Instance_Check",