Creates a policy that inverts the result of another policy.
Subject type
Resource type
Action type
Context type
The policy to invert
A NOT policy that grants access when the original would deny it
// Grant access to non-public resourcesconst policy = buildNotPolicy(publicResourcePolicy); Copy
// Grant access to non-public resourcesconst policy = buildNotPolicy(publicResourcePolicy);
Creates a policy that inverts the result of another policy.