{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-glue-databrew/json-schema/amazon-glue-databrew-recipe-step-schema.json",
  "title": "RecipeStep",
  "description": "Represents a single step from a DataBrew recipe to be performed.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-glue-databrew-recipes-api-openapi.yml#/components/schemas/RecipeStep",
  "type": "object",
  "required": [
    "Action"
  ],
  "properties": {
    "Action": {
      "allOf": [
        {
          "$ref": "#/$defs/RecipeAction"
        },
        {
          "description": "The particular action to be performed in the recipe step."
        }
      ]
    },
    "ConditionExpressions": {
      "allOf": [
        {
          "$ref": "#/$defs/ConditionExpressionList"
        },
        {
          "description": "<p>One or more conditions that must be met for the recipe step to succeed.</p> <note> <p>All of the conditions in the array must be met. In other words, all of the conditions must be combined using a logical AND operation.</p> </note>"
        }
      ]
    }
  },
  "$defs": {
    "Condition": {
      "type": "string",
      "pattern": "^[A-Z\\_]+$",
      "minLength": 1,
      "maxLength": 128
    },
    "ConditionExpression": {
      "type": "object",
      "required": [
        "Condition",
        "TargetColumn"
      ],
      "properties": {
        "Condition": {
          "allOf": [
            {
              "$ref": "#/$defs/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": "#/$defs/ConditionValue"
            },
            {
              "description": "A value that the condition must evaluate to for the condition to succeed."
            }
          ]
        },
        "TargetColumn": {
          "allOf": [
            {
              "$ref": "#/$defs/TargetColumn"
            },
            {
              "description": "A column to apply this condition to."
            }
          ]
        }
      },
      "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>"
    },
    "ConditionExpressionList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConditionExpression"
      }
    },
    "ConditionValue": {
      "type": "string",
      "maxLength": 1024
    },
    "Operation": {
      "type": "string",
      "pattern": "^[A-Z\\_]+$",
      "minLength": 1,
      "maxLength": 128
    },
    "ParameterMap": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ParameterValue"
      }
    },
    "ParameterValue": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32768
    },
    "RecipeAction": {
      "type": "object",
      "required": [
        "Operation"
      ],
      "properties": {
        "Operation": {
          "allOf": [
            {
              "$ref": "#/$defs/Operation"
            },
            {
              "description": "The name of a valid DataBrew transformation to be performed on the data."
            }
          ]
        },
        "Parameters": {
          "allOf": [
            {
              "$ref": "#/$defs/ParameterMap"
            },
            {
              "description": "Contextual parameters for the transformation."
            }
          ]
        }
      },
      "description": "Represents a transformation and associated parameters that are used to apply a change to a DataBrew dataset. For more information, see <a href=\"https://docs.aws.amazon.com/databrew/latest/dg/recipe-actions-reference.html\">Recipe actions reference</a>."
    },
    "TargetColumn": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1024
    }
  }
}