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.100.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.99.2 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.99.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.99.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.98.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.97.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.97.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.96.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.96.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.95.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.94.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.94.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.93.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.92.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.91.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.91.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.90.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.90.0 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.89.1 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-3.89.0 lib/aws-sdk-core/plugins/param_converter.rb