in lib/aws-record/record/item_operations.rb [370:386]
def transact_check_expression(opts)
opts = opts.dup
key = opts.delete(:key)
check_key = {}
@keys.keys.each_value do |attr_sym|
raise Errors::KeyMissing, "Missing required key #{attr_sym} in #{key}" unless key[attr_sym]
attr_name = attributes.storage_name_for(attr_sym)
check_key[attr_name] = attributes.attribute_for(attr_sym)
.serialize(key[attr_sym])
end
opts[:key] = check_key
opts[:table_name] = table_name
opts
end