Skip to main content

Function: createPolicyValidator()

createPolicyValidator(config): object

Defined in: validation.ts:352

The validator of one deployment's policy documents.

Parameters​

ParameterType
configPolicyValidatorConfig

Returns​

validatePolicyDocument​

validatePolicyDocument: (doc, options) => ValidationResult<PolicyDocument>

Structure and meaning of a document: shapes, known actions, well-formed patterns of known types, supplied condition keys, declared denials. allowResourceForm is what a refused Allow resource is told to be, for a policy whose Allow accepts less than *.

Parameters​

ParameterType
docunknown
options{ allowResourceForm?: string; }
options.allowResourceForm?string

Returns​

ValidationResult<PolicyDocument>