[SDK reference](../../index.md) / [Models](../index.md) / [AgentPolicies](index.md)

# AgentPolicy

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.AgentPolicies`  

A customer agent policy: one or more Cedar forbid statements, versioned.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `Description` | `string?` | `description` | Up to 300 characters: what the policy is for. |
| `DisplayName` | `string?` | `displayName` | 1 to 63 characters. |
| `Enabled` | `bool?` | `enabled` | Whether the policy is in force. A new policy is disabled until it is enabled (test it first). |
| `Etag` | `string?` | `etag` | The etag property |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/agentPolicies/{policy}. |
| `StatementCount` | `int?` | `statementCount` | How many statements the current version holds. |
| `Text` | `string?` | `text` | The policy text: Cedar forbid statements, at most 16 KiB and 20 statements. A policy that does not validate is refused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
| `UpdatedBy` | `string?` | `updatedBy` | Who wrote the current version. |
| `Version` | `int?` | `version` | The current version, from 1. Every change of the text writes a new version. |
