NeoAgi / NeoAgi.AWS.CodeArtifact.Pruner

Helper Utility to Mange an Amazon CodeArtifact Domain
https://gallery.ecr.aws/x7q2k3a7/neoagi.aws.codeartifact.pruner
Apache License 2.0
0 stars 0 forks source link

Expose Runtime Policy Evaluation Feature #9

Closed Habikki closed 9 months ago

Habikki commented 2 years ago

Presently the Policy is hard coded to provide two policy assertions:

manager.Policies.Add(new PersistVersionCount("NeoAgi*", int.MaxValue));
manager.Policies.Add(new PersistVersionCount("*", 3));

Which keeps all package versions prefixed with NeoAgi and limits all others to 3 versions.

This issue would expose a --policy argument to receive a custom policy to modify this.