Package org.cdlib.mrt.s3v2.action
Class RestoreObject
java.lang.Object
org.cdlib.mrt.s3v2.action.RestoreObject
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static RestoreObject.RestoreStat
restoreS3Object
(software.amazon.awssdk.services.s3.S3Client s3, String bucketName, String keyName, String expectedBucketOwner) Restores an S3 object from the Glacier storage class.static void
-
Constructor Details
-
RestoreObject
public RestoreObject()
-
-
Method Details
-
main
- 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 theS3Client
to be used for interacting with Amazon S3bucketName
- the name of the S3 bucket where the object is storedkeyName
- the key (object name) of the S3 object to be restoredexpectedBucketOwner
- the AWS account ID of the expected bucket owner- Throws:
org.cdlib.mrt.utility.TException
-