DynamoDb

interface DynamoDb

Docs: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations.html

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun <R : Paged<Key, Item>, Self : DynamoDbPagedAction<R, Self>> DynamoDb.copy(action: Self, destination: TableName, mappingFn: (Item) -> Item = { it }): Result<Map<String, ReqWriteItem>?, RemoteFailure>

Copies items that are queried into another table, using BatchWriteItem to insert, and optionally mapping. Returns the Unprocessed Items from the last insert if there were any.

Link copied to clipboard
abstract operator fun <R : Any> invoke(action: DynamoDbAction<R>): Result<R, RemoteFailure>
Link copied to clipboard
inline fun <Document : Any, HashKey : Any, SortKey : Any> DynamoDb.tableMapper(tableName: TableName, hashKeyAttribute: Attribute<HashKey>, sortKeyAttribute: Attribute<SortKey>? = null, autoMarshalling: AutoMarshalling = DynamoDbMoshi): DynamoDbTableMapper<Document, HashKey, SortKey>
inline fun <Document : Any, HashKey : Any, SortKey : Any> DynamoDb.tableMapper(tableName: TableName, hashKeyAttribute: Attribute<HashKey>, sortKeyAttribute: Attribute<SortKey>? = null, lens: BiDiLens<Item, Document>): DynamoDbTableMapper<Document, HashKey, SortKey>