AWS Glue AWS Glue #X Amz Target=AWSGlue.CreateTable API

The AWS Glue #X Amz Target=AWSGlue.CreateTable API API from AWS Glue — 1 operation(s) for aws glue #x amz target=awsglue.createtable api.

GitHub OpenAPI
Business capability
Information & Data Management BC-610

Operations 1

POST /#CreateTable Create Table #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/aws-glue:aws-glue-aws-glue-x-amz-target-awsglue-createtable-api-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

aws-glue-aws-glue-x-amz-target-awsglue-createtable-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Glue Aws Glue X Amz Target Awsglue Createtable Api API
  version: '2017-03-31'
  description: Generated from AWS's published Smithy model for AWS Glue. 1 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://glue.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateTable:
    post:
      operationId: CreateTable
      summary: Create Table
      description: Creates a new table definition in the Data Catalog.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateTableResponse'
        '400':
          description: AlreadyExistsException; ConcurrentModificationException; EntityNotFoundException; FederationSourceException;
            FederationSourceRetryableException; GlueEncryptionException; InvalidInputException; OperationTimeoutException;
            ResourceNotReadyException; ResourceNumberLimitExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AlreadyExistsException'
        '500':
          description: InternalServiceException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSGlue.CreateTable
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateTableRequest'
      tags:
      - Aws Glue X Amz Target Awsglue Createtable Api
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: glue
  schemas:
    AlreadyExistsException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    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: '#/components/schemas/IcebergSchema'
        PartitionSpec:
          $ref: '#/components/schemas/IcebergPartitionSpec'
        WriteOrder:
          $ref: '#/components/schemas/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
    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: '#/components/schemas/TableInput'
        PartitionIndexes:
          type: array
          items:
            $ref: '#/components/schemas/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: '#/components/schemas/OpenTableFormatInput'
      required:
      - DatabaseName
    CreateTableResponse:
      type: object
      properties: {}
    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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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
    InternalServiceException:
      type: object
      properties:
        Message:
          type: string
          description: A message describing the problem.
    OpenTableFormatInput:
      type: object
      properties:
        IcebergInput:
          $ref: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/SkewedInfo'
        StoredAsSubDirectories:
          type: boolean
          description: True if the table data is stored in subdirectories, or False if not.
        SchemaReference:
          $ref: '#/components/schemas/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: '#/components/schemas/StorageDescriptor'
        PartitionKeys:
          type: array
          items:
            $ref: '#/components/schemas/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: '#/components/schemas/TableIdentifier'
        FederatedTable:
          $ref: '#/components/schemas/FederatedTable'
        ViewDefinition:
          $ref: '#/components/schemas/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: '#/components/schemas/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: '#/components/schemas/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
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/glue/service/2017-03-31/glue-2017-03-31.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)