KeyAttrSpec

interface KeyAttrSpec<K>

Defines the specification for a single key attribute, including its name and type

Type Parameters

K

The Kotlin type of the attribute

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val name: String

The DynamoDB name of the key attribute

Link copied to clipboard

The DynamoDB type of the attribute

Functions

Link copied to clipboard
abstract fun fromFieldInItem(item: Item): K

Extracts a key value from the DynamoDB Item attribute keyed by name

Link copied to clipboard
abstract fun toField(value: K): Pair<String, AttributeValue>

Creates a DynamoDB key-value pair for an attribute as a Pair<String, AttributeValue>, suitable for use in an Item instance.