Skip to content

GlueClient.create_table

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Creates a new table definition in the Data Catalog.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from collections.abc import Sequence
from rboto_glue.types import (
    CreateTableOutput,
    OpenTableFormatInput,
    PartitionIndex,
    TableInput,
)

Signature

async def create_table(
    *,
    database_name: str,
    catalog_id: str | None = None,
    name: str | None = None,
    table_input: TableInput | None = None,
    partition_indexes: Sequence[PartitionIndex] | None = None,
    transaction_id: str | None = None,
    open_table_format_input: OpenTableFormatInput | None = None,
) -> CreateTableOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
database_name Yes The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
catalog_id No 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.
name No The unique identifier for the table within the specified database that will be created in the Glue Data Catalog.
table_input No The TableInput object that defines the metadata table to create in the catalog.
partition_indexes No A list of partition indexes, PartitionIndex structures, to create in the table.
transaction_id No The ID of the transaction.
open_table_format_input No Specifies an OpenTableFormatInput structure when creating an open format table.

Output

CreateTableOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

No fields.

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateTableOutput, OpenTableFormatInput, PartitionIndex, TableInput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_glue.exceptions:

AlreadyExistsError, ConcurrentModificationError, EntityNotFoundError, FederationSourceError, FederationSourceRetryableError, GlueEncryptionError, InternalServiceError, InvalidInputError, OperationTimeoutError, ResourceNotReadyError, ResourceNumberLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model