Amazon Glue DataBrew · JSON Structure

Glue Databrew Condition Expression Structure

Represents an individual condition that evaluates to true or false.

Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.

If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.

Type: object Properties: 3 Required: 2
Data AnalyticsData PreparationETLMachine Learning

ConditionExpression is a JSON Structure definition published by Amazon Glue DataBrew, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

Condition Value TargetColumn

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$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"
  ]
}