Skip to content

Latest commit

 

History

History
209 lines (91 loc) · 2.63 KB

core.resourcepolicybody.md

File metadata and controls

209 lines (91 loc) · 2.63 KB

Home > @cerbos/core > ResourcePolicyBody

ResourcePolicyBody interface

A policy defining rules for actions that can be performed on a given resource.

Signature:

export interface ResourcePolicyBody 

Properties

Property

Modifiers

Type

Description

constants?

Constants | undefined

(Optional) Constants defined for use in conditions.

importDerivedRoles?

string[] | undefined

(Optional) Name of a set of derived roles to import.

resource

string

The name of the resource to which the policy applies.

rules

ResourceRule[]

Rules defining the actions that can be performed on the resource.

schemas?

SchemaRefs | undefined

(Optional) Schemas for principal and resource attributes.

scope?

string | undefined

(Optional) Scope of the policy.

scopePermissions?

ScopePermissions | undefined

(ALPHA) (Optional)

variables?

Variables | undefined

(Optional) Variables defined for use in conditions.

version

string

The version of the policy.