---
title: "Class RuleResource"
slug: "js-sdk--ruleresource"
abstract: ""
---
# Class RuleResource

Rule representation for [PolicyResource](https://doc.sitecore.com/ch/en/developers/api-reference/js-sdk--policyresource.html)

## Constructors

### RuleResource()

#### Declaration

```csharp
new RuleResource()
```

### Members

### definitions

Non null collection of entity definition resource links to which this policy applies.

#### Declaration

```csharp
definitions
```

### conditions

Non null collection of conditions which needs to be fulfilled uniformly in order to trigger this rule (i.e. conditions are combined with "AND" logical operator).

#### Declaration

```csharp
conditions
```

### permissions

Non null collection of permissions this rule grands,

#### Declaration

```csharp
permissions
```
