Spec-Zone.ru › OpenTofu 1.11

ephemeralasnull Function

ephemeralasnull takes any value and returns a copy of it with any ephemeral values replaced with null. Ephemeral values can come from variables and outputs marked as ephemeral, as well as ephemeral resources.

Examples​

Code Block
> ephemeralasnull("Hello World")
"Hello World"
> ephemeralasnull(var.ephemeral_variable)
null
> ephemeralasnull(ephemeral.some_resource)
null
> ephemeralasnull([4, var.ephemeral_variable])
[4, null]
> ephemeralasnull({
  "field": "value",
  "ephemeral": var.ephemeral_variable,
})
{
  "field": "value",
  "ephemeral": null,
}

Copyright (c) The OpenTofu Authors
Copyright (c) 2014 HashiCorp, Inc.
Mozilla Public License, version 2.0
https://opentofu.org/docs/v1.11/language/functions/ephemeralasnull/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API