Package com.adaptris.aws2.s3
Class TagOperation
java.lang.Object
com.adaptris.aws2.s3.S3OperationImpl
com.adaptris.aws2.s3.ObjectOperationImpl
com.adaptris.aws2.s3.TagOperation
- All Implemented Interfaces:
S3Operation,ComponentLifecycleExtension
- Direct Known Subclasses:
GetTagOperation
@ComponentProfile(summary="Tag an object in S3",
since="4.3.0")
public class TagOperation
extends ObjectOperationImpl
Add tags to an object from S3 to another object
Uses S3Client.putObjectTagging(PutObjectTaggingRequest).
- Since:
- 4.3.0
In the adapter configuration file this class is aliased as amazon-s3-copy which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.aws2.s3.S3OperationImpl
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ClientWrapper wrapper, AdaptrisMessage msg) protected List<software.amazon.awssdk.services.s3.model.Tag>voidFilter metadata and set them as tags for the s3 object.protected MetadataFilter<T extends TagOperation>
TMethods inherited from class com.adaptris.aws2.s3.ObjectOperationImpl
getObjectName, prepare, s3ObjectKey, setObjectName, withObjectNameMethods inherited from class com.adaptris.aws2.s3.S3OperationImpl
getBucket, s3Bucket, setBucket, withBucket
-
Constructor Details
-
TagOperation
public TagOperation()
-
-
Method Details
-
execute
- Throws:
Exception
-
getTagMetadataFilter
-
setTagMetadataFilter
Filter metadata and set them as tags for the s3 object.- Parameters:
mf- the metadata filter; if not specified defaults toRemoveAllMetadataFilter.
-
withTagMetadataFilter
-
tagMetadataFilter
-
filterTagMetadata
-