← ZIO S3 docs

zio.s3

package zio.s3

Members list

Type members

Classlikes

case object BuildInfo

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

Attributes

Source
BuildInfo.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
BuildInfo.type
final case class ListObjectOptions(prefix: Option[String], maxKeys: Long, delimiter: Option[String], starAfter: Option[String])

The options of the listing object inside a bucket.

The options of the listing object inside a bucket.

Value parameters

delimiter

A delimiter is a character you use to group keys, default value is empty

maxKeys

max total number of objects, default value is 1000 elements

prefix

filter all object identifier which start with this prefix

starAfter

Starts listing after this specified key. StartAfter can be any key in the bucket, default value is empty

Attributes

Companion
object
Source
s3options.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
s3options.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final class Live(unsafeClient: S3AsyncClient) extends S3

Service use to wrap the unsafe amazon s3 client and access safely to s3 storage

Service use to wrap the unsafe amazon s3 client and access safely to s3 storage

Value parameters

unsafeClient:

Amazon Async S3 Client

Attributes

Companion
object
Source
Live.scala
Supertypes
trait S3
class Object
trait Matchable
class Any
object Live

Attributes

Companion
class
Source
Live.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Live.type
object MaxKeys

Attributes

Source
s3options.scala
Supertypes
class Object
trait Matchable
class Any
Self type
MaxKeys.type
final case class MultipartUploadOptions(uploadOptions: UploadOptions, partSize: Int)

The upload options that are specific to multipart uploads

The upload options that are specific to multipart uploads

Value parameters

partSize

the size of the part in bytes, the minimum is 5 MB

uploadOptions

UploadOptions

Attributes

Companion
object
Source
s3options.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
s3options.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ObjectMetadata(metadata: Map[String, String], contentType: String, contentLength: Long, eTag: String)

Value parameters

contentLength

the size of the object in bytes

contentType

the content type of the object (application/json, application/zip, text/plain, ...)

eTag

the etag for the response as hex string

metadata

the user-defined metadata without the "x-amz-meta-" prefix

Attributes

Companion
object
Source
s3model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
s3model.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object PartSize

Attributes

Source
s3options.scala
Supertypes
class Object
trait Matchable
class Any
Self type
PartSize.type
trait S3

The S3 module provides access to a s3 amazon storage. All operations are async since we are relying on the amazon async client

The S3 module provides access to a s3 amazon storage. All operations are async since we are relying on the amazon async client

Attributes

Source
S3.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Live
Self type
S3
final case class S3Bucket(name: String, creationDate: Instant)

Attributes

Companion
object
Source
s3model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object S3Bucket

Attributes

Companion
class
Source
s3model.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
S3Bucket.type
final case class S3ObjectListing(bucketName: String, delimiter: Option[String], starAfter: Option[String], objectSummaries: Chunk[S3ObjectSummary], nextContinuationToken: Option[String], prefix: Option[String])

Attributes

Companion
object
Source
s3model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
s3model.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class S3ObjectSummary(bucketName: String, key: String, lastModified: Instant, size: Long)

Attributes

Source
s3model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class S3Region(val region: Region)

Attributes

Companion
object
Source
settings.scala
Supertypes
class Object
trait Matchable
class Any
object S3Region

Attributes

Companion
class
Source
settings.scala
Supertypes
class Object
trait Matchable
class Any
Self type
S3Region.type
final case class S3Settings(s3Region: S3Region, credentials: AwsCredentials)

Attributes

Companion
object
Source
settings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object S3Settings

Attributes

Companion
class
Source
settings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
S3Settings.type
object Test

Stub Service which is back by a filesystem storage

Stub Service which is back by a filesystem storage

Attributes

Source
Test.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Test.type
final case class UploadOptions(metadata: Map[String, String], cannedAcl: ObjectCannedACL, contentType: Option[String])

The options of the multipart upload and the put object request.

The options of the multipart upload and the put object request.

Value parameters

cannedAcl

a canned acl, defaults to "private"

