DynamoDb

org.apache.pekko.stream.connectors.dynamodb.scaladsl.DynamoDb
object DynamoDb

Factory of DynamoDb Pekko Stream operators.

Attributes

Source
DynamoDb.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
DynamoDb.type

Members list

Value members

Concrete methods

def flow[In <: DynamoDbRequest, Out <: DynamoDbResponse](parallelism: Int)(implicit client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out]): Flow[In, Out, NotUsed]

Create a Flow that emits a response for every request to DynamoDB.

Create a Flow that emits a response for every request to DynamoDB.

Value parameters

parallelism

maximum number of in-flight requests at any given time

Attributes

Source
DynamoDb.scala
def flowPaginated[In <: DynamoDbRequest, Out <: DynamoDbResponse]()(implicit client: DynamoDbAsyncClient, operation: DynamoDbPaginatedOp[In, Out, _]): Flow[In, Out, NotUsed]

Sends requests to DynamoDB and emits the paginated responses.

Sends requests to DynamoDB and emits the paginated responses.

Pagination is available for BatchGetItem, ListTables, Query and Scan requests.

Attributes

Source
DynamoDb.scala
def flowWithContext[In <: DynamoDbRequest, Out <: DynamoDbResponse, Ctx](parallelism: Int)(implicit client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out]): FlowWithContext[In, Ctx, Try[Out], Ctx, NotUsed]

Create a FlowWithContext that emits a response for every request to DynamoDB. A successful response is wrapped in scala.util.Success and a failed response is wrapped in scala.util.Failure.

Create a FlowWithContext that emits a response for every request to DynamoDB. A successful response is wrapped in scala.util.Success and a failed response is wrapped in scala.util.Failure.

The context is merely passed through to the emitted element.

Type parameters

Ctx

context (or pass-through)

Value parameters

parallelism

maximum number of in-flight requests at any given time

Attributes

Source
DynamoDb.scala
def single[In <: DynamoDbRequest, Out <: DynamoDbResponse](request: In)(implicit client: DynamoDbAsyncClient, operation: DynamoDbOp[In, Out], system: ClassicActorSystemProvider): Future[Out]

Create a Future that will be completed with a response to a given request.

Create a Future that will be completed with a response to a given request.

Attributes

Source
DynamoDb.scala
def source[In <: DynamoDbRequest, Out <: DynamoDbResponse](request: In)(implicit client: DynamoDbAsyncClient, operation: DynamoDbPaginatedOp[In, Out, _]): Source[Out, NotUsed]

Create a Source that will emit potentially multiple responses for a given request.

Create a Source that will emit potentially multiple responses for a given request.

Attributes

Source
DynamoDb.scala