INNER CODE UNIT · Ruby

CfnNag

stelligent/cfn_nag · lib/cfn-nag/base_rule.rb:6

class CfnNag
  class BaseRule
    ##
    # Returns a collection of logical resource ids
    #
    def audit_impl(_cfn_model)
      raise 'must implement in subclass'
    end

    ##
    # Returns nil when there are no violations
    # Returns a Violation object otherwise
    #
    def audit(cfn_model)
      logical_resource_ids = audit_impl(cfn_model)
      return if logical_resource_ids.empty?

      violation(logical_resource_ids)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…