tagging
The tag-set for the object copy in the destination bucket. This value must be used in conjunction with the x-amz-tagging-directive if you choose REPLACE for the x-amz-tagging-directive. If you choose COPY for the x-amz-tagging-directive, you don't need to set the x-amz-tagging header, because the tag-set will be copied from the source object directly. The tag-set must be encoded as URL Query parameters.
The default value is the empty value.
Directory buckets - For directory buckets in a CopyObject operation, only the empty tag-set is supported. Any requests that attempt to write non-empty tags into directory buckets will receive a 501 Not Implemented status code. When the destination bucket is a directory bucket, you will receive a 501 Not Implemented response in any of the following situations:
When you attempt to
COPYthe tag-set from an S3 source object that has non-empty tags.When you attempt to
REPLACEthe tag-set of a source object and set a non-empty value tox-amz-tagging.When you don't set the
x-amz-tagging-directiveheader and the source object has non-empty tags. This is because the default value ofx-amz-tagging-directiveisCOPY. Because only the empty tag-set is supported for directory buckets in aCopyObjectoperation, the following situations are allowed:When you attempt to
COPYthe tag-set from a directory bucket source object that has no tags to a general purpose bucket. It copies an empty tag-set to the destination object.When you attempt to
REPLACEthe tag-set of a directory bucket source object and set thex-amz-taggingvalue of the directory bucket destination object to empty.When you attempt to
REPLACEthe tag-set of a general purpose bucket source object that has non-empty tags and set thex-amz-taggingvalue of the directory bucket destination object to empty.When you attempt to
REPLACEthe tag-set of a directory bucket source object and don't set thex-amz-taggingvalue of the directory bucket destination object. This is because the default value ofx-amz-taggingis the empty value.