Class DeleteObjectData

java.lang.Object
org.cdlib.mrt.s3v2.action.DeleteObjectData

public class DeleteObjectData extends Object
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 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 service
      bucketName - the name of the S3 bucket to upload the object to
      objectKey - the name of the object to be uploaded
      objectPath - the local file path of the object to be uploaded
      Throws:
      org.cdlib.mrt.utility.TException