Sha256: 1ee826399af53168675bc951fd051f37f4c326287534e6ff1b62dc1aeded6a83

Contents?: true

Size: 768 Bytes

Versions: 965

Compression:

Stored size: 768 Bytes

Contents

module Aws
  module Plugins

    # @seahorse.client.option [Boolean] :convert_params (true)
    #   When `true`, an attempt is made to coerce request parameters
    #   into the required types.
    class ParamConverter < Seahorse::Client::Plugin

      option(:convert_params, true)

      def add_handlers(handlers, config)
        handlers.add(Handler, step: :initialize) if config.convert_params
      end

      class Handler < Seahorse::Client::Handler

        def call(context)
          converter = Aws::ParamConverter.new(context.operation.input)
          context.params = converter.convert(context.params)
          @handler.call(context).on_complete do |resp|
            converter.close_opened_files
          end
        end

      end
    end
  end
end

Version data entries

965 entries across 965 versions & 2 rubygems

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