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.1.1 lib/jets/cfn/builders/rule_builder.rb
jets-2.1.0 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.6 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.5 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.4 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.3 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.1 lib/jets/cfn/builders/rule_builder.rb
jets-2.0.0 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.32 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.31 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.30 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.29 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.28 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.27 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.26 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.25 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.24 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.23 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.22 lib/jets/cfn/builders/rule_builder.rb
jets-1.9.21 lib/jets/cfn/builders/rule_builder.rb