Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.
Valid values: COPY | REPLACE. Default: COPY.
- directive (S3MetadataDirective)
- Metadata directive
the request with the Directive set
Assembly: AWSSDK (Module: AWSSDK) Version: 188.8.131.52 (184.108.40.206)
If Directive is set to COPY, the metadata remains unchanged, otherwise, all original metadata is replaced by the metadata you specify. You cannot copy an object to itself unless the Directive property is specified and its value set to REPLACE.