# AWS DynamoDB

Inserts items into a DynamoDB table.

## Configuration

| Name             | Type                   | Optional | Secret | Description                                                                                                     |
| ---------------- | ---------------------- | -------- | ------ | --------------------------------------------------------------------------------------------------------------- |
| table            | string                 | no       | no     | The table to store messages in.                                                                                 |
| string_columns   | map\[string]expression | no       | no     | A map of column keys to string values to store.                                                                 |
| json_map_columns | map\[string]string     | no       | no     | A map of column keys to field paths pointing to value data within messages.                                     |
| ttl              | string                 | yes      | no     | An optional TTL to set for items, calculated from the moment the message is sent.                               |
| ttl_key          | string                 | yes      | no     | The column key to place the TTL value within.                                                                   |
| max_in_flight    | int                    | yes      | no     | The maximum number of parallel message batches to have in flight at any given time. The value defaults to `64`. |
| region           | string                 | no       | no     | The AWS region to target.                                                                                       |
| endpoint         | string                 | yes      | no     | Allows you to specify a custom endpoint for the AWS API.                                                        |
| credentials      | credentials            | no       | no     | Optional manual configuration of AWS credentials to use.                                                        |

### Credentials

| Name   | Type   | Optional | Secret | Description                                                                           |
| ------ | ------ | -------- | ------ | ------------------------------------------------------------------------------------- |
| id     | string | yes      | no     | The ID of credentials to use.                                                         |
| secret | string | yes      | no     | The secret for the credentials being used.                                            |
| token  | string | yes      | no     | The token for the credentials being used, required when using short term credentials. |
