Skip to main content

FuseDynamoDBClientFactory

@appfire/fuse-datastoreDocs


@appfire/fuse-datastore / FuseDynamoDBClientFactory

Class: FuseDynamoDBClientFactory\<T>

Type Parameters

T = Instance | DynamoDB

Constructors

new FuseDynamoDBClientFactory()

new FuseDynamoDBClientFactory\<T>(config): FuseDynamoDBClientFactory\<T>

Parameters

config: DynamoDBFactoryConfig

Returns

FuseDynamoDBClientFactory\<T>

Defined in

factory/ddb.factory.ts:34

Properties

region

protected region: string

Defined in

factory/ddb.factory.ts:27


roleArn

protected roleArn: string

Defined in

factory/ddb.factory.ts:26


tableArn

protected tableArn: string

Defined in

factory/ddb.factory.ts:25


tenantCache

protected tenantCache: object

Index Signature

[key: string]: T

Defined in

factory/ddb.factory.ts:29


tenantMemoryCache

protected tenantMemoryCache: undefined | MemoryCache

Defined in

factory/ddb.factory.ts:32


type

protected type: string

Defined in

factory/ddb.factory.ts:28

Methods

createTenantClient()

createTenantClient(tenant): Promise\<T>

Parameters

tenant: string

Returns

Promise\<T>

Defined in

factory/ddb.factory.ts:43


getClient()

getClient(tenantId, noCache?): Promise\<T>

Parameters

tenantId: string

noCache?: boolean

Returns

Promise\<T>

Defined in

factory/ddb.factory.ts:70