update_lf_tag
¶
update_lf_tag(
tag_key: LFTagKey,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
tag_values_to_delete: Optional[TagValueList] = None,
tag_values_to_add: Optional[TagValueList] = None,
) -> UpdateLFTagResponse
Updates the list of possible values for the specified LF-tag key. If the LF-tag does not exist, the operation throws an EntityNotFoundException. The values in the delete key values will be deleted from list of possible values. If any value in the delete key values is attached to a resource, then API errors out with a 400 Exception - "Update not allowed". Untag the attribute before deleting the LF-tag key's value.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
-
tag_key(LFTagKey) –The key-name for the LF-tag for which to add or delete values.
-
tag_values_to_delete(Optional[TagValueList], default:None) –A list of LF-tag values to delete from the LF-tag.
-
tag_values_to_add(Optional[TagValueList], default:None) –A list of LF-tag values to add from the LF-tag.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist.
-
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_lakeformation/_services/lake_formation.py
4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 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 | |