{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-glue-databrew/json-schema/amazon-glue-databrew-output-schema.json",
  "title": "Output",
  "description": "Represents options that specify how and where in Amazon S3 DataBrew writes the output generated by recipe jobs or profile jobs.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-glue-databrew-recipe-jobs-api-openapi.yml#/components/schemas/Output",
  "type": "object",
  "required": [
    "Location"
  ],
  "properties": {
    "CompressionFormat": {
      "allOf": [
        {
          "$ref": "#/$defs/CompressionFormat"
        },
        {
          "description": "The compression algorithm used to compress the output text of the job."
        }
      ]
    },
    "Format": {
      "allOf": [
        {
          "$ref": "#/$defs/OutputFormat"
        },
        {
          "description": "The data format of the output of the job."
        }
      ]
    },
    "PartitionColumns": {
      "allOf": [
        {
          "$ref": "#/$defs/ColumnNameList"
        },
        {
          "description": "The names of one or more partition columns for the output of the job."
        }
      ]
    },
    "Location": {
      "allOf": [
        {
          "$ref": "#/$defs/S3Location"
        },
        {
          "description": "The location in Amazon S3 where the job writes its output."
        }
      ]
    },
    "Overwrite": {
      "allOf": [
        {
          "$ref": "#/$defs/OverwriteOutput"
        },
        {
          "description": "A value that, if true, means that any data in the location specified for output is overwritten with new output."
        }
      ]
    },
    "FormatOptions": {
      "allOf": [
        {
          "$ref": "#/$defs/OutputFormatOptions"
        },
        {
          "description": "Represents options that define how DataBrew formats job output files."
        }
      ]
    },
    "MaxOutputFiles": {
      "allOf": [
        {
          "$ref": "#/$defs/MaxOutputFiles"
        },
        {
          "description": "Maximum number of files to be generated by the job and written to the output folder. For output partitioned by column(s), the MaxOutputFiles value is the maximum number of files per partition."
        }
      ]
    }
  },
  "$defs": {
    "Bucket": {
      "type": "string",
      "minLength": 3,
      "maxLength": 63
    },
    "BucketOwner": {
      "type": "string",
      "pattern": "^[0-9]{12}$",
      "minLength": 12,
      "maxLength": 12
    },
    "ColumnName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "ColumnNameList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnName"
      },
      "maxItems": 200
    },
    "CompressionFormat": {
      "type": "string",
      "enum": [
        "GZIP",
        "LZ4",
        "SNAPPY",
        "BZIP2",
        "DEFLATE",
        "LZO",
        "BROTLI",
        "ZSTD",
        "ZLIB"
      ]
    },
    "CsvOutputOptions": {
      "type": "object",
      "properties": {
        "Delimiter": {
          "allOf": [
            {
              "$ref": "#/$defs/Delimiter"
            },
            {
              "description": "A single character that specifies the delimiter used to create CSV job output."
            }
          ]
        }
      },
      "description": "Represents a set of options that define how DataBrew will write a comma-separated value (CSV) file."
    },
    "Delimiter": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1
    },
    "Key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1280
    },
    "MaxOutputFiles": {
      "type": "integer",
      "minimum": 1,
      "maximum": 999
    },
    "OutputFormat": {
      "type": "string",
      "enum": [
        "CSV",
        "JSON",
        "PARQUET",
        "GLUEPARQUET",
        "AVRO",
        "ORC",
        "XML",
        "TABLEAUHYPER"
      ]
    },
    "OutputFormatOptions": {
      "type": "object",
      "properties": {
        "Csv": {
          "allOf": [
            {
              "$ref": "#/$defs/CsvOutputOptions"
            },
            {
              "description": "Represents a set of options that define the structure of comma-separated value (CSV) job output."
            }
          ]
        }
      },
      "description": "Represents a set of options that define the structure of comma-separated (CSV) job output."
    },
    "OverwriteOutput": {
      "type": "boolean"
    },
    "S3Location": {
      "type": "object",
      "required": [
        "Bucket"
      ],
      "properties": {
        "Bucket": {
          "allOf": [
            {
              "$ref": "#/$defs/Bucket"
            },
            {
              "description": "The Amazon S3 bucket name."
            }
          ]
        },
        "Key": {
          "allOf": [
            {
              "$ref": "#/$defs/Key"
            },
            {
              "description": "The unique name of the object in the bucket."
            }
          ]
        },
        "BucketOwner": {
          "allOf": [
            {
              "$ref": "#/$defs/BucketOwner"
            },
            {
              "description": "The Amazon Web Services account ID of the bucket owner."
            }
          ]
        }
      },
      "description": "Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job."
    }
  }
}