Packages

package s3

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package domain

Type Members

  1. trait S3 extends AnyRef

    Represents the Monix S3 client which can be created using the builders from its companion object.

Value Members

  1. object S3

    Singleton object provides builders for S3.

    Singleton object provides builders for S3.

    Example

    import monix.eval.Task
    import software.amazon.awssdk.services.s3.model.NoSuchKeyException
    
    val bucket = "my-bucket"
    val key = "my-key"
    val content = "my-content"
    
    def runS3App(s3: S3): Task[Array[Byte]] = {
      for {
        _ <- s3.createBucket(bucket)
        _ <- s3.upload(bucket, key, content.getBytes)
        existsObject <- s3.existsObject(bucket, key)
        download <- {
          if(existsObject) s3.download(bucket, key)
          else Task.raiseError(NoSuchKeyException.builder().build())
        }
      } yield download
    }
    
    val t = S3.fromConfig.use(s3 => runS3App(s3))

Ungrouped