Class: AmazonMQBrokerUserPasswordRule
- Defined in:
- lib/cfn-nag/custom_rules/AmazonMQBrokerUserPasswordRule.rb
Instance Method Summary collapse
Methods inherited from BaseRule
Instance Method Details
#audit_impl(cfn_model) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/cfn-nag/custom_rules/AmazonMQBrokerUserPasswordRule.rb', line 22 def audit_impl(cfn_model) brokers = cfn_model.resources_by_type('AWS::AmazonMQ::Broker') violating_brokers = brokers.select do |mq_broker| violating_users?(cfn_model, mq_broker) end violating_brokers.map(&:logical_resource_id) end |
#rule_id ⇒ Object
18 19 20 |
# File 'lib/cfn-nag/custom_rules/AmazonMQBrokerUserPasswordRule.rb', line 18 def rule_id 'F52' end |
#rule_text ⇒ Object
9 10 11 12 |
# File 'lib/cfn-nag/custom_rules/AmazonMQBrokerUserPasswordRule.rb', line 9 def rule_text 'Amazon MQ Broker resource Users property should exist and its Password property value ' \ 'should not show password in plain text, resolve an unsecure ssm string, or have a default value for parameter.' end |
#rule_type ⇒ Object
14 15 16 |
# File 'lib/cfn-nag/custom_rules/AmazonMQBrokerUserPasswordRule.rb', line 14 def rule_type Violation::FAILING_VIOLATION end |