ecr_get_registry_policy function

Retrieves the permissions policy for a registry