def resource_policy_event_callback(self, resource_policy_event, *args, **kwargs):
        log.debug('Resource policy event received: %s', str(resource_policy_event.__dict__))

        policy_id = resource_policy_event.origin
        resource_id = resource_policy_event.resource_id
        delete_policy = True if resource_policy_event.sub_type == 'DeletePolicy' else False

        self.update_resource_access_policy(resource_id, delete_policy)
The ResourcePolicyEvent handler
dataset/ETHPy150Open ooici/pyon/pyon/core/governance/governance_controller.py/GovernanceController.resource_policy_event_callback