update_partition
¶
update_partition(
database_name: NameString,
table_name: NameString,
partition_value_list: BoundedPartitionValueList,
partition_input: PartitionInput,
*,
config_overrides: Optional[GlueClientConfig] = 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/glue.py
21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 | |