{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-iam-access-analyzer/refs/heads/main/json-schema/iam-access-analyzer-criterion-schema.json",
  "title": "Criterion",
  "description": "The criteria to use in the filter that defines the archive rule. For more information on available filter keys, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html\">IAM Access Analyzer filter keys</a>.",
  "type": "object",
  "properties": {
    "eq": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ValueList"
        },
        {
          "description": "An \"equals\" operator to match for the filter used to create the rule."
        }
      ]
    },
    "neq": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ValueList"
        },
        {
          "description": "A \"not equals\" operator to match for the filter used to create the rule."
        }
      ]
    },
    "contains": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ValueList"
        },
        {
          "description": "A \"contains\" operator to match for the filter used to create the rule."
        }
      ]
    },
    "exists": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Boolean"
        },
        {
          "description": "An \"exists\" operator to match for the filter used to create the rule. "
        }
      ]
    }
  }
}