Package org.cdlib.mrt.s3v2.action
Class DeleteObjectData
java.lang.Object
org.cdlib.mrt.s3v2.action.DeleteObjectData
Before running this Java V2 code example, set up your development
environment, including your credentials.
For more information, see the following documentation topic:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteS3Object
(software.amazon.awssdk.services.s3.S3Client s3client, String bucketName, String objectKey) Uploads an object to an Amazon S3 bucket with metadata.
-
Field Details
-
logger
protected static final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
DeleteObjectData
public DeleteObjectData()
-
-
Method Details
-
deleteS3Object
public static void deleteS3Object(software.amazon.awssdk.services.s3.S3Client s3client, String bucketName, String objectKey) throws org.cdlib.mrt.utility.TException Uploads an object to an Amazon S3 bucket with metadata.- Parameters:
s3
- the S3Client object used to interact with the Amazon S3 servicebucketName
- the name of the S3 bucket to upload the object toobjectKey
- the name of the object to be uploadedobjectPath
- the local file path of the object to be uploaded- Throws:
org.cdlib.mrt.utility.TException
-