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 myvariable key in dev namespace.

yaml
id: set_kv
type: io.kestra.plugin.core.kv.Set
key: myvariable
value: "{{ outputs.query.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.

ttl

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

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

Outputs

Definitions

Was this page helpful?