UpdateResult

sealed interface UpdateResult(source)

The result of an update operation

Inheritors

Types

Link copied to clipboard
data class ConditionFailed(val item: ItemResult? = null) : UpdateResult

item is the record which blocked the write, and is set only when the request asked for it with ReturnValuesOnConditionCheckFailure=ALL_OLD. It cannot be reported through the shared JsonError, which every AWS fake uses and so cannot carry a DynamoDB item - hence the dedicated body type, which conditionCheckAware maps back onto a 400.

Link copied to clipboard
data object NotFound : UpdateResult
Link copied to clipboard
class UpdateOk(item: Item, val updatedTable: DynamoTable) : UpdateResult

Properties

Link copied to clipboard
abstract val result: Any?