Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val paramsMap = params.iterator.toMap
- val item: Item = new Item()
- .withPrimaryKey(Partition_Key_Name, partition_key)
- .withKeyComponent(Sort_Key_Name, sort_key)
- paramsMap.map { case (k, v) => item.withString(k, v) }
- table.putItem(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement