Sha256: 982275ac5e9ac75380d2d2e4f2c7982c8f48858675181c9b1b7dc55215d71fda

Contents?: true

Size: 848 Bytes

Versions: 950

Compression:

Stored size: 848 Bytes

Contents

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

950 entries across 950 versions & 2 rubygems

Version Path
aws-sdk-core-2.11.632 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.631 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.630 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.629 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.628 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.627 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.626 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.625 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.624 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.623 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.622 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.621 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.620 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.619 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.618 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.617 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.616 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.615 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.614 lib/aws-sdk-core/plugins/protocols/ec2.rb
aws-sdk-core-2.11.613 lib/aws-sdk-core/plugins/protocols/ec2.rb