Sha256: 0806c653da19bb7fa2cf334fd878ba8865e3aad0b5d659ca0a29502d32da0858

Contents?: true

Size: 666 Bytes

Versions: 997

Compression:

Stored size: 666 Bytes

Contents

module Aws
  module Plugins

    # @seahorse.client.option [Boolean] :validate_params (true)
    #   When `true`, request parameters are validated before
    #   sending the request.
    class ParamValidator < Seahorse::Client::Plugin

      option(:validate_params, true)

      def add_handlers(handlers, config)
        if config.validate_params
          handlers.add(Handler, step: :validate, priority: 50)
        end
      end

      class Handler < Seahorse::Client::Handler

        def call(context)
          Aws::ParamValidator.validate!(context.operation.input, context.params)
          @handler.call(context)
        end

      end

    end
  end
end

Version data entries

997 entries across 997 versions & 2 rubygems

Version Path
aws-sdk-core-2.11.632 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.631 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.630 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.629 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.628 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.627 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.626 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.625 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.624 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.623 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.622 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.621 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.620 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.619 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.618 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.617 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.616 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.615 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.614 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.613 lib/aws-sdk-core/plugins/param_validator.rb