Sha256: fc221bf5ea135ba5b8f18b5462c2d83673287f622e4c75bd54d27d0263321440
Contents?: true
Size: 910 Bytes
Versions: 166
Compression:
Stored size: 910 Bytes
Contents
# frozen_string_literal: true require_relative '../../query' module Aws module Plugins module Protocols class EC2 < Seahorse::Client::Plugin class Handler < Aws::Query::Handler def apply_params(param_list, params, rules) Aws::Query::EC2ParamBuilder.new(param_list).apply(rules, params) end 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 end handler(Handler) handler(Xml::ErrorHandler, step: :sign) end end end end
Version data entries
166 entries across 166 versions & 1 rubygems