Save a record with the aws sdk dynamodb client
fun save(record: Document) { val dynamoDB = DynamoDB.builder().region(Regions.AP_SOUTHEAST_1).build() val table = dynamoDB.getTable("users") val item = Item() item.with("id", record.id) item.with("name", record.name) item.with("age", record.age) table.putItem(item) }