class Awspec::Type::ManagedPrefixList
Public Instance Methods
Source
# File lib/awspec/type/managed_prefix_list.rb, line 16 def entries @entries ||= select_managed_prefix_list_entries(id) end
Source
# File lib/awspec/type/managed_prefix_list.rb, line 30 def entries_count entries.length end
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
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
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