Not

This section describes features that are coming in 3.3

The not condition lets you perform a logical NOT operation against a sub-condition.

Configuration

{
    "type": "not",
    "config": {
        "condition": {
            ...
        }
    }
}

Sample #1

This policy document allows a principal to edit any content that is not in Spanish

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "not",
            "config": {
                "condition": {
                    "type": "locale-matches",
                    "config": {
                        "locale": "es_ES"
                    }
                }
            }
        }]
    }]
}