@shiftcoders/dynamo-easy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Batch
Write
Request
constructor
params
dynamoDB
delete
exec
exec
Full
Response
put
return
Consumed
Capacity
return
Item
Collection
Metrics
BATCH_
WRITE_
DEFAULT_
TIME_
SLOT
BATCH_
WRITE_
MAX_
REQUEST_
ITEM_
COUNT
Hierarchy
BatchWriteRequest
Index
Constructors
constructor
Properties
params
Accessors
dynamoDB
Methods
delete
exec
exec
Full
Response
put
return
Consumed
Capacity
return
Item
Collection
Metrics
Constructors
constructor
new
Batch
Write
Request
(
dynamoDB
:
DynamoDB
)
:
BatchWriteRequest
Parameters
Optional
dynamoDB:
DynamoDB
Returns
BatchWriteRequest
Properties
params
params
:
BatchWriteItemInput
Accessors
dynamoDB
dynamoDB
:
Methods
delete
delete<T>
(
modelClazz
:
ModelConstructor
<
T
>
, keys
:
Array
<
Partial
<
T
>
>
)
:
BatchWriteRequest
Type parameters
T
Parameters
modelClazz:
ModelConstructor
<
T
>
keys:
Array
<
Partial
<
T
>
>
Returns
BatchWriteRequest
exec
exec
(
backoffTimer
?:
randomExponentialBackoffTimer
, throttleTimeSlot
?:
number
)
:
Promise
<
void
>
Parameters
Default value
backoffTimer:
randomExponentialBackoffTimer
= randomExponentialBackoffTimer
Default value
throttleTimeSlot:
number
= BATCH_WRITE_DEFAULT_TIME_SLOT
Returns
Promise
<
void
>
exec
Full
Response
exec
Full
Response
(
backoffTimer
?:
randomExponentialBackoffTimer
, throttleTimeSlot
?:
number
)
:
Promise
<
BatchWriteItemOutput
>
Parameters
Default value
backoffTimer:
randomExponentialBackoffTimer
= randomExponentialBackoffTimer
Default value
throttleTimeSlot:
number
= BATCH_WRITE_DEFAULT_TIME_SLOT
Returns
Promise
<
BatchWriteItemOutput
>
put
put<T>
(
modelClazz
:
ModelConstructor
<
T
>
, items
:
T
[]
)
:
BatchWriteRequest
Type parameters
T
Parameters
modelClazz:
ModelConstructor
<
T
>
items:
T
[]
Returns
BatchWriteRequest
return
Consumed
Capacity
return
Consumed
Capacity
(
value
:
DynamoDB.ReturnConsumedCapacity
)
:
BatchWriteRequest
Parameters
value:
DynamoDB.ReturnConsumedCapacity
Returns
BatchWriteRequest
return
Item
Collection
Metrics
return
Item
Collection
Metrics
(
value
:
DynamoDB.ReturnItemCollectionMetrics
)
:
BatchWriteRequest
Parameters
value:
DynamoDB.ReturnItemCollectionMetrics
Returns
BatchWriteRequest