DynamoStoreParameters
Class: DynamoStoreParameters
Defined in: aws/src/services/dynamodb.service.ts:56
Define DynamoDB parameters
Extends
StoreParameters
Implements
Constructors
Constructor
new DynamoStoreParameters():
DynamoStoreParameters
Returns
DynamoStoreParameters
Inherited from
StoreParameters.constructor
Properties
aggregationFallback?
optionalaggregationFallback?:"allow"|"warn"|"deny"
Defined in: core/lib/stores/store.d.ts:239
What to do when an aggregation on this store cannot run natively and must stream every matching object through memory
Default
"warn"
Inherited from
StoreParameters.aggregationFallback
CloudFormation?
optionalCloudFormation?:any
Defined in: aws/src/services/dynamodb.service.ts:94
CloudFormation customization
CloudFormationSkip?
optionalCloudFormationSkip?:boolean
Defined in: aws/src/services/dynamodb.service.ts:98
Skip CloudFormation on deploy
credentials?
optionalcredentials?:object
Defined in: aws/src/services/dynamodb.service.ts:66
Static credentials, default to the AWS environment variables
Can be encrypted with webda config encrypt
accessKeyId
accessKeyId:
string|SecretString
secretAccessKey
secretAccessKey:
string|SecretString
sessionToken?
optionalsessionToken?:string|SecretString
Implementation of
AWSServiceParameters.credentials
endpoint?
optionalendpoint?:string
Defined in: aws/src/services/dynamodb.service.ts:60
Custom endpoint (localstack, minio, ...)
Implementation of
globalIndexes?
optionalglobalIndexes?:DynamoGlobalIndexes
Defined in: aws/src/services/dynamodb.service.ts:90
Additional global indexes
maxGroups?
optionalmaxGroups?:number
Defined in: core/lib/stores/store.d.ts:246
Maximum number of groups an aggregation may produce without LIMIT (or in memory)
Minimum
1
Default
10000
Inherited from
StoreParameters.maxGroups
models?
optionalmodels?:string[]
Defined in: core/lib/stores/store.d.ts:204
Models managed by this Store.
Default
["Webda/RegistryEntry"]
Inherited from
StoreParameters.models
noCache?
optionalnoCache?:boolean
Defined in: core/lib/stores/store.d.ts:265
Disable default memory cache
Inherited from
StoreParameters.noCache
region?
optionalregion?:string
Defined in: aws/src/services/dynamodb.service.ts:75
AWS region
Default
"us-east-1"
Implementation of
scanPage?
optionalscanPage?:number
Defined in: aws/src/services/dynamodb.service.ts:102
Number of items to retrieve per scan page
slowQueryLogLevel?
optionalslowQueryLogLevel?:WorkerLogLevel
Defined in: core/lib/stores/store.d.ts:226
Log level used for slow queries
Default
"WARN"
Inherited from
StoreParameters.slowQueryLogLevel
slowQueryMaxLength?
optionalslowQueryMaxLength?:number
Defined in: core/lib/stores/store.d.ts:232
Maximum length of the query string written to logs / events (longer queries are truncated)
Default
1024
Inherited from
StoreParameters.slowQueryMaxLength
slowQueryThreshold?
optionalslowQueryThreshold?:number
Defined in: core/lib/stores/store.d.ts:220
Duration in ms above which a query is considered slow. Set to 0 to disable slow query detection.
Default
30000
Inherited from
StoreParameters.slowQueryThreshold
strict?
optionalstrict?:boolean
Defined in: core/lib/stores/store.d.ts:213
Allow to load object that does not have the type data
If set to true, then the Store will only managed the defined _model and no model extending this one
Default
false
Inherited from
StoreParameters.strict
table
table:
string
Defined in: aws/src/services/dynamodb.service.ts:80
Table name
tables?
optionaltables?:object
Defined in: aws/src/services/dynamodb.service.ts:86
Per-model table name overrides, keyed by model identifier
Models not listed use table
Index Signature
[modelIdentifier: string]: string
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:9
Type of the service
Inherited from
StoreParameters.type
typeCheck?
optionaltypeCheck?:object
Defined in: core/lib/stores/store.d.ts:250
Startup check of the stored types: one WARN listing the legacy, untyped and unknown types found
enabled?
optionalenabled?:boolean
Default
true
maxRows?
optionalmaxRows?:number
Rows scanned at most by stores without a native count; beyond, the counts are "at least"
Default
10000
Inherited from
StoreParameters.typeCheck
Methods
load()
load(
params?):this
Defined in: aws/src/services/dynamodb.service.ts:109
Parameters
params?
any = {}
raw parameters
Returns
this
this
Overrides
StoreParameters.load
update()
update(
params,delta):this
Defined in: core/lib/application/parameters.d.ts:21
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
StoreParameters.update
with()
with(
callback):this
Defined in: core/lib/application/parameters.d.ts:27
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
StoreParameters.with