Sha256: e0dd280c67a664c233374e227488f3e4bb18939302678f95d00e8722312764bb

Contents?: true

Size: 698 Bytes

Versions: 32

Compression:

Stored size: 698 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)
          if input = context.operation.input
            context.params = Aws::ParamConverter.convert(input, context.params)
          end
          @handler.call(context)
        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
aws-sdk-core-2.1.32 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.31 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.30 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.29 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.28 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.27 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.26 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.25 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.24 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.23 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.22 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.21 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.20 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.19 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.18 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.17 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.16 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.15 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.14 lib/aws-sdk-core/plugins/param_converter.rb
aws-sdk-core-2.1.13 lib/aws-sdk-core/plugins/param_converter.rb