Class/Object

akka.stream.alpakka.s3.javadsl

S3Client

Related Docs: object S3Client | package javadsl

Permalink

final class S3Client extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. S3Client
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new S3Client(s3Settings: S3Settings, system: ActorSystem, mat: Materializer)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def deleteObject(bucket: String, key: String): CompletionStage[Done]

    Permalink

    Deletes a S3 Object

    Deletes a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    returns

    A CompletionStage of java.lang.Void

  7. def download(bucket: String, key: String, range: ByteRange, sse: ServerSideEncryption): Pair[Source[ByteString, NotUsed], CompletionStage[ObjectMetadata]]

    Permalink

    Downloads a specific byte range of a S3 Object

    Downloads a specific byte range of a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    range

    the ByteRange you want to download

    sse

    the server side encryption to use

    returns

    A akka.japi.Pair with a Source of ByteString, and a CompletionStage containing the ObjectMetadata

  8. def download(bucket: String, key: String, range: ByteRange): Pair[Source[ByteString, NotUsed], CompletionStage[ObjectMetadata]]

    Permalink

    Downloads a specific byte range of a S3 Object

    Downloads a specific byte range of a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    range

    the ByteRange you want to download

    returns

    A akka.japi.Pair with a Source of ByteString, and a CompletionStage containing the ObjectMetadata

  9. def download(bucket: String, key: String, sse: ServerSideEncryption): Pair[Source[ByteString, NotUsed], CompletionStage[ObjectMetadata]]

    Permalink

    Downloads a S3 Object

    Downloads a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    sse

    the server side encryption to use

    returns

    A akka.japi.Pair with a Source of ByteString, and a CompletionStage containing the ObjectMetadata

  10. def download(bucket: String, key: String): Pair[Source[ByteString, NotUsed], CompletionStage[ObjectMetadata]]

    Permalink

    Downloads a S3 Object

    Downloads a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    returns

    A akka.japi.Pair with a Source of ByteString, and a CompletionStage containing the ObjectMetadata

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getObjectMetadata(bucket: String, key: String, sse: ServerSideEncryption): CompletionStage[Optional[ObjectMetadata]]

    Permalink

    Gets the metadata for a S3 Object

    Gets the metadata for a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    sse

    the server side encryption to use

    returns

    A CompletionStage containing an Optional that will be empty in case the object does not exist

  16. def getObjectMetadata(bucket: String, key: String): CompletionStage[Optional[ObjectMetadata]]

    Permalink

    Gets the metadata for a S3 Object

    Gets the metadata for a S3 Object

    bucket

    the s3 bucket name

    key

    the s3 object key

    returns

    A CompletionStage containing an Optional that will be empty in case the object does not exist

  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def listBucket(bucket: String, prefix: Option[String]): Source[ListBucketResultContents, NotUsed]

    Permalink

    Will return a source of object metadata for a given bucket with optional prefix using version 2 of the List Bucket API.

    Will return a source of object metadata for a given bucket with optional prefix using version 2 of the List Bucket API. This will automatically page through all keys with the given parameters.

    The akka.stream.alpakka.s3.list-bucket-api-version can be set to 1 to use the older API version 1

    bucket

    Which bucket that you list object metadata for

    prefix

    Prefix of the keys you want to list under passed bucket

    returns

    Source of object metadata

    See also

    https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html (version 1 API)

    https://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html (version 1 API)

  20. def multipartCopy(sourceBucket: String, sourceKey: String, targetBucket: String, targetKey: String): CompletionStage[MultipartUploadResult]

    Permalink

    Copy a S3 Object by making multiple requests.

    Copy a S3 Object by making multiple requests.

    sourceBucket

    the source s3 bucket name

    sourceKey

    the source s3 key

    targetBucket

    the target s3 bucket name

    targetKey

    the target s3 key

    returns

    a CompletionStage containing the MultipartUploadResult of the uploaded S3 Object

  21. def multipartCopy(sourceBucket: String, sourceKey: String, targetBucket: String, targetKey: String, s3Headers: S3Headers, sse: ServerSideEncryption): CompletionStage[MultipartUploadResult]

    Permalink

    Copy a S3 Object by making multiple requests.

    Copy a S3 Object by making multiple requests.

    sourceBucket

    the source s3 bucket name

    sourceKey

    the source s3 key

    targetBucket

    the target s3 bucket name

    targetKey

    the target s3 key

    s3Headers

    any headers you want to add

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the MultipartUploadResult of the uploaded S3 Object

  22. def multipartCopy(sourceBucket: String, sourceKey: String, targetBucket: String, targetKey: String, contentType: ContentType, s3Headers: S3Headers, sse: ServerSideEncryption): CompletionStage[MultipartUploadResult]

    Permalink

    Copy a S3 Object by making multiple requests.

    Copy a S3 Object by making multiple requests.

    sourceBucket

    the source s3 bucket name

    sourceKey

    the source s3 key

    targetBucket

    the target s3 bucket name

    targetKey

    the target s3 key

    contentType

    an optional ContentType

    s3Headers

    any headers you want to add

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the MultipartUploadResult of the uploaded S3 Object

  23. def multipartCopy(sourceBucket: String, sourceKey: String, targetBucket: String, targetKey: String, sourceVersionId: String, s3Headers: S3Headers, sse: ServerSideEncryption): CompletionStage[MultipartUploadResult]

    Permalink

    Copy a S3 Object by making multiple requests.

    Copy a S3 Object by making multiple requests.

    sourceBucket

    the source s3 bucket name

    sourceKey

    the source s3 key

    targetBucket

    the target s3 bucket name

    targetKey

    the target s3 key

    sourceVersionId

    version id of source object, if the versioning is enabled in source bucket

    s3Headers

    any headers you want to add

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the MultipartUploadResult of the uploaded S3 Object

  24. def multipartCopy(sourceBucket: String, sourceKey: String, targetBucket: String, targetKey: String, sourceVersionId: String, contentType: ContentType, s3Headers: S3Headers, sse: ServerSideEncryption): CompletionStage[MultipartUploadResult]

    Permalink

    Copy a S3 Object by making multiple requests.

    Copy a S3 Object by making multiple requests.

    sourceBucket

    the source s3 bucket name

    sourceKey

    the source s3 key

    targetBucket

    the target s3 bucket name

    targetKey

    the target s3 key

    sourceVersionId

    version id of source object, if the versioning is enabled in source bucket

    contentType

    an optional ContentType

    s3Headers

    any headers you want to add

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the MultipartUploadResult of the uploaded S3 Object

  25. def multipartUpload(bucket: String, key: String, sse: ServerSideEncryption): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    sse

    the server side encryption to use

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  26. def multipartUpload(bucket: String, key: String): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  27. def multipartUpload(bucket: String, key: String, contentType: ContentType, sse: ServerSideEncryption): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    sse

    the server side encryption to use

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  28. def multipartUpload(bucket: String, key: String, contentType: ContentType): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  29. def multipartUpload(bucket: String, key: String, contentType: ContentType, cannedAcl: CannedAcl, sse: ServerSideEncryption): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    cannedAcl

    a CannedAcl, defaults to CannedAcl.Private

    sse

    the server side encryption to use

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  30. def multipartUpload(bucket: String, key: String, contentType: ContentType, cannedAcl: CannedAcl): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    cannedAcl

    a CannedAcl, defaults to CannedAcl.Private

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  31. def multipartUpload(bucket: String, key: String, contentType: ContentType, cannedAcl: CannedAcl, metaHeaders: MetaHeaders, sse: ServerSideEncryption): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    cannedAcl

    a CannedAcl, defaults to CannedAcl.Private

    metaHeaders

    any meta-headers you want to add

    sse

    sse the server side encryption to use

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  32. def multipartUpload(bucket: String, key: String, contentType: ContentType, cannedAcl: CannedAcl, metaHeaders: MetaHeaders): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    cannedAcl

    a CannedAcl, defaults to CannedAcl.Private

    metaHeaders

    any meta-headers you want to add

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  33. def multipartUpload(bucket: String, key: String, contentType: ContentType, s3Headers: S3Headers, sse: ServerSideEncryption): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    s3Headers

    any headers you want to add

    sse

    the server side encryption to use

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  34. def multipartUpload(bucket: String, key: String, contentType: ContentType, s3Headers: S3Headers): Sink[ByteString, CompletionStage[MultipartUploadResult]]

    Permalink

    Uploads a S3 Object by making multiple requests

    Uploads a S3 Object by making multiple requests

    bucket

    the s3 bucket name

    key

    the s3 object key

    contentType

    an optional ContentType

    s3Headers

    any headers you want to add

    returns

    a Sink that accepts ByteString's and materializes to a CompletionStage of MultipartUploadResult

  35. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  38. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, sse: ServerSideEncryption): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  39. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  40. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType, sse: ServerSideEncryption): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  41. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  42. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType, cannedAcl: CannedAcl, metaHeaders: MetaHeaders, sse: ServerSideEncryption): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    cannedAcl

    the Acl

    metaHeaders

    the metadata headers

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  43. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType, cannedAcl: CannedAcl, metaHeaders: MetaHeaders): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    cannedAcl

    the Acl

    metaHeaders

    the metadata headers

    returns

    ta CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  44. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType, s3Headers: S3Headers, sse: ServerSideEncryption): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    sse

    the server side encryption to use

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  45. def putObject(bucket: String, key: String, data: Source[ByteString, _], contentLength: Long, contentType: ContentType, s3Headers: S3Headers): CompletionStage[ObjectMetadata]

    Permalink

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    Uploads a S3 Object, use this for small files and multipartUpload for bigger ones

    bucket

    the s3 bucket name

    key

    the s3 object key

    data

    a Source of ByteString

    contentLength

    the number of bytes that will be uploaded (required!)

    contentType

    an optional ContentType

    returns

    a CompletionStage containing the ObjectMetadata of the uploaded S3 Object

  46. def request(bucket: String, key: String, method: HttpMethod = HttpMethods.GET, s3Headers: S3Headers = S3Headers.empty): CompletionStage[HttpResponse]

    Permalink

    Use this to extend the library

    Use this to extend the library

    bucket

    the s3 bucket name

    key

    the s3 object key

    method

    the HttpMethod to use when making the request

    s3Headers

    any headers you want to add

    returns

    a CompletionStage containing the raw HttpResponse

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped