aws-cloudformation / cloudformation-guard

Guard offers a policy-as-code domain-specific language (DSL) to write rules and validate JSON- and YAML-formatted data such as CloudFormation Templates, K8s configurations, and Terraform JSON plans/configurations against those rules. Take this survey to provide feedback about cfn-guard: https://amazonmr.au1.qualtrics.com/jfe/form/SV_bpyzpfoYGGuuUl0
Apache License 2.0
1.3k stars 180 forks source link

chore(guard): Refactor functions into enum / handle no args #551

Closed dannyvassallo closed 3 months ago

dannyvassallo commented 3 months ago

Issue #, if available: None

Description of changes:

Uses an enum instead of hardcoded strings for function names and allows for function invocation without arguments.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license