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

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

package awscala.dynamodbv2

import scala.jdk.CollectionConverters._
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)).toSeq,
    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