class CfnNagConfig

Attributes

blacklist_definition[R]

rubocop:enable Metrics/ParameterLists

custom_rule_loader[R]

rubocop:enable Metrics/ParameterLists

fail_on_warnings[R]

rubocop:enable Metrics/ParameterLists

ignore_fatal[R]

rubocop:enable Metrics/ParameterLists

profile_definition[R]

rubocop:enable Metrics/ParameterLists

rule_arguments[R]

rubocop:enable Metrics/ParameterLists

rule_directory[R]

rubocop:enable Metrics/ParameterLists

rule_repositories[R]

rubocop:enable Metrics/ParameterLists

Public Class Methods

new(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: {}) click to toggle source

rubocop:disable Metrics/ParameterLists

# 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