hcl

Module expr

Source
Expand description

Types to represent the HCL expression sub-language.

The module contains the Expression enum which can represent any valid HCL expression in HCL attribute values and templates.

Structs§

  • An operation that applies an operator to two expressions.
  • The conditional operator allows selecting from one of two expressions based on the outcome of a boolean expression.
  • A for expression is a construct for constructing a collection by projecting the items from another collection.
  • Represents a function call expression with zero or more arguments.
  • A builder for function calls.
  • Type representing a (potentially namespaced) function name.
  • A heredoc template expression is introduced by a << sequence and defines a template via a multi-line sequence terminated by a user-chosen delimiter.
  • Traverse an expression to access attributes, object keys or element indices.
  • A builder for expression traversals.
  • An operation that applies an operator to one expression.
  • A type representing a variable in an HCL expression.

Enums§

  • An operator that can be applied to two expressions.
  • A type representing the expression sub-language. It is used in HCL attributes to specify values and in HCL templates.
  • The strip behaviour for the template contained in the heredoc.
  • Represents an object key.
  • Operations apply a particular operator to either one or two expression terms.
  • A template expression embeds a program written in the template sub-language as an expression.
  • The expression traversal operators that are supported by HCL.
  • An operator that can be applied to an expression.

Functions§

  • Convert a T into hcl::Expression which is an enum that can represent any valid HCL attribute value expression.

Type Aliases§

  • The object type used in the expression sub-language.