Syntax
Computation expressions and constructors for HCL syntax nodes.
| Function | Description |
|---|---|
attr key value | Creates an HCL attribute. |
blank | Creates a blank line. |
block name labels | Creates an HCL block with optional labels. |
blockComment lines | Creates a block comment (/* ... */). |
comment text | Creates a line comment (# ...). |
hcl | HCL document computation expression. |
list_ name values | Creates a list assignment, for example patterns = [ str "a"; str "b" ]. |
object_ name | Creates an object assignment, for example variables = { ... }. |
optAttr key _arg1 | Creates an optional HCL attribute, omitted when None. |
rawLine value | Creates an unparsed HCL line. |
attr
attr key value
Creates an HCL attribute.
Parameters
key:stringvalue:Value
Returns Node
blank
blank
Creates a blank line.
Returns Node
block
block name labels
Creates an HCL block with optional labels.
Parameters
name:stringlabels: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:stringvalues: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