Sha256: 5a7d751fc6a7c50ae8cdc33c3eb9015b001cee6e31a5fa23a942c5e0fab666e1

Contents?: true

Size: 805 Bytes

Versions: 163

Compression:

Stored size: 805 Bytes

Contents

module Aws
  module Plugins
    # @api private
    class ParamConverter < Seahorse::Client::Plugin

      option(:convert_params,
         default: true,
         doc_type: 'Boolean',
         docstring: <<-DOCS
When `true`, an attempt is made to coerce request parameters into
the required types.
         DOCS
      )

      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

163 entries across 163 versions & 1 rubygems

Version Path
aws-sdk-core-3.88.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.87.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.86.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.85.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.85.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.84.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.83.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.82.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.81.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.80.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.79.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.78.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.77.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.76.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.75.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.74.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.73.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.72.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.72.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.71.0 lib/aws-sdk-core/plugins/param_converter.rb