Sha256: 934ece977bd10cd99e3700d138110acbcd62fb8d2de79d3da41b6253d7ad240f
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
module Awspec::Type class WafWebAcl < Base def initialize(id) super @resource_via_client = find_waf_web_acl(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
awspec-0.55.0 | lib/awspec/type/waf_web_acl.rb |