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
21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 | |