Home > @cerbos/core > ResourcePolicyBody
A policy defining rules for actions that can be performed on a given resource.
Signature:
export interface ResourcePolicyBody
Property |
Modifiers |
Type |
Description |
---|---|---|---|
Constants | undefined |
(Optional) Constants defined for use in conditions. | ||
string[] | undefined |
(Optional) Name of a set of derived roles to import. | ||
string |
The name of the resource to which the policy applies. | ||
Rules defining the actions that can be performed on the resource. | |||
SchemaRefs | undefined |
(Optional) Schemas for principal and resource attributes. | ||
string | undefined |
(Optional) Scope of the policy. | ||
ScopePermissions | undefined |
(ALPHA) (Optional) | ||
Variables | undefined |
(Optional) Variables defined for use in conditions. | ||
string |
The version of the policy. |