Sha256: dffaaa6177756e890251338b00ae5d0e8d9bad6d7f69142f0247507dcbaa5c0d

Contents?: true

Size: 565 Bytes

Versions: 113

Compression:

Stored size: 565 Bytes

Contents

# Implements:
#
#   compose
#   template_path
#
module 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

113 entries across 113 versions & 3 rubygems

Version Path
jets-2.3.6 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.5 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.4 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.3 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.2 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.1 lib/jets/cfn/builders/rule_builder.rb
jets-2.3.0 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.5 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.4 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.3 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.2 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.1 lib/jets/cfn/builders/rule_builder.rb
jets-2.2.0 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.7 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.6 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.5 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.4 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.3 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.2 lib/jets/cfn/builders/rule_builder.rb
jets_bb_fork-0.0.4 lib/jets/cfn/builders/rule_builder.rb