DynamoDbItem

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DynamoDbItem(val converter: KClass<out ItemConverter<*>> = AutoGeneratedConverter::class)

Specifies that this class/interface describes an item type in a table. All public properties of this type will be mapped to attributes unless they are explicitly ignored.

This annotation is a specialization of DynamoDbMappable: in addition to generating an ItemConverter, it enforces primary key requirements and generates a table schema. Its properties may reference other DynamoDbMappable or DynamoDbItem types as nested attributes.

Parameters

converter

The item converter to be used for converting this class/interface. If not set, one will be automatically generated.

Properties

Link copied to clipboard