{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-glue-table.json",
  "title": "AWSGlueTableProperties",
  "description": "Resource Type definition for AWS::Glue::Table. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-glue-table.json",
    "sourceSha256": "d83e45a0f6cab82b7f1de63098b3d542d7c4f005e90e7b4ad2e02a931a30cba4"
  },
  "type": "object",
  "properties": {
    "DatabaseName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "TableInput": {
      "$ref": "#/$defs/TableInput"
    },
    "CatalogId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::Glue::Table",
  "readOnlyProperties": [
    "/properties/Id"
  ],
  "$defs": {
    "TableIdentifier": {
      "type": "object",
      "title": "AWSGlueTableTableIdentifierDefinition",
      "properties": {
        "DatabaseName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "CatalogId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Order": {
      "type": "object",
      "title": "AWSGlueTableOrderDefinition",
      "properties": {
        "Column": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SortOrder": {
          "type": "integer"
        }
      },
      "required": [
        "Column",
        "SortOrder"
      ],
      "additionalProperties": false
    },
    "SchemaReference": {
      "type": "object",
      "title": "AWSGlueTableSchemaReferenceDefinition",
      "properties": {
        "SchemaId": {
          "$ref": "#/$defs/SchemaId"
        },
        "SchemaVersionId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SchemaVersionNumber": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "TableInput": {
      "type": "object",
      "title": "AWSGlueTableTableInputDefinition",
      "properties": {
        "Owner": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ViewOriginalText": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Description": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TableType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Parameters": {
          "type": "object"
        },
        "ViewExpandedText": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "StorageDescriptor": {
          "$ref": "#/$defs/StorageDescriptor"
        },
        "TargetTable": {
          "$ref": "#/$defs/TableIdentifier"
        },
        "PartitionKeys": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Column"
          }
        },
        "Retention": {
          "type": "integer"
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "SkewedInfo": {
      "type": "object",
      "title": "AWSGlueTableSkewedInfoDefinition",
      "properties": {
        "SkewedColumnValues": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "SkewedColumnValueLocationMaps": {
          "type": "object"
        },
        "SkewedColumnNames": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "Column": {
      "type": "object",
      "title": "AWSGlueTableColumnDefinition",
      "properties": {
        "Comment": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Type": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Name"
      ],
      "additionalProperties": false
    },
    "StorageDescriptor": {
      "type": "object",
      "title": "AWSGlueTableStorageDescriptorDefinition",
      "properties": {
        "StoredAsSubDirectories": {
          "type": "boolean"
        },
        "Parameters": {
          "type": "object"
        },
        "BucketColumns": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "NumberOfBuckets": {
          "type": "integer"
        },
        "OutputFormat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Columns": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Column"
          }
        },
        "SerdeInfo": {
          "$ref": "#/$defs/SerdeInfo"
        },
        "SortColumns": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "$ref": "#/$defs/Order"
          }
        },
        "Compressed": {
          "type": "boolean"
        },
        "SchemaReference": {
          "$ref": "#/$defs/SchemaReference"
        },
        "SkewedInfo": {
          "$ref": "#/$defs/SkewedInfo"
        },
        "InputFormat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Location": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "SchemaId": {
      "type": "object",
      "title": "AWSGlueTableSchemaIdDefinition",
      "properties": {
        "RegistryName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SchemaName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SchemaArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "SerdeInfo": {
      "type": "object",
      "title": "AWSGlueTableSerdeInfoDefinition",
      "properties": {
        "Parameters": {
          "type": "object"
        },
        "SerializationLibrary": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Name": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "TableInput",
    "DatabaseName",
    "CatalogId"
  ],
  "createOnlyProperties": [
    "/properties/DatabaseName",
    "/properties/CatalogId"
  ]
}
