Class: OpsWorksStackCustomCookbooksSourcePasswordRule

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

Instance Method Summary collapse

Methods inherited from PasswordBaseRule

#audit_impl

Methods inherited from BaseRule

#audit, #audit_impl

Instance Method Details

#password_propertyObject



24
25
26
# File 'lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb', line 24

def password_property
  :customCookbooksSource
end

#resource_typeObject



20
21
22
# File 'lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb', line 20

def resource_type
  'AWS::OpsWorks::Stack'
end

#rule_idObject



16
17
18
# File 'lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb', line 16

def rule_id
  'F62'
end

#rule_textObject



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

def rule_text
  'OpsWorks Stack CustomCookbooksSource Password must not be a plaintext ' \
  'string or a Ref to a NoEcho Parameter with a Default value.' \
end

#rule_typeObject



12
13
14
# File 'lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb', line 12

def rule_type
  Violation::FAILING_VIOLATION
end

#sub_property_nameObject



28
29
30
# File 'lib/cfn-nag/custom_rules/OpsWorksStackCustomCookbooksSourcePasswordRule.rb', line 28

def sub_property_name
  'Password'
end