:doc:`Object <index>` / Attribute / tag_count

*********
tag_count
*********



.. py:attribute:: S3.Object.tag_count

  

  - *(integer) --* 

    The number of tags, if any, on the object, when you have the relevant permission to read object tags.

     

    You can use `GetObjectTagging <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTagging.html>`__ to retrieve the tag set associated with an object.

     

    .. note::

      

      This functionality is not supported for directory buckets.

      

    