{
  "typeName" : "AWS::Glue::Table",
  "description" : "Resource Type definition for AWS::Glue::Table",
  "additionalProperties" : false,
  "properties" : {
    "DatabaseName" : {
      "type" : "string"
    },
    "TableInput" : {
      "$ref" : "#/definitions/TableInput"
    },
    "OpenTableFormatInput" : {
      "$ref" : "#/definitions/OpenTableFormatInput"
    },
    "Id" : {
      "type" : "string"
    },
    "CatalogId" : {
      "type" : "string"
    },
    "Name" : {
      "type" : "string"
    }
  },
  "definitions" : {
    "TableIdentifier" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "DatabaseName" : {
          "type" : "string"
        },
        "Region" : {
          "type" : "string"
        },
        "CatalogId" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      }
    },
    "Order" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Column" : {
          "type" : "string"
        },
        "SortOrder" : {
          "type" : "integer"
        }
      },
      "required" : [ "Column", "SortOrder" ]
    },
    "MetadataOperation" : {
      "type" : "object",
      "additionalProperties" : false
    },
    "OpenTableFormatInput" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IcebergInput" : {
          "$ref" : "#/definitions/IcebergInput"
        }
      }
    },
    "IcebergSortOrder" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "OrderId" : {
          "type" : "integer"
        },
        "Fields" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/IcebergSortField"
          }
        }
      },
      "required" : [ "Fields", "OrderId" ]
    },
    "ViewDefinition" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Definer" : {
          "type" : "string"
        },
        "SubObjects" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "Representations" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/ViewRepresentation"
          }
        },
        "IsProtected" : {
          "type" : "boolean"
        }
      }
    },
    "IcebergPartitionSpec" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SpecId" : {
          "type" : "integer"
        },
        "Fields" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/IcebergPartitionField"
          }
        }
      },
      "required" : [ "Fields" ]
    },
    "StorageDescriptor" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "StoredAsSubDirectories" : {
          "type" : "boolean"
        },
        "Parameters" : {
          "type" : "object"
        },
        "BucketColumns" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "NumberOfBuckets" : {
          "type" : "integer"
        },
        "OutputFormat" : {
          "type" : "string"
        },
        "Columns" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Column"
          }
        },
        "SerdeInfo" : {
          "$ref" : "#/definitions/SerdeInfo"
        },
        "SortColumns" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Order"
          }
        },
        "Compressed" : {
          "type" : "boolean"
        },
        "SchemaReference" : {
          "$ref" : "#/definitions/SchemaReference"
        },
        "SkewedInfo" : {
          "$ref" : "#/definitions/SkewedInfo"
        },
        "InputFormat" : {
          "type" : "string"
        },
        "Location" : {
          "type" : "string"
        }
      }
    },
    "SerdeInfo" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Parameters" : {
          "type" : "object"
        },
        "SerializationLibrary" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      }
    },
    "SchemaReference" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SchemaId" : {
          "$ref" : "#/definitions/SchemaId"
        },
        "SchemaVersionId" : {
          "type" : "string"
        },
        "SchemaVersionNumber" : {
          "type" : "integer"
        }
      }
    },
    "IcebergTableInput" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "WriteOrder" : {
          "$ref" : "#/definitions/IcebergSortOrder"
        },
        "Properties" : {
          "type" : "object"
        },
        "PartitionSpec" : {
          "$ref" : "#/definitions/IcebergPartitionSpec"
        },
        "Schema" : {
          "$ref" : "#/definitions/IcebergSchema"
        },
        "Location" : {
          "type" : "string"
        }
      },
      "required" : [ "Schema", "Location" ]
    },
    "TableInput" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Owner" : {
          "type" : "string"
        },
        "ViewOriginalText" : {
          "type" : "string"
        },
        "Description" : {
          "type" : "string"
        },
        "TableType" : {
          "type" : "string"
        },
        "Parameters" : {
          "type" : "object"
        },
        "ViewDefinition" : {
          "$ref" : "#/definitions/ViewDefinition"
        },
        "StorageDescriptor" : {
          "$ref" : "#/definitions/StorageDescriptor"
        },
        "Retention" : {
          "type" : "integer"
        },
        "Name" : {
          "type" : "string"
        },
        "ViewExpandedText" : {
          "type" : "string"
        },
        "TargetTable" : {
          "$ref" : "#/definitions/TableIdentifier"
        },
        "PartitionKeys" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/Column"
          }
        }
      }
    },
    "IcebergSchema" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SchemaId" : {
          "type" : "integer"
        },
        "Type" : {
          "type" : "string"
        },
        "Fields" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "$ref" : "#/definitions/IcebergStructField"
          }
        },
        "IdentifierFieldIds" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "integer"
          }
        }
      },
      "required" : [ "Fields" ]
    },
    "ViewRepresentation" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Dialect" : {
          "type" : "string"
        },
        "ViewOriginalText" : {
          "type" : "string"
        },
        "DialectVersion" : {
          "type" : "string"
        },
        "ViewExpandedText" : {
          "type" : "string"
        },
        "ValidationConnection" : {
          "type" : "string"
        }
      }
    },
    "SkewedInfo" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SkewedColumnValues" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "SkewedColumnValueLocationMaps" : {
          "type" : "object"
        },
        "SkewedColumnNames" : {
          "type" : "array",
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      }
    },
    "Column" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Comment" : {
          "type" : "string"
        },
        "Type" : {
          "type" : "string"
        },
        "Name" : {
          "type" : "string"
        }
      },
      "required" : [ "Name" ]
    },
    "IcebergSortField" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "NullOrder" : {
          "type" : "string"
        },
        "Transform" : {
          "type" : "string"
        },
        "Direction" : {
          "type" : "string"
        },
        "SourceId" : {
          "type" : "integer"
        }
      },
      "required" : [ "SourceId", "NullOrder", "Transform", "Direction" ]
    },
    "SchemaId" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "RegistryName" : {
          "type" : "string"
        },
        "SchemaName" : {
          "type" : "string"
        },
        "SchemaArn" : {
          "type" : "string"
        }
      }
    },
    "IcebergInput" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IcebergTableInput" : {
          "$ref" : "#/definitions/IcebergTableInput"
        },
        "MetadataOperation" : {
          "$ref" : "#/definitions/MetadataOperation"
        },
        "Version" : {
          "type" : "string"
        }
      }
    },
    "IcebergPartitionField" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Transform" : {
          "type" : "string"
        },
        "SourceId" : {
          "type" : "integer"
        },
        "FieldId" : {
          "type" : "integer"
        },
        "Name" : {
          "type" : "string"
        }
      },
      "required" : [ "SourceId", "Transform", "Name" ]
    },
    "IcebergStructField" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Doc" : {
          "type" : "string"
        },
        "Type" : {
          "type" : "string"
        },
        "Id" : {
          "type" : "integer"
        },
        "Required" : {
          "type" : "boolean"
        },
        "Name" : {
          "type" : "string"
        }
      },
      "required" : [ "Type", "Required", "Id", "Name" ]
    }
  },
  "required" : [ "DatabaseName", "CatalogId" ],
  "createOnlyProperties" : [ "/properties/Name", "/properties/DatabaseName", "/properties/CatalogId" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}