{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-create-script-request-schema.json",
  "title": "CreateScriptRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-createscript-api-api-openapi.yml#/components/schemas/CreateScriptRequest",
  "type": "object",
  "properties": {
    "DagNodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CodeGenNode"
      },
      "description": "A list of the nodes in the DAG."
    },
    "DagEdges": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CodeGenEdge"
      },
      "description": "A list of the edges in the DAG."
    },
    "Language": {
      "type": "string",
      "enum": [
        "PYTHON",
        "SCALA"
      ],
      "description": "The programming language of the resulting code from the DAG."
    }
  },
  "$defs": {
    "CodeGenEdge": {
      "type": "object",
      "properties": {
        "Source": {
          "type": "string",
          "description": "The ID of the node at which the edge starts."
        },
        "Target": {
          "type": "string",
          "description": "The ID of the node at which the edge ends."
        },
        "TargetParameter": {
          "type": "string",
          "description": "The target of the edge."
        }
      },
      "required": [
        "Source",
        "Target"
      ]
    },
    "CodeGenNode": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "A node identifier that is unique within the node's graph."
        },
        "NodeType": {
          "type": "string",
          "description": "The type of node that this is."
        },
        "Args": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CodeGenNodeArg"
          },
          "description": "Properties of the node, in the form of name-value pairs."
        },
        "LineNumber": {
          "type": "integer",
          "description": "The line number of the node."
        }
      },
      "required": [
        "Id",
        "NodeType",
        "Args"
      ]
    },
    "CodeGenNodeArg": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the argument or property."
        },
        "Value": {
          "type": "string",
          "description": "The value of the argument or property."
        },
        "Param": {
          "type": "boolean",
          "description": "True if the value is used as a parameter."
        }
      },
      "required": [
        "Name",
        "Value"
      ]
    }
  }
}