module AWS::Core::OptionGrammar::ModuleMethods

def to_h(options)

in to_json).
Returns the options as a hash (which is used to generate JSON
def to_h(options)
  validate(options)
  options.inject({}) do |hash, (name, value)|
    option = self.option(name.to_s)
    hash[option.name] = option.hash_format(value)
    hash
  end
end