class Awspec::Type::ManagedPrefixList

Public Instance Methods

entries() click to toggle source
# File lib/awspec/type/managed_prefix_list.rb, line 16
def entries
  @entries ||= select_managed_prefix_list_entries(id)
end
entries_count() click to toggle source
# File lib/awspec/type/managed_prefix_list.rb, line 30
def entries_count
  entries.length
end
has_cidr?(cidr, description = nil) click to toggle source
# File lib/awspec/type/managed_prefix_list.rb, line 20
def has_cidr?(cidr, description = nil)
  entries.find do |entry|
    if description.nil?
      entry.cidr == cidr
    else
      entry.cidr == cidr && entry.description == description
    end
  end
end
id() click to toggle source
# File lib/awspec/type/managed_prefix_list.rb, line 12
def id
  @id ||= resource_via_client.prefix_list_id if resource_via_client
end
resource_via_client() click to toggle source
# File lib/awspec/type/managed_prefix_list.rb, line 8
def resource_via_client
  @resource_via_client ||= find_managed_prefix_list(@display_name)
end