AWS Glue · Schema

CreateTableRequest

Amazon Web ServicesDataData CatalogETLAnalyticsServerless

Properties

Name Type Description
CatalogId string The ID of the Data Catalog in which to create the Table. If none is supplied, the Amazon Web Services account ID is used by default.
DatabaseName string The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
Name string The unique identifier for the table within the specified database that will be created in the Glue Data Catalog.
TableInput object
PartitionIndexes array A list of partition indexes, PartitionIndex structures, to create in the table.
TransactionId string The ID of the transaction.
OpenTableFormatInput object
View JSON Schema on GitHub

JSON Schema

aws-glue-create-table-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-create-table-request-schema.json",
  "title": "CreateTableRequest",
  "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-createtable-api-api-openapi.yml#/components/schemas/CreateTableRequest",
  "type": "object",
  "properties": {
    "CatalogId": {
      "type": "string",
      "description": "The ID of the Data Catalog in which to create the Table. If none is supplied, the Amazon Web Services account ID is used by default."
    },
    "DatabaseName": {
      "type": "string",
      "description": "The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase."
    },
    "Name": {
      "type": "string",
      "description": "The unique identifier for the table within the specified database that will be created in the Glue Data Catalog."
    },
    "TableInput": {
      "$ref": "#/$defs/TableInput"
    },
    "PartitionIndexes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PartitionIndex"
      },
      "description": "A list of partition indexes, PartitionIndex structures, to create in the table."
    },
    "TransactionId": {
      "type": "string",
      "description": "The ID of the transaction."
    },
    "OpenTableFormatInput": {
      "$ref": "#/$defs/OpenTableFormatInput"
    }
  },
  "required": [
    "DatabaseName"
  ],
  "$defs": {
    "Column": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the Column."
        },
        "Type": {
          "type": "string",
          "description": "The data type of the Column."
        },
        "Comment": {
          "type": "string",
          "description": "A free-form text comment."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "These key-value pairs define properties associated with the column."
        }
      },
      "required": [
        "Name"
      ]
    },
    "CreateIcebergTableInput": {
      "type": "object",
      "properties": {
        "Location": {
          "type": "string",
          "description": "The S3 location where the Iceberg table data will be stored."
        },
        "Schema": {
          "$ref": "#/$defs/IcebergSchema"
        },
        "PartitionSpec": {
          "$ref": "#/$defs/IcebergPartitionSpec"
        },
        "WriteOrder": {
          "$ref": "#/$defs/IcebergSortOrder"
        },
        "Properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Key-value pairs of additional table properties and configuration settings for the Iceberg table."
        }
      },
      "required": [
        "Location",
        "Schema"
      ]
    },
    "FederatedTable": {
      "type": "object",
      "properties": {
        "Identifier": {
          "type": "string",
          "description": "A unique identifier for the federated table."
        },
        "DatabaseIdentifier": {
          "type": "string",
          "description": "A unique identifier for the federated database."
        },
        "ConnectionName": {
          "type": "string",
          "description": "The name of the connection to the external metastore."
        },
        "ConnectionType": {
          "type": "string",
          "description": "The type of connection used to access the federated table, specifying the protocol or method for connecting to the external data source."
        }
      }
    },
    "IcebergInput": {
      "type": "object",
      "properties": {
        "MetadataOperation": {
          "type": "string",
          "enum": [
            "CREATE"
          ],
          "description": "A required metadata operation. Can only be set to CREATE."
        },
        "Version": {
          "type": "string",
          "description": "The table version for the Iceberg table. Defaults to 2."
        },
        "CreateIcebergTableInput": {
          "$ref": "#/$defs/CreateIcebergTableInput"
        }
      },
      "required": [
        "MetadataOperation"
      ]
    },
    "IcebergPartitionField": {
      "type": "object",
      "properties": {
        "SourceId": {
          "type": "integer",
          "description": "The identifier of the source field from the table schema that this partition field is based on."
        },
        "Transform": {
          "type": "string",
          "description": "The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour."
        },
        "Name": {
          "type": "string",
          "description": "The name of the partition field as it will appear in the partitioned table structure."
        },
        "FieldId": {
          "type": "integer",
          "description": "The unique identifier assigned to this partition field within the Iceberg table's partition specification."
        }
      },
      "required": [
        "SourceId",
        "Transform",
        "Name"
      ]
    },
    "IcebergPartitionSpec": {
      "type": "object",
      "properties": {
        "Fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IcebergPartitionField"
          },
          "description": "The list of partition fields that define how the table data should be partitioned, including source fields and their transformations."
        },
        "SpecId": {
          "type": "integer",
          "description": "The unique identifier for this partition specification within the Iceberg table's metadata history."
        }
      },
      "required": [
        "Fields"
      ]
    },
    "IcebergSchema": {
      "type": "object",
      "properties": {
        "SchemaId": {
          "type": "integer",
          "description": "The unique identifier for this schema version within the Iceberg table's schema evolution history."
        },
        "IdentifierFieldIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "The list of field identifiers that uniquely identify records in the table, used for row-level operations and deduplication."
        },
        "Type": {
          "type": "string",
          "enum": [
            "struct"
          ],
          "description": "The root type of the schema structure, typically \"struct\" for Iceberg table schemas."
        },
        "Fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IcebergStructField"
          },
          "description": "The list of field definitions that make up the table schema, including field names, types, and metadata."
        }
      },
      "required": [
        "Fields"
      ]
    },
    "IcebergSortField": {
      "type": "object",
      "properties": {
        "SourceId": {
          "type": "integer",
          "description": "The identifier of the source field from the table schema that this sort field is based on."
        },
        "Transform": {
          "type": "string",
          "description": "The transformation function applied to the source field before sorting, such as identity, bucket, or truncate."
        },
        "Direction": {
          "type": "string",
          "enum": [
            "asc",
            "desc"
          ],
          "description": "The sort direction for this field, either ascending or descending."
        },
        "NullOrder": {
          "type": "string",
          "enum": [
            "nulls-first",
            "nulls-last"
          ],
          "description": "The ordering behavior for null values in this field, specifying whether nulls should appear first or last in the sort order."
        }
      },
      "required": [
        "SourceId",
        "Transform",
        "Direction",
        "NullOrder"
      ]
    },
    "IcebergSortOrder": {
      "type": "object",
      "properties": {
        "OrderId": {
          "type": "integer",
          "description": "The unique identifier for this sort order specification within the Iceberg table's metadata."
        },
        "Fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IcebergSortField"
          },
          "description": "The list of fields and their sort directions that define the ordering criteria for the Iceberg table data."
        }
      },
      "required": [
        "OrderId",
        "Fields"
      ]
    },
    "IcebergStructField": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "integer",
          "description": "The unique identifier assigned to this field within the Iceberg table schema, used for schema evolution and field tracking."
        },
        "Name": {
          "type": "string",
          "description": "The name of the field as it appears in the table schema and query operations."
        },
        "Type": {
          "type": "object",
          "description": "The data type definition for this field, specifying the structure and format of the data it contains."
        },
        "Required": {
          "type": "boolean",
          "description": "Indicates whether this field is required (non-nullable) or optional (nullable) in the table schema."
        },
        "Doc": {
          "type": "string",
          "description": "Optional documentation or description text that provides additional context about the purpose and usage of this field."
        },
        "InitialDefault": {
          "type": "object",
          "description": "Default value used to populate the field's value for all records that were written before the field was added to the schema. This enables backward compatibility when adding new fields to existing Iceberg tables."
        },
        "WriteDefault": {
          "type": "object",
          "description": "Default value used to populate the field's value for any records written after the field was added to the schema, if the writer does not supply the field's value. This can be changed through schema evolution."
        }
      },
      "required": [
        "Id",
        "Name",
        "Type",
        "Required"
      ]
    },
    "OpenTableFormatInput": {
      "type": "object",
      "properties": {
        "IcebergInput": {
          "$ref": "#/$defs/IcebergInput"
        }
      }
    },
    "Order": {
      "type": "object",
      "properties": {
        "Column": {
          "type": "string",
          "description": "The name of the column."
        },
        "SortOrder": {
          "type": "integer",
          "description": "Indicates that the column is sorted in ascending order (== 1), or in descending order (==0)."
        }
      },
      "required": [
        "Column",
        "SortOrder"
      ]
    },
    "PartitionIndex": {
      "type": "object",
      "properties": {
        "Keys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The keys for the partition index."
        },
        "IndexName": {
          "type": "string",
          "description": "The name of the partition index."
        }
      },
      "required": [
        "Keys",
        "IndexName"
      ]
    },
    "SchemaId": {
      "type": "object",
      "properties": {
        "SchemaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the schema. One of SchemaArn or SchemaName has to be provided."
        },
        "SchemaName": {
          "type": "string",
          "description": "The name of the schema. One of SchemaArn or SchemaName has to be provided."
        },
        "RegistryName": {
          "type": "string",
          "description": "The name of the schema registry that contains the schema."
        }
      }
    },
    "SchemaReference": {
      "type": "object",
      "properties": {
        "SchemaId": {
          "$ref": "#/$defs/SchemaId"
        },
        "SchemaVersionId": {
          "type": "string",
          "description": "The unique ID assigned to a version of the schema. Either this or the SchemaId has to be provided."
        },
        "SchemaVersionNumber": {
          "type": "integer",
          "description": "The version number of the schema."
        }
      }
    },
    "SerDeInfo": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Name of the SerDe."
        },
        "SerializationLibrary": {
          "type": "string",
          "description": "Usually the class that implements the SerDe. An example is org.apache.hadoop.hive.serde2.columnar.ColumnarSerDe."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "These key-value pairs define initialization parameters for the SerDe."
        }
      }
    },
    "SkewedInfo": {
      "type": "object",
      "properties": {
        "SkewedColumnNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of names of columns that contain skewed values."
        },
        "SkewedColumnValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of values that appear so frequently as to be considered skewed."
        },
        "SkewedColumnValueLocationMaps": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A mapping of skewed values to the columns that contain them."
        }
      }
    },
    "StorageDescriptor": {
      "type": "object",
      "properties": {
        "Columns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Column"
          },
          "description": "A list of the Columns in the table."
        },
        "Location": {
          "type": "string",
          "description": "The physical location of the table. By default, this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name."
        },
        "AdditionalLocations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of locations that point to the path where a Delta table is located."
        },
        "InputFormat": {
          "type": "string",
          "description": "The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format."
        },
        "OutputFormat": {
          "type": "string",
          "description": "The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format."
        },
        "Compressed": {
          "type": "boolean",
          "description": "True if the data in the table is compressed, or False if not."
        },
        "NumberOfBuckets": {
          "type": "integer",
          "description": "Must be specified if the table contains any dimension columns."
        },
        "SerdeInfo": {
          "$ref": "#/$defs/SerDeInfo"
        },
        "BucketColumns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of reducer grouping columns, clustering columns, and bucketing columns in the table."
        },
        "SortColumns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Order"
          },
          "description": "A list specifying the sort order of each bucket in the table."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The user-supplied properties in key-value form."
        },
        "SkewedInfo": {
          "$ref": "#/$defs/SkewedInfo"
        },
        "StoredAsSubDirectories": {
          "type": "boolean",
          "description": "True if the table data is stored in subdirectories, or False if not."
        },
        "SchemaReference": {
          "$ref": "#/$defs/SchemaReference"
        }
      }
    },
    "SubObjectStatistics": {
      "type": "object",
      "properties": {
        "SourceType": {
          "type": "string",
          "enum": [
            "HIVE_PARQUET",
            "HIVE_ORC",
            "HIVE_CSV",
            "HIVE_JSON",
            "PLAIN_PARQUET",
            "ICEBERG"
          ],
          "description": "The source type of the sub-object (for example, its table format), which identifies the sub-object."
        },
        "GlueVersionId": {
          "type": "string",
          "description": "The Glue version ID of the sub-object that the statistics were captured for."
        },
        "PartitionCount": {
          "type": "integer",
          "description": "The number of sub-object partitions selected for that refresh. Not present for unpartitioned sub-objects."
        },
        "FileCount": {
          "type": "integer",
          "description": "The number of sub-object data files selected for that refresh."
        },
        "TotalFileBytes": {
          "type": "integer",
          "description": "The total size, in bytes, of the data files counted by FileCount."
        }
      }
    },
    "TableIdentifier": {
      "type": "object",
      "properties": {
        "CatalogId": {
          "type": "string",
          "description": "The ID of the Data Catalog in which the table resides."
        },
        "DatabaseName": {
          "type": "string",
          "description": "The name of the catalog database that contains the target table."
        },
        "Name": {
          "type": "string",
          "description": "The name of the target table."
        },
        "Region": {
          "type": "string",
          "description": "Region of the target table."
        }
      }
    },
    "TableInput": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The table name. For Hive compatibility, this is folded to lowercase when it is stored."
        },
        "Description": {
          "type": "string",
          "description": "A description of the table."
        },
        "Owner": {
          "type": "string",
          "description": "The table owner. Included for Apache Hive compatibility. Not used in the normal course of Glue operations."
        },
        "LastAccessTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time that the table was accessed."
        },
        "LastAnalyzedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The last time that column statistics were computed for this table."
        },
        "Retention": {
          "type": "integer",
          "description": "The retention time for this table."
        },
        "StorageDescriptor": {
          "$ref": "#/$defs/StorageDescriptor"
        },
        "PartitionKeys": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Column"
          },
          "description": "A list of columns by which the table is partitioned. Only primitive types are supported as partition keys. When you create a table used by Amazon Athena, and you do not specify any partitionKeys, you must at least set the value of partitionKeys to an empty list. For example: \"PartitionKeys\": []"
        },
        "ViewOriginalText": {
          "type": "string",
          "description": "Included for Apache Hive compatibility. Not used in the normal course of Glue operations. If the table is a VIRTUAL_VIEW, certain Athena configuration encoded in base64."
        },
        "ViewExpandedText": {
          "type": "string",
          "description": "Included for Apache Hive compatibility. Not used in the normal course of Glue operations."
        },
        "TableType": {
          "type": "string",
          "description": "The type of this table. Glue will create tables with the EXTERNAL_TABLE type. Other services, such as Athena, may create tables with additional table types. Glue related table types: EXTERNAL_TABLE Hive compatible attribute - indicates a non-Hive managed table. GOVERNED Used by Lake Formation. The Glue Data Catalog understands GOVERNED."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "These key-value pairs define properties associated with the table."
        },
        "TargetTable": {
          "$ref": "#/$defs/TableIdentifier"
        },
        "FederatedTable": {
          "$ref": "#/$defs/FederatedTable"
        },
        "ViewDefinition": {
          "$ref": "#/$defs/ViewDefinitionInput"
        }
      },
      "required": [
        "Name"
      ]
    },
    "ViewDefinitionInput": {
      "type": "object",
      "properties": {
        "IsProtected": {
          "type": "boolean",
          "description": "You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any."
        },
        "IsManaged": {
          "type": "boolean",
          "description": "Specifies whether the materialized view is managed by Glue."
        },
        "Definer": {
          "type": "string",
          "description": "The definer of a view in SQL."
        },
        "Representations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ViewRepresentationInput"
          },
          "description": "A list of structures that contains the dialect of the view, and the query that defines the view."
        },
        "ViewVersionId": {
          "type": "integer",
          "description": "The ID value that identifies this view's version. For materialized views, the version ID is the Apache Iceberg table's snapshot ID."
        },
        "ViewVersionToken": {
          "type": "string",
          "description": "The version ID of the Apache Iceberg table."
        },
        "RefreshSeconds": {
          "type": "integer",
          "description": "Auto refresh interval in seconds for the materialized view. If not specified, the view will not automatically refresh."
        },
        "LastRefreshType": {
          "type": "string",
          "enum": [
            "FULL",
            "INCREMENTAL"
          ],
          "description": "The type of the materialized view's last refresh. Valid values: Full, Incremental."
        },
        "SubObjects": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of base table ARNs that make up the view."
        },
        "SubObjectVersionIds": {
          "type": "array",
          "items": {
            "type": "integer"
          },
          "description": "List of the Apache Iceberg table versions referenced by the materialized view."
        },
        "SubObjectsStatistics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubObjectStatistics"
          },
          "description": "Statistics for each sub-object referenced by the materialized view, such as the source type, Glue version ID, and the partition, file, and byte counts. Each entry describes one sub-object, identified by its source type."
        },
        "SparkPipelineInfo": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "A map of key-value pairs containing Spark Declarative Pipelines (SDP) information for the materialized view."
        }
      }
    },
    "ViewRepresentationInput": {
      "type": "object",
      "properties": {
        "Dialect": {
          "type": "string",
          "enum": [
            "REDSHIFT",
            "ATHENA",
            "SPARK"
          ],
          "description": "A parameter that specifies the engine type of a specific representation."
        },
        "DialectVersion": {
          "type": "string",
          "description": "A parameter that specifies the version of the engine of a specific representation."
        },
        "ViewOriginalText": {
          "type": "string",
          "description": "A string that represents the original SQL query that describes the view."
        },
        "ValidationConnection": {
          "type": "string",
          "description": "The name of the connection to be used to validate the specific representation of the view."
        },
        "ViewExpandedText": {
          "type": "string",
          "description": "A string that represents the SQL query that describes the view with expanded resource ARNs"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aws-glue-create-table-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.