AttributeValueMapValueConverter

Converts between Map and DynamoDB M values. Note that the maps must contain String keys and already-converted AttributeValue values. This converter is typically chained with another converter which handles converting values to AttributeValue either by using the factory function MapValueConverter or by using the mapFrom/mapValuesFrom/mapKeysFrom extension methods.

val instantMapConv = MapValueConverter(InstantConverter.Default) // ValueConverter<Map<String, Instant>>
val instantMapConv2 = MapValueConverter.mapValuesFrom(InstantConverter.Default) // same as above

Functions

Link copied to clipboard
open override fun convertLeft(from: AttributeValue): Map<String, AttributeValue>
Link copied to clipboard

Inherited functions

Link copied to clipboard
fun <V : Any> ValueConverter<V>.asNullable(nullValueConverter: ValueConverter<Nothing?> = NullValueConverter): ValueConverter<V?>
Link copied to clipboard
fun <T, PK : KeyType> ItemConverter<T>.withKeySpec(partitionKey: KeySpec<PK>, attributes: Attributes = emptyAttributes()): ItemSchema.PartitionKey<T, PK>

Associate this ItemConverter with a KeySpec for a partition key to form a complete ItemSchema

fun <T, PK : KeyType, SK : KeyType> ItemConverter<T>.withKeySpec(partitionKey: KeySpec<PK>, sortKey: KeySpec<SK>, attributes: Attributes = emptyAttributes()): ItemSchema.CompositeKey<T, PK, SK>

Associate this ItemConverter with KeySpec instances for a composite key to form a complete ItemSchema