Sha256: 970844d006aa94c5d76de09d9e091d19804376372f21b50d8dc96ce2091895ee

Contents?: true

Size: 564 Bytes

Versions: 104

Compression:

Stored size: 564 Bytes

Contents

# Implements:
#
#   compose
#   template_path
#
class Jets::Cfn::Builders
  class RuleBuilder < BaseChildBuilder
    def compose
      add_common_parameters
      add_functions
      add_resources
      add_managed_rules
    end

    # Handle config_rules associated with aws managed rules.
    # List of AWS Config Managed Rules: https://amzn.to/2BOt9KN
    def add_managed_rules
      @app_class.managed_rules.each do |rule|
        resource = Jets::Resource.new(rule[:definition], rule[:replacements])
        add_resource(resource)
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 2 rubygems

Version Path
jets-1.9.7 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.6 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.5 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.4 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.3 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.2 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.1 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.0 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.14 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.13 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.12 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.11 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.10 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.9 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.8 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.7 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.6 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.5 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.4 lib/jets/cfn/builders/rule_builder.rb
jets-1.8.3 lib/jets/cfn/builders/rule_builder.rb