Block Types and Schemas
Maeztro supports the following block types at the root:
-
resource TYPE RESOURCE_ID { ... }to define a new Maeztro resource of a givenTYPE;maeztrois the most common simple type, with others listed here -
maeztro extend resource "RESOURCE_TYPE.RESOURCE_ID" { ... }to extend a resource defined elsewhere; aresource RESOURCE_TYPE RESOURCE_IDblock will typically exist elsewhere, such as in a*.tffile -
maeztro root { ... }to specify resourcenameand other behaviour for the root node of a module (or application if the root module) variable "V" { ... }to define a variable with defaults, as per Terraform syntaxlocals { ... }to define a local expression, as per Terraform syntax
The resource and maeztro extend resource blocks accept the following optional blocks and attributes to configure the behavior of those resources:
name- an attribute indicating a display name for the reasouceparent- the ID of a resource which parents this resourcesensor- a block declaring a sensoreffector- a block declaring an effectorpolicy- a block declaring a policy
In addition, the following optional blocks and attributes can be used to configure their display:
icon- an attribute indicating a relative path or URL for an icon for the resourcewidget- a block declaring a widgetexpansion_mode- whether the node displays as a singleline, expanded to showwidgets, orfullexpansion showing widgets and children (or ishidden)