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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.logging.log4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static software.amazon.awssdk.services.s3.model.DeleteObjectResponse
    deleteS3Object(software.amazon.awssdk.services.s3.S3Client s3client, String bucketName, String objectKey)
    Uploads an object to an Amazon S3 bucket with metadata.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final org.apache.logging.log4j.Logger logger
  • Constructor Details

    • DeleteObjectData

      public DeleteObjectData()
  • Method Details

    • deleteS3Object

      public static software.amazon.awssdk.services.s3.model.DeleteObjectResponse 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:
      bucketName - the name of the S3 bucket to upload the object to
      objectKey - the name of the object to be uploaded
      s3 - the S3Client object used to interact with the Amazon S3 service
      objectPath - the local file path of the object to be uploaded
      Throws:
      org.cdlib.mrt.utility.TException