the name of the bucket
optional AWS credentials factory to use (since AWSCredentials are not serializable). If the parameter is not supplied, they will be retrieved from the eu.shiftforward.apso.aws.CredentialStore.
Backups a remote file with the given key
.
Backups a remote file with the given key
. A backup consists in copying the supplied file to a backup folder under
the same bucket and folder the file is currently in.
the remote pathname to backup
true if the backup was successful, false otherwise.
the name of the bucket
Creates an empty directory at the given key
location
Creates an empty directory at the given key
location
the remote pathname to the directory
true if the directory was created successfully, false otherwise.
Deletes the file in the location specified by key
in the bucket.
Deletes the file in the location specified by key
in the bucket.
the remote pathname for the file
true if the deletion was successful, false otherwise.
Checks if the file in the location specified by key
in the bucket exists.
Checks if the file in the location specified by key
in the bucket exists.
the remote pathname for the file
true if the file exists, false otherwise.
Returns a list of filenames and directories in a bucket matching a given prefix.
Returns a list of filenames and directories in a bucket matching a given prefix.
the prefix to match
a list of filenames in a bucket matching a given prefix.
Returns a list of objects in a bucket matching a given prefix.
Returns a list of objects in a bucket matching a given prefix.
the prefix to match
a list of objects in a bucket matching a given prefix.
Checks if the location specified by key
is a directory.
Checks if the location specified by key
is a directory.
the remote pathname to the directory
true if the path is a directory, false otherwise.
The Logger
object.
The Logger
object. This logger will have the same name as the concrete class
into which this trait is mixed-in.
Pulls a remote file with the given key
, to the local storage in the pathname provided by destination
.
Pulls a remote file with the given key
, to the local storage in the pathname provided by destination
.
the remote pathname to pull from
the local pathname to pull to
true if the pull was successful, false otherwise
Pushes a given InputStream
to the location specified by key
in the bucket.
Pushes a given InputStream
to the location specified by key
in the bucket.
the remote pathname for the file
the InputStream
to push
the content lenght (setting this to None
can impact performance
true if the push was successful, false otherwise.
Pushes a given local File
to the location specified by key
in the bucket.
Pushes a given local File
to the location specified by key
in the bucket.
the remote pathname for the file
the local File
to push
true if the push was successful, false otherwise.
Sets an access control list on a given Amazon S3 object.
Sets an access control list on a given Amazon S3 object.
the remote pathname for the file
the CannedAccessControlList
to be applied to the Amazon S3 object
Returns size of the file in the location specified by key
in the bucket.
Returns size of the file in the location specified by key
in the bucket. If the file doesn't
exist the return value is 0.
the remote pathname for the file
the size of the file in the location specified by key
in the bucket if the exists, 0 otherwise.
A representation of an Amazon's S3 bucket. This class wraps an com.amazonaws.services.s3.AmazonS3Client and provides a higher level interface for pushing and pulling files to and from a bucket.