Class: JmesPathDiscovery
- Inherits:
-
Object
- Object
- JmesPathDiscovery
- Defined in:
- lib/cfn-nag/jmes_path_discovery.rb
Instance Method Summary collapse
- #failure(id:, jmespath:, message:) ⇒ Object
-
#initialize(rule_registry) ⇒ JmesPathDiscovery
constructor
A new instance of JmesPathDiscovery.
- #warning(id:, jmespath:, message:) ⇒ Object
Constructor Details
#initialize(rule_registry) ⇒ JmesPathDiscovery
Returns a new instance of JmesPathDiscovery.
2 3 4 |
# File 'lib/cfn-nag/jmes_path_discovery.rb', line 2 def initialize(rule_registry) @rule_registry = rule_registry end |
Instance Method Details
#failure(id:, jmespath:, message:) ⇒ Object
12 13 14 15 16 |
# File 'lib/cfn-nag/jmes_path_discovery.rb', line 12 def failure(id:, jmespath:, message:) @rule_registry.definition(id: id, type: Violation::FAILING_VIOLATION, message: ) end |