class Aws::Plugins::Protocols::EC2::Handler
Public Instance Methods
apply_params(param_list, params, rules)
click to toggle source
# File lib/aws-sdk-core/plugins/protocols/ec2.rb, line 12 def apply_params(param_list, params, rules) Aws::Query::EC2ParamBuilder.new(param_list).apply(rules, params) end
parse_xml(context)
click to toggle source
# File lib/aws-sdk-core/plugins/protocols/ec2.rb, line 16 def parse_xml(context) if rules = context.operation.output parser = Xml::Parser.new(rules) data = parser.parse(xml(context)) do |path, value| if path.size == 2 && path.last == 'requestId' context.metadata[:request_id] = value end end data else EmptyStructure.new end end