contentType

the content type of the object (application/json, application/zip, text/plain, ...)

metadata

the user-defined metadata without the "x-amz-meta-" prefix

Attributes

Companion
object
Source
s3options.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object UploadOptions

Attributes

Companion
class
Source
s3options.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object errors

Attributes

Source
errors.scala
Supertypes
class Object
trait Matchable
class Any
Self type
errors.type
object providers

Attributes

Source
providers.scala
Supertypes
class Object
trait Matchable
class Any
Self type
providers.type

Types

type S3Stream[A] = ZStream[S3, S3Exception, A]

Attributes

Source
package.scala

Value members

Concrete methods

def createBucket(bucketName: String): ZIO[S3, S3Exception, Unit]

Attributes

Source
package.scala
def deleteBucket(bucketName: String): ZIO[S3, S3Exception, Unit]

Attributes

Source
package.scala
def deleteObject(bucketName: String, key: String): ZIO[S3, S3Exception, Unit]

Attributes

Source
package.scala
def execute[T](f: S3AsyncClient => CompletableFuture[T]): ZIO[S3, S3Exception, T]

Attributes

Source
package.scala
def getNextObjects(listing: S3ObjectListing): ZIO[S3, S3Exception, S3ObjectListing]

Attributes

Source
package.scala
def getObject(bucketName: String, key: String): ZStream[S3, S3Exception, Byte]

Attributes

Source
package.scala
def getObjectMetadata(bucketName: String, key: String): ZIO[S3, S3Exception, ObjectMetadata]

Attributes

Source
package.scala
def isBucketExists(bucketName: String): ZIO[S3, S3Exception, Boolean]

Attributes

Source
package.scala

Attributes

Source
package.scala

Attributes

Source
package.scala
def listObjects(bucketName: String): ZIO[S3, S3Exception, S3ObjectListing]

Same as listObjects with default values for an empty prefix and sets the maximum number of object max to 1000

Same as listObjects with default values for an empty prefix and sets the maximum number of object max to 1000

Value parameters

bucketName

name of the bucket

Attributes

Source
package.scala
def listObjects(bucketName: String, options: ListObjectOptions): ZIO[S3, S3Exception, S3ObjectListing]

Attributes

Source
package.scala
def live(region: Region, credentials: AwsCredentials, uriEndpoint: Option[URI] = ..., forcePathStyle: Option[Boolean] = ...): Layer[S3Exception, S3]

Attributes

Source
package.scala
def liveZIO[R](region: Region, provider: RIO[R, AwsCredentialsProvider], uriEndpoint: Option[URI] = ..., forcePathStyle: Option[Boolean] = ...): ZLayer[R, S3Exception, S3]

Attributes

Source
package.scala
def multipartUpload[R](bucketName: String, key: String, content: ZStream[R, Throwable, Byte], options: MultipartUploadOptions = ...)(parallelism: Int): ZIO[S3 & R, S3Exception, Unit]

Same as multipartUpload with default parallelism = 1

Same as multipartUpload with default parallelism = 1

Value parameters

bucketName

name of the bucket

content

object data

key

unique object identifier

options

the optional configurations of the multipart upload

Attributes

Source
package.scala

Attributes

Source
package.scala
def putObject[R](bucketName: String, key: String, contentLength: Long, content: ZStream[R, Throwable, Byte], options: UploadOptions = ..., contentMD5: Option[String] = ...): ZIO[S3 & R, S3Exception, Unit]

Attributes

Source
package.scala
def settings[R](region: Region, cred: ZIO[R, S3Exception, AwsCredentials]): ZLayer[R, S3Exception, S3Settings]

Attributes

Source
package.scala
def streamLines(bucketName: String, key: String): S3Stream[String]

Attributes

Source
package.scala
def stub(path: Path): ZLayer[Any, Nothing, S3]

Attributes

Source
package.scala

Concrete fields

val listBuckets: ZIO[S3, S3Exception, S3BucketListing]

Attributes

Source
package.scala