aws ecr get-repository-policy
Retrieves the repository policy for the specified repository. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--registry-idThe Amazon Web Services account ID associated with the registry that contains the repository.--repository-nameThe name of the repository with the policy to retrieve.