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.592 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.591 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.590 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.589 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.588 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.587 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.586 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.585 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.584 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.583 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.582 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.581 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.580 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.579 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.578 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.577 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.576 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.575 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.574 lib/aws-sdk-core/plugins/param_validator.rb
aws-sdk-core-2.11.573 lib/aws-sdk-core/plugins/param_validator.rb