Class: UserMissingGroupRule
- Defined in:
- lib/cfn-nag/custom_rules/UserMissingGroupRule.rb
Instance Method Summary collapse
Methods inherited from BaseRule
Instance Method Details
#audit_impl(cfn_model) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/cfn-nag/custom_rules/UserMissingGroupRule.rb', line 19 def audit_impl(cfn_model) logical_resource_ids = [] cfn_model.iam_users.each do |iam_user| logical_resource_ids << iam_user.logical_resource_id if iam_user.group_names.empty? end logical_resource_ids end |
#rule_id ⇒ Object
15 16 17 |
# File 'lib/cfn-nag/custom_rules/UserMissingGroupRule.rb', line 15 def rule_id 'F2000' end |
#rule_text ⇒ Object
7 8 9 |
# File 'lib/cfn-nag/custom_rules/UserMissingGroupRule.rb', line 7 def rule_text 'User is not assigned to a group' end |
#rule_type ⇒ Object
11 12 13 |
# File 'lib/cfn-nag/custom_rules/UserMissingGroupRule.rb', line 11 def rule_type Violation::FAILING_VIOLATION end |