Block.Rd
Base class to abstract blocks used in Amazon States Language https://states-language.net/spec.html.
new()
Initialize Block class
Block$new(...)
...
: Field list to added to class
is_field_allowed()
Check if field is allowed
Block$is_field_allowed(field_name)
field_name
(str): field name to check with class's allowed field list
allowed_fields()
allowed extra fields
Block$allowed_fields()
to_list()
Convert class to named list
Block$to_list()
to_json()
Serialize to a JSON formatted string.
Block$to_json(pretty = FALSE)
pretty
(bool, optional): Boolean flag set to `True` if JSON string should be prettified. `False`, otherwise. (default: False)
str: JSON formatted string representation of the block.
format()
class formatting
Block$format()
clone()
The objects of this class are cloneable with this method.
Block$clone(deep = FALSE)
deep
Whether to make a deep clone.