Class | AWS::Core::Options::Validator |
In: |
lib/aws/core/options/validator.rb
|
Parent: | Object |
Given a hash of validation rules, a validator validate request options. Validations support:
* rejecting unknown options * ensuring presence of required options * validating expected option types (e.g. hash, array, string, integer, etc).
After validating, a hash of request options is returned with with normalized values (with converted types).
rules | [R] | @return [Hash] |
@overload validate!(request_options)
@param [Hash] request_options The hash of options to validate. @raise [ArgumentError] Raised when the options do not validate. @return [Hash]