This function converts any Sentinel object including complex compositions of primitive types (string, int, float, and bool), null, undefined, lists, and maps to a string.
This function is contained in the tfstate-functions.sentinel module.
to_string = func(obj)
- obj: a Sentinel object of any type
This function calls itself recursively to support composite objects.
This function returns a single string.
This function does not print anything.
This function is called by all of the filter functions in the tfstate-functions.sentinel module. Here is a typical example:
message = to_string(address) + " has " + to_string(attr) + " with value " +
to_string(v) + " that is not in the allowed list: " +
to_string(allowed)