Operations are the building blocks of policy logic. This section is the entry point for operation references grouped by task or type.
Operations by Task
| Task | What to Look Up |
|---|
| Read values | Resource attributes, reusable extracts, and literal values |
| Compare values | Equality and other comparisons used in checks |
| Combine conditions | Boolean expressions combining multiple checks |
| Evaluate related resources | Relationship lookups and related-list aggregates |
| Handle data types | Conversions and behavior when values are missing |
Choose an operation below, then use Policy logic reference for shared type, relationship, and null-handling rules. Follow Write policy logic for the authoring workflow.
Operations by Type
Data Access
| Operation | Return Type | Purpose |
|---|
FIELD | Depends on field type | Read a CMDB field from the current object or through a lookup path. |
EXTRACT | Any supported value type | Retrieve a reusable value defined in an imported extract file. |
Lookup Validation
| Operation | Return Type | Purpose |
|---|
IS_EMPTY_LOOKUP | Boolean | Check whether a lookup path is empty or unresolved. |
NOT_EMPTY_LOOKUP | Boolean | Check that every relationship in a lookup path resolves. |
Constants
| Operation | Return Type | Purpose |
|---|
TEXT | Text | Create a constant for normalized text comparisons. |
BYTES | Bytes | Create a constant for exact text comparisons. |
BOOLEAN | Boolean | Create a Boolean constant. |
NUMBER | Number | Create an integer or decimal constant. |
DATE_TIME | DateTime | Supply a fixed timestamp as an operation value. Overview only. |
LIST | List | Create an ordered collection of text values. |
SET | Set | Create an unordered collection of unique text values. |
JSON | Json | Supply a structured JSON constant from YAML. Overview only. |
Type Conversions
| Operation | Return Type | Purpose |
|---|
BOOLEAN_FROM | Boolean | Convert text by comparing it with a designated true value. |
DATE_TIME_FROM | DateTime | Parse an ISO 8601 text value for date comparisons. |
DURATION_FROM | Duration | Convert serialized text into a duration value. Overview only. |
LIST_FROM | List | Split serialized text into an ordered collection. |
SET_FROM | Set | Split serialized text into unique items. |
JSON_FROM | Json | Parse serialized JSON without normalizing its text. |
Equality and Empty Values
| Operation | Return Type | Purpose |
|---|
IS_EMPTY | Boolean | Check whether a value is empty according to its type. |
NOT_EMPTY | Boolean | Check that a value is present according to its type. |
IS_EQUAL | Boolean | Determine whether two values are equal. |
NOT_EQUAL | Boolean | Determine whether two values differ. |
Logical Operators
| Operation | Return Type | Purpose |
|---|
AND | Boolean | Require every Boolean expression to be true. |
OR | Boolean | Require at least one Boolean expression to be true. |
NOT | Boolean | Invert the result of a Boolean expression. |
Search and Substrings
| Operation | Return Type | Purpose |
|---|
CONTAINS | Boolean | Search text for a substring or a collection for an item. |
CONTAINS_ALL | Boolean | Check that every search item occurs in a value. |
CONTAINS_ANY | Boolean | Check that at least one search item occurs in a value. |
STARTS_WITH | Boolean | Check a string prefix or the first item of an ordered list. |
ENDS_WITH | Boolean | Check a string suffix or the last item of an ordered list. |
Numeric Comparisons
| Operation | Return Type | Purpose |
|---|
GREATER_THAN | Boolean | Check whether the left number is strictly greater than the right number. |
GREATER_THAN_EQUAL | Boolean | Check whether the left number is greater than or equal to the right number. |
LESS_THAN | Boolean | Check whether the left number is strictly less than the right number. |
LESS_THAN_EQUAL | Boolean | Check whether the left number is less than or equal to the right number. |
Date and Time
| Operation | Return Type | Purpose |
|---|
IS_BEFORE_TODAY | Boolean | Check whether a timestamp is strictly earlier than today's UTC midnight. |
IS_AFTER_TODAY | Boolean | Check whether a timestamp is strictly later than today's UTC midnight. |
IS_BEYOND_LAST_DAYS | Boolean | Check whether a timestamp is earlier than today's UTC midnight minus a specified number of days. |
IS_BEYOND_NEXT_DAYS | Boolean | Check whether a timestamp is later than today's UTC midnight plus a specified number of days. |
IS_WITHIN_LAST_DAYS | Boolean | Check whether a timestamp falls within the specified past-day window, including today. |
IS_WITHIN_NEXT_DAYS | Boolean | Check whether a timestamp falls within the specified future-day window, including today. |
Collection Size
| Operation | Return Type | Purpose |
|---|
SIZE | Number | Count the items in a List or Set. |
JSON Queries
| Operation | Return Type | Purpose |
|---|
TAG_EXISTS | Boolean | Check whether a named tag is present on a resource. |
TAG_VALUE_TEXT | Text | Read a named tag's value using normalized text comparison. |
TAG_VALUE_BYTES | Bytes | Read a named tag's value while preserving case and whitespace. |
| Operation | Return Type | Purpose |
|---|
RELATED_LIST_HAS | Boolean | Check whether at least one evaluated related object has the selected status. |
RELATED_LIST_HAS_NO | Boolean | Check whether no evaluated related objects have the selected status. |
RELATED_LIST_COUNT | Number | Count evaluated related objects with the selected status. |
Provider-Specific Checks
| Operation | Return Type | Purpose |
|---|
AWS_POLICY_ALLOWS | Boolean | Check whether an AWS IAM policy permits the specified actions at a chosen access level. Overview only. |
GCP_LOGGING_QUERY_MATCH | Boolean | Compare a GCP Logging query with another query. Overview only. |
Development and Test Helpers
| Operation | Return Type | Purpose |
|---|
IS_DISAPPEARED | Boolean | Check whether an object is marked as disappeared from its source. Overview only. |
DEBUG | Any supported value type | Inspect an operation value during debugging. Overview only. |
UNIT_TEST | Boolean | Define an operation-level test case within logic. Overview only. |
UNIT_TEST_NULL | Type selected by the operation | Produce a typed null value for operation testing. Overview only. |
UNIT_TEST_RUNTIME_ERROR | Any supported value type | Simulate an operation runtime error for testing. Overview only. |
Using the examples
Examples are expression fragments, not complete policy files. Place Boolean expressions under a condition's check; use other results as inputs to a compatible operation. A surrounding condition assigns the compliance status and messages.
Examples using FIELD illustrate development or extract definitions. Prefer imported EXTRACT values in production logic. Resource field and relationship names must exist on the selected input type. Check examples against your repository schema and follow Test and debug policies, including nulls, unresolved relationships, and date boundaries in fixtures.