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-3.1.2 lib/jets/cfn/builders/rule_builder.rb
jets-3.1.1 lib/jets/cfn/builders/rule_builder.rb
jets-3.1.0 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.23 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.22 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.21 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.20 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.19 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.18 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.17 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.16 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.15 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.14 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.13 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.12 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.11 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.10 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.9 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.8 lib/jets/cfn/builders/rule_builder.rb
jets-3.0.7 lib/jets/cfn/builders/rule_builder.rb