Skip to main content

Filter node

A filter node controls the data that moves through a flow.

Filter configuration

  • Field: The field that provides the input to the filter node. You can specify fields from any nodes positioned before the current node in the flow.

    Tip

    Select the plus icon (+) to search for the fields you want to add. For parameter types and how to reference values, see Parameter types.

  • Filter criteria: The criteria applied by the filter node to determine which data should be included or excluded in the output. Conditions in the same group are combined with AND. Add another group (OR statement) to combine groups with OR. Use the link icon to group conditions as a single unit or separate them.

  • Test: Allows you to test the node.

In the example below, the filter node takes the output of the second node in the flow (2. DescribeInstances) as its data source, applies the filter criteria Reservations.Groups.GroupName == "my-group", and outputs a list of instance Ids (Referenced field: Reservations.Instances.InstanceId) that meet the criteria.

Filter configuration

Filter operators​

The filter criteria use comparison operators to match field values. The available operators depend on the type of the selected field (for example, string, number, timestamp, boolean, list, or map).

OperatorDescription
==Equal to
!=Not equal to
>Greater than
<Less than
>=Greater than or equal to
<=Less than or equal to
inValue is in the given list
not inValue is not in the given list
is nullField is null or missing
is not nullField is present and not null
containsList or string contains the value
not containsList or string does not contain the value
lengthLength equals the given number
length >Length greater than the given number
length <Length less than the given number
has keyMap or object has the given key
has valueMap or object has a value for the given key
starts withString starts with the given value
ends withString ends with the given value
matches regexString matches the given regular expression

For starts with, ends with, and matches regex you can enable case-insensitive matching to ignore capital letters. For matches regex, use the standard RE2 pattern syntax. See re2 documentation for details.