{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-glue-databrew/refs/heads/main/json-structure/glue-databrew-condition-expression-structure.json",
  "name": "ConditionExpression",
  "description": "<p>Represents an individual condition that evaluates to true or false.</p> <p>Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.</p> <p>If a recipe requires more than one condition, then the recipe must specify multiple <code>ConditionExpression</code> elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.</p>",
  "type": "object",
  "properties": {
    "Condition": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Condition"
        },
        {
          "description": "A specific condition to apply to a recipe action. For more information, see <a href=\"https://docs.aws.amazon.com/databrew/latest/dg/recipes.html#recipes.structure\">Recipe structure</a> in the <i>Glue DataBrew Developer Guide</i>."
        }
      ]
    },
    "Value": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ConditionValue"
        },
        {
          "description": "A value that the condition must evaluate to for the condition to succeed."
        }
      ]
    },
    "TargetColumn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/TargetColumn"
        },
        {
          "description": "A column to apply this condition to."
        }
      ]
    }
  },
  "required": [
    "Condition",
    "TargetColumn"
  ]
}