Query: What is the role of resource policies of lambda functions ?
Source: serverless-core.pdf
Relevant passages:
resource policy: Defines which events are authorized to invoke the function.