class Awspec::Type::Sqs
Public Instance Methods
id()
click to toggle source
# File lib/awspec/type/sqs.rb, line 18 def id @id ||= find_queue(@display_name) end
method_missing(name)
click to toggle source
Calls superclass method
Awspec::Type::Base#method_missing
# File lib/awspec/type/sqs.rb, line 22 def method_missing(name) param_name = name.to_s if resource_via_client.include?(param_name) resource_via_client[param_name] else super end end
resource_via_client()
click to toggle source
# File lib/awspec/type/sqs.rb, line 3 def resource_via_client return @resource_via_client if @resource_via_client queue_url = id attributes = {} res = sqs_client.get_queue_attributes({ queue_url: queue_url, attribute_names: ['All'] }) res.attributes.each do |key, value| attributes[key.underscore] = value end attributes['queue_url'] = queue_url @resource_via_client ||= attributes end