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