Or

This section describes features that are coming in 3.3.

The or condition lets you perform a logical OR operation across multiple sub-conditions.

Configuration

{
    "type": "or",
    "config": {
        "conditions": [
            ... subconditions
        ]
    }
}

Sample #1

This policy document allows a principal to read content from the /products and /images folders.

{
    "title": "My Sample Policy",
    "statements": [{
        "action": "grant",
        "roles": ["consumer"],
        "conditions": [{
            "type": "or",
            "config": {
                "conditions": [{
                    "type": "path-matches",
                    "config": {
                        "path": "^/products/.*"
                    }
                }, {
                    "type": "path-matches",
                    "config": {
                        "path": "^/images/.*"
                    }
                }]
            }
        }]
    }]
}