Class RestoreObject

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

public class RestoreObject extends Object
  • Constructor Details

    • RestoreObject

      public RestoreObject()
  • Method Details

    • main

      public static void main(String[] args) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • test_aws_after

      public static void test_aws_after() throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException
    • restoreS3Object

      public static RestoreObject.RestoreStat restoreS3Object(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName, String expectedBucketOwner) throws org.cdlib.mrt.utility.TException
      Restores an S3 object from the Glacier storage class.
      Parameters:
      s3 - an instance of the S3Client to be used for interacting with Amazon S3
      bucketName - the name of the S3 bucket where the object is stored
      keyName - the key (object name) of the S3 object to be restored
      expectedBucketOwner - the AWS account ID of the expected bucket owner
      Throws:
      org.cdlib.mrt.utility.TException