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.1.17 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.16 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.15 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.14 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.13 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.12 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.11 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.10 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.9 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.8 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.7 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.5 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.4 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.3 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.2 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.1 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.1.0 lib/aws-sdk-core/plugins/param_validator.rb