object S3
- Alphabetic
- By Inheritance
- S3
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def DefaultObjectMetadata: ObjectMetadata
- val MultipartChunkSize: Int
- def ServerSideEncryption: ObjectMetadata
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
copy(from: ContentLocation, to: ContentLocation, meta: Option[ObjectMetadata] = None, createFolders: Boolean = true, overwrite: aws.OverwriteMode = OverwriteMode.Overwrite): S3Action[Option[CopyObjectResult]]
Copy contents at the oldBucket and oldKey to a newBucket and newKey.
Copy contents at the oldBucket and oldKey to a newBucket and newKey.
- from
The source bucket and key
- to
The destination bucket and key
- meta
The function will copy the existing metadata of the source object unless you specify newMetaData which will be used instead.
- createFolders
Set to true if you want to create any folders referenced in the ContentLocation as part of the copy process.
- overwrite
Set to Overwrite if you want to overwrite whatever is in the destination location. Set to NoOverwrite to return without overwriting the destination location.
- returns
S3Action with CopyResult (either Copied if it was copied, or NotCopied if the destination location already has content and NoOverwrite was specified).
-
def
createFolder(bucket: s3.Bucket, folder: String, metaData: ObjectMetadata = DefaultObjectMetadata): S3Action[PutObjectResult]
Creates a folder in an S3 bucket.
Creates a folder in an S3 bucket. A folder is just an empty 'file' with a / on the end of the name. However, if you want to create a folder in a bucket that enforces encryption, you need to create it using the appropriate metadata, which this function can do.
- bucket
Bucket name
- folder
Folder name (without trailing slash)
- metaData
Folder metadata (default enforces encryption)
- returns
S3Action with no return result (Unit)
- def createFoldersFor(location: ContentLocation): S3Action[List[PutObjectResult]]
- def delete(location: ContentLocation): S3Action[Unit]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def exists(bucket: s3.Bucket): S3Action[Boolean]
- def exists(location: ContentLocation): S3Action[Boolean]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def get(location: ContentLocation, range: Range = Range.All): S3Action[S3Object]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listKeys(bucket: s3.Bucket, prefix: String): S3Action[ObjectListing]
- def metaData(location: ContentLocation): S3Action[ObjectMetadata]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nextBatchOfKeys(lastListing: ObjectListing): S3Action[ObjectListing]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def putFile(location: ContentLocation, file: File, metaData: ObjectMetadata = DefaultObjectMetadata, createFolders: Boolean = true): S3Action[PutObjectResult]
- def putStream(location: ContentLocation, stream: InputStream, length: Option[Long] = None, metaData: ObjectMetadata = DefaultObjectMetadata, createFolders: Boolean = true): S3Action[PutObjectResult]
-
def
putStreamWithMultipart(location: ContentLocation, stream: InputStream, length: Option[Long] = None, metaData: ObjectMetadata = DefaultObjectMetadata, createFolders: Boolean = true): S3Action[s3.ContentLength]
Uploads stream of data to S3 using multi-part uploads if the length is not known.
Uploads stream of data to S3 using multi-part uploads if the length is not known.
- returns
length of content that was uploaded
- def regionFor(bucket: s3.Bucket): S3Action[Region]
- def safeGet(location: ContentLocation, range: Range = Range.All): S3Action[Option[S3Object]]
- def safeMetaData(location: ContentLocation): S3Action[Option[ObjectMetadata]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )