class AWS::Core::Resource::AttributeProvider

def attributes_from_response_object resp_obj

def attributes_from_response_object resp_obj
  
  @provides.inject({}) do |attributes,(attr_name,options)|
    attr = @klass.attributes[attr_name]
    methods = [options[:get_as] || attr.get_as].flatten
    v = resp_obj
    methods.each do |method|
      v = v.key?(method) ? v[method] : v[method.to_s]
      break if v.nil?
    end
    v = v[:value] if v and options[:value_wrapped]
    v = attr.translate_output_value(v)
    attributes.merge(attr_name => v)
  end
end