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

io.atlassian.aws.dynamodb.AttributeDefinition.scala Maven / Gradle / Ivy

package io.atlassian.aws.dynamodb

import com.amazonaws.services.dynamodbv2.model.{ ScalarAttributeType, AttributeDefinition => AttDef }

/**
 * Convenience functions to construct an AttributeDefinition
 */
private[dynamodb] object AttributeDefinition {
  def apply(name: String, attributeType: ScalarAttributeType): AttDef =
    new AttDef(name, attributeType)

  def string(name: String): AttDef =
    apply(name, ScalarAttributeType.S)

  def number(name: String): AttDef =
    apply(name, ScalarAttributeType.N)

  def binary(name: String): AttDef =
    apply(name, ScalarAttributeType.B)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy