Class: CfnNagConfig
Instance Attribute Summary collapse
-
#blacklist_definition ⇒ Object
readonly
Returns the value of attribute blacklist_definition.
-
#custom_rule_loader ⇒ Object
readonly
Returns the value of attribute custom_rule_loader.
-
#fail_on_warnings ⇒ Object
readonly
Returns the value of attribute fail_on_warnings.
-
#ignore_fatal ⇒ Object
readonly
Returns the value of attribute ignore_fatal.
-
#profile_definition ⇒ Object
readonly
Returns the value of attribute profile_definition.
-
#rule_arguments ⇒ Object
readonly
rubocop:enable Metrics/ParameterLists.
-
#rule_directory ⇒ Object
readonly
Returns the value of attribute rule_directory.
-
#rule_repositories ⇒ Object
readonly
Returns the value of attribute rule_repositories.
Instance Method Summary collapse
-
#initialize(profile_definition: nil, blacklist_definition: nil, rule_directory: nil, allow_suppression: true, print_suppression: false, isolate_custom_rule_exceptions: false, fail_on_warnings: false, ignore_fatal: false, rule_repository_definitions: [], rule_arguments: {}) ⇒ CfnNagConfig
constructor
rubocop:disable Metrics/ParameterLists.
Constructor Details
#initialize(profile_definition: nil, blacklist_definition: nil, rule_directory: nil, allow_suppression: true, print_suppression: false, isolate_custom_rule_exceptions: false, fail_on_warnings: false, ignore_fatal: false, rule_repository_definitions: [], rule_arguments: {}) ⇒ CfnNagConfig
rubocop:disable Metrics/ParameterLists
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 5 def initialize(profile_definition: nil, blacklist_definition: nil, rule_directory: nil, allow_suppression: true, print_suppression: false, isolate_custom_rule_exceptions: false, fail_on_warnings: false, ignore_fatal: false, rule_repository_definitions: [], rule_arguments: {}) @rule_directory = rule_directory @custom_rule_loader = CustomRuleLoader.new( rule_directory: rule_directory, allow_suppression: allow_suppression, print_suppression: print_suppression, isolate_custom_rule_exceptions: isolate_custom_rule_exceptions, rule_repository_definitions: rule_repository_definitions ) @profile_definition = profile_definition @blacklist_definition = blacklist_definition @fail_on_warnings = fail_on_warnings @rule_repositories = rule_repositories @rule_arguments = rule_arguments @ignore_fatal = ignore_fatal end |
Instance Attribute Details
#blacklist_definition ⇒ Object (readonly)
Returns the value of attribute blacklist_definition.
36 37 38 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 36 def blacklist_definition @blacklist_definition end |
#custom_rule_loader ⇒ Object (readonly)
Returns the value of attribute custom_rule_loader.
34 35 36 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 34 def custom_rule_loader @custom_rule_loader end |
#fail_on_warnings ⇒ Object (readonly)
Returns the value of attribute fail_on_warnings.
37 38 39 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 37 def fail_on_warnings @fail_on_warnings end |
#ignore_fatal ⇒ Object (readonly)
Returns the value of attribute ignore_fatal.
39 40 41 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 39 def ignore_fatal @ignore_fatal end |
#profile_definition ⇒ Object (readonly)
Returns the value of attribute profile_definition.
35 36 37 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 35 def profile_definition @profile_definition end |
#rule_arguments ⇒ Object (readonly)
rubocop:enable Metrics/ParameterLists
32 33 34 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 32 def rule_arguments @rule_arguments end |
#rule_directory ⇒ Object (readonly)
Returns the value of attribute rule_directory.
33 34 35 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 33 def rule_directory @rule_directory end |
#rule_repositories ⇒ Object (readonly)
Returns the value of attribute rule_repositories.
38 39 40 |
# File 'lib/cfn-nag/cfn_nag_config.rb', line 38 def rule_repositories @rule_repositories end |