class AWS::Record::Errors

def to_hash

is only one error message for the attribute.
Please note that the hash values are always arrays, even if there

#=> { 'name' => ['may not be blank'] }
errors.to_hash
errors.add(:name, 'may not be blank')

and values are arrays of error messages.
Returns a hash of of errors messages. Keys are attribute names
def to_hash
  hash = {}
  each do |attr_name, message|
    hash[attr_name] ||= []
    hash[attr_name] << message.dup
  end
  hash
end