| org.mule.module.s3.simpleapi.SimpleAmazonS3 |
Known Indirect Subclasses
|
A Amazon S3 facade roughly based on com.amazonaws.services.s3.AmazonS3
interface, but that simplifies it by adding consistent versioning support.
Otherwise stated, all messages that take S3ObjectId are aware of
versioning, that is, if isVersioned(), then operations try to
affect the specified version.
Not all messages of com.amazonaws.services.s3.AmazonS3 interface are exposed here. However, those exposed share the same semantics of that interface.
Exception handling:| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SimpleAmazonS3.S3ObjectContent | The content to be uploaded to S3, capable of creating a PutObjectRequest. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Copies a source object, with optional version, to a destination, with optional
destination object acl.
| |||||||||||
Creates a Bucket.
| |||||||||||
Creates a presigned URL for accessing the object of the given id, with an
optional http method and date expiration.
| |||||||||||
Deletes a Bucket
| |||||||||||
Deletes a Bucket, deleting also all its contents if necessary
| |||||||||||
Deletes an object.
| |||||||||||
Deletes all objects
| |||||||||||
Answers the bucket policy, or null, if not set .
| |||||||||||
Returns the bucket versioning configuration for the specified bucket.
| |||||||||||
Returns the versioning configuration for the specified bucket.
| |||||||||||
Retrieves an object from S3 given its id.
| |||||||||||
Answers the object content a given
S3ObjectId. | |||||||||||
Answers the ObjectMetadata for a given
S3ObjectId@return | |||||||||||
Sets the website configuration for the specified bucket.
| |||||||||||
Copies a source object, with optional version, to a destination, with optional destination object acl.
| source | |
|---|---|
| destination | The destination object. If this id is versioned, its version is ignored |
| conditionalConstraints | The constraints to be matched in order to proceed with copy. If not matched, no copy is performed |
| acl | |
| storageClass | |
| encryption | Encryption for the object. Supported value AES256 |
| destinationUserMetadata |
Creates a Bucket.
| bucketName | Mandatory |
|---|---|
| region | Optional |
| acl | Optional |
| AmazonServiceException |
|---|
| objectId | |
|---|---|
| content | |
| contentType | |
| contentDisposition | |
| acl | |
| storageClass | |
| encryption | |
| userMetadata |
Creates a presigned URL for accessing the object of the given id, with an optional http method and date expiration.
| objectId | |
|---|---|
| expiration | If no expiration is supplied, a default expiration provided by AmazonS3 will be used |
| method | If no method is supplied, PUT method is assumed |
| objectId | |
|---|---|
| secure |
| objectId | |
|---|---|
| secure |
Deletes a Bucket
| bucketName |
|---|
Deletes a Bucket, deleting also all its contents if necessary
| bucketName |
|---|
| bucketName |
|---|
| bucketName |
|---|
Deletes all objects
| bucketName | Mandatory bucket name |
|---|---|
| keys | Keys to delete, with optional version |
| MultiObjectDeleteException | if one or more of the objects couldn't be deleted. |
|---|---|
| AmazonClientException | If any errors are encountered in the client while making the request or handling the response. |
| AmazonServiceException | If any errors occurred in Amazon S3 while processing the request. |
Answers the bucket policy, or null, if not set .
| bucketName |
|---|
Returns the bucket versioning configuration for the specified bucket.
| bucketName | The bucket versioning configuration for the specified bucket. |
|---|
Returns the versioning configuration for the specified bucket.
| bucketName | The bucket whose versioning configuration will be retrieved. |
|---|
Retrieves an object from S3 given its id. Warning: use this method with caution, as the retrieved object has an already open inputStream to the object contents. It should be closed quickly.
| objectId | |
|---|---|
| conditionalConstraints |
Answers the object content a given S3ObjectId.
| objectId | |
|---|---|
| conditionalConstraints |
Answers the ObjectMetadata for a given S3ObjectId@return
| objectId |
|---|
| bucketName |
|---|
| bucketName | |
|---|---|
| prefix |
| bucketName | |
|---|---|
| policyText |
| bucketName | |
|---|---|
| versioningStatus |
Sets the website configuration for the specified bucket.
| bucketName | |
|---|---|
| configuration |
| objectId | |
|---|---|
| newStorageClass |