tagging#
Update S3 bucket, object tagging.
- s3pathlib.better_client.tagging.update_bucket_tagging(s3_client: S3Client, bucket: str, tags: Dict[str, str], checksum_algorithm: str = Sentinel('NOTHING'), expected_bucket_owner: str = Sentinel('NOTHING')) Dict[str, str] [source]#
Allow you to use
dict.update
liked API to update s3 bucket tagging. It is a combination of get, update and put.- Returns:
the updated tags in Python dict.
- s3pathlib.better_client.tagging.update_object_tagging(s3_client: S3Client, bucket: str, key: str, tags: Dict[str, str], version_id: str = Sentinel('NOTHING'), content_md5: str = Sentinel('NOTHING'), checksum_algorithm: str = Sentinel('NOTHING'), expected_bucket_owner: str = Sentinel('NOTHING'), request_payer: str = Sentinel('NOTHING')) Tuple[str | None, Dict[str, str]] [source]#
Allow you to use
dict.update
liked API to update s3 object tagging. It is a combination of get, update and put.- Returns:
the tuple of
(version_id, tags)
, where version_id is optional, and tags is the updated tags in Python dict.