# NATS KV

Put messages in a NATS key-value bucket.

## Configuration

| Name          | Type       | Optional | Secret | Description                                                                                                                          |
| ------------- | ---------- | -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------ |
| urls          | \[]string  | no       | no     | A list of URLs to connect to. If an item of the list contains commas it will be expanded into multiple URLs.                         |
| bucket        | expression | no       | no     | The name of the KV bucket.                                                                                                           |
| key           | expression | no       | no     | The key for each message.                                                                                                            |
| max_in_flight | int        | yes      | no     | The maximum number of messages to have in flight at a given time. Increase this to improve throughput. The value defaults to `1024`. |
| auth          | auth       | yes      | no     | Optional configuration of NATS authentication parameters.                                                                            |

### Auth

| Name           | Type   | Optional | Secret | Description                                                                          |
| -------------- | ------ | -------- | ------ | ------------------------------------------------------------------------------------ |
| user_jwt       | string | yes      | no     | An optional plain text user JWT (given along with the corresponding user NKey Seed). |
| user_nkey_seed | string | yes      | no     | An optional plain text user NKey Seed (given along with the corresponding user JWT). |
