aws ecr get-lifecycle-policy
Retrieves the lifecycle 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.