Set Set

yaml
type: "io.kestra.plugin.core.kv.Set"

Sets (or modifies) a KV pair.

Examples

Set query task uri output as value for my_variable key in dev namespace.

yaml
id: kv_store_set
namespace: company.team

tasks:
  - id: http_download
    type: io.kestra.plugin.core.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv

  - id: kv_set
    type: io.kestra.plugin.core.kv.Set
    key: orders_file
    value: "{{ outputs.http_download.uri }}"
    namespace: dev # the current namespace of the flow will be used by default
    overwrite: true # whether to overwrite or fail if a value for that key already exists; default true
    ttl: P30D # optional TTL

Properties

key

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The key for which to set the value.

namespace

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Default: {{ flow.namespace }}

The namespace on which to set the value.

overwrite

  • Type: boolean
  • Dynamic:
  • Required: ✔️
  • Default: true

Whether to overwrite or fail if a value for the given key already exists.

value

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The value to map to the key.

kvType

  • Type: string
  • Dynamic:
  • Required:
  • Possible Values:
    • STRING
    • NUMBER
    • BOOLEAN
    • DATETIME
    • DATE
    • DURATION
    • JSON

Type to save value as.

ttl

  • Type: string
  • Dynamic:
  • Required:
  • Format: duration

Optional time-to-live for the key-value pair.

Outputs

Definitions

Was this page helpful?