brows3r — TypeScript API
    Preparing search index...

    Function objectSetTags

    • Set (or clear) the tags on bucket/key.

      An empty tags map removes all tags via DeleteObjectTagging.

      When ifMatchEtag is supplied the backend performs an explicit HeadObject precondition check before PutObjectTagging (TOCTOU-limited, but the best AWS allows for tag-only updates).

      On success the backend emits objects:updated { profileId, bucket, prefix } for the parent prefix of key.

      Parameters

      • profileId: string

        The profile whose credentials to use.

      • bucket: string

        The bucket name.

      • key: string

        The full S3 key of the object.

      • tags: TagsMap

        New tags map. Empty map removes all tags.

      • OptionalifMatchEtag: string

        Optional ETag precondition.

      Returns Promise<PutResult>