{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-glue-databrew/json-schema/amazon-glue-databrew-data-catalog-output-schema.json",
  "title": "DataCatalogOutput",
  "description": "Represents options that specify how and where in the Glue Data Catalog DataBrew writes the output generated by recipe 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/DataCatalogOutput",
  "type": "object",
  "required": [
    "DatabaseName",
    "TableName"
  ],
  "properties": {
    "CatalogId": {
      "allOf": [
        {
          "$ref": "#/$defs/CatalogId"
        },
        {
          "description": "The unique identifier of the Amazon Web Services account that holds the Data Catalog that stores the data."
        }
      ]
    },
    "DatabaseName": {
      "allOf": [
        {
          "$ref": "#/$defs/DatabaseName"
        },
        {
          "description": "The name of a database in the Data Catalog."
        }
      ]
    },
    "TableName": {
      "allOf": [
        {
          "$ref": "#/$defs/TableName"
        },
        {
          "description": "The name of a table in the Data Catalog."
        }
      ]
    },
    "S3Options": {
      "allOf": [
        {
          "$ref": "#/$defs/S3TableOutputOptions"
        },
        {
          "description": "Represents options that specify how and where DataBrew writes the Amazon S3 output generated by recipe jobs."
        }
      ]
    },
    "DatabaseOptions": {
      "allOf": [
        {
          "$ref": "#/$defs/DatabaseTableOutputOptions"
        },
        {
          "description": "Represents options that specify how and where DataBrew writes the database output generated by recipe jobs."
        }
      ]
    },
    "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. Not supported with DatabaseOptions."
        }
      ]
    }
  },
  "$defs": {
    "Bucket": {
      "type": "string",
      "minLength": 3,
      "maxLength": 63
    },
    "BucketOwner": {
      "type": "string",
      "pattern": "^[0-9]{12}$",
      "minLength": 12,
      "maxLength": 12
    },
    "CatalogId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "DatabaseName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "DatabaseTableName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "DatabaseTableOutputOptions": {
      "type": "object",
      "required": [
        "TableName"
      ],
      "properties": {
        "TempDirectory": {
          "allOf": [
            {
              "$ref": "#/$defs/S3Location"
            },
            {
              "description": "Represents an Amazon S3 location (bucket name and object key) where DataBrew can store intermediate results."
            }
          ]
        },
        "TableName": {
          "allOf": [
            {
              "$ref": "#/$defs/DatabaseTableName"
            },
            {
              "description": "A prefix for the name of a table DataBrew will create in the database."
            }
          ]
        }
      },
      "description": "Represents options that specify how and where DataBrew writes the database output generated by recipe jobs."
    },
    "Key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1280
    },
    "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."
    },
    "S3TableOutputOptions": {
      "type": "object",
      "required": [
        "Location"
      ],
      "properties": {
        "Location": {
          "allOf": [
            {
              "$ref": "#/$defs/S3Location"
            },
            {
              "description": "Represents an Amazon S3 location (bucket name and object key) where DataBrew can write output from a job."
            }
          ]
        }
      },
      "description": "Represents options that specify how and where DataBrew writes the Amazon S3 output generated by recipe jobs."
    },
    "TableName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    }
  }
}