Class: Aws::Plugins::Protocols::EC2::Handler

Inherits:
Query::Handler show all
Defined in:
aws-sdk-core/lib/aws-sdk-core/plugins/protocols/ec2.rb

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#call, #initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#apply_params(param_list, params, rules) ⇒ Object


8
9
10
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/protocols/ec2.rb', line 8

def apply_params(param_list, params, rules)
  Aws::Query::EC2ParamBuilder.new(param_list).apply(rules, params)
end

#parse_xml(context) ⇒ Object


12
13
14
15
16
17
18
19
20
21
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/protocols/ec2.rb', line 12

def parse_xml(context)
  if rules = context.operation.output
    data = Xml::Parser.new(rules).parse(xml(context)) do |h|
      context.[:request_id] = h['requestId']
    end
    data
  else
    EmptyStructure.new
  end
end