# dynamodb-items

> ### 1. Config Lambda Code

Latest version **1.0.5** (published 2019-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install dynamodb-items
pnpm add dynamodb-items
yarn add dynamodb-items
bun add dynamodb-items
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-12-23 |
| First published | 2019-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 63.6 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | feliperohde |

## Links

- npm: https://www.npmjs.com/package/dynamodb-items
- npm.io page: https://npm.io/package/dynamodb-items

## Dependencies (7)

- [rxjs](https://npm.io/package/rxjs.md) ^6.5.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.595.0
- [@hapi/joi](https://npm.io/package/@hapi/joi.md) ^16.1.8
- [simple-cache-lru](https://npm.io/package/simple-cache-lru.md) ^1.0.1
- [simple-beauty-error](https://npm.io/package/simple-beauty-error.md) ^1.0.1
- [rxjs-dynamodb-client](https://npm.io/package/rxjs-dynamodb-client.md) ^1.0.8

## Recent versions

- 1.0.5 (latest) — 2019-12-23
- 1.0.3 — 2019-12-22
- 1.0.2 — 2019-12-21
- 1.0.1 — 2019-12-21

## README

## AWS Dynamodb/Firehose Items Storage.

### 1. Config Lambda Code

    const {
        App,
        handlers
    } = require('dynamodb-items');

    const app = new App('tablePrefix', {
        droppedTtl: 15 * 24 * 60 * 60 * 1000, // 15 days
        firehose: { // optional
            concurrency: 100,
            stream: 'app-items'
        },
        ttl: 365 * 24 * 60 * 60 * 1000 // 1 year
    });

    exports.dropped = handlers.dropped(app);
    exports.firehose = handlers.firehose(app);
    exports.get = handlers.get(app);
    exports.set = handlers.set(app);

### 2. Config Lambda Handlers

    Name
    app-items-dropped

    Handler
    index.dropped

    Size
    512 MB

    -

    Name
    app-items-firehose

    Handler
    index.firehose

    Size
    512 MB

    -

    Name
    app-items-get

    Handler
    index.get

    Size
    256 MB

    -

    Name
    app-items-set

    Handler
    index.set

    Size
    256 MB

### 3. Config Kinesis Firehose
    
    Name
    app-items

    Lambda Transformer
    app-items-firehose

    S3 Bucket
    app

    Prefix
    items/dt=!{timestamp:yyyy}-!{timestamp:MM}-!{timestamp:dd}/
    
    Error prefix
    items-error/err=!{firehose:error-output-type}/dt=!{timestamp:yyyy}-!{timestamp:MM}-!{timestamp:dd}/

---
_Source: https://npm.io/package/dynamodb-items · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
