create_table
async
¶
create_table(
database_name: NameString,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
name: Optional[NameString] = None,
table_input: Optional[TableInput] = None,
partition_indexes: Optional[PartitionIndexList] = None,
transaction_id: Optional[TransactionIdString] = None,
open_table_format_input: Optional[OpenTableFormatInput] = None,
) -> CreateTableResponse
Creates a new table definition in the Data Catalog.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –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. -
database_name(NameString) –The catalog database in which to create the new table. For Hive compatibility, this name is entirely lowercase.
-
name(Optional[NameString], default:None) –The unique identifier for the table within the specified database that will be created in the Glue Data Catalog.
-
table_input(Optional[TableInput], default:None) –The
TableInputobject that defines the metadata table to create in the catalog. -
partition_indexes(Optional[PartitionIndexList], default:None) –A list of partition indexes,
PartitionIndexstructures, to create in the table. -
transaction_id(Optional[TransactionIdString], default:None) –The ID of the transaction.
-
open_table_format_input(Optional[OpenTableFormatInput], default:None) –Specifies an
OpenTableFormatInputstructure when creating an open format table.
Raises:
-
AlreadyExistsException–A resource to be created or added already exists.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNotReadyException–A resource was not ready for a transaction.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 | |