Skip to main content

Operations

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​

TaskWhat to Look Up
Read valuesResource attributes, reusable extracts, and literal values
Compare valuesEquality and other comparisons used in checks
Combine conditionsBoolean expressions combining multiple checks
Evaluate related resourcesRelationship lookups and related-list aggregates
Handle data typesConversions 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​

OperationReturn TypePurpose
FIELDDepends on field typeRead a CMDB field from the current object or through a lookup path.
EXTRACTAny supported value typeRetrieve a reusable value defined in an imported extract file.

Lookup Validation​

OperationReturn TypePurpose
IS_EMPTY_LOOKUPBooleanCheck whether a lookup path is empty or unresolved.
NOT_EMPTY_LOOKUPBooleanCheck that every relationship in a lookup path resolves.

Constants​

OperationReturn TypePurpose
TEXTTextCreate a constant for normalized text comparisons.
BYTESBytesCreate a constant for exact text comparisons.
BOOLEANBooleanCreate a Boolean constant.
NUMBERNumberCreate an integer or decimal constant.
DATE_TIMEDateTimeSupply a fixed timestamp as an operation value. Overview only.
LISTListCreate an ordered collection of text values.
SETSetCreate an unordered collection of unique text values.
JSONJsonSupply a structured JSON constant from YAML. Overview only.

Type Conversions​

OperationReturn TypePurpose
BOOLEAN_FROMBooleanConvert text by comparing it with a designated true value.
DATE_TIME_FROMDateTimeParse an ISO 8601 text value for date comparisons.
DURATION_FROMDurationConvert serialized text into a duration value. Overview only.
LIST_FROMListSplit serialized text into an ordered collection.
SET_FROMSetSplit serialized text into unique items.
JSON_FROMJsonParse serialized JSON without normalizing its text.

Equality and Empty Values​

OperationReturn TypePurpose
IS_EMPTYBooleanCheck whether a value is empty according to its type.
NOT_EMPTYBooleanCheck that a value is present according to its type.
IS_EQUALBooleanDetermine whether two values are equal.
NOT_EQUALBooleanDetermine whether two values differ.

Logical Operators​

OperationReturn TypePurpose
ANDBooleanRequire every Boolean expression to be true.
ORBooleanRequire at least one Boolean expression to be true.
NOTBooleanInvert the result of a Boolean expression.

Search and Substrings​

OperationReturn TypePurpose
CONTAINSBooleanSearch text for a substring or a collection for an item.
CONTAINS_ALLBooleanCheck that every search item occurs in a value.
CONTAINS_ANYBooleanCheck that at least one search item occurs in a value.
STARTS_WITHBooleanCheck a string prefix or the first item of an ordered list.
ENDS_WITHBooleanCheck a string suffix or the last item of an ordered list.

Numeric Comparisons​

OperationReturn TypePurpose
GREATER_THANBooleanCheck whether the left number is strictly greater than the right number.
GREATER_THAN_EQUALBooleanCheck whether the left number is greater than or equal to the right number.
LESS_THANBooleanCheck whether the left number is strictly less than the right number.
LESS_THAN_EQUALBooleanCheck whether the left number is less than or equal to the right number.

Date and Time​

OperationReturn TypePurpose
IS_BEFORE_TODAYBooleanCheck whether a timestamp is strictly earlier than today's UTC midnight.
IS_AFTER_TODAYBooleanCheck whether a timestamp is strictly later than today's UTC midnight.
IS_BEYOND_LAST_DAYSBooleanCheck whether a timestamp is earlier than today's UTC midnight minus a specified number of days.
IS_BEYOND_NEXT_DAYSBooleanCheck whether a timestamp is later than today's UTC midnight plus a specified number of days.
IS_WITHIN_LAST_DAYSBooleanCheck whether a timestamp falls within the specified past-day window, including today.
IS_WITHIN_NEXT_DAYSBooleanCheck whether a timestamp falls within the specified future-day window, including today.

Collection Size​

OperationReturn TypePurpose
SIZENumberCount the items in a List or Set.

JSON Queries​

OperationReturn TypePurpose
JSON_QUERY_TEXTTextEvaluate a JMESPath expression and return normalized text.
JSON_QUERY_BYTESBytesEvaluate a JMESPath expression and return exact text.
JSON_QUERY_BOOLEANBooleanEvaluate a JMESPath expression and return a Boolean.
JSON_QUERY_NUMBERNumberEvaluate a JMESPath expression and return a Number.

Tags​

OperationReturn TypePurpose
TAG_EXISTSBooleanCheck whether a named tag is present on a resource.
TAG_VALUE_TEXTTextRead a named tag's value using normalized text comparison.
TAG_VALUE_BYTESBytesRead a named tag's value while preserving case and whitespace.
OperationReturn TypePurpose
RELATED_LIST_HASBooleanCheck whether at least one evaluated related object has the selected status.
RELATED_LIST_HAS_NOBooleanCheck whether no evaluated related objects have the selected status.
RELATED_LIST_COUNTNumberCount evaluated related objects with the selected status.

Provider-Specific Checks​

OperationReturn TypePurpose
AWS_POLICY_ALLOWSBooleanCheck whether an AWS IAM policy permits the specified actions at a chosen access level. Overview only.
GCP_LOGGING_QUERY_MATCHBooleanCompare a GCP Logging query with another query. Overview only.

Development and Test Helpers​

OperationReturn TypePurpose
IS_DISAPPEAREDBooleanCheck whether an object is marked as disappeared from its source. Overview only.
DEBUGAny supported value typeInspect an operation value during debugging. Overview only.
UNIT_TESTBooleanDefine an operation-level test case within logic. Overview only.
UNIT_TEST_NULLType selected by the operationProduce a typed null value for operation testing. Overview only.
UNIT_TEST_RUNTIME_ERRORAny supported value typeSimulate 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.