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

# DeployRule

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

One rule of a deploy policy. Kinds: `registry` (images only from the project's own registry or the hosts in `values`), `digest` (the image isreferenced by digest), `platform-built` (a verified provenance attestation from the platform's builder; `values` may name builder IDs),`signed` (a verified signature from a key ID or identity in `values`), `no-critical-vulnerabilities` (the platform's stored scan record hasno finding of the blocked `severities`, critical by default) and `production-approver` (a deployment to a production environment is approvedby a person in `values` other than the one who asks).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Kind` | `string?` | `kind` | registry \| digest \| platform-built \| signed \| no-critical-vulnerabilities \| production-approver. One rule of each kind at most. |
| `Message` | `string?` | `message` | The rule's own words, put in front of the reason when it refuses; at most 500 characters. |
| `Mode` | `Models.DeployPolicy.DeployRule_mode?` | `mode` | `enforce` refuses a deployment that breaks the rule; `dry-run` admits it and records what it would have refused. |
| `RequireScanRecord` | `bool?` | `requireScanRecord` | Whether an image with no stored scan record breaks the rule (no-critical-vulnerabilities); true when omitted. |
| `Severities` | `List<string>?` | `severities` | CRITICAL, HIGH, MEDIUM, LOW or UNKNOWN: the severities that block (no-critical-vulnerabilities); CRITICAL when omitted. |
| `Values` | `List<string>?` | `values` | Registry hosts (registry), builder IDs (platform-built), signer key IDs or identities (signed), approver principals (production-approver); at most 20 of up to 256 characters. |
