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
4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 | |