Sha256: 949880dbaccdba5a4163c14d4c74b5a3aa3f1ea07ea32a66716a98943acbbe60

Contents?: true

Size: 698 Bytes

Versions: 36

Compression:

Stored size: 698 Bytes

Contents

module Awspec::Type
  class WafregionalWebAcl < ResourceBase
    def resource_via_client
      @resource_via_client ||= find_wafregional_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_wafregional_rule(rule_id).name == rule_id
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
cthiesfork-awspec-1.2.2 lib/awspec/type/wafregional_web_acl.rb
cthiesfork-awspec-1.2.1 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.5 lib/awspec/type/wafregional_web_acl.rb
cthiesfork-awspec-1.2.0 lib/awspec/type/wafregional_web_acl.rb
cthiesfork-awspec-1.1.0 lib/awspec/type/wafregional_web_acl.rb
cthiesfork-awspec-1.0.0 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.4 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.3 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.2 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.1 lib/awspec/type/wafregional_web_acl.rb
awspec-1.18.0 lib/awspec/type/wafregional_web_acl.rb
awspec-1.17.4 lib/awspec/type/wafregional_web_acl.rb
awspec-1.17.3 lib/awspec/type/wafregional_web_acl.rb
awspec-1.17.2 lib/awspec/type/wafregional_web_acl.rb
awspec-1.17.1 lib/awspec/type/wafregional_web_acl.rb
awspec-1.17.0 lib/awspec/type/wafregional_web_acl.rb