Class DynamoStore<T, K>
Type parameters
Hierarchy
-
Store<T, K>
- DynamoStore
Implements
Constructors
Properties
Methods
Constructors
-
Parameters
-
webda: Core
The main instance of Webda
-
name: string
The name of the service
-
Optional params: any
The parameters block define in the configuration file
Returns DynamoStore
-
Properties
Service name
Webda Core object
Logger with class context
Hold the parameters for your service
It will be bring from the webda.config.json
Methods
-
Returns Promise<void>
-
Parameters
-
object: any
Returns any
-
-
Parameters
-
uid: any
-
Default value writeCondition: any = undefined
Returns Promise<any>
-
-
Parameters
-
uid: any
-
prop: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
-
updateDate: Date
Returns Promise<void>
-
-
Parameters
-
request: any
Returns Promise<any>
-
-
Parameters
-
uid: any
Returns Promise<any>
-
-
Parameters
-
writeCondition: any
Returns string
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
Returns any
-
-
Parameters
-
uid: string
-
updateDate: Date
-
Optional prop: string
Returns Promise<void>
-
-
Parameters
-
store: any
-
object: any
-
property: any
-
updates: any
Returns Promise<any>
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns Promise<any>
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
object: any
-
map: any
-
mapped: any
-
store: any
-
updates: any
Returns any
-
-
Parameters
-
uid: any
-
prop: any
-
value: any
-
updateDate: Date
Returns any
-
-
Parameters
-
object: any
-
uid: any
-
Default value writeCondition: any = undefined
Returns Promise<any>
-
-
Parameters
-
uuid: string
-
attribute: string
Returns Promise<void>
-
-
Parameters
-
object: any
-
Default value uid: any = object.uuid
Returns Promise<any>
-
-
Parameters
-
items: any
-
Default value paging: any = undefined
Returns Promise<unknown>
-
-
Parameters
-
date: any
Returns string
-
-
Parameters
-
object: any
-
uid: string
-
Default value writeCondition: any = undefined
Returns Promise<any>
-
-
Parameters
-
uid: any
-
prop: any
-
item: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
-
updateDate: Date
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
prop: any
-
cascade: any
-
store: any
Returns void
-
-
Add a route dynamicaly
Parameters
-
url: string
of the route can contains dynamic part like {uuid}
-
methods: HttpMethodType[]
-
executer: Function
Method to execute for this route
-
Optional openapi: object
-
Optional allowPath: boolean
Returns void
-
-
By default we cannot know if the store will trigger or not
Parameters
-
id: string
-
callback: function
-
-
Returns void
-
-
Returns boolean
-
-
Parameters
-
obj: any
-
uuid: string
Returns Promise<any>
-
-
Create the AWS client
Returns void
-
Returns Promise<void>
-
Delete an object
Parameters
-
uid: any
-
Optional sync: boolean
Returns Promise<void>
the deletion promise
-
-
Parameters
-
uid: any
-
prop: any
-
index: any
-
itemWriteCondition: any
-
itemWriteConditionField: any
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
Rest ...args: any[]
Returns boolean
-
-
Emit the event with data and wait for Promise to finish if listener returned a Promise
Parameters
-
event: any
-
data: any
Returns Promise<any[]>
-
-
Returns Array<string | symbol>
-
Parameters
-
uid: any
Returns Promise<boolean>
-
-
Parameters
-
Optional request: any
-
Optional offset: number
-
Optional limit: number
Returns Promise<any>
-
-
Returns any
-
Get an object
Parameters
-
uid: string
-
Optional ctx: Context
Returns Promise<T>
the object retrieved ( can be undefined if not found )
-
-
Parameters
-
accountId: any
Returns object
-
Action: string[]
-
Effect: string
-
Resource: string[]
-
Sid: string
-
-
Parameters
-
uids: any
Returns Promise<any>
-
-
Parameters
-
deployer: CloudFormationDeployer
Returns object
-
-
Provide a way to store configuration in store
Parameters
-
id: string
Returns Promise<Map<string, any>>
-
-
Parameters
-
map: any
-
uuid: any
Returns number
-
-
Returns number
-
Returns CoreModelDefinition
-
Get service name
Returns string
-
Get the service parameters
Returns K
-
Return a webda service
Type parameters
-
T: Service<ServiceParameters>
Parameters
-
service: string
name to retrieve
Returns T
-
-
Returns string
-
Returns string
-
Return WebdaCore
Returns Core
-
Parameters
-
object: CoreModel
-
updates: object | string
Returns Promise<void>
-
-
Parameters
-
object: any
-
map: any
-
updates: any
Returns Promise<any[]>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
ctx: Context
Returns Promise<void>
-
-
Parameters
-
uid: any
-
prop: any
-
value: any
Returns Promise<void | any[]>
-
-
Returns Promise<void>
-
Parameters
-
map: any
Returns void
-
-
Parameters
-
object: any
Returns T
-
-
Returns void
-
Parameters
-
property: string
Returns boolean
-
-
Parameters
-
type: string | symbol
Returns number
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Load the parameters
Parameters
-
params: any
Returns any
-
-
Parameters
-
level: WorkerLogLevel
to log
-
Rest ...args: any[]
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Listen to an event as on(...) would do except that it will be asynchronous
Parameters
-
event: any
-
callback: any
-
Optional queue: string
Name of queue to use, can be undefined, queue name are used to define differents priorities
Returns void
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
object: any
-
Optional reverseMap: boolean
Returns Promise<any>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
event: string | symbol
Returns Function[]
-
-
Parameters
-
config: any
new parameters for the service
Returns Promise<void>
-
-
Parameters
-
Optional event: string | symbol
Returns this
-
-
Parameters
-
uuid: string
-
attribute: string
Returns Promise<void>
-
-
Parameters
-
event: string | symbol
-
listener: function
-
-
Parameters
-
Rest ...args: any[]
Returns void
-
-
-
Returns this
-
-
Parameters
-
map: any
-
uuid: any
Returns boolean
-
-
Resolve parameters Call initRoutes and initBeanRoutes
Returns void
-
Save an object
Parameters
-
object: any
-
Optional ctx: Context
Returns Promise<any>
with saved object
-
-
Parameters
-
n: number
Returns this
-
-
Convert an object to JSON using the Webda json filter
Parameters
-
object: any
The object to export
Returns string
The export of the strip object ( removed all attribute with _ )
-
-
Returns string
-
Update an object
Parameters
-
object: any
-
Optional reverseMap: boolean
internal use only, for disable map resolution
-
Optional partial: boolean
Returns Promise<any>
with saved object
-
-
Parameters
-
uid: any
-
prop: any
-
item: any
-
Optional index: any
-
Optional itemWriteCondition: any
-
Optional itemWriteConditionField: any
Returns Promise<void>
-
-
Parameters
-
output: WorkerOutput
-
source: any
-
target: any
Returns Promise<void>
-
-
Returns ModdaDefinition
-
Parameters
-
emitter: EventEmitter
-
event: string | symbol
Returns number
-
Generated using TypeDoc
DynamoStore handles the DynamoDB
Parameters: accessKeyId: '' // try WEBDA_AWS_KEY env variable if not found secretAccessKey: '' // try WEBDA_AWS_SECRET env variable if not found table: '' region: ''