CmdID / aws / aws ecr-public
aws ecr-public set-repository-policy
Applies a repository policy to the specified public repository to control access permissions. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--forceIf the policy that you want to set on a repository policy would prevent you from setting another policy in the future, you must force the SetRepositoryPolicy operation.--policy-textThe JSON repository policy text to apply to the repository.--registry-idThe Amazon Web Services account ID that's associated with the registry that contains the repository.--repository-nameThe name of the repository to receive the policy.