EnvVariable  type: env#

class lumen.variables.base.EnvVariable(*, key, default, label, materialize, required, secure, value, name)#

EnvVariable fetches an environment variable that can be referenced.


Parameters#

key

type: str
default: None
The name of the environment variable to observe.


Methods#

EnvVariable.as_materialized() Constant#

If the variable is to be materialized by the builder this implements the conversion from a variable that references some external value to a materialized value.

EnvVariable.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any]#

Exports the full specification to reconstruct this component.

Return type:

Resolved and instantiated Component object