void
|
abortMultipartUpload(String bucketName, String key, String uploadId)
Aborts a multipart upload.
|
CompleteMultipartUploadResult
|
completeMultipartUpload(String bucketName, String key, String uploadId, List<PartETag> partETags)
Completes a multipart upload by assembling previously uploaded parts.
|
ObjectResult
|
copyObject(String sourceBucketName, String sourceKey, String sourceVersionId, String destinationBucketName, String destinationKey, CannedAccessControlList destinationAcl, StorageClass destinationStorageClass, Map<String, String> destinationUserMetadata, Date modifiedSince, Date unmodifiedSince, String encryption)
Copies a source object to a new destination; to copy an object, the caller's account must have read access to the source object and write access to the destination bucket.
|
Bucket
|
createBucket(String bucketName, Region region, CannedAccessControlList acl)
Creates a new bucket; connector must not be configured as anonymous for this operation to succeed.
|
ObjectResult
|
createObject(String bucketName, String key, Object content, Long contentLength, String contentMd5, String contentType, String contentDisposition, CannedAccessControlList acl, StorageClass storageClass, Map<String, String> userMetadata, String encryption)
Uploads an object to S3.
|
URI
|
createObjectPresignedUri(String bucketName, String key, Date expiration, String contentMd5, String contentType, HttpMethod method)
Returns a pre-signed URL for accessing an Amazon S3 object.
|
void
|
deleteBucket(String bucketName, boolean force)
Deletes the specified bucket.
|
void
|
deleteBucketCorsConfiguration(String bucketName)
Deletes the Cross Origin Configuration information set for the bucket.
|
void
|
deleteBucketLifecycleConfiguration(String bucketName)
Deletes the lifecycle configuration from the specified bucket.
|
void
|
deleteBucketPolicy(String bucketName)
Deletes the bucket's policy.
|
void
|
deleteBucketTaggingConfiguration(String bucketName)
Deletes the tagging configuration associated with the specified bucket.
|
void
|
deleteBucketWebsiteConfiguration(String bucketName)
Removes the website configuration for a bucket; this operation requires the DeleteBucketWebsite permission.
|
void
|
deleteObject(String bucketName, String key, String versionId)
Deletes a given object, only the owner of the bucket containing the version can perform this operation.
|
void
|
deleteObjects(String bucketName, List<KeyVersion> keys)
Deletes multiple objects in a single bucket from S3.
|
AccessControlList
|
getBucketAcl(String bucketName)
Answers the access control list of the specified bucket.
|
List<CORSRule>
|
getBucketCorsConfiguration(String bucketName)
Answers the cors configuration information set for the bucket.
|
List<BLCRule>
|
getBucketLifecycleConfiguration(String bucketName)
Returns the lifecycle configuration information set on the bucket.
|
String
|
getBucketLocation(String bucketName)
Gets the geographical region where Amazon S3 stores the specified bucket.
|
BucketLoggingConfiguration
|
getBucketLoggingConfiguration(String bucketName)
Answers the logging status of a bucket and the permissions users have to view and modify that status.
|
Map<String, TopicConfiguration>
|
getBucketNotificationConfiguration(String bucketName)
Return the notification configuration of a bucket.
|
String
|
getBucketPolicy(String bucketName)
Answers the policy for the given bucket.
|
List<TagSet>
|
getBucketTaggingConfiguration(String bucketName)
Return the tag set associated with the bucket.
|
BucketVersioningConfiguration
|
getBucketVersioningConfiguration(String bucketName)
Returns the versioning configuration for the specified bucket.
|
BucketWebsiteConfiguration
|
getBucketWebsiteConfiguration(String bucketName)
Answers the website of the given bucket.
|
Config
|
getConfig()
|
S3Object
|
getObject(String bucketName, String key, String versionId, Date modifiedSince, Date unmodifiedSince)
Gets the object stored in Amazon S3 under the specified bucket and key.
|
AccessControlList
|
getObjectAcl(String bucketName, String key, String versionId)
Returns the access control list (ACL) of an object.
|
TransformingValue<S3ObjectInputStream, DataType<S3ObjectInputStream>>
|
getObjectContent(String bucketName, String key, String versionId, Date modifiedSince, Date unmodifiedSince, String mimeType, String encoding)
Gets the content of an object stored in Amazon S3 under the specified bucket and key.
|
S3ObjectMetadata
|
getObjectMetadata(String bucketName, String key, String versionId)
Gets the metadata for the specified Amazon S3 object without actually fetching the object itself.
|
String
|
initiateMultipartUpload(String bucketName, String key, S3ObjectMetadata objectMetadata, CannedAccessControlList acl, StorageClass storageClass, String redirectLocation)
Initiates a multipart upload and returns an upload ID.
|
List<Bucket>
|
listBuckets()
Answers a list of all Amazon S3 buckets that the authenticated sender of the request owns.
|
MultipartUploadListing
|
listMultipartUploads(String bucketName, String delimiter, String encodingType, String keyMarker, Integer maxUploads, String prefix, String uploadIdMarker)
Lists in-progress multipart uploads.
|
ObjectListing
|
listNextBatchOfObjects(ObjectListing previousObjectListing)
Provides an easy way to continue a truncated object listing and retrieve the next page of results.
|
VersionListing
|
listNextBatchOfVersions(VersionListing previousVersionListing)
Provides an easy way to continue a truncated VersionListing and retrieve the next page of results.
|
ObjectListing
|
listObjects(String bucketName, String prefix, String marker, String delimiter, Integer maxKeys, EncodingType encodingType)
Lazily lists all objects for a given prefix.
|
PartListing
|
listParts(String bucketName, String key, String uploadId, String encodingType, Integer maxParts, Integer partNumberMarker)
Lists the parts that have been uploaded for a specific multipart upload.
|
VersionListing
|
listVersions(String bucketName, String prefix, String keyMarker, String versionIdMarker, String delimiter, Integer maxResults, EncodingType encodingType)
Lazily lists all object versions for a given bucket that has versioning enabled.
|
void
|
setBucketAcl(String bucketName, AccessControlList acl)
Set the permissions on an existing bucket using access control lists (ACL)
|
void
|
setBucketCorsConfiguration(String bucketName, List<CORSRule> crossOriginConfigurationRules)
Sets the cors configuration for your bucket.
|
void
|
setBucketLifecycleConfiguration(String bucketName, List<BLCRule> lifecycleConfigurationRules)
Creates a new lifecycle configuration for the bucket or replaces an existing lifecycle configuration.
|
void
|
setBucketLoggingConfiguration(String bucketName, String destinationBucketName, String logFilePrefix)
Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging parameters.
|
void
|
setBucketNotificationConfiguration(String bucketName, Map<String, TopicConfiguration> topicConfigurations)
Sets the notification configuration for the specified bucket.
|
void
|
setBucketPolicy(String bucketName, String policyText)
Sets the bucket's policy, overriding any previously set.
|
void
|
setBucketTaggingConfiguration(String bucketName, List<TagSet> tagSets)
Add a set of tags to an existing bucket
|
void
|
setBucketVersioningConfiguration(String bucketName, VersioningStatus status)
Sets the versioning status for the given bucket.
|
void
|
setBucketWebsiteConfiguration(String bucketName, BucketWebsiteConfiguration bucketWebsiteConfiguration)
Sets the given bucket's website configuration.
|
void
|
setConfig(Config config)
|
void
|
setObjectAcl(String bucketName, String key, String versionId, AccessControlList acl)
Set the access control list (ACL) permissions for an object that already exists in a bucket
|
void
|
setObjectStorageClass(String bucketName, String key, StorageClass storageClass)
Sets the Amazon S3 storage class for the given object.
|
UploadPartResult
|
uploadPart(String bucketName, String key, String uploadId, Integer partNumber, Long partSize, String md5Digest, InputStream content, File file, Long fileOffset, boolean isLastPart)
Uploads a part in a multipart upload.
|
CopyPartResult
|
uploadPartCopy(String sourceBucketName, String sourceKey, String sourceVersionId, String destinationBucketName, String destinationKey, String uploadId, Integer partNumber, List<String> matchingETagConstraints, Date modifiedSince, Date unmodifiedSince)
Copies a source object to a part of a multipart upload.
|