update_partition
async
¶
update_partition(
database_name: NameString,
table_name: NameString,
partition_value_list: BoundedPartitionValueList,
partition_input: PartitionInput,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
) -> UpdatePartitionResponse
Updates a partition.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The ID of the Data Catalog where the partition to be updated resides. If none is provided, the Amazon Web Services account ID is used by default.
-
database_name(NameString) –The name of the catalog database in which the table in question resides.
-
table_name(NameString) –The name of the table in which the partition to be updated is located.
-
partition_value_list(BoundedPartitionValueList) –List of partition key values that define the partition to update.
-
partition_input(PartitionInput) –The new partition object to update the partition to.
The
Valuesproperty can't be changed. If you want to change the partition key values for a partition, delete and recreate the partition.
Raises:
-
EntityNotFoundException–A specified entity does not exist
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 | |