Class: DirectoryServiceMicrosoftADPasswordRule

Inherits:
PasswordBaseRule show all
Defined in:
lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb

Overview

Rule class to fail on DirectoryService::MicrosoftAD password in template

Instance Method Summary collapse

Methods inherited from PasswordBaseRule

#audit_impl, #sub_property_name

Methods inherited from BaseRule

#audit, #audit_impl

Instance Method Details

#password_propertyObject



25
26
27
# File 'lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb', line 25

def password_property
  :password
end

#resource_typeObject



21
22
23
# File 'lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb', line 21

def resource_type
  'AWS::DirectoryService::MicrosoftAD'
end

#rule_idObject



17
18
19
# File 'lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb', line 17

def rule_id
  'F36'
end

#rule_textObject



8
9
10
11
# File 'lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb', line 8

def rule_text
  'Directory Service Microsoft AD password must not be a plaintext string ' \
  'or a Ref to a NoEcho Parameter with a Default value.'
end

#rule_typeObject



13
14
15
# File 'lib/cfn-nag/custom_rules/DirectoryServiceMicrosoftADPasswordRule.rb', line 13

def rule_type
  Violation::FAILING_VIOLATION
end