All Downloads are FREE. Search and download functionalities are using the official Maven repository.

awscala.dynamodbv2.LocalSecondaryIndex.scala Maven / Gradle / Ivy

There is a newer version: 0.8.3
Show newest version
package awscala.dynamodbv2

import scala.collection.JavaConverters._
import com.amazonaws.services.{ dynamodbv2 => aws }

object LocalSecondaryIndex {

  def apply(v: aws.model.LocalSecondaryIndexDescription): LocalSecondaryIndex = new LocalSecondaryIndex(
    name = v.getIndexName,
    keySchema = v.getKeySchema.asScala.map(k => KeySchema(k)),
    projection = Projection(v.getProjection)
  )
}
case class LocalSecondaryIndex(
    name: String,
    keySchema: Seq[KeySchema],
    projection: Projection) extends aws.model.LocalSecondaryIndex with SecondaryIndex {

  setIndexName(name)
  setKeySchema(keySchema.map(_.asInstanceOf[aws.model.KeySchemaElement]).asJava)
  setProjection(projection)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy