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