ValidatedPolicy
Import from @varavel/vdl-plugin-sdk/utils/policy.
type ValidatedPolicy = object;
Validated policy ready for code generation.
Properties
| Property | Type | Description |
|---|---|---|
allow | PolicyExpr | Resolved allow expression, always boolean. |
contextType? | string | Name of the context object type, when present. |
deny? | PolicyExpr | Resolved deny expression, when present. |
name | string | Policy type name, used as action identifier. |
position | Position | Source position of the policy type. |
principalType | string | Name of the principal object type. |
resourceType? | string | Name of the resource object type, when present. |
version | number | Policy language version, currently always 1. |