Class: Jets::Rule::AwsManagedRule

Inherits:
Task show all
Defined in:
lib/jets/rule/aws_managed_rule.rb

Instance Attribute Summary

Attributes inherited from Task

#config_rule

Attributes inherited from Lambda::Task

#class_name, #iam_policy, #lang, #managed_iam_policy, #meth, #properties, #type

Instance Method Summary collapse

Methods inherited from Task

#config_rule_name, #config_rule_properties, #conventional_config_rule_name, #initialize

Methods inherited from Lambda::Task

#build_function_iam?, #full_handler, #get_type, #handler_base, #handler_path, #initialize, #lang_ext, #name, #poly_src_path

Constructor Details

This class inherits a constructor from Jets::Rule::Task

Instance Method Details

#config_rule_defaultsObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/jets/rule/aws_managed_rule.rb', line 2

def config_rule_defaults
  source_identifier = meth.to_s.upcase
  {
    "ConfigRuleName" => config_rule_name,
    "Source" => {
      "Owner" => "AWS",
      "SourceIdentifier" => source_identifier
    }
  }
end