---
title: RuleFunctionType enum | Wartiva GraphQL API
description: Describes the type of function that implements the rule logic. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/rule-function-type.html
updated: 2026-10-07
---

Policies and findings · GraphQL enum

# `RuleFunctionType` enum

Describes the type of function that implements the rule logic.

## Values

| Enum Value | Description |
|---|---|
| `CUSTOM` | The rule is implemented in a custom function. |
| `OPA` | The rule is implemented in an OPA Rego policy. |

## Used by

- [`RuleBodyConfiguration`](https://wartiva.com/api-docs/types/rule-body-configuration.html) type: The body of a CONFIGURATION rule.

## Example

### Example

```json
"CUSTOM"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
