Sha256: 01b0e28f973c26efef6633adca7b0748d987798805a79b3b95f1c91b997f863e
Contents?: true
Size: 666 Bytes
Versions: 26
Compression:
Stored size: 666 Bytes
Contents
module Awspec::Type class WafWebAcl < Base def resource_via_client @resource_via_client ||= find_waf_web_acl(@display_name) end def id @id ||= resource_via_client.web_acl_id if resource_via_client end def default_action resource_via_client.default_action.type end def has_rule?(rule_id, priority = nil, action = nil) resource_via_client.rules.find do |rule| next false if !priority.nil? && rule.priority != priority next false if !action.nil? && rule.action.type != action next true if rule.rule_id == rule_id find_waf_rule(rule_id).name == rule_id end end end end
Version data entries
26 entries across 26 versions & 1 rubygems