Syntax

Computation expressions and constructors for HCL syntax nodes.

FunctionDescription
attr key valueCreates an HCL attribute.
blankCreates a blank line.
block name labelsCreates an HCL block with optional labels.
blockComment linesCreates a block comment (/* ... */).
comment textCreates a line comment (# ...).
hclHCL document computation expression.
list_ name valuesCreates a list assignment, for example patterns = [ str "a"; str "b" ].
object_ nameCreates an object assignment, for example variables = { ... }.
optAttr key _arg1Creates an optional HCL attribute, omitted when None.
rawLine valueCreates an unparsed HCL line.

attr

attr key value

Creates an HCL attribute.

Parameters

  • key : string
  • value : Value

Returns Node


blank

blank

Creates a blank line.

Returns Node


block

block name labels

Creates an HCL block with optional labels.

Parameters

  • name : string
  • labels : string list

Returns ContainerBuilder


blockComment

blockComment lines

Creates a block comment (/* ... */).

Parameters

  • lines : string list

Returns Node


comment

comment text

Creates a line comment (# ...).

Parameters

  • text : string

Returns Node


hcl

hcl

HCL document computation expression.

Returns BodyBuilder


list_

list_ name values

Creates a list assignment, for example patterns = [ str "a"; str "b" ].

Parameters

  • name : string
  • values : Value seq

Returns Node


object_

object_ name

Creates an object assignment, for example variables = { ... }.

Parameters

  • name : string

Returns ContainerBuilder


optAttr

optAttr key _arg1

Creates an optional HCL attribute, omitted when None.

Parameters

  • key : string
  • _arg1 : Value option

Returns Node


rawLine

rawLine value

Creates an unparsed HCL line.

Parameters

  • value : string

Returns Node