NOT
NOT:
arg: { arg } # required
Description
The NOT operation performs a logical NOT operation on a boolean argument. It returns a Boolean value: true if the argument is false, and false if the argument is true.
Majority of operations come in normal and negated variants (e.g. IS_EMPTY and NOT_EMPTY) to reduce the number of operations required to describe the logic. It is advised to use appropriate variant of the operation to eliminate unneeded use of NOT. NOT operation is primarily intended to be used with complex operation without negated variant like AWS_POLICY_ALLOWS, GCP_LOGGING_QUERY_MATCH, etc.
Parameters
arg(Operation<Boolean>, required):- Specifies the boolean operation to be negated.
- Should be an operation that resolves to a
Booleanvalue.
Return Type
Examples
-
NOT operation with another operation:
NOT:
arg:
FIELD:
path: CA10__publiclyAccessible__cThis example checks if an instance is NOT publicly accessible.