awscala.dynamodbv2.Item.scala Maven / Gradle / Ivy
package awscala.dynamodbv2
import scala.collection.JavaConverters._
import com.amazonaws.services.{ dynamodbv2 => aws }
object Item {
def apply(table: Table, attributes: java.util.Map[String, aws.model.AttributeValue]): Item = new Item(
table = table,
attributes = attributes.asScala.toSeq.map { case (k, v) => Attribute(k, AttributeValue(v)) }
)
}
case class Item(table: Table, attributes: Seq[Attribute])
© 2015 - 2025 Weber Informatics LLC | Privacy Policy