Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamoDbPersistenceAdapter

Implementation of PersistenceAdapter using AWS DynamoDB.

Hierarchy

  • DynamoDbPersistenceAdapter

Implements

  • PersistenceAdapter

Index

Constructors

constructor

Properties

Protected attributesName

attributesName: string

Protected createTable

createTable: boolean

Protected dynamoDBClient

dynamoDBClient: DynamoDB

Protected dynamoDBDocumentClient

dynamoDBDocumentClient: DocumentClient

Protected partitionKeyGenerator

partitionKeyGenerator: PartitionKeyGenerator

Protected partitionKeyName

partitionKeyName: string

Protected tableName

tableName: string

Methods

deleteAttributes

  • deleteAttributes(requestEnvelope: RequestEnvelope): Promise<void>

getAttributes

  • getAttributes(requestEnvelope: RequestEnvelope): Promise<object>

saveAttributes

  • saveAttributes(requestEnvelope: RequestEnvelope, attributes: object): Promise<void>