VDL Plugin SDK

ValidatedPolicy

Import from @varavel/vdl-plugin-sdk/utils/policy.

type ValidatedPolicy = object;

Validated policy ready for code generation.

Properties

PropertyTypeDescription
allowPolicyExprResolved allow expression, always boolean.
contextType?stringName of the context object type, when present.
deny?PolicyExprResolved deny expression, when present.
namestringPolicy type name, used as action identifier.
positionPositionSource position of the policy type.
principalTypestringName of the principal object type.
resourceType?stringName of the resource object type, when present.
versionnumberPolicy language version, currently always 1.