## Index

### Type aliases

- BatchWriteItemOutputWithUnprocessedItems

### Functions

- batchWriteItemsWriteAll
- hasUnprocessedItems

## Type aliases

### BatchWriteItemOutputWithUnprocessedItems

BatchWriteItemOutputWithUnprocessedItems: BatchWriteItemOutput & object

- Defined in dynamo/batchwrite/batch-write-utils.ts:38

## Functions

### batchWriteItemsWriteAll

- batchWriteItemsWriteAll(dynamoDBWrapper: DynamoDbWrapper, params: BatchWriteItemInput, backoffTimer: IterableIterator<number>, throttleTimeSlot: number): Promise<BatchGetItemOutput>

- - Defined in dynamo/batchwrite/batch-write-utils.ts:13

  Function which executes batchWriteItem operations until all given items (as params) are processed (written). Between each follow-up request (in case of unprocessed items) a delay is interposed calculated by the given backoffTime and throttleTimeSlot.

  #### Parameters

  - ##### dynamoDBWrapper: DynamoDbWrapper

  - ##### params: BatchWriteItemInput

    containing the items per table to create the batchWrite operation

  - ##### backoffTimer: IterableIterator<number>

    used to determine how many time slots the follow-up request should be delayed

  - ##### throttleTimeSlot: number

    used to calculate the effective wait time

  #### Returns Promise<BatchGetItemOutput>

### hasUnprocessedItems

- hasUnprocessedItems(response: BatchWriteItemOutput): boolean

- - Defined in dynamo/batchwrite/batch-write-utils.ts:42

  #### Parameters

  - ##### response: BatchWriteItemOutput

  #### Returns boolean

Generated using TypeDoc